1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. sddp
  5. getInstances
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.sddp.getInstances

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

This data source provides the Sddp Instances of the current Alibaba Cloud user.

NOTE: Available since 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]);
Copy
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.sddp.get_instances()
pulumi.export("sddpInstanceId", default.instances[0])
Copy
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
	})
}
Copy
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])),
    };
});
Copy
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]);
    }
}
Copy
variables:
  default:
    fn::invoke:
      function: alicloud:sddp:getInstances
      arguments: {}
outputs:
  sddpInstanceId: ${default.instances[0]}
Copy

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>
Copy
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]
Copy
func GetInstances(ctx *Context, args *GetInstancesArgs, opts ...InvokeOption) (*GetInstancesResult, error)
func GetInstancesOutput(ctx *Context, args *GetInstancesOutputArgs, opts ...InvokeOption) GetInstancesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetInstancesResult> getInstances(GetInstancesArgs args, InvokeOptions options)
public static Output<GetInstancesResult> getInstances(GetInstancesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:sddp/getInstances:getInstances
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

OutputFile string
File name where to save data source results (after running pulumi preview).
OutputFile string
File name where to save data source results (after running pulumi preview).
outputFile String
File name where to save data source results (after running pulumi preview).
outputFile 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).
outputFile 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.AliCloud.Sddp.Outputs.GetInstancesInstance>
A list of Sddp Instances. Each element contains the following attributes:
OutputFile string
Id string
The provider-assigned unique ID for this managed resource.
Instances []GetInstancesInstance
A list of Sddp Instances. Each element contains the following attributes:
OutputFile string
id String
The provider-assigned unique ID for this managed resource.
instances List<GetInstancesInstance>
A list of Sddp Instances. Each element contains the following attributes:
outputFile String
id string
The provider-assigned unique ID for this managed resource.
instances GetInstancesInstance[]
A list of Sddp Instances. Each element contains the following attributes:
outputFile string
id str
The provider-assigned unique ID for this managed resource.
instances Sequence[GetInstancesInstance]
A list of Sddp Instances. Each element contains the following attributes:
output_file str
id String
The provider-assigned unique ID for this managed resource.
instances List<Property Map>
A list of Sddp Instances. Each element contains the following attributes:
outputFile String

Supporting Types

GetInstancesInstance

Authed This property is required. bool
Whether the required RAM authorization is configured.
Id This property is required. string
InstanceId This property is required. string
The ID of the instance.
InstanceNum This property is required. string
The number of instances.
OdpsSet This property is required. bool
Whether the authorized MaxCompute (ODPS) assets.
OssBucketSet This property is required. bool
Whether the authorized oss assets.
OssSize This property is required. string
The OSS size of the instance.
PaymentType This property is required. string
The payment type of the resource. Valid values: Subscription.
RdsSet This property is required. bool
Whether the authorized rds assets.
Status This property is required. string
The status of the resource.
Authed This property is required. bool
Whether the required RAM authorization is configured.
Id This property is required. string
InstanceId This property is required. string
The ID of the instance.
InstanceNum This property is required. string
The number of instances.
OdpsSet This property is required. bool
Whether the authorized MaxCompute (ODPS) assets.
OssBucketSet This property is required. bool
Whether the authorized oss assets.
OssSize This property is required. string
The OSS size of the instance.
PaymentType This property is required. string
The payment type of the resource. Valid values: Subscription.
RdsSet This property is required. bool
Whether the authorized rds assets.
Status This property is required. string
The status of the resource.
authed This property is required. Boolean
Whether the required RAM authorization is configured.
id This property is required. String
instanceId This property is required. String
The ID of the instance.
instanceNum This property is required. String
The number of instances.
odpsSet This property is required. Boolean
Whether the authorized MaxCompute (ODPS) assets.
ossBucketSet This property is required. Boolean
Whether the authorized oss assets.
ossSize This property is required. String
The OSS size of the instance.
paymentType This property is required. String
The payment type of the resource. Valid values: Subscription.
rdsSet This property is required. Boolean
Whether the authorized rds assets.
status This property is required. String
The status of the resource.
authed This property is required. boolean
Whether the required RAM authorization is configured.
id This property is required. string
instanceId This property is required. string
The ID of the instance.
instanceNum This property is required. string
The number of instances.
odpsSet This property is required. boolean
Whether the authorized MaxCompute (ODPS) assets.
ossBucketSet This property is required. boolean
Whether the authorized oss assets.
ossSize This property is required. string
The OSS size of the instance.
paymentType This property is required. string
The payment type of the resource. Valid values: Subscription.
rdsSet This property is required. boolean
Whether the authorized rds assets.
status This property is required. string
The status of the resource.
authed This property is required. bool
Whether the required RAM authorization is configured.
id This property is required. str
instance_id This property is required. str
The ID of the instance.
instance_num This property is required. str
The number of instances.
odps_set This property is required. bool
Whether the authorized MaxCompute (ODPS) assets.
oss_bucket_set This property is required. bool
Whether the authorized oss assets.
oss_size This property is required. str
The OSS size of the instance.
payment_type This property is required. str
The payment type of the resource. Valid values: Subscription.
rds_set This property is required. bool
Whether the authorized rds assets.
status This property is required. str
The status of the resource.
authed This property is required. Boolean
Whether the required RAM authorization is configured.
id This property is required. String
instanceId This property is required. String
The ID of the instance.
instanceNum This property is required. String
The number of instances.
odpsSet This property is required. Boolean
Whether the authorized MaxCompute (ODPS) assets.
ossBucketSet This property is required. Boolean
Whether the authorized oss assets.
ossSize This property is required. String
The OSS size of the instance.
paymentType This property is required. String
The payment type of the resource. Valid values: Subscription.
rdsSet This property is required. Boolean
Whether the authorized rds assets.
status This property is required. 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.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi