@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
67 lines (66 loc) • 2.1 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to get a list of private IPs within HuaweiCloud.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const config = new pulumi.Config();
* const subnetId = config.requireObject("subnetId");
* const test = huaweicloud.Vpc.getSubnetPrivateIps({
* subnetId: subnetId,
* });
* ```
*/
export declare function getSubnetPrivateIps(args: GetSubnetPrivateIpsArgs, opts?: pulumi.InvokeOptions): Promise<GetSubnetPrivateIpsResult>;
/**
* A collection of arguments for invoking getSubnetPrivateIps.
*/
export interface GetSubnetPrivateIpsArgs {
/**
* Specifies the region in which to query the resource.
* If omitted, the provider-level region will be used.
*/
region?: string;
/**
* Specifies the ID of the subnet that the private IP address belongs to.
*/
subnetId: string;
}
/**
* A collection of values returned by getSubnetPrivateIps.
*/
export interface GetSubnetPrivateIpsResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The list of private IP addresses.
*/
readonly privateIps: outputs.Vpc.GetSubnetPrivateIpsPrivateIp[];
readonly region: string;
/**
* The ID of the subnet from which IP addresses are assigned.
*/
readonly subnetId: string;
}
export declare function getSubnetPrivateIpsOutput(args: GetSubnetPrivateIpsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetSubnetPrivateIpsResult>;
/**
* A collection of arguments for invoking getSubnetPrivateIps.
*/
export interface GetSubnetPrivateIpsOutputArgs {
/**
* Specifies the region in which to query the resource.
* If omitted, the provider-level region will be used.
*/
region?: pulumi.Input<string>;
/**
* Specifies the ID of the subnet that the private IP address belongs to.
*/
subnetId: pulumi.Input<string>;
}