Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.OsManagementHub.getManagementStationMirrors
Explore with Pulumi AI
This data source provides the list of Management Station Mirrors in Oracle Cloud Infrastructure Os Management Hub service.
Lists all software source mirrors associated with a specified management station.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagementStationMirrors = oci.OsManagementHub.getManagementStationMirrors({
    managementStationId: testManagementStation.id,
    displayName: managementStationMirrorDisplayName,
    displayNameContains: managementStationMirrorDisplayNameContains,
    mirrorStates: managementStationMirrorMirrorStates,
});
import pulumi
import pulumi_oci as oci
test_management_station_mirrors = oci.OsManagementHub.get_management_station_mirrors(management_station_id=test_management_station["id"],
    display_name=management_station_mirror_display_name,
    display_name_contains=management_station_mirror_display_name_contains,
    mirror_states=management_station_mirror_mirror_states)
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.GetManagementStationMirrors(ctx, &osmanagementhub.GetManagementStationMirrorsArgs{
			ManagementStationId: testManagementStation.Id,
			DisplayName:         pulumi.StringRef(managementStationMirrorDisplayName),
			DisplayNameContains: pulumi.StringRef(managementStationMirrorDisplayNameContains),
			MirrorStates:        managementStationMirrorMirrorStates,
		}, 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 testManagementStationMirrors = Oci.OsManagementHub.GetManagementStationMirrors.Invoke(new()
    {
        ManagementStationId = testManagementStation.Id,
        DisplayName = managementStationMirrorDisplayName,
        DisplayNameContains = managementStationMirrorDisplayNameContains,
        MirrorStates = managementStationMirrorMirrorStates,
    });
});
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.GetManagementStationMirrorsArgs;
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 testManagementStationMirrors = OsManagementHubFunctions.getManagementStationMirrors(GetManagementStationMirrorsArgs.builder()
            .managementStationId(testManagementStation.id())
            .displayName(managementStationMirrorDisplayName)
            .displayNameContains(managementStationMirrorDisplayNameContains)
            .mirrorStates(managementStationMirrorMirrorStates)
            .build());
    }
}
variables:
  testManagementStationMirrors:
    fn::invoke:
      function: oci:OsManagementHub:getManagementStationMirrors
      arguments:
        managementStationId: ${testManagementStation.id}
        displayName: ${managementStationMirrorDisplayName}
        displayNameContains: ${managementStationMirrorDisplayNameContains}
        mirrorStates: ${managementStationMirrorMirrorStates}
Using getManagementStationMirrors
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 getManagementStationMirrors(args: GetManagementStationMirrorsArgs, opts?: InvokeOptions): Promise<GetManagementStationMirrorsResult>
function getManagementStationMirrorsOutput(args: GetManagementStationMirrorsOutputArgs, opts?: InvokeOptions): Output<GetManagementStationMirrorsResult>def get_management_station_mirrors(display_name: Optional[str] = None,
                                   display_name_contains: Optional[str] = None,
                                   filters: Optional[Sequence[GetManagementStationMirrorsFilter]] = None,
                                   management_station_id: Optional[str] = None,
                                   mirror_states: Optional[Sequence[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetManagementStationMirrorsResult
def get_management_station_mirrors_output(display_name: Optional[pulumi.Input[str]] = None,
                                   display_name_contains: Optional[pulumi.Input[str]] = None,
                                   filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetManagementStationMirrorsFilterArgs]]]] = None,
                                   management_station_id: Optional[pulumi.Input[str]] = None,
                                   mirror_states: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetManagementStationMirrorsResult]func GetManagementStationMirrors(ctx *Context, args *GetManagementStationMirrorsArgs, opts ...InvokeOption) (*GetManagementStationMirrorsResult, error)
