Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.OsManagementHub.getManagementStations
Explore with Pulumi AI
This data source provides the list of Management Stations in Oracle Cloud Infrastructure Os Management Hub service.
Lists management stations within the specified compartment. Filter the list against a variety of criteria including but not limited to name, status, and location.
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,
    locations: managementStationLocation,
    locationNotEqualTos: managementStationLocationNotEqualTo,
    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,
    locations=management_station_location,
    location_not_equal_tos=management_station_location_not_equal_to,
    managed_instance_id=test_managed_instance["id"],
    state=management_station_state)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/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),
			Locations:           managementStationLocation,
			LocationNotEqualTos: managementStationLocationNotEqualTo,
			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,
        Locations = managementStationLocation,
        LocationNotEqualTos = managementStationLocationNotEqualTo,
        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)
            .locations(managementStationLocation)
            .locationNotEqualTos(managementStationLocationNotEqualTo)
            .managedInstanceId(testManagedInstance.id())
            .state(managementStationState)
            .build());
    }
}
variables:
  testManagementStations:
    fn::invoke:
      function: oci:OsManagementHub:getManagementStations
      arguments:
        compartmentId: ${compartmentId}
        displayName: ${managementStationDisplayName}
        displayNameContains: ${managementStationDisplayNameContains}
        id: ${managementStationId}
        locations: ${managementStationLocation}
        locationNotEqualTos: ${managementStationLocationNotEqualTo}
        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[GetManagementStationsFilter]] = None,
                            id: Optional[str] = None,
                            location_not_equal_tos: Optional[Sequence[str]] = None,
                            locations: Optional[Sequence[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[GetManagementStationsFilterArgs]]]] = None,
                            id: Optional[pulumi.Input[str]] = None,
                            location_not_equal_tos: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                            locations: Optional[pulumi.Input[Sequence[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)
public static Output<GetManagementStationsResult> getManagementStations(GetManagementStationsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OsManagementHub/getManagementStations:getManagementStations
  arguments:
    # arguments dictionaryThe 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.
- DisplayName stringContains 
- A filter to return resources that may partially match the given display name.
- Filters
List<GetManagement Stations Filter> 
- Id string
- The OCID of the management station. A filter that returns information about the specified management station.
- LocationNot List<string>Equal Tos 
- A filter to return only resources whose location does not match the given value.
- Locations List<string>
- A filter to return only resources whose location matches the given value.
- ManagedInstance stringId 
- 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.
- DisplayName stringContains 
- A filter to return resources that may partially match the given display name.
- Filters
[]GetManagement Stations Filter 
- Id string
- The OCID of the management station. A filter that returns information about the specified management station.
- LocationNot []stringEqual Tos 
- A filter to return only resources whose location does not match the given value.
- Locations []string
- A filter to return only resources whose location matches the given value.
- ManagedInstance stringId 
- 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.
- displayName StringContains 
- A filter to return resources that may partially match the given display name.
- filters
List<GetManagement Stations Filter> 
- id String
- The OCID of the management station. A filter that returns information about the specified management station.
- locationNot List<String>Equal Tos 
- A filter to return only resources whose location does not match the given value.
- locations List<String>
- A filter to return only resources whose location matches the given value.
- managedInstance StringId 
- 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.
- displayName stringContains 
- A filter to return resources that may partially match the given display name.
- filters
GetManagement Stations Filter[] 
- id string
- The OCID of the management station. A filter that returns information about the specified management station.
- locationNot string[]Equal Tos 
- A filter to return only resources whose location does not match the given value.
- locations string[]
- A filter to return only resources whose location matches the given value.
- managedInstance stringId 
- 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_ strcontains 
- A filter to return resources that may partially match the given display name.
- filters
Sequence[GetManagement Stations Filter] 
- id str
- The OCID of the management station. A filter that returns information about the specified management station.
- location_not_ Sequence[str]equal_ tos 
- A filter to return only resources whose location does not match the given value.
- locations Sequence[str]
- A filter to return only resources whose location matches the given value.
- managed_instance_ strid 
- 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.
- displayName StringContains 
- 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.
- locationNot List<String>Equal Tos 
- A filter to return only resources whose location does not match the given value.
- locations List<String>
- A filter to return only resources whose location matches the given value.
- managedInstance StringId 
- 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:
- ManagementStation List<GetCollections Management Stations Management Station Collection> 
- The list of management_station_collection.
- CompartmentId string
- The OCID of the compartment that contains the management station.
- DisplayName string
- User-friendly name for the management station.
- DisplayName stringContains 
- Filters
List<GetManagement Stations Filter> 
- Id string
- The OCID of the management station.
- LocationNot List<string>Equal Tos 
- Locations List<string>
- The location of the instance that is acting as the management station.
- ManagedInstance stringId 
- The OCID of the instance that is acting as the management station.
- State string
- The current state of the management station.
- ManagementStation []GetCollections Management Stations Management Station Collection 
- The list of management_station_collection.
- CompartmentId string
- The OCID of the compartment that contains the management station.
- DisplayName string
- User-friendly name for the management station.
- DisplayName stringContains 
- Filters
[]GetManagement Stations Filter 
- Id string
- The OCID of the management station.
- LocationNot []stringEqual Tos 
- Locations []string
- The location of the instance that is acting as the management station.
- ManagedInstance stringId 
- The OCID of the instance that is acting as the management station.
- State string
- The current state of the management station.
- managementStation List<GetCollections Management Stations Management Station Collection> 
- The list of management_station_collection.
- compartmentId String
- The OCID of the compartment that contains the management station.
- displayName String
- User-friendly name for the management station.
- displayName StringContains 
- filters
List<GetManagement Stations Filter> 
- id String
- The OCID of the management station.
- locationNot List<String>Equal Tos 
- locations List<String>
- The location of the instance that is acting as the management station.
- managedInstance StringId 
- The OCID of the instance that is acting as the management station.
- state String
- The current state of the management station.
- managementStation GetCollections Management Stations Management Station Collection[] 
- The list of management_station_collection.
- compartmentId string
- The OCID of the compartment that contains the management station.
- displayName string
- User-friendly name for the management station.
- displayName stringContains 
- filters
GetManagement Stations Filter[] 
- id string
- The OCID of the management station.
- locationNot string[]Equal Tos 
- locations string[]
- The location of the instance that is acting as the management station.
- managedInstance stringId 
- The OCID of the instance that is acting as the management station.
- state string
- The current state of the management station.
- management_station_ Sequence[Getcollections Management Stations Management Station Collection] 
- The list of management_station_collection.
- compartment_id str
- The OCID of the compartment that contains the management station.
- display_name str
- User-friendly name for the management station.
- display_name_ strcontains 
- filters
Sequence[GetManagement Stations Filter] 
- id str
- The OCID of the management station.
- location_not_ Sequence[str]equal_ tos 
- locations Sequence[str]
- The location of the instance that is acting as the management station.
- managed_instance_ strid 
- The OCID of the instance that is acting as the management station.
- state str
- The current state of the management station.
- managementStation List<Property Map>Collections 
- The list of management_station_collection.
- compartmentId String
- The OCID of the compartment that contains the management station.
- displayName String
- User-friendly name for the management station.
- displayName StringContains 
- filters List<Property Map>
- id String
- The OCID of the management station.
- locationNot List<String>Equal Tos 
- locations List<String>
- The location of the instance that is acting as the management station.
- managedInstance StringId 
- The OCID of the instance that is acting as the management station.
- state String
- The current state of the management station.
Supporting Types
GetManagementStationsFilter   
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.
- Dictionary<string, string>
- 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.
- Dictionary<string, string>
- 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.
- Location string
- A filter to return only resources whose location matches the given value.
- ManagedInstance stringId 
- 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.
- ScheduledJob stringId 
- The OCID of the scheduled job for the mirror sync.
- State string
- A filter that returns information for management stations in the specified state.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeNext stringExecution 
- CompartmentId string
- (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- map[string]string
- 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.
- map[string]string
- 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.
- Location string
- A filter to return only resources whose location matches the given value.
- ManagedInstance stringId 
- 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.
- ScheduledJob stringId 
- The OCID of the scheduled job for the mirror sync.
- State string
- A filter that returns information for management stations in the specified state.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeNext stringExecution 
- compartmentId String
- (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- Map<String,String>
- 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.
- Map<String,String>
- 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.
- location String
- A filter to return only resources whose location matches the given value.
- managedInstance StringId 
- 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.
- scheduledJob StringId 
- The OCID of the scheduled job for the mirror sync.
- state String
- A filter that returns information for management stations in the specified state.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeNext StringExecution 
- compartmentId string
- (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- {[key: string]: string}
- 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.
- {[key: string]: string}
- 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.
- location string
- A filter to return only resources whose location matches the given value.
- managedInstance stringId 
- 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.
- scheduledJob stringId 
- The OCID of the scheduled job for the mirror sync.
- state string
- A filter that returns information for management stations in the specified state.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeNext stringExecution 
- 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.
- Mapping[str, str]
- 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.
- Mapping[str, str]
- 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.
- location str
- A filter to return only resources whose location matches the given value.
- managed_instance_ strid 
- 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_ strid 
- The OCID of the scheduled job for the mirror sync.
- state str
- A filter that returns information for management stations in the specified state.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- time_next_ strexecution 
- compartmentId String
- (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- Map<String>
- 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.
- Map<String>
- 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.
- location String
- A filter to return only resources whose location matches the given value.
- managedInstance StringId 
- 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.
- scheduledJob StringId 
- The OCID of the scheduled job for the mirror sync.
- state String
- A filter that returns information for management stations in the specified state.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeNext StringExecution 
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.