import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Resource Anchors in Oracle Cloud Infrastructure Multicloud service. * * Lists resource anchors in the specified Multicloud subscription. * Details listed for each resource anchor include name, state, and the related Multicloud compartment. * For more information, see * [Listing Resource Anchors](https://docs.cloud.oracle.com/iaas/Content/multicloud-hub/list-resource-anchors.htm). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testResourceAnchors = oci.oci.getMulticloudResourceAnchors({ * compartmentId: compartmentId, * linkedCompartmentId: linkedCompartmentId, * lifecycleState: lifecycleState, * displayName: resourceAnchorDisplayName, * id: resourceAnchorId, * isCompartmentIdInSubtree: isCompartmentIdInSubtree === "true", * shouldFetchCompartmentName: shouldFetchCompartmentName === "true", * subscriptionServiceName: subscriptionServiceName, * subscriptionId: subscriptionId, * }); * ``` */ export declare function getMulticloudResourceAnchors(args?: GetMulticloudResourceAnchorsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getMulticloudResourceAnchors. */ export interface GetMulticloudResourceAnchorsArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment or sub-compartment in which to list resources. A Multicloud base compartment is an Oracle Cloud Infrastructure compartment that maps to a subscription in a cloud service provider (such as Azure or AWS). */ compartmentId?: string; /** * A filter to return only resources that match the given display name exactly. */ displayName?: string; filters?: inputs.oci.GetMulticloudResourceAnchorsFilter[]; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource anchor. */ id?: string; /** * Check the sub-compartments of a given `compartmentId`. */ isCompartmentIdInSubtree?: boolean; /** * The current state of the ResourceAnchor. */ lifecycleState?: string; limit?: number; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment linked to the resource. */ linkedCompartmentId?: string; /** * Whether to fetch and include the compartment name. Setting this field to `true` might introduce additional latency. */ shouldFetchCompartmentName?: boolean; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud subscription in which to list resources. */ subscriptionId?: string; /** * The cloud service provider. */ subscriptionServiceName?: string; } /** * A collection of values returned by getMulticloudResourceAnchors. */ export interface GetMulticloudResourceAnchorsResult { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ readonly compartmentId?: string; /** * A user-friendly name. Does not have to be unique, and it's changeable. */ readonly displayName?: string; readonly filters?: outputs.oci.GetMulticloudResourceAnchorsFilter[]; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ResourceAnchor. */ readonly id?: string; readonly isCompartmentIdInSubtree?: boolean; /** * The current state of the ResourceAnchor. */ readonly lifecycleState?: string; readonly limit?: number; /** * Optional - Oracle Cloud Infrastructure compartment Id (OCID) which was created or linked by customer with resource anchor. This compartmentId is different from where resource Anchor live. */ readonly linkedCompartmentId?: string; /** * The list of ResourceAnchorCollection. */ readonly resourceAnchorCollections: outputs.oci.GetMulticloudResourceAnchorsResourceAnchorCollection[]; readonly shouldFetchCompartmentName?: boolean; /** * Oracle Cloud Infrastructure Subscription Id */ readonly subscriptionId?: string; readonly subscriptionServiceName?: string; } /** * This data source provides the list of Resource Anchors in Oracle Cloud Infrastructure Multicloud service. * * Lists resource anchors in the specified Multicloud subscription. * Details listed for each resource anchor include name, state, and the related Multicloud compartment. * For more information, see * [Listing Resource Anchors](https://docs.cloud.oracle.com/iaas/Content/multicloud-hub/list-resource-anchors.htm). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testResourceAnchors = oci.oci.getMulticloudResourceAnchors({ * compartmentId: compartmentId, * linkedCompartmentId: linkedCompartmentId, * lifecycleState: lifecycleState, * displayName: resourceAnchorDisplayName, * id: resourceAnchorId, * isCompartmentIdInSubtree: isCompartmentIdInSubtree === "true", * shouldFetchCompartmentName: shouldFetchCompartmentName === "true", * subscriptionServiceName: subscriptionServiceName, * subscriptionId: subscriptionId, * }); * ``` */ export declare function getMulticloudResourceAnchorsOutput(args?: GetMulticloudResourceAnchorsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getMulticloudResourceAnchors. */ export interface GetMulticloudResourceAnchorsOutputArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment or sub-compartment in which to list resources. A Multicloud base compartment is an Oracle Cloud Infrastructure compartment that maps to a subscription in a cloud service provider (such as Azure or AWS). */ compartmentId?: pulumi.Input; /** * A filter to return only resources that match the given display name exactly. */ displayName?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource anchor. */ id?: pulumi.Input; /** * Check the sub-compartments of a given `compartmentId`. */ isCompartmentIdInSubtree?: pulumi.Input; /** * The current state of the ResourceAnchor. */ lifecycleState?: pulumi.Input; limit?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment linked to the resource. */ linkedCompartmentId?: pulumi.Input; /** * Whether to fetch and include the compartment name. Setting this field to `true` might introduce additional latency. */ shouldFetchCompartmentName?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud subscription in which to list resources. */ subscriptionId?: pulumi.Input; /** * The cloud service provider. */ subscriptionServiceName?: pulumi.Input; } //# sourceMappingURL=getMulticloudResourceAnchors.d.ts.map