openstack.identity.ServiceV3
Explore with Pulumi AI
Manages a V3 Service resource within OpenStack Keystone.
Note: This usually requires admin privileges.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const service1 = new openstack.identity.ServiceV3("service_1", {
name: "custom",
type: "custom",
});
import pulumi
import pulumi_openstack as openstack
service1 = openstack.identity.ServiceV3("service_1",
name="custom",
type="custom")
package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v5/go/openstack/identity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := identity.NewServiceV3(ctx, "service_1", &identity.ServiceV3Args{
Name: pulumi.String("custom"),
Type: pulumi.String("custom"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using OpenStack = Pulumi.OpenStack;
return await Deployment.RunAsync(() =>
{
var service1 = new OpenStack.Identity.ServiceV3("service_1", new()
{
Name = "custom",
Type = "custom",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.identity.ServiceV3;
import com.pulumi.openstack.identity.ServiceV3Args;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var service1 = new ServiceV3("service1", ServiceV3Args.builder()
.name("custom")
.type("custom")
.build());
}
}
resources:
service1:
type: openstack:identity:ServiceV3
name: service_1
properties:
name: custom
type: custom
Create ServiceV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServiceV3(name: string, args: ServiceV3Args, opts?: CustomResourceOptions);
@overload
def ServiceV3(resource_name: str,
args: ServiceV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def ServiceV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
type: Optional[str] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
name: Optional[str] = None,
region: Optional[str] = None)
func NewServiceV3(ctx *Context, name string, args ServiceV3Args, opts ...ResourceOption) (*ServiceV3, error)
public ServiceV3(string name, ServiceV3Args args, CustomResourceOptions? opts = null)
public ServiceV3(String name, ServiceV3Args args)
public ServiceV3(String name, ServiceV3Args args, CustomResourceOptions options)
type: openstack:identity:ServiceV3
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ServiceV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ServiceV3Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServiceV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceV3Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var serviceV3Resource = new OpenStack.Identity.ServiceV3("serviceV3Resource", new()
{
Type = "string",
Description = "string",
Enabled = false,
Name = "string",
Region = "string",
});
example, err := identity.NewServiceV3(ctx, "serviceV3Resource", &identity.ServiceV3Args{
Type: pulumi.String("string"),
Description: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
})
var serviceV3Resource = new ServiceV3("serviceV3Resource", ServiceV3Args.builder()
.type("string")
.description("string")
.enabled(false)
.name("string")
.region("string")
.build());
service_v3_resource = openstack.identity.ServiceV3("serviceV3Resource",
type="string",
description="string",
enabled=False,
name="string",
region="string")
const serviceV3Resource = new openstack.identity.ServiceV3("serviceV3Resource", {
type: "string",
description: "string",
enabled: false,
name: "string",
region: "string",
});
type: openstack:identity:ServiceV3
properties:
description: string
enabled: false
name: string
region: string
type: string
ServiceV3 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ServiceV3 resource accepts the following input properties:
- Type string
- The service type.
- Description string
- The service description.
- Enabled bool
- The service status. Defaults to
true
. - 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.
- Description string
- The service description.
- Enabled bool
- The service status. Defaults to
true
. - 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.
- description String
- The service description.
- enabled Boolean
- The service status. Defaults to
true
. - 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.
- description string
- The service description.
- enabled boolean
- The service status. Defaults to
true
. - 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 str
- The service type.
- description str
- The service description.
- enabled bool
- The service status. Defaults to
true
. - 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 String
- The service type.
- description String
- The service description.
- enabled Boolean
- The service status. Defaults to
true
. - 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceV3 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ServiceV3 Resource
Get an existing ServiceV3 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ServiceV3State, opts?: CustomResourceOptions): ServiceV3
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
name: Optional[str] = None,
region: Optional[str] = None,
type: Optional[str] = None) -> ServiceV3
func GetServiceV3(ctx *Context, name string, id IDInput, state *ServiceV3State, opts ...ResourceOption) (*ServiceV3, error)
public static ServiceV3 Get(string name, Input<string> id, ServiceV3State? state, CustomResourceOptions? opts = null)
public static ServiceV3 get(String name, Output<String> id, ServiceV3State state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Description string
- The service description.
- Enabled bool
- The service status. Defaults to
true
. - 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.
- Description string
- The service description.
- Enabled bool
- The service status. Defaults to
true
. - 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.
- description String
- The service description.
- enabled Boolean
- The service status. Defaults to
true
. - 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.
- description string
- The service description.
- enabled boolean
- The service status. Defaults to
true
. - 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.
- description str
- The service description.
- enabled bool
- The service status. Defaults to
true
. - 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.
- description String
- The service description.
- enabled Boolean
- The service status. Defaults to
true
. - 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.
Import
Services can be imported using the id
, e.g.
$ pulumi import openstack:identity/serviceV3:ServiceV3 service_1 6688e967-158a-496f-a224-cae3414e6b61
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- OpenStack pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstack
Terraform Provider.