Alibaba Cloud
getHandshakes
This data source provides the Resource Manager Handshakes of the current Alibaba Cloud user.
NOTE: Available in 1.86.0+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(AliCloud.ResourceManager.GetHandshakes.InvokeAsync());
this.FirstHandshakeId = example.Apply(example => example.Handshakes?[0]?.Id);
}
[Output("firstHandshakeId")]
public Output<string> FirstHandshakeId { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := resourcemanager.GetHandshakes(ctx, nil, nil)
if err != nil {
return err
}
ctx.Export("firstHandshakeId", example.Handshakes[0].Id)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetHandshakesArgs;
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 example = ResourcemanagerFunctions.getHandshakes();
ctx.export("firstHandshakeId", example.applyValue(getHandshakesResult -> getHandshakesResult.handshakes()[0].id()));
}
}
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.resourcemanager.get_handshakes()
pulumi.export("firstHandshakeId", example.handshakes[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = pulumi.output(alicloud.resourcemanager.getHandshakes());
export const firstHandshakeId = example.handshakes[0].id;
variables:
example:
Fn::Invoke:
Function: alicloud:resourcemanager:getHandshakes
Arguments: {}
outputs:
firstHandshakeId: ${example.handshakes[0].id}
Using getHandshakes
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 getHandshakes(args: GetHandshakesArgs, opts?: InvokeOptions): Promise<GetHandshakesResult>
function getHandshakesOutput(args: GetHandshakesOutputArgs, opts?: InvokeOptions): Output<GetHandshakesResult>
def get_handshakes(enable_details: Optional[bool] = None,
ids: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetHandshakesResult
def get_handshakes_output(enable_details: Optional[pulumi.Input[bool]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
output_file: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetHandshakesResult]
func GetHandshakes(ctx *Context, args *GetHandshakesArgs, opts ...InvokeOption) (*GetHandshakesResult, error)
func GetHandshakesOutput(ctx *Context, args *GetHandshakesOutputArgs, opts ...InvokeOption) GetHandshakesResultOutput
> Note: This function is named GetHandshakes
in the Go SDK.
public static class GetHandshakes
{
public static Task<GetHandshakesResult> InvokeAsync(GetHandshakesArgs args, InvokeOptions? opts = null)
public static Output<GetHandshakesResult> Invoke(GetHandshakesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetHandshakesResult> getHandshakes(GetHandshakesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: alicloud:resourcemanager/getHandshakes:getHandshakes
Arguments:
# Arguments dictionary
The following arguments are supported:
- Enable
Details bool -(Optional, Available in v1.114.0+) Default to
false
. Set it to true can output more details.- Ids List<string>
A list of Resource Manager Handshake IDs.
- Output
File string - Status string
The status of handshake, valid values:
Accepted
,Cancelled
,Declined
,Deleted
,Expired
andPending
.
- Enable
Details bool -(Optional, Available in v1.114.0+) Default to
false
. Set it to true can output more details.- Ids []string
A list of Resource Manager Handshake IDs.
- Output
File string - Status string
The status of handshake, valid values:
Accepted
,Cancelled
,Declined
,Deleted
,Expired
andPending
.
- enable
Details Boolean -(Optional, Available in v1.114.0+) Default to
false
. Set it to true can output more details.- ids List<String>
A list of Resource Manager Handshake IDs.
- output
File String - status String
The status of handshake, valid values:
Accepted
,Cancelled
,Declined
,Deleted
,Expired
andPending
.
- enable
Details boolean -(Optional, Available in v1.114.0+) Default to
false
. Set it to true can output more details.- ids string[]
A list of Resource Manager Handshake IDs.
- output
File string - status string
The status of handshake, valid values:
Accepted
,Cancelled
,Declined
,Deleted
,Expired
andPending
.
- enable_
details bool -(Optional, Available in v1.114.0+) Default to
false
. Set it to true can output more details.- ids Sequence[str]
A list of Resource Manager Handshake IDs.
- output_
file str - status str
The status of handshake, valid values:
Accepted
,Cancelled
,Declined
,Deleted
,Expired
andPending
.
- enable
Details Boolean -(Optional, Available in v1.114.0+) Default to
false
. Set it to true can output more details.- ids List<String>
A list of Resource Manager Handshake IDs.
- output
File String - status String
The status of handshake, valid values:
Accepted
,Cancelled
,Declined
,Deleted
,Expired
andPending
.
getHandshakes Result
The following output properties are available:
- Handshakes
List<Pulumi.
Ali Cloud. Resource Manager. Outputs. Get Handshakes Handshake> A list of Resource Manager Handshakes. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
A list of Resource Manager Handshake IDs.
- Enable
Details bool - Output
File string - Status string
The status of the invitation.
- Handshakes
[]Get
Handshakes Handshake A list of Resource Manager Handshakes. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
A list of Resource Manager Handshake IDs.
- Enable
Details bool - Output
File string - Status string
The status of the invitation.
- handshakes
List<Get
Handshakes Handshake> A list of Resource Manager Handshakes. Each element contains the following attributes:
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
A list of Resource Manager Handshake IDs.
- enable
Details Boolean - output
File String - status String
The status of the invitation.
- handshakes
Get
Handshakes Handshake[] A list of Resource Manager Handshakes. Each element contains the following attributes:
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
A list of Resource Manager Handshake IDs.
- enable
Details boolean - output
File string - status string
The status of the invitation.
- handshakes
Sequence[Get
Handshakes Handshake] A list of Resource Manager Handshakes. Each element contains the following attributes:
- id str
The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
A list of Resource Manager Handshake IDs.
- enable_
details bool - output_
file str - status str
The status of the invitation.
- handshakes List<Property Map>
A list of Resource Manager Handshakes. Each element contains the following attributes:
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
A list of Resource Manager Handshake IDs.
- enable
Details Boolean - output
File String - status String
The status of the invitation.
Supporting Types
GetHandshakesHandshake
- Expire
Time string The time when the invitation expires.
- Handshake
Id string - Id string
The ID of the resource.
handshake_id
- The ID of the invitation.
- Invited
Account stringReal Name (Available in v1.114.0+) The real name of the invited account.
- Master
Account stringId The ID of the master account of the resource directory.
- Master
Account stringName The name of the master account of the resource directory.
- Master
Account stringReal Name (Available in v1.114.0+) The real name of the master account of the resource directory.
- Modify
Time string The time when the invitation was modified.
- Note string
The invitation note.
- Resource
Directory stringId The ID of the resource directory.
- Status string
The status of handshake, valid values:
Accepted
,Cancelled
,Declined
,Deleted
,Expired
andPending
.- Target
Entity string The ID or logon email address of the invited account.
- Target
Type string The type of the invited account.
- Expire
Time string The time when the invitation expires.
- Handshake
Id string - Id string
The ID of the resource.
handshake_id
- The ID of the invitation.
- Invited
Account stringReal Name (Available in v1.114.0+) The real name of the invited account.
- Master
Account stringId The ID of the master account of the resource directory.
- Master
Account stringName The name of the master account of the resource directory.
- Master
Account stringReal Name (Available in v1.114.0+) The real name of the master account of the resource directory.
- Modify
Time string The time when the invitation was modified.
- Note string
The invitation note.
- Resource
Directory stringId The ID of the resource directory.
- Status string
The status of handshake, valid values:
Accepted
,Cancelled
,Declined
,Deleted
,Expired
andPending
.- Target
Entity string The ID or logon email address of the invited account.
- Target
Type string The type of the invited account.
- expire
Time String The time when the invitation expires.
- handshake
Id String - id String
The ID of the resource.
handshake_id
- The ID of the invitation.
- invited
Account StringReal Name (Available in v1.114.0+) The real name of the invited account.
- master
Account StringId The ID of the master account of the resource directory.
- master
Account StringName The name of the master account of the resource directory.
- master
Account StringReal Name (Available in v1.114.0+) The real name of the master account of the resource directory.
- modify
Time String The time when the invitation was modified.
- note String
The invitation note.
- resource
Directory StringId The ID of the resource directory.
- status String
The status of handshake, valid values:
Accepted
,Cancelled
,Declined
,Deleted
,Expired
andPending
.- target
Entity String The ID or logon email address of the invited account.
- target
Type String The type of the invited account.
- expire
Time string The time when the invitation expires.
- handshake
Id string - id string
The ID of the resource.
handshake_id
- The ID of the invitation.
- invited
Account stringReal Name (Available in v1.114.0+) The real name of the invited account.
- master
Account stringId The ID of the master account of the resource directory.
- master
Account stringName The name of the master account of the resource directory.
- master
Account stringReal Name (Available in v1.114.0+) The real name of the master account of the resource directory.
- modify
Time string The time when the invitation was modified.
- note string
The invitation note.
- resource
Directory stringId The ID of the resource directory.
- status string
The status of handshake, valid values:
Accepted
,Cancelled
,Declined
,Deleted
,Expired
andPending
.- target
Entity string The ID or logon email address of the invited account.
- target
Type string The type of the invited account.
- expire_
time str The time when the invitation expires.
- handshake_
id str - id str
The ID of the resource.
handshake_id
- The ID of the invitation.
- invited_
account_ strreal_ name (Available in v1.114.0+) The real name of the invited account.
- master_
account_ strid The ID of the master account of the resource directory.
- master_
account_ strname The name of the master account of the resource directory.
- master_
account_ strreal_ name (Available in v1.114.0+) The real name of the master account of the resource directory.
- modify_
time str The time when the invitation was modified.
- note str
The invitation note.
- resource_
directory_ strid The ID of the resource directory.
- status str
The status of handshake, valid values:
Accepted
,Cancelled
,Declined
,Deleted
,Expired
andPending
.- target_
entity str The ID or logon email address of the invited account.
- target_
type str The type of the invited account.
- expire
Time String The time when the invitation expires.
- handshake
Id String - id String
The ID of the resource.
handshake_id
- The ID of the invitation.
- invited
Account StringReal Name (Available in v1.114.0+) The real name of the invited account.
- master
Account StringId The ID of the master account of the resource directory.
- master
Account StringName The name of the master account of the resource directory.
- master
Account StringReal Name (Available in v1.114.0+) The real name of the master account of the resource directory.
- modify
Time String The time when the invitation was modified.
- note String
The invitation note.
- resource
Directory StringId The ID of the resource directory.
- status String
The status of handshake, valid values:
Accepted
,Cancelled
,Declined
,Deleted
,Expired
andPending
.- target
Entity String The ID or logon email address of the invited account.
- target
Type String The type of the invited account.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.