openstack.identity.RegisteredLimitV3
Explore with Pulumi AI
Manages a V3 Registered Limit resource within OpenStack Keystone.
Note: You must have admin privileges in your OpenStack cloud to use this resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const glance = openstack.identity.getService({
name: "glance",
});
const limit1 = new openstack.identity.RegisteredLimitV3("limit_1", {
serviceId: glance.then(glance => glance.id),
resourceName: "image_count_total",
defaultLimit: 10,
description: "foo",
});
import pulumi
import pulumi_openstack as openstack
glance = openstack.identity.get_service(name="glance")
limit1 = openstack.identity.RegisteredLimitV3("limit_1",
service_id=glance.id,
resource_name_="image_count_total",
default_limit=10,
description="foo")
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 {
glance, err := identity.GetService(ctx, &identity.GetServiceArgs{
Name: pulumi.StringRef("glance"),
}, nil)
if err != nil {
return err
}
_, err = identity.NewRegisteredLimitV3(ctx, "limit_1", &identity.RegisteredLimitV3Args{
ServiceId: pulumi.String(glance.Id),
ResourceName: pulumi.String("image_count_total"),
DefaultLimit: pulumi.Int(10),
Description: pulumi.String("foo"),
})
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 glance = OpenStack.Identity.GetService.Invoke(new()
{
Name = "glance",
});
var limit1 = new OpenStack.Identity.RegisteredLimitV3("limit_1", new()
{
ServiceId = glance.Apply(getServiceResult => getServiceResult.Id),
ResourceName = "image_count_total",
DefaultLimit = 10,
Description = "foo",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.identity.IdentityFunctions;
import com.pulumi.openstack.identity.inputs.GetServiceArgs;
import com.pulumi.openstack.identity.RegisteredLimitV3;
import com.pulumi.openstack.identity.RegisteredLimitV3Args;
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) {
final var glance = IdentityFunctions.getService(GetServiceArgs.builder()
.name("glance")
.build());
var limit1 = new RegisteredLimitV3("limit1", RegisteredLimitV3Args.builder()
.serviceId(glance.id())
.resourceName("image_count_total")
.defaultLimit(10)
.description("foo")
.build());
}
}
resources:
limit1:
type: openstack:identity:RegisteredLimitV3
name: limit_1
properties:
serviceId: ${glance.id}
resourceName: image_count_total
defaultLimit: 10
description: foo
variables:
glance:
fn::invoke:
function: openstack:identity:getService
arguments:
name: glance
Create RegisteredLimitV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RegisteredLimitV3(name: string, args: RegisteredLimitV3Args, opts?: CustomResourceOptions);
@overload
def RegisteredLimitV3(resource_name: str,
args: RegisteredLimitV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def RegisteredLimitV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
default_limit: Optional[int] = None,
resource_name_: Optional[str] = None,
service_id: Optional[str] = None,
description: Optional[str] = None,
region: Optional[str] = None)
func NewRegisteredLimitV3(ctx *Context, name string, args RegisteredLimitV3Args, opts ...ResourceOption) (*RegisteredLimitV3, error)
public RegisteredLimitV3(string name, RegisteredLimitV3Args args, CustomResourceOptions? opts = null)
public RegisteredLimitV3(String name, RegisteredLimitV3Args args)
public RegisteredLimitV3(String name, RegisteredLimitV3Args args, CustomResourceOptions options)
type: openstack:identity:RegisteredLimitV3
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 RegisteredLimitV3Args
- 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 RegisteredLimitV3Args
- 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 RegisteredLimitV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RegisteredLimitV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RegisteredLimitV3Args
- 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 registeredLimitV3Resource = new OpenStack.Identity.RegisteredLimitV3("registeredLimitV3Resource", new()
{
DefaultLimit = 0,
ResourceName = "string",
ServiceId = "string",
Description = "string",
Region = "string",
});
example, err := identity.NewRegisteredLimitV3(ctx, "registeredLimitV3Resource", &identity.RegisteredLimitV3Args{
DefaultLimit: pulumi.Int(0),
ResourceName: pulumi.String("string"),
ServiceId: pulumi.String("string"),
Description: pulumi.String("string"),
Region: pulumi.String("string"),
})
var registeredLimitV3Resource = new RegisteredLimitV3("registeredLimitV3Resource", RegisteredLimitV3Args.builder()
.defaultLimit(0)
.resourceName("string")
.serviceId("string")
.description("string")
.region("string")
.build());
registered_limit_v3_resource = openstack.identity.RegisteredLimitV3("registeredLimitV3Resource",
default_limit=0,
resource_name_="string",
service_id="string",
description="string",
region="string")
const registeredLimitV3Resource = new openstack.identity.RegisteredLimitV3("registeredLimitV3Resource", {
defaultLimit: 0,
resourceName: "string",
serviceId: "string",
description: "string",
region: "string",
});
type: openstack:identity:RegisteredLimitV3
properties:
defaultLimit: 0
description: string
region: string
resourceName: string
serviceId: string
RegisteredLimitV3 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 RegisteredLimitV3 resource accepts the following input properties:
- Default
Limit int - Integer for the actual limit.
- Resource
Name string - The resource that the limit applies to. On updates, either service_id, resource_name or region_id must be different than existing value otherwise it will raise 409.
- Service
Id string - The service the limit applies to. On updates, either service_id, resource_name or region_id must be different than existing value otherwise it will raise 409.
- Description string
- Description of the limit
- Region string
- The region in which to obtain the V3 Keystone client.
If omitted, the
region
argument of the provider is used. Changing this creates a new registered limit.
- Default
Limit int - Integer for the actual limit.
- Resource
Name string - The resource that the limit applies to. On updates, either service_id, resource_name or region_id must be different than existing value otherwise it will raise 409.
- Service
Id string - The service the limit applies to. On updates, either service_id, resource_name or region_id must be different than existing value otherwise it will raise 409.
- Description string
- Description of the limit
- Region string
- The region in which to obtain the V3 Keystone client.
If omitted, the
region
argument of the provider is used. Changing this creates a new registered limit.
- default
Limit Integer - Integer for the actual limit.
- resource
Name String - The resource that the limit applies to. On updates, either service_id, resource_name or region_id must be different than existing value otherwise it will raise 409.
- service
Id String - The service the limit applies to. On updates, either service_id, resource_name or region_id must be different than existing value otherwise it will raise 409.
- description String
- Description of the limit
- region String
- The region in which to obtain the V3 Keystone client.
If omitted, the
region
argument of the provider is used. Changing this creates a new registered limit.
- default
Limit number - Integer for the actual limit.
- resource
Name string - The resource that the limit applies to. On updates, either service_id, resource_name or region_id must be different than existing value otherwise it will raise 409.
- service
Id string - The service the limit applies to. On updates, either service_id, resource_name or region_id must be different than existing value otherwise it will raise 409.
- description string
- Description of the limit
- region string
- The region in which to obtain the V3 Keystone client.
If omitted, the
region
argument of the provider is used. Changing this creates a new registered limit.
- default_
limit int - Integer for the actual limit.
- resource_
name str - The resource that the limit applies to. On updates, either service_id, resource_name or region_id must be different than existing value otherwise it will raise 409.
- service_
id str - The service the limit applies to. On updates, either service_id, resource_name or region_id must be different than existing value otherwise it will raise 409.
- description str
- Description of the limit
- region str
- The region in which to obtain the V3 Keystone client.
If omitted, the
region
argument of the provider is used. Changing this creates a new registered limit.
- default
Limit Number - Integer for the actual limit.
- resource
Name String - The resource that the limit applies to. On updates, either service_id, resource_name or region_id must be different than existing value otherwise it will raise 409.
- service
Id String - The service the limit applies to. On updates, either service_id, resource_name or region_id must be different than existing value otherwise it will raise 409.
- description String
- Description of the limit
- region String
- The region in which to obtain the V3 Keystone client.
If omitted, the
region
argument of the provider is used. Changing this creates a new registered limit.
Outputs
All input properties are implicitly available as output properties. Additionally, the RegisteredLimitV3 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 RegisteredLimitV3 Resource
Get an existing RegisteredLimitV3 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?: RegisteredLimitV3State, opts?: CustomResourceOptions): RegisteredLimitV3
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
default_limit: Optional[int] = None,
description: Optional[str] = None,
region: Optional[str] = None,
resource_name: Optional[str] = None,
service_id: Optional[str] = None) -> RegisteredLimitV3
func GetRegisteredLimitV3(ctx *Context, name string, id IDInput, state *RegisteredLimitV3State, opts ...ResourceOption) (*RegisteredLimitV3, error)
public static RegisteredLimitV3 Get(string name, Input<string> id, RegisteredLimitV3State? state, CustomResourceOptions? opts = null)
public static RegisteredLimitV3 get(String name, Output<String> id, RegisteredLimitV3State state, CustomResourceOptions options)
resources: _: type: openstack:identity:RegisteredLimitV3 get: id: ${id}
- 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.
- Default
Limit int - Integer for the actual limit.
- Description string
- Description of the limit
- Region string
- The region in which to obtain the V3 Keystone client.
If omitted, the
region
argument of the provider is used. Changing this creates a new registered limit. - Resource
Name string - The resource that the limit applies to. On updates, either service_id, resource_name or region_id must be different than existing value otherwise it will raise 409.
- Service
Id string - The service the limit applies to. On updates, either service_id, resource_name or region_id must be different than existing value otherwise it will raise 409.
- Default
Limit int - Integer for the actual limit.
- Description string
- Description of the limit
- Region string
- The region in which to obtain the V3 Keystone client.
If omitted, the
region
argument of the provider is used. Changing this creates a new registered limit. - Resource
Name string - The resource that the limit applies to. On updates, either service_id, resource_name or region_id must be different than existing value otherwise it will raise 409.
- Service
Id string - The service the limit applies to. On updates, either service_id, resource_name or region_id must be different than existing value otherwise it will raise 409.
- default
Limit Integer - Integer for the actual limit.
- description String
- Description of the limit
- region String
- The region in which to obtain the V3 Keystone client.
If omitted, the
region
argument of the provider is used. Changing this creates a new registered limit. - resource
Name String - The resource that the limit applies to. On updates, either service_id, resource_name or region_id must be different than existing value otherwise it will raise 409.
- service
Id String - The service the limit applies to. On updates, either service_id, resource_name or region_id must be different than existing value otherwise it will raise 409.
- default
Limit number - Integer for the actual limit.
- description string
- Description of the limit
- region string
- The region in which to obtain the V3 Keystone client.
If omitted, the
region
argument of the provider is used. Changing this creates a new registered limit. - resource
Name string - The resource that the limit applies to. On updates, either service_id, resource_name or region_id must be different than existing value otherwise it will raise 409.
- service
Id string - The service the limit applies to. On updates, either service_id, resource_name or region_id must be different than existing value otherwise it will raise 409.
- default_
limit int - Integer for the actual limit.
- description str
- Description of the limit
- region str
- The region in which to obtain the V3 Keystone client.
If omitted, the
region
argument of the provider is used. Changing this creates a new registered limit. - resource_
name str - The resource that the limit applies to. On updates, either service_id, resource_name or region_id must be different than existing value otherwise it will raise 409.
- service_
id str - The service the limit applies to. On updates, either service_id, resource_name or region_id must be different than existing value otherwise it will raise 409.
- default
Limit Number - Integer for the actual limit.
- description String
- Description of the limit
- region String
- The region in which to obtain the V3 Keystone client.
If omitted, the
region
argument of the provider is used. Changing this creates a new registered limit. - resource
Name String - The resource that the limit applies to. On updates, either service_id, resource_name or region_id must be different than existing value otherwise it will raise 409.
- service
Id String - The service the limit applies to. On updates, either service_id, resource_name or region_id must be different than existing value otherwise it will raise 409.
Import
Registered Limits can be imported using the id
, e.g.
$ pulumi import openstack:identity/registeredLimitV3:RegisteredLimitV3 limit_1 89c60255-9bd6-460c-822a-e2b959ede9d2
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.