Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.resourcemanager.getSharedResources
Explore with Pulumi AI
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.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - string
- The resource share ID of resource manager.
- Status string
- The status of share resource. Valid values:
Associated
,Associating
,Disassociated
,Disassociating
andFailed
.
- Ids []string
- A list of shared resource IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - string
- The resource share ID of resource manager.
- Status string
- The status of share resource. Valid values:
Associated
,Associating
,Disassociated
,Disassociating
andFailed
.
- ids List<String>
- A list of shared resource IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
). - String
- The resource share ID of resource manager.
- status String
- The status of share resource. Valid values:
Associated
,Associating
,Disassociated
,Disassociating
andFailed
.
- ids string[]
- A list of shared resource IDs.
- output
File string - File name where to save data source results (after running
pulumi preview
). - string
- The resource share ID of resource manager.
- status string
- The status of share resource. Valid values:
Associated
,Associating
,Disassociated
,Disassociating
andFailed
.
- ids Sequence[str]
- A list of shared resource IDs.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - str
- The resource share ID of resource manager.
- status str
- The status of share resource. Valid values:
Associated
,Associating
,Disassociated
,Disassociating
andFailed
.
- ids List<String>
- A list of shared resource IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
). - String
- The resource share ID of resource manager.
- status String
- The status of share resource. Valid values:
Associated
,Associating
,Disassociated
,Disassociating
andFailed
.
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.
Ali Cloud. Resource Manager. Outputs. Get Shared Resources Resource> - A list of Resource Manager Shared Resources. Each element contains the following attributes:
- Output
File string - 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
[]Get
Shared Resources Resource - A list of Resource Manager Shared Resources. Each element contains the following attributes:
- Output
File string - 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<Get
Shared Resources Resource> - A list of Resource Manager Shared Resources. Each element contains the following attributes:
- output
File String - 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
Get
Shared Resources Resource[] - A list of Resource Manager Shared Resources. Each element contains the following attributes:
- output
File string - 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[Get
Shared Resources Resource] - A list of Resource Manager Shared Resources. Each element contains the following attributes:
- output_
file str - 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:
- output
File String - 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>
. - Resource
Id string - The ID of the shared resource.
- string
- The resource share ID of resource manager.
- Resource
Type string - The type of shared resource.
- Status string
- The status of share resource. Valid values:
Associated
,Associating
,Disassociated
,Disassociating
andFailed
.
- Id string
- The ID of the Shared Resource. It formats as
<resource_id>:<resource_type>
. - Resource
Id string - The ID of the shared resource.
- string
- The resource share ID of resource manager.
- Resource
Type string - The type of shared resource.
- Status string
- The status of share resource. Valid values:
Associated
,Associating
,Disassociated
,Disassociating
andFailed
.
- id String
- The ID of the Shared Resource. It formats as
<resource_id>:<resource_type>
. - resource
Id String - The ID of the shared resource.
- String
- The resource share ID of resource manager.
- resource
Type String - The type of shared resource.
- status String
- The status of share resource. Valid values:
Associated
,Associating
,Disassociated
,Disassociating
andFailed
.
- id string
- The ID of the Shared Resource. It formats as
<resource_id>:<resource_type>
. - resource
Id string - The ID of the shared resource.
- string
- The resource share ID of resource manager.
- resource
Type string - The type of shared resource.
- status string
- The status of share resource. Valid values:
Associated
,Associating
,Disassociated
,Disassociating
andFailed
.
- id str
- The ID of the Shared Resource. It formats as
<resource_id>:<resource_type>
. - resource_
id str - The ID of the shared resource.
- 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
andFailed
.
- id String
- The ID of the Shared Resource. It formats as
<resource_id>:<resource_type>
. - resource
Id String - The ID of the shared resource.
- String
- The resource share ID of resource manager.
- resource
Type String - The type of shared resource.
- status String
- The status of share resource. Valid values:
Associated
,Associating
,Disassociated
,Disassociating
andFailed
.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.