Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.27.0 published on Monday, Aug 8, 2022 by Pulumi

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:

EnableDetails 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.

OutputFile string
Status string

The status of handshake, valid values: Accepted, Cancelled, Declined, Deleted, Expired and Pending.

EnableDetails 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.

OutputFile string
Status string

The status of handshake, valid values: Accepted, Cancelled, Declined, Deleted, Expired and Pending.

enableDetails 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.

outputFile String
status String

The status of handshake, valid values: Accepted, Cancelled, Declined, Deleted, Expired and Pending.

enableDetails 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.

outputFile string
status string

The status of handshake, valid values: Accepted, Cancelled, Declined, Deleted, Expired and Pending.

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 and Pending.

enableDetails 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.

outputFile String
status String

The status of handshake, valid values: Accepted, Cancelled, Declined, Deleted, Expired and Pending.

getHandshakes Result

The following output properties are available:

Handshakes List<Pulumi.AliCloud.ResourceManager.Outputs.GetHandshakesHandshake>

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.

EnableDetails bool
OutputFile string
Status string

The status of the invitation.

Handshakes []GetHandshakesHandshake

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.

EnableDetails bool
OutputFile string
Status string

The status of the invitation.

handshakes List<GetHandshakesHandshake>

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.

enableDetails Boolean
outputFile String
status String

The status of the invitation.

handshakes GetHandshakesHandshake[]

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.

enableDetails boolean
outputFile string
status string

The status of the invitation.

handshakes Sequence[GetHandshakesHandshake]

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.

enableDetails Boolean
outputFile String
status String

The status of the invitation.

Supporting Types

GetHandshakesHandshake

ExpireTime string

The time when the invitation expires.

HandshakeId string
Id string

The ID of the resource.

  • handshake_id- The ID of the invitation.
InvitedAccountRealName string

(Available in v1.114.0+) The real name of the invited account.

MasterAccountId string

The ID of the master account of the resource directory.

MasterAccountName string

The name of the master account of the resource directory.

MasterAccountRealName string

(Available in v1.114.0+) The real name of the master account of the resource directory.

ModifyTime string

The time when the invitation was modified.

Note string

The invitation note.

ResourceDirectoryId string

The ID of the resource directory.

Status string

The status of handshake, valid values: Accepted, Cancelled, Declined, Deleted, Expired and Pending.

TargetEntity string

The ID or logon email address of the invited account.

TargetType string

The type of the invited account.

ExpireTime string

The time when the invitation expires.

HandshakeId string
Id string

The ID of the resource.

  • handshake_id- The ID of the invitation.
InvitedAccountRealName string

(Available in v1.114.0+) The real name of the invited account.

MasterAccountId string

The ID of the master account of the resource directory.

MasterAccountName string

The name of the master account of the resource directory.

MasterAccountRealName string

(Available in v1.114.0+) The real name of the master account of the resource directory.

ModifyTime string

The time when the invitation was modified.

Note string

The invitation note.

ResourceDirectoryId string

The ID of the resource directory.

Status string

The status of handshake, valid values: Accepted, Cancelled, Declined, Deleted, Expired and Pending.

TargetEntity string

The ID or logon email address of the invited account.

TargetType string

The type of the invited account.

expireTime String

The time when the invitation expires.

handshakeId String
id String

The ID of the resource.

  • handshake_id- The ID of the invitation.
invitedAccountRealName String

(Available in v1.114.0+) The real name of the invited account.

masterAccountId String

The ID of the master account of the resource directory.

masterAccountName String

The name of the master account of the resource directory.

masterAccountRealName String

(Available in v1.114.0+) The real name of the master account of the resource directory.

modifyTime String

The time when the invitation was modified.

note String

The invitation note.

resourceDirectoryId String

The ID of the resource directory.

status String

The status of handshake, valid values: Accepted, Cancelled, Declined, Deleted, Expired and Pending.

targetEntity String

The ID or logon email address of the invited account.

targetType String

The type of the invited account.

expireTime string

The time when the invitation expires.

handshakeId string
id string

The ID of the resource.

  • handshake_id- The ID of the invitation.
invitedAccountRealName string

(Available in v1.114.0+) The real name of the invited account.

masterAccountId string

The ID of the master account of the resource directory.

masterAccountName string

The name of the master account of the resource directory.

masterAccountRealName string

(Available in v1.114.0+) The real name of the master account of the resource directory.

modifyTime string

The time when the invitation was modified.

note string

The invitation note.

resourceDirectoryId string

The ID of the resource directory.

status string

The status of handshake, valid values: Accepted, Cancelled, Declined, Deleted, Expired and Pending.

targetEntity string

The ID or logon email address of the invited account.

targetType 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_real_name str

(Available in v1.114.0+) The real name of the invited account.

master_account_id str

The ID of the master account of the resource directory.

master_account_name str

The name of the master account of the resource directory.

master_account_real_name str

(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_id str

The ID of the resource directory.

status str

The status of handshake, valid values: Accepted, Cancelled, Declined, Deleted, Expired and Pending.

target_entity str

The ID or logon email address of the invited account.

target_type str

The type of the invited account.

expireTime String

The time when the invitation expires.

handshakeId String
id String

The ID of the resource.

  • handshake_id- The ID of the invitation.
invitedAccountRealName String

(Available in v1.114.0+) The real name of the invited account.

masterAccountId String

The ID of the master account of the resource directory.

masterAccountName String

The name of the master account of the resource directory.

masterAccountRealName String

(Available in v1.114.0+) The real name of the master account of the resource directory.

modifyTime String

The time when the invitation was modified.

note String

The invitation note.

resourceDirectoryId String

The ID of the resource directory.

status String

The status of handshake, valid values: Accepted, Cancelled, Declined, Deleted, Expired and Pending.

targetEntity String

The ID or logon email address of the invited account.

targetType 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.