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.
- Name
Regex string A regex string to filter CEN instances by name.
- Output
File string - Dictionary<string, object>
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 - 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.
Ali Cloud. Cen. Outputs. Get Instances Instance> A list of CEN instances. Each element contains the following attributes:
- Names List<string>
A list of CEN instances names.
- Name
Regex string - Output
File string - 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
[]Get
Instances Instance A list of CEN instances. Each element contains the following attributes:
- Names []string
A list of CEN instances names.
- Name
Regex string - Output
File string - 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
Get
Instances Instance[] A list of CEN instances. Each element contains the following attributes:
- names string[]
A list of CEN instances names.
- name
Regex string - output
File string - {[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[Get
Instances Instance] 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 - 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.
- Cen
Bandwidth List<string>Package Ids List of CEN Bandwidth Package IDs in the specified CEN instance.
- Cen
Id 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.
- Protection
Level string Indicates the allowed level of CIDR block overlapping.
- Status string
Status of the CEN instance, including “Creating”, “Active” and “Deleting”.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Cen
Bandwidth []stringPackage Ids List of CEN Bandwidth Package IDs in the specified CEN instance.
- Cen
Id 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.
- Protection
Level string Indicates the allowed level of CIDR block overlapping.
- Status string
Status of the CEN instance, including “Creating”, “Active” and “Deleting”.
- map[string]interface{}
A mapping of tags to assign to the resource.
- cen
Bandwidth string[]Package Ids List of CEN Bandwidth Package IDs in the specified CEN instance.
- cen
Id 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.
- protection
Level string Indicates the allowed level of CIDR block overlapping.
- status string
Status of the CEN instance, including “Creating”, “Active” and “Deleting”.
- {[key: string]: any}
A mapping of tags to assign to the resource.
- cen
Bandwidth List[str]Package Ids 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”.
- 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
alicloudTerraform Provider.