GetService

Use this data source to get the ID of an OpenStack service.

Note: This usually requires admin privileges.

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var service1 = Output.Create(OpenStack.Identity.GetService.InvokeAsync(new OpenStack.Identity.GetServiceArgs
        {
            Name = "keystone",
        }));
    }

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

service1 = openstack.identity.get_service(name="keystone")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const service1 = pulumi.output(openstack.identity.getService({
    name: "keystone",
}, { async: true }));

Using GetService

function getService(args: GetServiceArgs, opts?: InvokeOptions): Promise<GetServiceResult>
function  get_service(enabled=None, name=None, region=None, type=None, opts=None)
func GetService(ctx *Context, args *GetServiceArgs, opts ...InvokeOption) (*GetServiceResult, error)
public static class GetService {
    public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Enabled bool

The service status.

Name string

The service name.

Region string

The region in which to obtain the V3 Keystone client. If omitted, the region argument of the provider is used.

Type string

The service type.

Enabled bool

The service status.

Name string

The service name.

Region string

The region in which to obtain the V3 Keystone client. If omitted, the region argument of the provider is used.

Type string

The service type.

enabled boolean

The service status.

name string

The service name.

region string

The region in which to obtain the V3 Keystone client. If omitted, the region argument of the provider is used.

type string

The service type.

enabled bool

The service status.

name str

The service name.

region str

The region in which to obtain the V3 Keystone client. If omitted, the region argument of the provider is used.

type str

The service type.

GetService Result

The following output properties are available:

Description string

The service description.

Id string

The provider-assigned unique ID for this managed resource.

Region string

See Argument Reference above.

Enabled bool

See Argument Reference above.

Name string

See Argument Reference above.

Type string

See Argument Reference above.

Description string

The service description.

Id string

The provider-assigned unique ID for this managed resource.

Region string

See Argument Reference above.

Enabled bool

See Argument Reference above.

Name string

See Argument Reference above.

Type string

See Argument Reference above.

description string

The service description.

id string

The provider-assigned unique ID for this managed resource.

region string

See Argument Reference above.

enabled boolean

See Argument Reference above.

name string

See Argument Reference above.

type string

See Argument Reference above.

description str

The service description.

id str

The provider-assigned unique ID for this managed resource.

region str

See Argument Reference above.

enabled bool

See Argument Reference above.

name str

See Argument Reference above.

type str

See Argument Reference above.

Package Details

Repository
https://github.com/pulumi/pulumi-openstack
License
Apache-2.0
Notes
This Pulumi package is based on the openstack Terraform Provider.