@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
170 lines (169 loc) • 4.93 kB
TypeScript
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 eip addresses
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooAddress = new volcengine.eip.Address("fooAddress", {billingType: "PostPaidByTraffic"});
* const fooAddresses = volcengine.eip.getAddressesOutput({
* ids: [fooAddress.id],
* });
* ```
*/
/** @deprecated volcengine.eip.Addresses has been deprecated in favor of volcengine.eip.getAddresses */
export declare function addresses(args?: AddressesArgs, opts?: pulumi.InvokeOptions): Promise<AddressesResult>;
/**
* A collection of arguments for invoking Addresses.
*/
export interface AddressesArgs {
/**
* An id of associated instance.
*/
associatedInstanceId?: string;
/**
* A type of associated instance, the value can be `Nat`, `NetworkInterface`, `ClbInstance`, `AlbInstance`, `HaVip` or `EcsInstance`.
*/
associatedInstanceType?: string;
/**
* A list of EIP ip address that you want to query.
*/
eipAddresses?: string[];
/**
* A list of EIP allocation ids.
*/
ids?: string[];
/**
* An ISP of EIP Address, the value can be `BGP` or `ChinaMobile` or `ChinaUnicom` or `ChinaTelecom`.
*/
isp?: string;
/**
* A name of EIP.
*/
name?: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* The ProjectName of EIP.
*/
projectName?: string;
/**
* A status of EIP, the value can be `Attaching` or `Detaching` or `Attached` or `Available`.
*/
status?: string;
/**
* Tags.
*/
tags?: inputs.eip.AddressesTag[];
}
/**
* A collection of values returned by Addresses.
*/
export interface AddressesResult {
/**
* The collection of EIP addresses.
*/
readonly addresses: outputs.eip.AddressesAddress[];
readonly associatedInstanceId?: string;
readonly associatedInstanceType?: string;
readonly eipAddresses?: string[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly ids?: string[];
/**
* The ISP of EIP Address.
*/
readonly isp?: string;
/**
* The name of the EIP.
*/
readonly name?: string;
readonly outputFile?: string;
/**
* The ProjectName of the EIP.
*/
readonly projectName?: string;
/**
* The status of the EIP.
*/
readonly status?: string;
/**
* Tags.
*/
readonly tags?: outputs.eip.AddressesTag[];
/**
* The total count of EIP addresses query.
*/
readonly totalCount: number;
}
/**
* Use this data source to query detailed information of eip addresses
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooAddress = new volcengine.eip.Address("fooAddress", {billingType: "PostPaidByTraffic"});
* const fooAddresses = volcengine.eip.getAddressesOutput({
* ids: [fooAddress.id],
* });
* ```
*/
/** @deprecated volcengine.eip.Addresses has been deprecated in favor of volcengine.eip.getAddresses */
export declare function addressesOutput(args?: AddressesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<AddressesResult>;
/**
* A collection of arguments for invoking Addresses.
*/
export interface AddressesOutputArgs {
/**
* An id of associated instance.
*/
associatedInstanceId?: pulumi.Input<string>;
/**
* A type of associated instance, the value can be `Nat`, `NetworkInterface`, `ClbInstance`, `AlbInstance`, `HaVip` or `EcsInstance`.
*/
associatedInstanceType?: pulumi.Input<string>;
/**
* A list of EIP ip address that you want to query.
*/
eipAddresses?: pulumi.Input<pulumi.Input<string>[]>;
/**
* A list of EIP allocation ids.
*/
ids?: pulumi.Input<pulumi.Input<string>[]>;
/**
* An ISP of EIP Address, the value can be `BGP` or `ChinaMobile` or `ChinaUnicom` or `ChinaTelecom`.
*/
isp?: pulumi.Input<string>;
/**
* A name of EIP.
*/
name?: pulumi.Input<string>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
/**
* The ProjectName of EIP.
*/
projectName?: pulumi.Input<string>;
/**
* A status of EIP, the value can be `Attaching` or `Detaching` or `Attached` or `Available`.
*/
status?: pulumi.Input<string>;
/**
* Tags.
*/
tags?: pulumi.Input<pulumi.Input<inputs.eip.AddressesTagArgs>[]>;
}