UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

206 lines (205 loc) 5.14 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of ha vips * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const fooZones = volcengine.ecs.getZones({}); * const fooVpc = new volcengine.vpc.Vpc("fooVpc", { * vpcName: "acc-test-vpc", * cidrBlock: "172.16.0.0/16", * }); * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", { * subnetName: "acc-test-subnet", * cidrBlock: "172.16.0.0/24", * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id), * vpcId: fooVpc.id, * }); * const fooHaVip = new volcengine.vpc.HaVip("fooHaVip", { * haVipName: "acc-test-ha-vip", * description: "acc-test", * subnetId: fooSubnet.id, * }); * // ip_address = "172.16.0.5" * const fooHaVips = volcengine.vpc.getHaVipsOutput({ * ids: [fooHaVip.id], * }); * ``` */ export declare function getHaVips(args?: GetHaVipsArgs, opts?: pulumi.InvokeOptions): Promise<GetHaVipsResult>; /** * A collection of arguments for invoking getHaVips. */ export interface GetHaVipsArgs { /** * The name of Ha Vip. */ haVipName?: string; /** * A list of Ha Vip IDs. */ ids?: string[]; /** * The ip address of Ha Vip. */ ipAddress?: string; /** * A Name Regex of Resource. */ nameRegex?: string; /** * File name where to save data source results. */ outputFile?: string; /** * The project name of Ha Vip. */ projectName?: string; /** * The status of Ha Vip. */ status?: string; /** * The id of subnet. */ subnetId?: string; /** * Tags. */ tags?: inputs.vpc.GetHaVipsTag[]; /** * The id of vpc. */ vpcId?: string; } /** * A collection of values returned by getHaVips. */ export interface GetHaVipsResult { /** * The name of the Ha Vip. */ readonly haVipName?: string; /** * The collection of query. */ readonly haVips: outputs.vpc.GetHaVipsHaVip[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly ids?: string[]; /** * The ip address of the Ha Vip. */ readonly ipAddress?: string; readonly nameRegex?: string; readonly outputFile?: string; /** * The project name of the Ha Vip. */ readonly projectName?: string; /** * The status of the Ha Vip. */ readonly status?: string; /** * The subnet id of the Ha Vip. */ readonly subnetId?: string; /** * Tags. */ readonly tags?: outputs.vpc.GetHaVipsTag[]; /** * The total count of query. */ readonly totalCount: number; /** * The vpc id of the Ha Vip. */ readonly vpcId?: string; } /** * Use this data source to query detailed information of ha vips * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const fooZones = volcengine.ecs.getZones({}); * const fooVpc = new volcengine.vpc.Vpc("fooVpc", { * vpcName: "acc-test-vpc", * cidrBlock: "172.16.0.0/16", * }); * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", { * subnetName: "acc-test-subnet", * cidrBlock: "172.16.0.0/24", * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id), * vpcId: fooVpc.id, * }); * const fooHaVip = new volcengine.vpc.HaVip("fooHaVip", { * haVipName: "acc-test-ha-vip", * description: "acc-test", * subnetId: fooSubnet.id, * }); * // ip_address = "172.16.0.5" * const fooHaVips = volcengine.vpc.getHaVipsOutput({ * ids: [fooHaVip.id], * }); * ``` */ export declare function getHaVipsOutput(args?: GetHaVipsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetHaVipsResult>; /** * A collection of arguments for invoking getHaVips. */ export interface GetHaVipsOutputArgs { /** * The name of Ha Vip. */ haVipName?: pulumi.Input<string>; /** * A list of Ha Vip IDs. */ ids?: pulumi.Input<pulumi.Input<string>[]>; /** * The ip address of Ha Vip. */ ipAddress?: pulumi.Input<string>; /** * A Name Regex of Resource. */ nameRegex?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; /** * The project name of Ha Vip. */ projectName?: pulumi.Input<string>; /** * The status of Ha Vip. */ status?: pulumi.Input<string>; /** * The id of subnet. */ subnetId?: pulumi.Input<string>; /** * Tags. */ tags?: pulumi.Input<pulumi.Input<inputs.vpc.GetHaVipsTagArgs>[]>; /** * The id of vpc. */ vpcId?: pulumi.Input<string>; }