Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi
alicloud.resourcemanager.getHandshakes
Explore with Pulumi AI
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:
- Enable
Details bool - Default to
false
. Set it to true can output more details. - Ids List<string>
- A list of Resource Manager Handshake IDs.
- Output
File 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
andPending
.
- Enable
Details bool - Default to
false
. Set it to true can output more details. - Ids []string
- A list of Resource Manager Handshake IDs.
- Output
File 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
andPending
.
- enable
Details Boolean - Default to
false
. Set it to true can output more details. - ids List<String>
- A list of Resource Manager Handshake IDs.
- output
File 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
andPending
.
- enable
Details boolean - Default to
false
. Set it to true can output more details. - ids string[]
- A list of Resource Manager Handshake IDs.
- output
File 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
andPending
.
- 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
andPending
.
- enable
Details Boolean - Default to
false
. Set it to true can output more details. - ids List<String>
- A list of Resource Manager Handshake IDs.
- output
File 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
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 - The ID of the invitation.
- Id string
- The ID of the resource.
- 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 - The ID of the invitation.
- Id string
- The ID of the resource.
- 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 - The ID of the invitation.
- id String
- The ID of the resource.
- 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 - The ID of the invitation.
- id string
- The ID of the resource.
- 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 - The ID of the invitation.
- id str
- The ID of the resource.
- 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 - The ID of the invitation.
- id String
- The ID of the resource.
- 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
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.