GetBastionHostInstances

This data source provides a list of cloud Bastionhost instances in an Alibaba Cloud account according to the specified filters.

NOTE: Available in 1.63.0+ .

Example Usage

using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var instanceBastionHostInstances = Output.Create(AliCloud.Yundun.GetBastionHostInstances.InvokeAsync(new AliCloud.Yundun.GetBastionHostInstancesArgs
        {
            NameRegex = "^bastionhost",
        }));
        this.Instance = alicloud_yundun_bastionhost_instances.Instance.Select(__item => __item.Id).ToList();
    }

    [Output("instance")]
    public Output<string> Instance { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

instance_bastion_host_instances = alicloud.yundun.get_bastion_host_instances(name_regex="^bastionhost")
pulumi.export("instance", [__item["id"] for __item in alicloud_yundun_bastionhost_instances["instance"]])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const instanceBastionHostInstances = pulumi.output(alicloud.yundun.getBastionHostInstances({
    nameRegex: "^bastionhost",
}, { async: true }));

export const instance = alicloud_yundun_bastionhost_instances_instance.map(v => v.id);

Using GetBastionHostInstances

function getBastionHostInstances(args: GetBastionHostInstancesArgs, opts?: InvokeOptions): Promise<GetBastionHostInstancesResult>
function  get_bastion_host_instances(description_regex=None, ids=None, output_file=None, tags=None, opts=None)
func GetBastionHostInstances(ctx *Context, args *GetBastionHostInstancesArgs, opts ...InvokeOption) (*GetBastionHostInstancesResult, error)
public static class GetBastionHostInstances {
    public static Task<GetBastionHostInstancesResult> InvokeAsync(GetBastionHostInstancesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

DescriptionRegex string

A regex string to filter results by the instance description.

Ids List<string>

Matched instance IDs to filter data source result.

OutputFile string

File name to persist data source output.

Tags Dictionary<string, object>

A map of tags assigned to the bastionhost instance. It must be in the format:

data "alicloud.yundun.getBastionHostInstances" "instance" {
tags = {
tagKey1 = "tagValue1"
}
}
DescriptionRegex string

A regex string to filter results by the instance description.

Ids []string

Matched instance IDs to filter data source result.

OutputFile string

File name to persist data source output.

Tags map[string]interface{}

A map of tags assigned to the bastionhost instance. It must be in the format:

data "alicloud.yundun.getBastionHostInstances" "instance" {
tags = {
tagKey1 = "tagValue1"
}
}
descriptionRegex string

A regex string to filter results by the instance description.

ids string[]

Matched instance IDs to filter data source result.

outputFile string

File name to persist data source output.

tags {[key: string]: any}

A map of tags assigned to the bastionhost instance. It must be in the format:

data "alicloud.yundun.getBastionHostInstances" "instance" {
tags = {
tagKey1 = "tagValue1"
}
}
description_regex str

A regex string to filter results by the instance description.

ids List[str]

Matched instance IDs to filter data source result.

output_file str

File name to persist data source output.

tags Dict[str, Any]

A map of tags assigned to the bastionhost instance. It must be in the format:

data "alicloud.yundun.getBastionHostInstances" "instance" {
tags = {
tagKey1 = "tagValue1"
}
}

GetBastionHostInstances Result

The following output properties are available:

Descriptions List<string>
Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>
Instances List<Pulumi.AliCloud.Yundun.Outputs.GetBastionHostInstancesInstance>

A list of apis. Each element contains the following attributes:

DescriptionRegex string
OutputFile string
Tags Dictionary<string, object>

A map of tags assigned to the bastionhost instance.

Descriptions []string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string
Instances []GetBastionHostInstancesInstance

A list of apis. Each element contains the following attributes:

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

A map of tags assigned to the bastionhost instance.

descriptions string[]
id string

The provider-assigned unique ID for this managed resource.

ids string[]
instances GetBastionHostInstancesInstance[]

A list of apis. Each element contains the following attributes:

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

A map of tags assigned to the bastionhost instance.

descriptions List[str]
id str

The provider-assigned unique ID for this managed resource.

ids List[str]
instances List[GetBastionHostInstancesInstance]

A list of apis. Each element contains the following attributes:

description_regex str
output_file str
tags Dict[str, Any]

A map of tags assigned to the bastionhost instance.

Supporting Types

GetBastionHostInstancesInstance

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Description string

The instance’s remark.

Id string

The instance’s id.

InstanceStatus string

The instance’s status.

LicenseCode string
PrivateDomain string

The instance’s private domain name.

PublicDomain string

The instance’s public domain name.

PublicNetworkAccess bool

The instance’s public network access configuration.

SecurityGroupIds List<string>

The instance’s security group configuration.

UserVswitchId string

The instance’s vSwitch ID.

Tags Dictionary<string, object>

A map of tags assigned to the bastionhost instance. It must be in the format:

data "alicloud.yundun.getBastionHostInstances" "instance" {
tags = {
tagKey1 = "tagValue1"
}
}
Description string

The instance’s remark.

Id string

The instance’s id.

InstanceStatus string

The instance’s status.

LicenseCode string
PrivateDomain string

The instance’s private domain name.

PublicDomain string

The instance’s public domain name.

PublicNetworkAccess bool

The instance’s public network access configuration.

SecurityGroupIds []string

The instance’s security group configuration.

UserVswitchId string

The instance’s vSwitch ID.

Tags map[string]interface{}

A map of tags assigned to the bastionhost instance. It must be in the format:

data "alicloud.yundun.getBastionHostInstances" "instance" {
tags = {
tagKey1 = "tagValue1"
}
}
description string

The instance’s remark.

id string

The instance’s id.

instanceStatus string

The instance’s status.

licenseCode string
privateDomain string

The instance’s private domain name.

publicDomain string

The instance’s public domain name.

publicNetworkAccess boolean

The instance’s public network access configuration.

securityGroupIds string[]

The instance’s security group configuration.

userVswitchId string

The instance’s vSwitch ID.

tags {[key: string]: any}

A map of tags assigned to the bastionhost instance. It must be in the format:

data "alicloud.yundun.getBastionHostInstances" "instance" {
tags = {
tagKey1 = "tagValue1"
}
}
description str

The instance’s remark.

id str

The instance’s id.

instance_status str

The instance’s status.

license_code str
privateDomain str

The instance’s private domain name.

publicDomain str

The instance’s public domain name.

publicNetworkAccess bool

The instance’s public network access configuration.

security_group_ids List[str]

The instance’s security group configuration.

userVswitchId str

The instance’s vSwitch ID.

tags Dict[str, Any]

A map of tags assigned to the bastionhost instance. It must be in the format:

data "alicloud.yundun.getBastionHostInstances" "instance" {
tags = {
tagKey1 = "tagValue1"
}
}

Package Details

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