GetInstances

This data source provides CEN instances available to the user.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var cenInstancesDs = Output.Create(AliCloud.Cen.GetInstances.InvokeAsync(new AliCloud.Cen.GetInstancesArgs
        {
            Ids = 
            {
                "cen-id1",
            },
            NameRegex = "^foo",
        }));
        this.FirstCenInstanceId = cenInstancesDs.Apply(cenInstancesDs => cenInstancesDs.Instances[0].Id);
    }

    [Output("firstCenInstanceId")]
    public Output<string> FirstCenInstanceId { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

cen_instances_ds = alicloud.cen.get_instances(ids=["cen-id1"],
    name_regex="^foo")
pulumi.export("firstCenInstanceId", cen_instances_ds.instances[0]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const cenInstancesDs = pulumi.output(alicloud.cen.getInstances({
    ids: ["cen-id1"],
    nameRegex: "^foo",
}, { async: true }));

export const firstCenInstanceId = cenInstancesDs.instances[0].id;

Using GetInstances

function getInstances(args: GetInstancesArgs, opts?: InvokeOptions): Promise<GetInstancesResult>
function  get_instances(ids=None, name_regex=None, output_file=None, tags=None, opts=None)
func GetInstances(ctx *Context, args *GetInstancesArgs, opts ...InvokeOption) (*GetInstancesResult, error)
public static class GetInstances {
    public static Task<GetInstancesResult> InvokeAsync(GetInstancesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Ids List<string>

A list of CEN instances IDs.

NameRegex string

A regex string to filter CEN instances by name.

OutputFile string
Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

Ids []string

A list of CEN instances IDs.

NameRegex string

A regex string to filter CEN instances by name.

OutputFile string
Tags map[string]interface{}

A mapping of tags to assign to the resource.

ids string[]

A list of CEN instances IDs.

nameRegex string

A regex string to filter CEN instances by name.

outputFile string
tags {[key: string]: any}

A mapping of tags to assign to the resource.

ids List[str]

A list of CEN instances IDs.

name_regex str

A regex string to filter CEN instances by name.

output_file str
tags Dict[str, Any]

A mapping of tags to assign to the resource.

GetInstances Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of CEN instances IDs.

Instances List<Pulumi.AliCloud.Cen.Outputs.GetInstancesInstance>

A list of CEN instances. Each element contains the following attributes:

Names List<string>

A list of CEN instances names.

NameRegex string
OutputFile string
Tags Dictionary<string, object>

A map of tags assigned to the Cen Instance.

Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of CEN instances IDs.

Instances []GetInstancesInstance

A list of CEN instances. Each element contains the following attributes:

Names []string

A list of CEN instances names.

NameRegex string
OutputFile string
Tags map[string]interface{}

A map of tags assigned to the Cen Instance.

id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of CEN instances IDs.

instances GetInstancesInstance[]

A list of CEN instances. Each element contains the following attributes:

names string[]

A list of CEN instances names.

nameRegex string
outputFile string
tags {[key: string]: any}

A map of tags assigned to the Cen Instance.

id str

The provider-assigned unique ID for this managed resource.

ids List[str]

A list of CEN instances IDs.

instances List[GetInstancesInstance]

A list of CEN instances. Each element contains the following attributes:

names List[str]

A list of CEN instances names.

name_regex str
output_file str
tags Dict[str, Any]

A map of tags assigned to the Cen Instance.

Supporting Types

GetInstancesInstance

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

CenBandwidthPackageIds List<string>

List of CEN Bandwidth Package IDs in the specified CEN instance.

CenId string

ID of the CEN instance.

Description string

Description of the CEN instance.

Id string

ID of the CEN instance.

Name string

Name of the CEN instance.

ProtectionLevel string

Indicates the allowed level of CIDR block overlapping.

Status string

Status of the CEN instance, including “Creating”, “Active” and “Deleting”.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

CenBandwidthPackageIds []string

List of CEN Bandwidth Package IDs in the specified CEN instance.

CenId string

ID of the CEN instance.

Description string

Description of the CEN instance.

Id string

ID of the CEN instance.

Name string

Name of the CEN instance.

ProtectionLevel string

Indicates the allowed level of CIDR block overlapping.

Status string

Status of the CEN instance, including “Creating”, “Active” and “Deleting”.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

cenBandwidthPackageIds string[]

List of CEN Bandwidth Package IDs in the specified CEN instance.

cenId string

ID of the CEN instance.

description string

Description of the CEN instance.

id string

ID of the CEN instance.

name string

Name of the CEN instance.

protectionLevel string

Indicates the allowed level of CIDR block overlapping.

status string

Status of the CEN instance, including “Creating”, “Active” and “Deleting”.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

cenBandwidthPackageIds List[str]

List of CEN Bandwidth Package IDs in the specified CEN instance.

cen_id str

ID of the CEN instance.

description str

Description of the CEN instance.

id str

ID of the CEN instance.

name str

Name of the CEN instance.

protection_level str

Indicates the allowed level of CIDR block overlapping.

status str

Status of the CEN instance, including “Creating”, “Active” and “Deleting”.

tags Dict[str, Any]

A mapping of tags to assign to the resource.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.