1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. resourcemanager
  5. getHandshakes
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

alicloud.resourcemanager.getHandshakes

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

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

    NOTE: Available in 1.86.0+.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const example = alicloud.resourcemanager.getHandshakes({});
    export const firstHandshakeId = example.then(example => example.handshakes?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example = alicloud.resourcemanager.get_handshakes()
    pulumi.export("firstHandshakeId", example.handshakes[0].id)
    
    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
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = AliCloud.ResourceManager.GetHandshakes.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["firstHandshakeId"] = example.Apply(getHandshakesResult => getHandshakesResult.Handshakes[0]?.Id),
        };
    });
    
    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()));
        }
    }
    
    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
    Default to false. Set it to true can output more details.
    Ids List<string>
    A list of Resource Manager Handshake IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of handshake, valid values: Accepted, Cancelled, Declined, Deleted, Expired and Pending.
    EnableDetails bool
    Default to false. Set it to true can output more details.
    Ids []string
    A list of Resource Manager Handshake IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of handshake, valid values: Accepted, Cancelled, Declined, Deleted, Expired and Pending.
    enableDetails Boolean
    Default to false. Set it to true can output more details.
    ids List<String>
    A list of Resource Manager Handshake IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The status of handshake, valid values: Accepted, Cancelled, Declined, Deleted, Expired and Pending.
    enableDetails boolean
    Default to false. Set it to true can output more details.
    ids string[]
    A list of Resource Manager Handshake IDs.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    status string
    The status of handshake, valid values: Accepted, Cancelled, Declined, Deleted, Expired and Pending.
    enable_details bool
    Default to false. Set it to true can output more details.
    ids Sequence[str]
    A list of Resource Manager Handshake IDs.
    output_file str
    File name where to save data source results (after running pulumi preview).
    status str
    The status of handshake, valid values: Accepted, Cancelled, Declined, Deleted, Expired and Pending.
    enableDetails Boolean
    Default to false. Set it to true can output more details.
    ids List<String>
    A list of Resource Manager Handshake IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    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
    The ID of the invitation.
    Id string
    The ID of the resource.
    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
    The ID of the invitation.
    Id string
    The ID of the resource.
    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
    The ID of the invitation.
    id String
    The ID of the resource.
    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
    The ID of the invitation.
    id string
    The ID of the resource.
    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
    The ID of the invitation.
    id str
    The ID of the resource.
    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
    The ID of the invitation.
    id String
    The ID of the resource.
    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
    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.53.0 published on Wednesday, Apr 17, 2024 by Pulumi