1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. getManagementStations
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.OsManagementHub.getManagementStations

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    This data source provides the list of Management Stations in Oracle Cloud Infrastructure Os Management Hub service.

    Lists management stations in a compartment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagementStations = oci.OsManagementHub.getManagementStations({
        compartmentId: compartmentId,
        displayName: managementStationDisplayName,
        displayNameContains: managementStationDisplayNameContains,
        id: managementStationId,
        managedInstanceId: testManagedInstance.id,
        state: managementStationState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_management_stations = oci.OsManagementHub.get_management_stations(compartment_id=compartment_id,
        display_name=management_station_display_name,
        display_name_contains=management_station_display_name_contains,
        id=management_station_id,
        managed_instance_id=test_managed_instance["id"],
        state=management_station_state)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/OsManagementHub"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := OsManagementHub.GetManagementStations(ctx, &osmanagementhub.GetManagementStationsArgs{
    			CompartmentId:       pulumi.StringRef(compartmentId),
    			DisplayName:         pulumi.StringRef(managementStationDisplayName),
    			DisplayNameContains: pulumi.StringRef(managementStationDisplayNameContains),
    			Id:                  pulumi.StringRef(managementStationId),
    			ManagedInstanceId:   pulumi.StringRef(testManagedInstance.Id),
    			State:               pulumi.StringRef(managementStationState),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testManagementStations = Oci.OsManagementHub.GetManagementStations.Invoke(new()
        {
            CompartmentId = compartmentId,
            DisplayName = managementStationDisplayName,
            DisplayNameContains = managementStationDisplayNameContains,
            Id = managementStationId,
            ManagedInstanceId = testManagedInstance.Id,
            State = managementStationState,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.OsManagementHub.OsManagementHubFunctions;
    import com.pulumi.oci.OsManagementHub.inputs.GetManagementStationsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var testManagementStations = OsManagementHubFunctions.getManagementStations(GetManagementStationsArgs.builder()
                .compartmentId(compartmentId)
                .displayName(managementStationDisplayName)
                .displayNameContains(managementStationDisplayNameContains)
                .id(managementStationId)
                .managedInstanceId(testManagedInstance.id())
                .state(managementStationState)
                .build());
    
        }
    }
    
    variables:
      testManagementStations:
        fn::invoke:
          Function: oci:OsManagementHub:getManagementStations
          Arguments:
            compartmentId: ${compartmentId}
            displayName: ${managementStationDisplayName}
            displayNameContains: ${managementStationDisplayNameContains}
            id: ${managementStationId}
            managedInstanceId: ${testManagedInstance.id}
            state: ${managementStationState}
    

    Using getManagementStations

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getManagementStations(args: GetManagementStationsArgs, opts?: InvokeOptions): Promise<GetManagementStationsResult>
    function getManagementStationsOutput(args: GetManagementStationsOutputArgs, opts?: InvokeOptions): Output<GetManagementStationsResult>
    def get_management_stations(compartment_id: Optional[str] = None,
                                display_name: Optional[str] = None,
                                display_name_contains: Optional[str] = None,
                                filters: Optional[Sequence[_osmanagementhub.GetManagementStationsFilter]] = None,
                                id: Optional[str] = None,
                                managed_instance_id: Optional[str] = None,
                                state: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetManagementStationsResult
    def get_management_stations_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                display_name: Optional[pulumi.Input[str]] = None,
                                display_name_contains: Optional[pulumi.Input[str]] = None,
                                filters: Optional[pulumi.Input[Sequence[pulumi.Input[_osmanagementhub.GetManagementStationsFilterArgs]]]] = None,
                                id: Optional[pulumi.Input[str]] = None,
                                managed_instance_id: Optional[pulumi.Input[str]] = None,
                                state: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetManagementStationsResult]
    func GetManagementStations(ctx *Context, args *GetManagementStationsArgs, opts ...InvokeOption) (*GetManagementStationsResult, error)
    func GetManagementStationsOutput(ctx *Context, args *GetManagementStationsOutputArgs, opts ...InvokeOption) GetManagementStationsResultOutput

    > Note: This function is named GetManagementStations in the Go SDK.

    public static class GetManagementStations 
    {
        public static Task<GetManagementStationsResult> InvokeAsync(GetManagementStationsArgs args, InvokeOptions? opts = null)
        public static Output<GetManagementStationsResult> Invoke(GetManagementStationsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagementStationsResult> getManagementStations(GetManagementStationsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagementHub/getManagementStations:getManagementStations
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
    DisplayName string
    A filter to return resources that match the given user-friendly name.
    DisplayNameContains string
    A filter to return resources that may partially match the given display name.
    Filters List<GetManagementStationsFilter>
    Id string
    The OCID of the management station. A filter that returns information about the specified management station.
    ManagedInstanceId string
    The OCID of the managed instance. This filter returns resources associated with this managed instance.
    State string
    A filter that returns information for management stations in the specified state.
    CompartmentId string
    (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
    DisplayName string
    A filter to return resources that match the given user-friendly name.
    DisplayNameContains string
    A filter to return resources that may partially match the given display name.
    Filters []GetManagementStationsFilter
    Id string
    The OCID of the management station. A filter that returns information about the specified management station.
    ManagedInstanceId string
    The OCID of the managed instance. This filter returns resources associated with this managed instance.
    State string
    A filter that returns information for management stations in the specified state.
    compartmentId String
    (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
    displayName String
    A filter to return resources that match the given user-friendly name.
    displayNameContains String
    A filter to return resources that may partially match the given display name.
    filters List<GetManagementStationsFilter>
    id String
    The OCID of the management station. A filter that returns information about the specified management station.
    managedInstanceId String
    The OCID of the managed instance. This filter returns resources associated with this managed instance.
    state String
    A filter that returns information for management stations in the specified state.
    compartmentId string
    (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
    displayName string
    A filter to return resources that match the given user-friendly name.
    displayNameContains string
    A filter to return resources that may partially match the given display name.
    filters GetManagementStationsFilter[]
    id string
    The OCID of the management station. A filter that returns information about the specified management station.
    managedInstanceId string
    The OCID of the managed instance. This filter returns resources associated with this managed instance.
    state string
    A filter that returns information for management stations in the specified state.
    compartment_id str
    (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
    display_name str
    A filter to return resources that match the given user-friendly name.
    display_name_contains str
    A filter to return resources that may partially match the given display name.
    filters Sequence[osmanagementhub.GetManagementStationsFilter]
    id str
    The OCID of the management station. A filter that returns information about the specified management station.
    managed_instance_id str
    The OCID of the managed instance. This filter returns resources associated with this managed instance.
    state str
    A filter that returns information for management stations in the specified state.
    compartmentId String
    (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
    displayName String
    A filter to return resources that match the given user-friendly name.
    displayNameContains String
    A filter to return resources that may partially match the given display name.
    filters List<Property Map>
    id String
    The OCID of the management station. A filter that returns information about the specified management station.
    managedInstanceId String
    The OCID of the managed instance. This filter returns resources associated with this managed instance.
    state String
    A filter that returns information for management stations in the specified state.

    getManagementStations Result

    The following output properties are available:

    ManagementStationCollections List<GetManagementStationsManagementStationCollection>
    The list of management_station_collection.
    CompartmentId string
    The OCID of the compartment that contains the management station.
    DisplayName string
    A user-friendly name for the management station.
    DisplayNameContains string
    Filters List<GetManagementStationsFilter>
    Id string
    The OCID of the management station.
    ManagedInstanceId string
    The OCID of the instance that is acting as the management station.
    State string
    The current state of the management station.
    ManagementStationCollections []GetManagementStationsManagementStationCollection
    The list of management_station_collection.
    CompartmentId string
    The OCID of the compartment that contains the management station.
    DisplayName string
    A user-friendly name for the management station.
    DisplayNameContains string
    Filters []GetManagementStationsFilter
    Id string
    The OCID of the management station.
    ManagedInstanceId string
    The OCID of the instance that is acting as the management station.
    State string
    The current state of the management station.
    managementStationCollections List<GetManagementStationsManagementStationCollection>
    The list of management_station_collection.
    compartmentId String
    The OCID of the compartment that contains the management station.
    displayName String
    A user-friendly name for the management station.
    displayNameContains String
    filters List<GetManagementStationsFilter>
    id String
    The OCID of the management station.
    managedInstanceId String
    The OCID of the instance that is acting as the management station.
    state String
    The current state of the management station.
    managementStationCollections GetManagementStationsManagementStationCollection[]
    The list of management_station_collection.
    compartmentId string
    The OCID of the compartment that contains the management station.
    displayName string
    A user-friendly name for the management station.
    displayNameContains string
    filters GetManagementStationsFilter[]
    id string
    The OCID of the management station.
    managedInstanceId string
    The OCID of the instance that is acting as the management station.
    state string
    The current state of the management station.
    management_station_collections Sequence[osmanagementhub.GetManagementStationsManagementStationCollection]
    The list of management_station_collection.
    compartment_id str
    The OCID of the compartment that contains the management station.
    display_name str
    A user-friendly name for the management station.
    display_name_contains str
    filters Sequence[osmanagementhub.GetManagementStationsFilter]
    id str
    The OCID of the management station.
    managed_instance_id str
    The OCID of the instance that is acting as the management station.
    state str
    The current state of the management station.
    managementStationCollections List<Property Map>
    The list of management_station_collection.
    compartmentId String
    The OCID of the compartment that contains the management station.
    displayName String
    A user-friendly name for the management station.
    displayNameContains String
    filters List<Property Map>
    id String
    The OCID of the management station.
    managedInstanceId String
    The OCID of the instance that is acting as the management station.
    state String
    The current state of the management station.

    Supporting Types

    GetManagementStationsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetManagementStationsManagementStationCollection

    GetManagementStationsManagementStationCollectionItem

    CompartmentId string
    (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    Explanation of the health status.
    DisplayName string
    A filter to return resources that match the given user-friendly name.
    FreeformTags Dictionary<string, object>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    HealthState string
    Hostname string
    Hostname of the management station.
    Id string
    The OCID of the management station. A filter that returns information about the specified management station.
    ManagedInstanceId string
    The OCID of the managed instance. This filter returns resources associated with this managed instance.
    MirrorCapacity int
    A decimal number representing the amount of mirror capacity used by the sync.
    OverallPercentage int
    A decimal number representing the progress of the current mirror sync.
    OverallState string
    Current state of the mirror sync for the management station.
    ProfileId string
    The OCID of the registration profile used for the management station.
    ScheduledJobId string
    The OCID of the scheduled job for the mirror sync.
    State string
    A filter that returns information for management stations in the specified state.
    SystemTags Dictionary<string, object>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeNextExecution string
    CompartmentId string
    (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    Explanation of the health status.
    DisplayName string
    A filter to return resources that match the given user-friendly name.
    FreeformTags map[string]interface{}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    HealthState string
    Hostname string
    Hostname of the management station.
    Id string
    The OCID of the management station. A filter that returns information about the specified management station.
    ManagedInstanceId string
    The OCID of the managed instance. This filter returns resources associated with this managed instance.
    MirrorCapacity int
    A decimal number representing the amount of mirror capacity used by the sync.
    OverallPercentage int
    A decimal number representing the progress of the current mirror sync.
    OverallState string
    Current state of the mirror sync for the management station.
    ProfileId string
    The OCID of the registration profile used for the management station.
    ScheduledJobId string
    The OCID of the scheduled job for the mirror sync.
    State string
    A filter that returns information for management stations in the specified state.
    SystemTags map[string]interface{}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeNextExecution string
    compartmentId String
    (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    Explanation of the health status.
    displayName String
    A filter to return resources that match the given user-friendly name.
    freeformTags Map<String,Object>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    healthState String
    hostname String
    Hostname of the management station.
    id String
    The OCID of the management station. A filter that returns information about the specified management station.
    managedInstanceId String
    The OCID of the managed instance. This filter returns resources associated with this managed instance.
    mirrorCapacity Integer
    A decimal number representing the amount of mirror capacity used by the sync.
    overallPercentage Integer
    A decimal number representing the progress of the current mirror sync.
    overallState String
    Current state of the mirror sync for the management station.
    profileId String
    The OCID of the registration profile used for the management station.
    scheduledJobId String
    The OCID of the scheduled job for the mirror sync.
    state String
    A filter that returns information for management stations in the specified state.
    systemTags Map<String,Object>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeNextExecution String
    compartmentId string
    (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description string
    Explanation of the health status.
    displayName string
    A filter to return resources that match the given user-friendly name.
    freeformTags {[key: string]: any}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    healthState string
    hostname string
    Hostname of the management station.
    id string
    The OCID of the management station. A filter that returns information about the specified management station.
    managedInstanceId string
    The OCID of the managed instance. This filter returns resources associated with this managed instance.
    mirrorCapacity number
    A decimal number representing the amount of mirror capacity used by the sync.
    overallPercentage number
    A decimal number representing the progress of the current mirror sync.
    overallState string
    Current state of the mirror sync for the management station.
    profileId string
    The OCID of the registration profile used for the management station.
    scheduledJobId string
    The OCID of the scheduled job for the mirror sync.
    state string
    A filter that returns information for management stations in the specified state.
    systemTags {[key: string]: any}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeNextExecution string
    compartment_id str
    (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description str
    Explanation of the health status.
    display_name str
    A filter to return resources that match the given user-friendly name.
    freeform_tags Mapping[str, Any]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    health_state str
    hostname str
    Hostname of the management station.
    id str
    The OCID of the management station. A filter that returns information about the specified management station.
    managed_instance_id str
    The OCID of the managed instance. This filter returns resources associated with this managed instance.
    mirror_capacity int
    A decimal number representing the amount of mirror capacity used by the sync.
    overall_percentage int
    A decimal number representing the progress of the current mirror sync.
    overall_state str
    Current state of the mirror sync for the management station.
    profile_id str
    The OCID of the registration profile used for the management station.
    scheduled_job_id str
    The OCID of the scheduled job for the mirror sync.
    state str
    A filter that returns information for management stations in the specified state.
    system_tags Mapping[str, Any]
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_next_execution str
    compartmentId String
    (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    Explanation of the health status.
    displayName String
    A filter to return resources that match the given user-friendly name.
    freeformTags Map<Any>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    healthState String
    hostname String
    Hostname of the management station.
    id String
    The OCID of the management station. A filter that returns information about the specified management station.
    managedInstanceId String
    The OCID of the managed instance. This filter returns resources associated with this managed instance.
    mirrorCapacity Number
    A decimal number representing the amount of mirror capacity used by the sync.
    overallPercentage Number
    A decimal number representing the progress of the current mirror sync.
    overallState String
    Current state of the mirror sync for the management station.
    profileId String
    The OCID of the registration profile used for the management station.
    scheduledJobId String
    The OCID of the scheduled job for the mirror sync.
    state String
    A filter that returns information for management stations in the specified state.
    systemTags Map<Any>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeNextExecution String

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi