@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
93 lines • 3.59 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to get details about a subnet. Management subnets support only read operations and should be configured through this data source. User defined subnets can be configured using the resource as well as the datasource.
*
* To get more information about private cloud subnet, see:
* * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds.subnets)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const mySubnet = gcp.vmwareengine.getSubnet({
* name: "service-1",
* parent: "project/my-project/locations/us-west1-a/privateClouds/my-cloud",
* });
* ```
*/
export declare function getSubnet(args: GetSubnetArgs, opts?: pulumi.InvokeOptions): Promise<GetSubnetResult>;
/**
* A collection of arguments for invoking getSubnet.
*/
export interface GetSubnetArgs {
/**
* Name of the resource.
* UserDefined subnets are named in the format of "service-n", where n ranges from 1 to 5.
* Management subnets have arbitary names including "vmotion", "vsan", "system-management" etc. More details about subnet names can be found on the cloud console.
*/
name: string;
/**
* The resource name of the private cloud that this subnet belongs.
*/
parent: string;
}
/**
* A collection of values returned by getSubnet.
*/
export interface GetSubnetResult {
readonly createTime: string;
readonly dhcpAddressRanges: outputs.vmwareengine.GetSubnetDhcpAddressRange[];
readonly gatewayId: string;
readonly gatewayIp: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly ipCidrRange: string;
readonly name: string;
readonly parent: string;
readonly standardConfig: boolean;
readonly state: string;
readonly type: string;
readonly uid: string;
readonly updateTime: string;
readonly vlanId: number;
}
/**
* Use this data source to get details about a subnet. Management subnets support only read operations and should be configured through this data source. User defined subnets can be configured using the resource as well as the datasource.
*
* To get more information about private cloud subnet, see:
* * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds.subnets)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const mySubnet = gcp.vmwareengine.getSubnet({
* name: "service-1",
* parent: "project/my-project/locations/us-west1-a/privateClouds/my-cloud",
* });
* ```
*/
export declare function getSubnetOutput(args: GetSubnetOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSubnetResult>;
/**
* A collection of arguments for invoking getSubnet.
*/
export interface GetSubnetOutputArgs {
/**
* Name of the resource.
* UserDefined subnets are named in the format of "service-n", where n ranges from 1 to 5.
* Management subnets have arbitary names including "vmotion", "vsan", "system-management" etc. More details about subnet names can be found on the cloud console.
*/
name: pulumi.Input<string>;
/**
* The resource name of the private cloud that this subnet belongs.
*/
parent: pulumi.Input<string>;
}
//# sourceMappingURL=getSubnet.d.ts.map