UNPKG

@pulumi/openstack

Version:

A Pulumi package for creating and managing OpenStack cloud resources.

169 lines (168 loc) 5.97 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages a V2 Neutron addressscope resource within OpenStack. * * ## Example Usage * * ### Create an Address-scope * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const addressscope1 = new openstack.networking.AddressScope("addressscope_1", { * name: "addressscope_1", * ipVersion: 6, * }); * ``` * * ### Create a Subnet Pool from an Address-scope * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const addressscope1 = new openstack.networking.AddressScope("addressscope_1", { * name: "addressscope_1", * ipVersion: 6, * }); * const subnetpool1 = new openstack.networking.SubnetPool("subnetpool_1", { * name: "subnetpool_1", * prefixes: [ * "fdf7:b13d:dead:beef::/64", * "fd65:86cc:a334:39b7::/64", * ], * addressScopeId: addressscope1.id, * }); * ``` * * ## Import * * Address-scopes can be imported using the `id`, e.g. * * ```sh * $ pulumi import openstack:networking/addressScope:AddressScope addressscope_1 9cc35860-522a-4d35-974d-51d4b011801e * ``` */ export declare class AddressScope extends pulumi.CustomResource { /** * Get an existing AddressScope 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<pulumi.ID>, state?: AddressScopeState, opts?: pulumi.CustomResourceOptions): AddressScope; /** * Returns true if the given object is an instance of AddressScope. 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 AddressScope; /** * IP version, either 4 (default) or 6. Changing this * creates a new address-scope. */ readonly ipVersion: pulumi.Output<number | undefined>; /** * The name of the address-scope. Changing this updates the * name of the existing address-scope. */ readonly name: pulumi.Output<string>; /** * The owner of the address-scope. Required if admin * wants to create a address-scope for another project. Changing this creates a * new address-scope. */ readonly projectId: pulumi.Output<string>; /** * The region in which to obtain the V2 Networking client. * A Networking client is needed to create a Neutron address-scope. If omitted, * the `region` argument of the provider is used. Changing this creates a new * address-scope. */ readonly region: pulumi.Output<string>; /** * Indicates whether this address-scope is shared across * all projects. Changing this updates the shared status of the existing * address-scope. */ readonly shared: pulumi.Output<boolean>; /** * Create a AddressScope 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?: AddressScopeArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AddressScope resources. */ export interface AddressScopeState { /** * IP version, either 4 (default) or 6. Changing this * creates a new address-scope. */ ipVersion?: pulumi.Input<number>; /** * The name of the address-scope. Changing this updates the * name of the existing address-scope. */ name?: pulumi.Input<string>; /** * The owner of the address-scope. Required if admin * wants to create a address-scope for another project. Changing this creates a * new address-scope. */ projectId?: pulumi.Input<string>; /** * The region in which to obtain the V2 Networking client. * A Networking client is needed to create a Neutron address-scope. If omitted, * the `region` argument of the provider is used. Changing this creates a new * address-scope. */ region?: pulumi.Input<string>; /** * Indicates whether this address-scope is shared across * all projects. Changing this updates the shared status of the existing * address-scope. */ shared?: pulumi.Input<boolean>; } /** * The set of arguments for constructing a AddressScope resource. */ export interface AddressScopeArgs { /** * IP version, either 4 (default) or 6. Changing this * creates a new address-scope. */ ipVersion?: pulumi.Input<number>; /** * The name of the address-scope. Changing this updates the * name of the existing address-scope. */ name?: pulumi.Input<string>; /** * The owner of the address-scope. Required if admin * wants to create a address-scope for another project. Changing this creates a * new address-scope. */ projectId?: pulumi.Input<string>; /** * The region in which to obtain the V2 Networking client. * A Networking client is needed to create a Neutron address-scope. If omitted, * the `region` argument of the provider is used. Changing this creates a new * address-scope. */ region?: pulumi.Input<string>; /** * Indicates whether this address-scope is shared across * all projects. Changing this updates the shared status of the existing * address-scope. */ shared?: pulumi.Input<boolean>; }