Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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 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/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),
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:
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- Display
Name string - A filter to return resources that match the given user-friendly name.
- Display
Name stringContains - A filter to return resources that may partially match the given display name.
- Filters
List<Get
Management Stations Filter> - Id string
- The OCID of the management station. A filter that returns information about the specified management station.
- Managed
Instance 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 string - (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- Display
Name string - A filter to return resources that match the given user-friendly name.
- Display
Name stringContains - A filter to return resources that may partially match the given display name.
- Filters
[]Get
Management Stations Filter - Id string
- The OCID of the management station. A filter that returns information about the specified management station.
- Managed
Instance 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 String - (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- display
Name String - A filter to return resources that match the given user-friendly name.
- display
Name StringContains - A filter to return resources that may partially match the given display name.
- filters
List<Get
Management Stations Filter> - id String
- The OCID of the management station. A filter that returns information about the specified management station.
- managed
Instance 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 string - (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- display
Name string - A filter to return resources that match the given user-friendly name.
- display
Name stringContains - A filter to return resources that may partially match the given display name.
- filters
Get
Management Stations Filter[] - id string
- The OCID of the management station. A filter that returns information about the specified management station.
- managed
Instance 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[osmanagementhub.
Get Management Stations Filter] - id str
- The OCID of the management station. A filter that returns information about the specified management station.
- 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.
- compartment
Id String - (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- display
Name String - A filter to return resources that match the given user-friendly name.
- display
Name 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.
- managed
Instance 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:
- Management
Station List<GetCollections Management Stations Management Station Collection> - The list of management_station_collection.
- Compartment
Id string - The OCID of the compartment that contains the management station.
- Display
Name string - A user-friendly name for the management station.
- Display
Name stringContains - Filters
List<Get
Management Stations Filter> - Id string
- The OCID of the management station.
- Managed
Instance stringId - The OCID of the instance that is acting as the management station.
- State string
- The current state of the management station.
- Management
Station []GetCollections Management Stations Management Station Collection - The list of management_station_collection.
- Compartment
Id string - The OCID of the compartment that contains the management station.
- Display
Name string - A user-friendly name for the management station.
- Display
Name stringContains - Filters
[]Get
Management Stations Filter - Id string
- The OCID of the management station.
- Managed
Instance stringId - The OCID of the instance that is acting as the management station.
- State string
- The current state of the management station.
- management
Station List<GetCollections Management Stations Management Station Collection> - The list of management_station_collection.
- compartment
Id String - The OCID of the compartment that contains the management station.
- display
Name String - A user-friendly name for the management station.
- display
Name StringContains - filters
List<Get
Management Stations Filter> - id String
- The OCID of the management station.
- managed
Instance StringId - The OCID of the instance that is acting as the management station.
- state String
- The current state of the management station.
- management
Station GetCollections Management Stations Management Station Collection[] - The list of management_station_collection.
- compartment
Id string - The OCID of the compartment that contains the management station.
- display
Name string - A user-friendly name for the management station.
- display
Name stringContains - filters
Get
Management Stations Filter[] - id string
- The OCID of the management station.
- managed
Instance 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[osmanagementhub.collections Get 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 - A user-friendly name for the management station.
- display_
name_ strcontains - filters
Sequence[osmanagementhub.
Get Management Stations Filter] - id str
- The OCID of 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.
- management
Station List<Property Map>Collections - The list of management_station_collection.
- compartment
Id String - The OCID of the compartment that contains the management station.
- display
Name String - A user-friendly name for the management station.
- display
Name StringContains - filters List<Property Map>
- id String
- The OCID of the management station.
- managed
Instance 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
- Compartment
Id 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.
- Display
Name 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"}
- Health
State 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.
- Managed
Instance stringId - 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 string - Current state of the mirror sync for the management station.
- Profile
Id string - The OCID of the registration profile used for the management station.
- Scheduled
Job 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"}
- Time
Next stringExecution
- Compartment
Id 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.
- Display
Name 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"}
- Health
State 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.
- Managed
Instance stringId - 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 string - Current state of the mirror sync for the management station.
- Profile
Id string - The OCID of the registration profile used for the management station.
- Scheduled
Job 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"}
- Time
Next stringExecution
- compartment
Id 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.
- display
Name 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"}
- health
State 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.
- managed
Instance StringId - The OCID of the managed instance. This filter returns resources associated with this managed instance.
- mirror
Capacity Integer - A decimal number representing the amount of mirror capacity used by the sync.
- overall
Percentage Integer - A decimal number representing the progress of the current mirror sync.
- overall
State String - Current state of the mirror sync for the management station.
- profile
Id String - The OCID of the registration profile used for the management station.
- scheduled
Job 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"}
- time
Next StringExecution
- compartment
Id 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.
- display
Name 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"}
- health
State 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.
- managed
Instance stringId - The OCID of the managed instance. This filter returns resources associated with this managed instance.
- mirror
Capacity number - A decimal number representing the amount of mirror capacity used by the sync.
- overall
Percentage number - A decimal number representing the progress of the current mirror sync.
- overall
State string - Current state of the mirror sync for the management station.
- profile
Id string - The OCID of the registration profile used for the management station.
- scheduled
Job 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"}
- time
Next 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.
- 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
- compartment
Id 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.
- display
Name 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"}
- health
State 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.
- managed
Instance StringId - The OCID of the managed instance. This filter returns resources associated with this managed instance.
- mirror
Capacity Number - A decimal number representing the amount of mirror capacity used by the sync.
- overall
Percentage Number - A decimal number representing the progress of the current mirror sync.
- overall
State String - Current state of the mirror sync for the management station.
- profile
Id String - The OCID of the registration profile used for the management station.
- scheduled
Job 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"}
- time
Next StringExecution
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.