@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
137 lines (136 loc) • 3.94 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to get a list of OpenStack Project IDs matching the
* specified criteria.
*
* > **Note:** You _must_ have domain admin or cloud admin privileges in your OpenStack cloud to use
* this datasource.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const projects = openstack.identity.getProjectIdsV3({
* nameRegex: "^prod.*",
* });
* ```
*/
export declare function getProjectIdsV3(args?: GetProjectIdsV3Args, opts?: pulumi.InvokeOptions): Promise<GetProjectIdsV3Result>;
/**
* A collection of arguments for invoking getProjectIdsV3.
*/
export interface GetProjectIdsV3Args {
/**
* The domain projects belongs to.
*/
domainId?: string;
/**
* Whether the project is enabled or disabled. Valid
* values are `true` and `false`. Default is `true`.
*/
enabled?: boolean;
isDomain?: boolean;
/**
* The name of the project.
*/
name?: string;
/**
* The regular expression of the name of the project.
* Cannot be used simultaneously with `name`. Unlike filtering by `name` the
* `nameRegex` filtering does by client on the result of OpenStack search
* query.
*/
nameRegex?: string;
/**
* The parent of the project.
*/
parentId?: string;
/**
* The region in which to obtain the V3 Keystone client.
* If omitted, the `region` argument of the provider is used.
*/
region?: string;
/**
* Tags for the project.
*/
tags?: string[];
}
/**
* A collection of values returned by getProjectIdsV3.
*/
export interface GetProjectIdsV3Result {
readonly description: string;
readonly domainId: string;
readonly enabled?: boolean;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly ids: string[];
readonly isDomain?: boolean;
readonly name?: string;
readonly nameRegex?: string;
readonly parentId?: string;
readonly region: string;
readonly tags?: string[];
}
/**
* Use this data source to get a list of OpenStack Project IDs matching the
* specified criteria.
*
* > **Note:** You _must_ have domain admin or cloud admin privileges in your OpenStack cloud to use
* this datasource.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const projects = openstack.identity.getProjectIdsV3({
* nameRegex: "^prod.*",
* });
* ```
*/
export declare function getProjectIdsV3Output(args?: GetProjectIdsV3OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetProjectIdsV3Result>;
/**
* A collection of arguments for invoking getProjectIdsV3.
*/
export interface GetProjectIdsV3OutputArgs {
/**
* The domain projects belongs to.
*/
domainId?: pulumi.Input<string>;
/**
* Whether the project is enabled or disabled. Valid
* values are `true` and `false`. Default is `true`.
*/
enabled?: pulumi.Input<boolean>;
isDomain?: pulumi.Input<boolean>;
/**
* The name of the project.
*/
name?: pulumi.Input<string>;
/**
* The regular expression of the name of the project.
* Cannot be used simultaneously with `name`. Unlike filtering by `name` the
* `nameRegex` filtering does by client on the result of OpenStack search
* query.
*/
nameRegex?: pulumi.Input<string>;
/**
* The parent of the project.
*/
parentId?: 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>;
/**
* Tags for the project.
*/
tags?: pulumi.Input<pulumi.Input<string>[]>;
}