Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.sddp.getInstances
Explore with Pulumi AI
This data source provides the Sddp Instances of the current Alibaba Cloud user.
NOTE: Available in v1.136.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const default = alicloud.sddp.getInstances({});
export const sddpInstanceId = _default.then(_default => _default.instances?.[0]);
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.sddp.get_instances()
pulumi.export("sddpInstanceId", default.instances[0])
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sddp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := sddp.GetInstances(ctx, &sddp.GetInstancesArgs{}, nil)
if err != nil {
return err
}
ctx.Export("sddpInstanceId", _default.Instances[0])
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = AliCloud.Sddp.GetInstances.Invoke();
return new Dictionary<string, object?>
{
["sddpInstanceId"] = @default.Apply(@default => @default.Apply(getInstancesResult => getInstancesResult.Instances[0])),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.sddp.SddpFunctions;
import com.pulumi.alicloud.sddp.inputs.GetInstancesArgs;
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 default = SddpFunctions.getInstances();
ctx.export("sddpInstanceId", default_.instances()[0]);
}
}
variables:
default:
fn::invoke:
Function: alicloud:sddp:getInstances
Arguments: {}
outputs:
sddpInstanceId: ${default.instances[0]}
Using getInstances
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 getInstances(args: GetInstancesArgs, opts?: InvokeOptions): Promise<GetInstancesResult>
function getInstancesOutput(args: GetInstancesOutputArgs, opts?: InvokeOptions): Output<GetInstancesResult>
def get_instances(output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInstancesResult
def get_instances_output(output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInstancesResult]
func GetInstances(ctx *Context, args *GetInstancesArgs, opts ...InvokeOption) (*GetInstancesResult, error)
func GetInstancesOutput(ctx *Context, args *GetInstancesOutputArgs, opts ...InvokeOption) GetInstancesResultOutput
> Note: This function is named GetInstances
in the Go SDK.
public static class GetInstances
{
public static Task<GetInstancesResult> InvokeAsync(GetInstancesArgs args, InvokeOptions? opts = null)
public static Output<GetInstancesResult> Invoke(GetInstancesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInstancesResult> getInstances(GetInstancesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:sddp/getInstances:getInstances
arguments:
# arguments dictionary
The following arguments are supported:
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- output
File String - File name where to save data source results (after running
pulumi preview
).
- output
File string - File name where to save data source results (after running
pulumi preview
).
- output_
file str - File name where to save data source results (after running
pulumi preview
).
- output
File String - File name where to save data source results (after running
pulumi preview
).
getInstances Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Instances
List<Pulumi.
Ali Cloud. Sddp. Outputs. Get Instances Instance> - Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Instances
[]Get
Instances Instance - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- instances
List<Get
Instances Instance> - output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- instances
Get
Instances Instance[] - output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- instances
Sequence[Get
Instances Instance] - output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- instances List<Property Map>
- output
File String
Supporting Types
GetInstancesInstance
- Authed bool
- Whether the required RAM authorization is configured.
- Id string
- Instance
Id string - The ID of the instance.
- Instance
Num string - The number of instances.
- Odps
Set bool - Whether the authorized MaxCompute (ODPS) assets.
- Oss
Bucket boolSet - Whether the authorized oss assets.
- Oss
Size string - The OSS size of the instance.
- Payment
Type string - The payment type of the resource. Valid values:
Subscription
. - Rds
Set bool - Whether the authorized rds assets.
- Status string
- The status of the resource.
- Authed bool
- Whether the required RAM authorization is configured.
- Id string
- Instance
Id string - The ID of the instance.
- Instance
Num string - The number of instances.
- Odps
Set bool - Whether the authorized MaxCompute (ODPS) assets.
- Oss
Bucket boolSet - Whether the authorized oss assets.
- Oss
Size string - The OSS size of the instance.
- Payment
Type string - The payment type of the resource. Valid values:
Subscription
. - Rds
Set bool - Whether the authorized rds assets.
- Status string
- The status of the resource.
- authed Boolean
- Whether the required RAM authorization is configured.
- id String
- instance
Id String - The ID of the instance.
- instance
Num String - The number of instances.
- odps
Set Boolean - Whether the authorized MaxCompute (ODPS) assets.
- oss
Bucket BooleanSet - Whether the authorized oss assets.
- oss
Size String - The OSS size of the instance.
- payment
Type String - The payment type of the resource. Valid values:
Subscription
. - rds
Set Boolean - Whether the authorized rds assets.
- status String
- The status of the resource.
- authed boolean
- Whether the required RAM authorization is configured.
- id string
- instance
Id string - The ID of the instance.
- instance
Num string - The number of instances.
- odps
Set boolean - Whether the authorized MaxCompute (ODPS) assets.
- oss
Bucket booleanSet - Whether the authorized oss assets.
- oss
Size string - The OSS size of the instance.
- payment
Type string - The payment type of the resource. Valid values:
Subscription
. - rds
Set boolean - Whether the authorized rds assets.
- status string
- The status of the resource.
- authed bool
- Whether the required RAM authorization is configured.
- id str
- instance_
id str - The ID of the instance.
- instance_
num str - The number of instances.
- odps_
set bool - Whether the authorized MaxCompute (ODPS) assets.
- oss_
bucket_ boolset - Whether the authorized oss assets.
- oss_
size str - The OSS size of the instance.
- payment_
type str - The payment type of the resource. Valid values:
Subscription
. - rds_
set bool - Whether the authorized rds assets.
- status str
- The status of the resource.
- authed Boolean
- Whether the required RAM authorization is configured.
- id String
- instance
Id String - The ID of the instance.
- instance
Num String - The number of instances.
- odps
Set Boolean - Whether the authorized MaxCompute (ODPS) assets.
- oss
Bucket BooleanSet - Whether the authorized oss assets.
- oss
Size String - The OSS size of the instance.
- payment
Type String - The payment type of the resource. Valid values:
Subscription
. - rds
Set Boolean - Whether the authorized rds assets.
- status String
- The status of the resource.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.