Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 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[_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:
- Management
Station stringId - The OCID of the management station.
- 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 Station Mirrors Filter> - Mirror
States List<string> - List of Mirror state to filter by
- Management
Station stringId - The OCID of the management station.
- 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 Station Mirrors Filter - Mirror
States []string - List of Mirror state to filter by
- management
Station StringId - The OCID of the management station.
- 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 Station Mirrors Filter> - mirror
States List<String> - List of Mirror state to filter by
- management
Station stringId - The OCID of the management station.
- 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 Station Mirrors Filter[] - mirror
States 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[osmanagementhub.
Get Management Station Mirrors Filter] - mirror_
states Sequence[str] - List of Mirror state to filter by
- management
Station StringId - The OCID of the management station.
- 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>
- mirror
States 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.
- Management
Station stringId - Mirrors
Collections List<GetManagement Station Mirrors Mirrors Collection> - The list of mirrors_collection.
- Display
Name string - Display name of the mirror
- Display
Name stringContains - Filters
List<Get
Management Station Mirrors Filter> - Mirror
States List<string>
- Id string
- The provider-assigned unique ID for this managed resource.
- Management
Station stringId - Mirrors
Collections []GetManagement Station Mirrors Mirrors Collection - The list of mirrors_collection.
- Display
Name string - Display name of the mirror
- Display
Name stringContains - Filters
[]Get
Management Station Mirrors Filter - Mirror
States []string
- id String
- The provider-assigned unique ID for this managed resource.
- management
Station StringId - mirrors
Collections List<GetManagement Station Mirrors Mirrors Collection> - The list of mirrors_collection.
- display
Name String - Display name of the mirror
- display
Name StringContains - filters
List<Get
Management Station Mirrors Filter> - mirror
States List<String>
- id string
- The provider-assigned unique ID for this managed resource.
- management
Station stringId - mirrors
Collections GetManagement Station Mirrors Mirrors Collection[] - The list of mirrors_collection.
- display
Name string - Display name of the mirror
- display
Name stringContains - filters
Get
Management Station Mirrors Filter[] - mirror
States string[]
- id str
- The provider-assigned unique ID for this managed resource.
- management_
station_ strid - mirrors_
collections Sequence[osmanagementhub.Get Management Station Mirrors Mirrors Collection] - The list of mirrors_collection.
- display_
name str - Display name of the mirror
- display_
name_ strcontains - filters
Sequence[osmanagementhub.
Get Management Station Mirrors Filter] - mirror_
states Sequence[str]
- id String
- The provider-assigned unique ID for this managed resource.
- management
Station StringId - mirrors
Collections List<Property Map> - The list of mirrors_collection.
- display
Name String - Display name of the mirror
- display
Name StringContains - filters List<Property Map>
- mirror
States List<String>
Supporting Types
GetManagementStationMirrorsFilter
GetManagementStationMirrorsMirrorsCollection
- Items
List<Get
Management Station Mirrors Mirrors Collection Item> - List of mirrors
- Items
[]Get
Management Station Mirrors Mirrors Collection Item - List of mirrors
- items
List<Get
Management Station Mirrors Mirrors Collection Item> - List of mirrors
- items
Get
Management Station Mirrors Mirrors Collection Item[] - List of mirrors
- items List<Property Map>
- List of mirrors
GetManagementStationMirrorsMirrorsCollectionItem
- Arch
Type string - The architecture type supported by the Software Source
- Display
Name 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.
- Os
Family 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
- Time
Last stringSynced - Timestamp of the last time the mirror was sync
- Type string
- Type of the mirror
- Arch
Type string - The architecture type supported by the Software Source
- Display
Name 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.
- Os
Family 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
- Time
Last stringSynced - Timestamp of the last time the mirror was sync
- Type string
- Type of the mirror
- arch
Type String - The architecture type supported by the Software Source
- display
Name 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.
- os
Family 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
- time
Last StringSynced - Timestamp of the last time the mirror was sync
- type String
- Type of the mirror
- arch
Type string - The architecture type supported by the Software Source
- display
Name 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.
- os
Family 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
- time
Last stringSynced - 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_ strsynced - Timestamp of the last time the mirror was sync
- type str
- Type of the mirror
- arch
Type String - The architecture type supported by the Software Source
- display
Name 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.
- os
Family 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
- time
Last StringSynced - 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.