@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
123 lines • 3.41 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Get information about an ODB Subnet.
*
* For more information see the
* * [API documentation](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.odbNetworks.odbSubnets)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const my_subnet = gcp.oracledatabase.getOdbSubnet({
* location: "us-east4",
* odbnetwork: "my-network-id",
* odbSubnetId: "my-subnet-id",
* });
* ```
*
* ## Attributes reference
*
* See gcp.oracledatabase.OdbSubnet resource for details of the available attributes.
*/
export declare function getOdbSubnet(args: GetOdbSubnetArgs, opts?: pulumi.InvokeOptions): Promise<GetOdbSubnetResult>;
/**
* A collection of arguments for invoking getOdbSubnet.
*/
export interface GetOdbSubnetArgs {
/**
* The location of the resource.
*/
location: string;
/**
* The ID of the ODB Subnet.
*/
odbSubnetId: string;
/**
* The ID of the parent ODB Network.
*/
odbnetwork: string;
/**
* The project to which the resource belongs. If it
* is not provided, the provider project is used.
*/
project?: string;
}
/**
* A collection of values returned by getOdbSubnet.
*/
export interface GetOdbSubnetResult {
readonly cidrRange: string;
readonly createTime: string;
readonly deletionPolicy: string;
readonly deletionProtection: boolean;
readonly effectiveLabels: {
[key: string]: string;
};
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly labels: {
[key: string]: string;
};
readonly location: string;
readonly name: string;
readonly odbSubnetId: string;
readonly odbnetwork: string;
readonly project?: string;
readonly pulumiLabels: {
[key: string]: string;
};
readonly purpose: string;
readonly state: string;
}
/**
* Get information about an ODB Subnet.
*
* For more information see the
* * [API documentation](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.odbNetworks.odbSubnets)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const my_subnet = gcp.oracledatabase.getOdbSubnet({
* location: "us-east4",
* odbnetwork: "my-network-id",
* odbSubnetId: "my-subnet-id",
* });
* ```
*
* ## Attributes reference
*
* See gcp.oracledatabase.OdbSubnet resource for details of the available attributes.
*/
export declare function getOdbSubnetOutput(args: GetOdbSubnetOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetOdbSubnetResult>;
/**
* A collection of arguments for invoking getOdbSubnet.
*/
export interface GetOdbSubnetOutputArgs {
/**
* The location of the resource.
*/
location: pulumi.Input<string>;
/**
* The ID of the ODB Subnet.
*/
odbSubnetId: pulumi.Input<string>;
/**
* The ID of the parent ODB Network.
*/
odbnetwork: pulumi.Input<string>;
/**
* The project to which the resource belongs. If it
* is not provided, the provider project is used.
*/
project?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getOdbSubnet.d.ts.map