1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. resourcemanager
  5. getSharedResources
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.resourcemanager.getSharedResources

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

    This data source provides the Resource Manager Shared Resources of the current Alibaba Cloud user.

    NOTE: Available since v1.111.0.

    Using getSharedResources

    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 getSharedResources(args: GetSharedResourcesArgs, opts?: InvokeOptions): Promise<GetSharedResourcesResult>
    function getSharedResourcesOutput(args: GetSharedResourcesOutputArgs, opts?: InvokeOptions): Output<GetSharedResourcesResult>
    def get_shared_resources(ids: Optional[Sequence[str]] = None,
                             output_file: Optional[str] = None,
                             resource_share_id: Optional[str] = None,
                             status: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetSharedResourcesResult
    def get_shared_resources_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                             output_file: Optional[pulumi.Input[str]] = None,
                             resource_share_id: Optional[pulumi.Input[str]] = None,
                             status: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetSharedResourcesResult]
    func GetSharedResources(ctx *Context, args *GetSharedResourcesArgs, opts ...InvokeOption) (*GetSharedResourcesResult, error)
    func GetSharedResourcesOutput(ctx *Context, args *GetSharedResourcesOutputArgs, opts ...InvokeOption) GetSharedResourcesResultOutput

    > Note: This function is named GetSharedResources in the Go SDK.

    public static class GetSharedResources 
    {
        public static Task<GetSharedResourcesResult> InvokeAsync(GetSharedResourcesArgs args, InvokeOptions? opts = null)
        public static Output<GetSharedResourcesResult> Invoke(GetSharedResourcesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSharedResourcesResult> getSharedResources(GetSharedResourcesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:resourcemanager/getSharedResources:getSharedResources
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of shared resource IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    ResourceShareId string
    The resource share ID of resource manager.
    Status string
    The status of share resource. Valid values: Associated, Associating, Disassociated, Disassociating and Failed.
    Ids []string
    A list of shared resource IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    ResourceShareId string
    The resource share ID of resource manager.
    Status string
    The status of share resource. Valid values: Associated, Associating, Disassociated, Disassociating and Failed.
    ids List<String>
    A list of shared resource IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    resourceShareId String
    The resource share ID of resource manager.
    status String
    The status of share resource. Valid values: Associated, Associating, Disassociated, Disassociating and Failed.
    ids string[]
    A list of shared resource IDs.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    resourceShareId string
    The resource share ID of resource manager.
    status string
    The status of share resource. Valid values: Associated, Associating, Disassociated, Disassociating and Failed.
    ids Sequence[str]
    A list of shared resource IDs.
    output_file str
    File name where to save data source results (after running pulumi preview).
    resource_share_id str
    The resource share ID of resource manager.
    status str
    The status of share resource. Valid values: Associated, Associating, Disassociated, Disassociating and Failed.
    ids List<String>
    A list of shared resource IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    resourceShareId String
    The resource share ID of resource manager.
    status String
    The status of share resource. Valid values: Associated, Associating, Disassociated, Disassociating and Failed.

    getSharedResources Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Resources List<Pulumi.AliCloud.ResourceManager.Outputs.GetSharedResourcesResource>
    A list of Resource Manager Shared Resources. Each element contains the following attributes:
    OutputFile string
    ResourceShareId string
    The resource share ID of resource manager.
    Status string
    The status of shared resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Resources []GetSharedResourcesResource
    A list of Resource Manager Shared Resources. Each element contains the following attributes:
    OutputFile string
    ResourceShareId string
    The resource share ID of resource manager.
    Status string
    The status of shared resource.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    resources List<GetSharedResourcesResource>
    A list of Resource Manager Shared Resources. Each element contains the following attributes:
    outputFile String
    resourceShareId String
    The resource share ID of resource manager.
    status String
    The status of shared resource.
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    resources GetSharedResourcesResource[]
    A list of Resource Manager Shared Resources. Each element contains the following attributes:
    outputFile string
    resourceShareId string
    The resource share ID of resource manager.
    status string
    The status of shared resource.
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    resources Sequence[GetSharedResourcesResource]
    A list of Resource Manager Shared Resources. Each element contains the following attributes:
    output_file str
    resource_share_id str
    The resource share ID of resource manager.
    status str
    The status of shared resource.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    resources List<Property Map>
    A list of Resource Manager Shared Resources. Each element contains the following attributes:
    outputFile String
    resourceShareId String
    The resource share ID of resource manager.
    status String
    The status of shared resource.

    Supporting Types

    GetSharedResourcesResource

    Id string
    The ID of the Shared Resource. It formats as <resource_id>:<resource_type>.
    ResourceId string
    The ID of the shared resource.
    ResourceShareId string
    The resource share ID of resource manager.
    ResourceType string
    The type of shared resource.
    Status string
    The status of share resource. Valid values: Associated, Associating, Disassociated, Disassociating and Failed.
    Id string
    The ID of the Shared Resource. It formats as <resource_id>:<resource_type>.
    ResourceId string
    The ID of the shared resource.
    ResourceShareId string
    The resource share ID of resource manager.
    ResourceType string
    The type of shared resource.
    Status string
    The status of share resource. Valid values: Associated, Associating, Disassociated, Disassociating and Failed.
    id String
    The ID of the Shared Resource. It formats as <resource_id>:<resource_type>.
    resourceId String
    The ID of the shared resource.
    resourceShareId String
    The resource share ID of resource manager.
    resourceType String
    The type of shared resource.
    status String
    The status of share resource. Valid values: Associated, Associating, Disassociated, Disassociating and Failed.
    id string
    The ID of the Shared Resource. It formats as <resource_id>:<resource_type>.
    resourceId string
    The ID of the shared resource.
    resourceShareId string
    The resource share ID of resource manager.
    resourceType string
    The type of shared resource.
    status string
    The status of share resource. Valid values: Associated, Associating, Disassociated, Disassociating and Failed.
    id str
    The ID of the Shared Resource. It formats as <resource_id>:<resource_type>.
    resource_id str
    The ID of the shared resource.
    resource_share_id str
    The resource share ID of resource manager.
    resource_type str
    The type of shared resource.
    status str
    The status of share resource. Valid values: Associated, Associating, Disassociated, Disassociating and Failed.
    id String
    The ID of the Shared Resource. It formats as <resource_id>:<resource_type>.
    resourceId String
    The ID of the shared resource.
    resourceShareId String
    The resource share ID of resource manager.
    resourceType String
    The type of shared resource.
    status String
    The status of share resource. Valid values: Associated, Associating, Disassociated, Disassociating and Failed.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi