import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Creates a subnet in a private network (vRack) in a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const network = new ovh.CloudNetworkPrivateVrack("network", { * serviceName: "", * name: "my-private-network", * region: "GRA1", * }); * const subnet = new ovh.CloudNetworkPrivateVrackSubnet("subnet", { * serviceName: network.serviceName, * networkId: network.id, * name: "my-subnet", * cidr: "10.0.0.0/24", * dhcpEnabled: true, * gatewayIp: "10.0.0.1", * region: "GRA1", * dnsNameservers: ["213.186.33.99"], * allocationPools: [{ * start: "10.0.0.2", * end: "10.0.0.254", * }], * }); * ``` * * ## Import * * A cloud private network subnet can be imported using the `service_name`, `network_id` and `id`, separated by `/`: * * terraform * * import { * * to = ovh_cloud_network_private_vrack_subnet.subnet * * id = "//" * * } * * bash * * ```sh * $ pulumi import ovh:index/cloudNetworkPrivateVrackSubnet:CloudNetworkPrivateVrackSubnet subnet service_name/network_id/id * ``` */ export declare class CloudNetworkPrivateVrackSubnet extends pulumi.CustomResource { /** * Get an existing CloudNetworkPrivateVrackSubnet resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: CloudNetworkPrivateVrackSubnetState, opts?: pulumi.CustomResourceOptions): CloudNetworkPrivateVrackSubnet; /** * Returns true if the given object is an instance of CloudNetworkPrivateVrackSubnet. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is CloudNetworkPrivateVrackSubnet; /** * IP address allocation pools: */ readonly allocationPools: pulumi.Output; /** * Availability zone within the region. */ readonly availabilityZone: pulumi.Output; /** * Computed hash representing the current target specification value. */ readonly checksum: pulumi.Output; /** * CIDR address range for the subnet (e.g. `10.0.0.0/24`). **Changing this value recreates the resource.** */ readonly cidr: pulumi.Output; /** * Creation date of the subnet. */ readonly createdAt: pulumi.Output; /** * Current state of the subnet: */ readonly currentState: pulumi.Output; /** * Ongoing asynchronous tasks related to the subnet */ readonly currentTasks: pulumi.Output; /** * Subnet description. */ readonly description: pulumi.Output; /** * Whether DHCP is enabled on the subnet. */ readonly dhcpEnabled: pulumi.Output; /** * List of DNS nameserver addresses. */ readonly dnsNameservers: pulumi.Output; /** * Default gateway IP address. */ readonly gatewayIp: pulumi.Output; /** * Subnet name. */ readonly name: pulumi.Output; /** * Network ID of the parent private network. **Changing this value recreates the resource.** */ readonly networkId: pulumi.Output; /** * Region where the subnet will be created. **Changing this value recreates the resource.** */ readonly region: pulumi.Output; /** * Subnet readiness in the system (`CREATING`, `DELETING`, `ERROR`, `OUT_OF_SYNC`, `READY`, `UPDATING`). */ readonly resourceStatus: pulumi.Output; /** * Service name (ID of the cloud project). **Changing this value recreates the resource.** */ readonly serviceName: pulumi.Output; /** * Last update date of the subnet. */ readonly updatedAt: pulumi.Output; /** * Create a CloudNetworkPrivateVrackSubnet resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: CloudNetworkPrivateVrackSubnetArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CloudNetworkPrivateVrackSubnet resources. */ export interface CloudNetworkPrivateVrackSubnetState { /** * IP address allocation pools: */ allocationPools?: pulumi.Input[]>; /** * Availability zone within the region. */ availabilityZone?: pulumi.Input; /** * Computed hash representing the current target specification value. */ checksum?: pulumi.Input; /** * CIDR address range for the subnet (e.g. `10.0.0.0/24`). **Changing this value recreates the resource.** */ cidr?: pulumi.Input; /** * Creation date of the subnet. */ createdAt?: pulumi.Input; /** * Current state of the subnet: */ currentState?: pulumi.Input; /** * Ongoing asynchronous tasks related to the subnet */ currentTasks?: pulumi.Input[]>; /** * Subnet description. */ description?: pulumi.Input; /** * Whether DHCP is enabled on the subnet. */ dhcpEnabled?: pulumi.Input; /** * List of DNS nameserver addresses. */ dnsNameservers?: pulumi.Input[]>; /** * Default gateway IP address. */ gatewayIp?: pulumi.Input; /** * Subnet name. */ name?: pulumi.Input; /** * Network ID of the parent private network. **Changing this value recreates the resource.** */ networkId?: pulumi.Input; /** * Region where the subnet will be created. **Changing this value recreates the resource.** */ region?: pulumi.Input; /** * Subnet readiness in the system (`CREATING`, `DELETING`, `ERROR`, `OUT_OF_SYNC`, `READY`, `UPDATING`). */ resourceStatus?: pulumi.Input; /** * Service name (ID of the cloud project). **Changing this value recreates the resource.** */ serviceName?: pulumi.Input; /** * Last update date of the subnet. */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a CloudNetworkPrivateVrackSubnet resource. */ export interface CloudNetworkPrivateVrackSubnetArgs { /** * IP address allocation pools: */ allocationPools?: pulumi.Input[]>; /** * Availability zone within the region. */ availabilityZone?: pulumi.Input; /** * CIDR address range for the subnet (e.g. `10.0.0.0/24`). **Changing this value recreates the resource.** */ cidr: pulumi.Input; /** * Subnet description. */ description?: pulumi.Input; /** * Whether DHCP is enabled on the subnet. */ dhcpEnabled?: pulumi.Input; /** * List of DNS nameserver addresses. */ dnsNameservers?: pulumi.Input[]>; /** * Default gateway IP address. */ gatewayIp?: pulumi.Input; /** * Subnet name. */ name?: pulumi.Input; /** * Network ID of the parent private network. **Changing this value recreates the resource.** */ networkId: pulumi.Input; /** * Region where the subnet will be created. **Changing this value recreates the resource.** */ region: pulumi.Input; /** * Service name (ID of the cloud project). **Changing this value recreates the resource.** */ serviceName: pulumi.Input; }