@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
151 lines (150 loc) • 3.69 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to get the ID of an OpenStack project.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const project1 = openstack.identity.getProject({
* name: "demo",
* });
* ```
*/
export declare function getProject(args?: GetProjectArgs, opts?: pulumi.InvokeOptions): Promise<GetProjectResult>;
/**
* A collection of arguments for invoking getProject.
*/
export interface GetProjectArgs {
/**
* The domain this project belongs to.
*/
domainId?: string;
/**
* Whether the project is enabled or disabled. Valid
* values are `true` and `false`.
*/
enabled?: boolean;
/**
* Whether this project is a domain. Valid values
* are `true` and `false`.
*/
isDomain?: boolean;
/**
* The name of the project.
*/
name?: string;
/**
* The parent of this project.
*/
parentId?: string;
/**
* The id of the project. Conflicts with any of the
* above arguments.
*/
projectId?: string;
/**
* The region in which to obtain the V3 Keystone client.
* If omitted, the `region` argument of the provider is used.
*/
region?: string;
}
/**
* A collection of values returned by getProject.
*/
export interface GetProjectResult {
/**
* The description of the project.
*/
readonly description: string;
/**
* See Argument Reference above.
*/
readonly domainId: string;
/**
* See Argument Reference above.
*/
readonly enabled?: boolean;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* See Argument Reference above.
*/
readonly isDomain?: boolean;
/**
* See Argument Reference above.
*/
readonly name?: string;
/**
* See Argument Reference above.
*/
readonly parentId?: string;
/**
* See Argument Reference above.
*/
readonly projectId?: string;
/**
* See Argument Reference above.
*/
readonly region: string;
/**
* See Argument Reference above.
*/
readonly tags: string[];
}
/**
* Use this data source to get the ID of an OpenStack project.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const project1 = openstack.identity.getProject({
* name: "demo",
* });
* ```
*/
export declare function getProjectOutput(args?: GetProjectOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetProjectResult>;
/**
* A collection of arguments for invoking getProject.
*/
export interface GetProjectOutputArgs {
/**
* The domain this project belongs to.
*/
domainId?: pulumi.Input<string>;
/**
* Whether the project is enabled or disabled. Valid
* values are `true` and `false`.
*/
enabled?: pulumi.Input<boolean>;
/**
* Whether this project is a domain. Valid values
* are `true` and `false`.
*/
isDomain?: pulumi.Input<boolean>;
/**
* The name of the project.
*/
name?: pulumi.Input<string>;
/**
* The parent of this project.
*/
parentId?: pulumi.Input<string>;
/**
* The id of the project. Conflicts with any of the
* above arguments.
*/
projectId?: pulumi.Input<string>;
/**
* The region in which to obtain the V3 Keystone client.
* If omitted, the `region` argument of the provider is used.
*/
region?: pulumi.Input<string>;
}