1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. getManagementStationMirrors
Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi

oci.OsManagementHub.getManagementStationMirrors

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi

    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[_osmanagementhub.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[_osmanagementhub.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagementHub/getManagementStationMirrors:getManagementStationMirrors
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ManagementStationId string
    The OCID of the management station.
    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<GetManagementStationMirrorsFilter>
    MirrorStates List<string>
    List of Mirror state to filter by
    ManagementStationId string
    The OCID of the management station.
    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 []GetManagementStationMirrorsFilter
    MirrorStates []string
    List of Mirror state to filter by
    managementStationId String
    The OCID of the management station.
    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<GetManagementStationMirrorsFilter>
    mirrorStates List<String>
    List of Mirror state to filter by
    managementStationId string
    The OCID of the management station.
    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 GetManagementStationMirrorsFilter[]
    mirrorStates string[]
    List of Mirror state to filter by
    management_station_id str
    The OCID of the management station.
    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.GetManagementStationMirrorsFilter]
    mirror_states Sequence[str]
    List of Mirror state to filter by
    managementStationId String
    The OCID of the management station.
    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>
    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.
    ManagementStationId string
    MirrorsCollections List<GetManagementStationMirrorsMirrorsCollection>
    The list of mirrors_collection.
    DisplayName string
    Display name of the mirror
    DisplayNameContains string
    Filters List<GetManagementStationMirrorsFilter>
    MirrorStates List<string>
    Id string
    The provider-assigned unique ID for this managed resource.
    ManagementStationId string
    MirrorsCollections []GetManagementStationMirrorsMirrorsCollection
    The list of mirrors_collection.
    DisplayName string
    Display name of the mirror
    DisplayNameContains string
    Filters []GetManagementStationMirrorsFilter
    MirrorStates []string
    id String
    The provider-assigned unique ID for this managed resource.
    managementStationId String
    mirrorsCollections List<GetManagementStationMirrorsMirrorsCollection>
    The list of mirrors_collection.
    displayName String
    Display name of the mirror
    displayNameContains String
    filters List<GetManagementStationMirrorsFilter>
    mirrorStates List<String>
    id string
    The provider-assigned unique ID for this managed resource.
    managementStationId string
    mirrorsCollections GetManagementStationMirrorsMirrorsCollection[]
    The list of mirrors_collection.
    displayName string
    Display name of the mirror
    displayNameContains string
    filters GetManagementStationMirrorsFilter[]
    mirrorStates string[]
    id String
    The provider-assigned unique ID for this managed resource.
    managementStationId String
    mirrorsCollections List<Property Map>
    The list of mirrors_collection.
    displayName String
    Display name of the mirror
    displayNameContains String
    filters List<Property Map>
    mirrorStates List<String>

    Supporting Types

    GetManagementStationMirrorsFilter

    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

    GetManagementStationMirrorsMirrorsCollection

    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
    OCID of a software source
    Log string
    The current log from the management station plugin.
    OsFamily string
    The OS family the Software Source belongs to
    Percentage int
    A decimal number representing the completness percentage
    State string
    Current state of the mirror
    TimeLastSynced string
    Timestamp of the last time the mirror was sync
    Type string
    Type of the mirror
    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
    OCID of a software source
    Log string
    The current log from the management station plugin.
    OsFamily string
    The OS family the Software Source belongs to
    Percentage int
    A decimal number representing the completness percentage
    State string
    Current state of the mirror
    TimeLastSynced string
    Timestamp of the last time the mirror was sync
    Type string
    Type of the mirror
    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
    OCID of a software source
    log String
    The current log from the management station plugin.
    osFamily String
    The OS family the Software Source belongs to
    percentage Integer
    A decimal number representing the completness percentage
    state String
    Current state of the mirror
    timeLastSynced String
    Timestamp of the last time the mirror was sync
    type String
    Type of the mirror
    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
    OCID of a software source
    log string
    The current log from the management station plugin.
    osFamily string
    The OS family the Software Source belongs to
    percentage number
    A decimal number representing the completness percentage
    state string
    Current state of the mirror
    timeLastSynced string
    Timestamp of the last time the mirror was sync
    type string
    Type of the mirror
    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
    OCID of a software source
    log str
    The current log from the management station plugin.
    os_family str
    The OS family the Software Source belongs to
    percentage int
    A decimal number representing the completness percentage
    state str
    Current state of the mirror
    time_last_synced str
    Timestamp of the last time the mirror was sync
    type str
    Type of the mirror
    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
    OCID of a software source
    log String
    The current log from the management station plugin.
    osFamily String
    The OS family the Software Source belongs to
    percentage Number
    A decimal number representing the completness percentage
    state String
    Current state of the mirror
    timeLastSynced String
    Timestamp of the last time the mirror was sync
    type String
    Type of the mirror

    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 v2.18.0 published on Friday, Nov 22, 2024 by Pulumi