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:
- Description
Regex string A regex string to filter results by the instance description.
- Ids List<string>
Matched instance IDs to filter data source result.
- Output
File string File name to persist data source output.
- 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
Regex string A regex string to filter results by the instance description.
- Ids []string
Matched instance IDs to filter data source result.
- Output
File string File name to persist data source output.
- 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
Regex string A regex string to filter results by the instance description.
- ids string[]
Matched instance IDs to filter data source result.
- output
File string File name to persist data source output.
- {[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.
- 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.
Ali Cloud. Yundun. Outputs. Get Bastion Host Instances Instance> A list of apis. Each element contains the following attributes:
- Description
Regex string - Output
File string - 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
[]Get
Bastion Host Instances Instance A list of apis. Each element contains the following attributes:
- Description
Regex string - Output
File string - 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
Get
Bastion Host Instances Instance[] A list of apis. Each element contains the following attributes:
- description
Regex string - output
File string - {[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[Get
Bastion Host Instances Instance] A list of apis. Each element contains the following attributes:
- description_
regex str - output_
file str - 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.
- Instance
Status string The instance’s status.
- License
Code string - Private
Domain string The instance’s private domain name.
- Public
Domain string The instance’s public domain name.
- Public
Network boolAccess The instance’s public network access configuration.
- Security
Group List<string>Ids The instance’s security group configuration.
- User
Vswitch stringId The instance’s vSwitch ID.
- 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.
- Instance
Status string The instance’s status.
- License
Code string - Private
Domain string The instance’s private domain name.
- Public
Domain string The instance’s public domain name.
- Public
Network boolAccess The instance’s public network access configuration.
- Security
Group []stringIds The instance’s security group configuration.
- User
Vswitch stringId The instance’s vSwitch ID.
- 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.
- instance
Status string The instance’s status.
- license
Code string - private
Domain string The instance’s private domain name.
- public
Domain string The instance’s public domain name.
- public
Network booleanAccess The instance’s public network access configuration.
- security
Group string[]Ids The instance’s security group configuration.
- user
Vswitch stringId The instance’s vSwitch ID.
- {[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 - private
Domain str The instance’s private domain name.
- public
Domain str The instance’s public domain name.
- public
Network boolAccess The instance’s public network access configuration.
- security_
group_ List[str]ids The instance’s security group configuration.
- user
Vswitch strId The instance’s vSwitch ID.
- 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
alicloudTerraform Provider.