func GetManagementStationMirrorsOutput(ctx *Context, args *GetManagementStationMirrorsOutputArgs, opts ...InvokeOption) GetManagementStationMirrorsResultOutput> Note: This function is named GetManagementStationMirrors in the Go SDK.
public static class GetManagementStationMirrors 
{
    public static Task<GetManagementStationMirrorsResult> InvokeAsync(GetManagementStationMirrorsArgs args, InvokeOptions? opts = null)
    public static Output<GetManagementStationMirrorsResult> Invoke(GetManagementStationMirrorsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetManagementStationMirrorsResult> getManagementStationMirrors(GetManagementStationMirrorsArgs args, InvokeOptions options)
public static Output<GetManagementStationMirrorsResult> getManagementStationMirrors(GetManagementStationMirrorsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OsManagementHub/getManagementStationMirrors:getManagementStationMirrors
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ManagementStation stringId 
- The OCID of the management station.
- 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 Station Mirrors Filter> 
- MirrorStates List<string>
- List of Mirror state to filter by
- ManagementStation stringId 
- The OCID of the management station.
- 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 Station Mirrors Filter 
- MirrorStates []string
- List of Mirror state to filter by
- managementStation StringId 
- The OCID of the management station.
- 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 Station Mirrors Filter> 
- mirrorStates List<String>
- List of Mirror state to filter by
- managementStation stringId 
- The OCID of the management station.
- 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 Station Mirrors Filter[] 
- mirrorStates string[]
- List of Mirror state to filter by
- management_station_ strid 
- The OCID of the management station.
- 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 Station Mirrors Filter] 
- mirror_states Sequence[str]
- List of Mirror state to filter by
- managementStation StringId 
- The OCID of the management station.
- 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>
- mirrorStates List<String>
- List of Mirror state to filter by
getManagementStationMirrors Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagementStation stringId 
- MirrorsCollections List<GetManagement Station Mirrors Mirrors Collection> 
- The list of mirrors_collection.
- DisplayName string
- Display name of the mirror.
- DisplayName stringContains 
- Filters
List<GetManagement Station Mirrors Filter> 
- MirrorStates List<string>
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagementStation stringId 
- MirrorsCollections []GetManagement Station Mirrors Mirrors Collection 
- The list of mirrors_collection.
- DisplayName string
- Display name of the mirror.
- DisplayName stringContains 
- Filters
[]GetManagement Station Mirrors Filter 
- MirrorStates []string
- id String
- The provider-assigned unique ID for this managed resource.
- managementStation StringId 
- mirrorsCollections List<GetManagement Station Mirrors Mirrors Collection> 
- The list of mirrors_collection.
- displayName String
- Display name of the mirror.
- displayName StringContains 
- filters
List<GetManagement Station Mirrors Filter> 
- mirrorStates List<String>
- id string
- The provider-assigned unique ID for this managed resource.
- managementStation stringId 
- mirrorsCollections GetManagement Station Mirrors Mirrors Collection[] 
- The list of mirrors_collection.
- displayName string
- Display name of the mirror.
- displayName stringContains 
- filters
GetManagement Station Mirrors Filter[] 
- mirrorStates string[]
- id str
- The provider-assigned unique ID for this managed resource.
- management_station_ strid 
- mirrors_collections Sequence[GetManagement Station Mirrors Mirrors Collection] 
- The list of mirrors_collection.
- display_name str
- Display name of the mirror.
- display_name_ strcontains 
- filters
Sequence[GetManagement Station Mirrors Filter] 
- mirror_states Sequence[str]
- id String
- The provider-assigned unique ID for this managed resource.
- managementStation StringId 
- mirrorsCollections List<Property Map>
- The list of mirrors_collection.
- displayName String
- Display name of the mirror.
- displayName StringContains 
- filters List<Property Map>
- mirrorStates List<String>
Supporting Types
GetManagementStationMirrorsFilter    
GetManagementStationMirrorsMirrorsCollection     
- Items
List<GetManagement Station Mirrors Mirrors Collection Item> 
- List of mirrors
- Items
[]GetManagement Station Mirrors Mirrors Collection Item 
- List of mirrors
- items
List<GetManagement Station Mirrors Mirrors Collection Item> 
- List of mirrors
- items
GetManagement Station Mirrors Mirrors Collection Item[] 
- List of mirrors
- items
Sequence[GetManagement Station Mirrors Mirrors Collection Item] 
- List of mirrors
- items List<Property Map>
- List of mirrors
GetManagementStationMirrorsMirrorsCollectionItem      
- ArchType string
- The architecture type supported by the software source.
- DisplayName string
- A filter to return resources that match the given user-friendly name.
- Id string
- The OCID of the software source.
- Log string
- The current log from the management station plugin.
- OsFamily string
- The OS family of the software source.
- PackageCount int
- The number of packages within the mirrored software source.
- Percentage int
- A decimal number representing the percentage of the software source that has been synced.
- Size string
- The size the mirrored software source in bytes.
- State string
- Current state of the software source mirror.
- TimeLast stringSynced 
- Time that the software source was last synced (in RFC 3339 format).
- Type string
- Type of software source.
- ArchType string
- The architecture type supported by the software source.
- DisplayName string
- A filter to return resources that match the given user-friendly name.
- Id string
- The OCID of the software source.
- Log string
- The current log from the management station plugin.
- OsFamily string
- The OS family of the software source.
- PackageCount int
- The number of packages within the mirrored software source.
- Percentage int
- A decimal number representing the percentage of the software source that has been synced.
- Size string
- The size the mirrored software source in bytes.
- State string
- Current state of the software source mirror.
- TimeLast stringSynced 
- Time that the software source was last synced (in RFC 3339 format).
- Type string
- Type of software source.
- archType String
- The architecture type supported by the software source.
- displayName String
- A filter to return resources that match the given user-friendly name.
- id String
- The OCID of the software source.
- log String
- The current log from the management station plugin.
- osFamily String
- The OS family of the software source.
- packageCount Integer
- The number of packages within the mirrored software source.
- percentage Integer
- A decimal number representing the percentage of the software source that has been synced.
- size String
- The size the mirrored software source in bytes.
- state String
- Current state of the software source mirror.
- timeLast StringSynced 
- Time that the software source was last synced (in RFC 3339 format).
- type String
- Type of software source.
- archType string
- The architecture type supported by the software source.
- displayName string
- A filter to return resources that match the given user-friendly name.
- id string
- The OCID of the software source.
- log string
- The current log from the management station plugin.
- osFamily string
- The OS family of the software source.
- packageCount number
- The number of packages within the mirrored software source.
- percentage number
- A decimal number representing the percentage of the software source that has been synced.
- size string
- The size the mirrored software source in bytes.
- state string
- Current state of the software source mirror.
- timeLast stringSynced 
- Time that the software source was last synced (in RFC 3339 format).
- type string
- Type of software source.
- arch_type str
- The architecture type supported by the software source.
- display_name str
- A filter to return resources that match the given user-friendly name.
- id str
- The OCID of the software source.
- log str
- The current log from the management station plugin.
- os_family str
- The OS family of the software source.
- package_count int
- The number of packages within the mirrored software source.
- percentage int
- A decimal number representing the percentage of the software source that has been synced.
- size str
- The size the mirrored software source in bytes.
- state str
- Current state of the software source mirror.
- time_last_ strsynced 
- Time that the software source was last synced (in RFC 3339 format).
- type str
- Type of software source.
- archType String
- The architecture type supported by the software source.
- displayName String
- A filter to return resources that match the given user-friendly name.
- id String
- The OCID of the software source.
- log String
- The current log from the management station plugin.
- osFamily String
- The OS family of the software source.
- packageCount Number
- The number of packages within the mirrored software source.
- percentage Number
- A decimal number representing the percentage of the software source that has been synced.
- size String
- The size the mirrored software source in bytes.
- state String
- Current state of the software source mirror.
- timeLast StringSynced 
- Time that the software source was last synced (in RFC 3339 format).
- type String
- Type of software source.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.