1. Packages
  2. Openstack Provider
  3. API Docs
  4. identity
  5. LimitV3
OpenStack v5.3.1 published on Thursday, Jul 17, 2025 by Pulumi

openstack.identity.LimitV3

Explore with Pulumi AI

openstack logo
OpenStack v5.3.1 published on Thursday, Jul 17, 2025 by Pulumi

    Manages a V3 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 project1 = new openstack.identity.Project("project_1", {name: "project_1"});
    const limit1 = new openstack.identity.LimitV3("limit_1", {
        projectId: project1.id,
        serviceId: glance.then(glance => glance.id),
        resourceName: "image_count_total",
        resourceLimit: 10,
        description: "foo",
    });
    
    import pulumi
    import pulumi_openstack as openstack
    
    glance = openstack.identity.get_service(name="glance")
    project1 = openstack.identity.Project("project_1", name="project_1")
    limit1 = openstack.identity.LimitV3("limit_1",
        project_id=project1.id,
        service_id=glance.id,
        resource_name_="image_count_total",
        resource_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
    		}
    		project1, err := identity.NewProject(ctx, "project_1", &identity.ProjectArgs{
    			Name: pulumi.String("project_1"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = identity.NewLimitV3(ctx, "limit_1", &identity.LimitV3Args{
    			ProjectId:     project1.ID(),
    			ServiceId:     pulumi.String(glance.Id),
    			ResourceName:  pulumi.String("image_count_total"),
    			ResourceLimit: 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 project1 = new OpenStack.Identity.Project("project_1", new()
        {
            Name = "project_1",
        });
    
        var limit1 = new OpenStack.Identity.LimitV3("limit_1", new()
        {
            ProjectId = project1.Id,
            ServiceId = glance.Apply(getServiceResult => getServiceResult.Id),
            ResourceName = "image_count_total",
            ResourceLimit = 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.Project;
    import com.pulumi.openstack.identity.ProjectArgs;
    import com.pulumi.openstack.identity.LimitV3;
    import com.pulumi.openstack.identity.LimitV3Args;
    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 project1 = new Project("project1", ProjectArgs.builder()
                .name("project_1")
                .build());
    
            var limit1 = new LimitV3("limit1", LimitV3Args.builder()
                .projectId(project1.id())
                .serviceId(glance.id())
                .resourceName("image_count_total")
                .resourceLimit(10)
                .description("foo")
                .build());
    
        }
    }
    
    resources:
      project1:
        type: openstack:identity:Project
        name: project_1
        properties:
          name: project_1
      limit1:
        type: openstack:identity:LimitV3
        name: limit_1
        properties:
          projectId: ${project1.id}
          serviceId: ${glance.id}
          resourceName: image_count_total
          resourceLimit: 10
          description: foo
    variables:
      glance:
        fn::invoke:
          function: openstack:identity:getService
          arguments:
            name: glance
    

    Create LimitV3 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LimitV3(name: string, args: LimitV3Args, opts?: CustomResourceOptions);
    @overload
    def LimitV3(resource_name: str,
                args: LimitV3Args,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def LimitV3(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                resource_limit: Optional[int] = None,
                resource_name_: Optional[str] = None,
                service_id: Optional[str] = None,
                description: Optional[str] = None,
                domain_id: Optional[str] = None,
                project_id: Optional[str] = None,
                region: Optional[str] = None)
    func NewLimitV3(ctx *Context, name string, args LimitV3Args, opts ...ResourceOption) (*LimitV3, error)
    public LimitV3(string name, LimitV3Args args, CustomResourceOptions? opts = null)
    public LimitV3(String name, LimitV3Args args)
    public LimitV3(String name, LimitV3Args args, CustomResourceOptions options)
    
    type: openstack:identity:LimitV3
    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 LimitV3Args
    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 LimitV3Args
    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 LimitV3Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LimitV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LimitV3Args
    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 limitV3Resource = new OpenStack.Identity.LimitV3("limitV3Resource", new()
    {
        ResourceLimit = 0,
        ResourceName = "string",
        ServiceId = "string",
        Description = "string",
        DomainId = "string",
        ProjectId = "string",
        Region = "string",
    });
    
    example, err := identity.NewLimitV3(ctx, "limitV3Resource", &identity.LimitV3Args{
    	ResourceLimit: pulumi.Int(0),
    	ResourceName:  pulumi.String("string"),
    	ServiceId:     pulumi.String("string"),
    	Description:   pulumi.String("string"),
    	DomainId:      pulumi.String("string"),
    	ProjectId:     pulumi.String("string"),
    	Region:        pulumi.String("string"),
    })
    
    var limitV3Resource = new LimitV3("limitV3Resource", LimitV3Args.builder()
        .resourceLimit(0)
        .resourceName("string")
        .serviceId("string")
        .description("string")
        .domainId("string")
        .projectId("string")
        .region("string")
        .build());
    
    limit_v3_resource = openstack.identity.LimitV3("limitV3Resource",
        resource_limit=0,
        resource_name_="string",
        service_id="string",
        description="string",
        domain_id="string",
        project_id="string",
        region="string")
    
    const limitV3Resource = new openstack.identity.LimitV3("limitV3Resource", {
        resourceLimit: 0,
        resourceName: "string",
        serviceId: "string",
        description: "string",
        domainId: "string",
        projectId: "string",
        region: "string",
    });
    
    type: openstack:identity:LimitV3
    properties:
        description: string
        domainId: string
        projectId: string
        region: string
        resourceLimit: 0
        resourceName: string
        serviceId: string
    

    LimitV3 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 LimitV3 resource accepts the following input properties:

    ResourceLimit int
    Integer for the actual limit.
    ResourceName string
    The resource that the limit applies to. Changing this creates a new Limit.
    ServiceId string
    The service the limit applies to. Changing this creates a new Limit.
    Description string
    Description of the limit.
    DomainId string
    The domain the limit applies to. Changing this creates a new Limit.
    ProjectId string
    The project the limit applies to. Changing this creates a new 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 Limit.
    ResourceLimit int
    Integer for the actual limit.
    ResourceName string
    The resource that the limit applies to. Changing this creates a new Limit.
    ServiceId string
    The service the limit applies to. Changing this creates a new Limit.
    Description string
    Description of the limit.
    DomainId string
    The domain the limit applies to. Changing this creates a new Limit.
    ProjectId string
    The project the limit applies to. Changing this creates a new 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 Limit.
    resourceLimit Integer
    Integer for the actual limit.
    resourceName String
    The resource that the limit applies to. Changing this creates a new Limit.
    serviceId String
    The service the limit applies to. Changing this creates a new Limit.
    description String
    Description of the limit.
    domainId String
    The domain the limit applies to. Changing this creates a new Limit.
    projectId String
    The project the limit applies to. Changing this creates a new 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 Limit.
    resourceLimit number
    Integer for the actual limit.
    resourceName string
    The resource that the limit applies to. Changing this creates a new Limit.
    serviceId string
    The service the limit applies to. Changing this creates a new Limit.
    description string
    Description of the limit.
    domainId string
    The domain the limit applies to. Changing this creates a new Limit.
    projectId string
    The project the limit applies to. Changing this creates a new 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 Limit.
    resource_limit int
    Integer for the actual limit.
    resource_name str
    The resource that the limit applies to. Changing this creates a new Limit.
    service_id str
    The service the limit applies to. Changing this creates a new Limit.
    description str
    Description of the limit.
    domain_id str
    The domain the limit applies to. Changing this creates a new Limit.
    project_id str
    The project the limit applies to. Changing this creates a new 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 Limit.
    resourceLimit Number
    Integer for the actual limit.
    resourceName String
    The resource that the limit applies to. Changing this creates a new Limit.
    serviceId String
    The service the limit applies to. Changing this creates a new Limit.
    description String
    Description of the limit.
    domainId String
    The domain the limit applies to. Changing this creates a new Limit.
    projectId String
    The project the limit applies to. Changing this creates a new 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 Limit.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LimitV3 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 LimitV3 Resource

    Get an existing LimitV3 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?: LimitV3State, opts?: CustomResourceOptions): LimitV3
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            domain_id: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            resource_limit: Optional[int] = None,
            resource_name: Optional[str] = None,
            service_id: Optional[str] = None) -> LimitV3
    func GetLimitV3(ctx *Context, name string, id IDInput, state *LimitV3State, opts ...ResourceOption) (*LimitV3, error)
    public static LimitV3 Get(string name, Input<string> id, LimitV3State? state, CustomResourceOptions? opts = null)
    public static LimitV3 get(String name, Output<String> id, LimitV3State state, CustomResourceOptions options)
    resources:  _:    type: openstack:identity:LimitV3    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.
    The following state arguments are supported:
    Description string
    Description of the limit.
    DomainId string
    The domain the limit applies to. Changing this creates a new Limit.
    ProjectId string
    The project the limit applies to. Changing this creates a new 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 Limit.
    ResourceLimit int
    Integer for the actual limit.
    ResourceName string
    The resource that the limit applies to. Changing this creates a new Limit.
    ServiceId string
    The service the limit applies to. Changing this creates a new Limit.
    Description string
    Description of the limit.
    DomainId string
    The domain the limit applies to. Changing this creates a new Limit.
    ProjectId string
    The project the limit applies to. Changing this creates a new 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 Limit.
    ResourceLimit int
    Integer for the actual limit.
    ResourceName string
    The resource that the limit applies to. Changing this creates a new Limit.
    ServiceId string
    The service the limit applies to. Changing this creates a new Limit.
    description String
    Description of the limit.
    domainId String
    The domain the limit applies to. Changing this creates a new Limit.
    projectId String
    The project the limit applies to. Changing this creates a new 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 Limit.
    resourceLimit Integer
    Integer for the actual limit.
    resourceName String
    The resource that the limit applies to. Changing this creates a new Limit.
    serviceId String
    The service the limit applies to. Changing this creates a new Limit.
    description string
    Description of the limit.
    domainId string
    The domain the limit applies to. Changing this creates a new Limit.
    projectId string
    The project the limit applies to. Changing this creates a new 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 Limit.
    resourceLimit number
    Integer for the actual limit.
    resourceName string
    The resource that the limit applies to. Changing this creates a new Limit.
    serviceId string
    The service the limit applies to. Changing this creates a new Limit.
    description str
    Description of the limit.
    domain_id str
    The domain the limit applies to. Changing this creates a new Limit.
    project_id str
    The project the limit applies to. Changing this creates a new 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 Limit.
    resource_limit int
    Integer for the actual limit.
    resource_name str
    The resource that the limit applies to. Changing this creates a new Limit.
    service_id str
    The service the limit applies to. Changing this creates a new Limit.
    description String
    Description of the limit.
    domainId String
    The domain the limit applies to. Changing this creates a new Limit.
    projectId String
    The project the limit applies to. Changing this creates a new 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 Limit.
    resourceLimit Number
    Integer for the actual limit.
    resourceName String
    The resource that the limit applies to. Changing this creates a new Limit.
    serviceId String
    The service the limit applies to. Changing this creates a new Limit.

    Import

    Limits can be imported using the id, e.g.

    $ pulumi import openstack:identity/limitV3:LimitV3 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.
    openstack logo
    OpenStack v5.3.1 published on Thursday, Jul 17, 2025 by Pulumi