@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
118 lines (117 loc) • 3.08 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to get the ID of an available OpenStack address-scope.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const publicAddressscope = openstack.networking.getAddressScope({
* name: "public_addressscope",
* shared: true,
* ipVersion: 4,
* });
* ```
*/
export declare function getAddressScope(args?: GetAddressScopeArgs, opts?: pulumi.InvokeOptions): Promise<GetAddressScopeResult>;
/**
* A collection of arguments for invoking getAddressScope.
*/
export interface GetAddressScopeArgs {
/**
* IP version.
*/
ipVersion?: number;
/**
* Name of the address-scope.
*/
name?: string;
/**
* The owner of the address-scope.
*/
projectId?: string;
/**
* The region in which to obtain the V2 Neutron client.
* A Neutron client is needed to retrieve address-scopes. If omitted, the
* `region` argument of the provider is used.
*/
region?: string;
/**
* Indicates whether this address-scope is shared across
* all projects.
*/
shared?: boolean;
}
/**
* A collection of values returned by getAddressScope.
*/
export interface GetAddressScopeResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* See Argument Reference above.
*/
readonly ipVersion?: number;
/**
* See Argument Reference above.
*/
readonly name?: string;
/**
* See Argument Reference above.
*/
readonly projectId?: string;
readonly region?: string;
/**
* See Argument Reference above.
*/
readonly shared?: boolean;
}
/**
* Use this data source to get the ID of an available OpenStack address-scope.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const publicAddressscope = openstack.networking.getAddressScope({
* name: "public_addressscope",
* shared: true,
* ipVersion: 4,
* });
* ```
*/
export declare function getAddressScopeOutput(args?: GetAddressScopeOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAddressScopeResult>;
/**
* A collection of arguments for invoking getAddressScope.
*/
export interface GetAddressScopeOutputArgs {
/**
* IP version.
*/
ipVersion?: pulumi.Input<number>;
/**
* Name of the address-scope.
*/
name?: pulumi.Input<string>;
/**
* The owner of the address-scope.
*/
projectId?: pulumi.Input<string>;
/**
* The region in which to obtain the V2 Neutron client.
* A Neutron client is needed to retrieve address-scopes. If omitted, the
* `region` argument of the provider is used.
*/
region?: pulumi.Input<string>;
/**
* Indicates whether this address-scope is shared across
* all projects.
*/
shared?: pulumi.Input<boolean>;
}