@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
109 lines (108 loc) • 2.59 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to get the ID of an OpenStack service.
*
* > **Note:** This usually requires admin privileges.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const service1 = openstack.identity.getService({
* name: "keystone",
* });
* ```
*/
export declare function getService(args?: GetServiceArgs, opts?: pulumi.InvokeOptions): Promise<GetServiceResult>;
/**
* A collection of arguments for invoking getService.
*/
export interface GetServiceArgs {
/**
* The service status.
*/
enabled?: boolean;
/**
* The service name.
*/
name?: string;
/**
* The region in which to obtain the V3 Keystone client.
* If omitted, the `region` argument of the provider is used.
*/
region?: string;
/**
* The service type.
*/
type?: string;
}
/**
* A collection of values returned by getService.
*/
export interface GetServiceResult {
/**
* The service description.
*/
readonly description: 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 name?: string;
/**
* See Argument Reference above.
*/
readonly region: string;
/**
* See Argument Reference above.
*/
readonly type?: string;
}
/**
* Use this data source to get the ID of an OpenStack service.
*
* > **Note:** This usually requires admin privileges.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const service1 = openstack.identity.getService({
* name: "keystone",
* });
* ```
*/
export declare function getServiceOutput(args?: GetServiceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetServiceResult>;
/**
* A collection of arguments for invoking getService.
*/
export interface GetServiceOutputArgs {
/**
* The service status.
*/
enabled?: pulumi.Input<boolean>;
/**
* The service name.
*/
name?: 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>;
/**
* The service type.
*/
type?: pulumi.Input<string>;
}