1. Packages
  2. Packages
  3. DataRobot
  4. API Docs
  5. Quota
Viewing docs for DataRobot v0.10.43
published on Thursday, Jul 16, 2026 by DataRobot, Inc.
datarobot logo
Viewing docs for DataRobot v0.10.43
published on Thursday, Jul 16, 2026 by DataRobot, Inc.

    A usage quota governing a DataRobot resource (e.g. a Deployment). The default rules cap throughput per time window and apply to every consumer. There is at most one quota per resource; changing the resource it governs forces a new quota.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datarobot from "@datarobot/pulumi-datarobot";
    
    const example = new datarobot.Quota("example", {
        resourceId: "5e7e6a3f8e7d8c0001a1b2c3",
        resourceType: "deployment",
        defaultRules: [
            {
                rule: "requests",
                limit: 750,
                window: "day",
            },
            {
                rule: "token",
                limit: 100000000,
                window: "day",
            },
        ],
    });
    export const exampleId = example.id;
    
    import pulumi
    import pulumi_datarobot as datarobot
    
    example = datarobot.Quota("example",
        resource_id="5e7e6a3f8e7d8c0001a1b2c3",
        resource_type="deployment",
        default_rules=[
            {
                "rule": "requests",
                "limit": 750,
                "window": "day",
            },
            {
                "rule": "token",
                "limit": 100000000,
                "window": "day",
            },
        ])
    pulumi.export("exampleId", example.id)
    
    package main
    
    import (
    	"github.com/datarobot-community/pulumi-datarobot/sdk/go/datarobot"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := datarobot.NewQuota(ctx, "example", &datarobot.QuotaArgs{
    			ResourceId:   pulumi.String("5e7e6a3f8e7d8c0001a1b2c3"),
    			ResourceType: pulumi.String("deployment"),
    			DefaultRules: datarobot.QuotaDefaultRuleArray{
    				&datarobot.QuotaDefaultRuleArgs{
    					Rule:   pulumi.String("requests"),
    					Limit:  pulumi.Int(750),
    					Window: pulumi.String("day"),
    				},
    				&datarobot.QuotaDefaultRuleArgs{
    					Rule:   pulumi.String("token"),
    					Limit:  pulumi.Int(100000000),
    					Window: pulumi.String("day"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("exampleId", example.ID())
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datarobot = DataRobotPulumi.Datarobot;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Datarobot.Quota("example", new()
        {
            ResourceId = "5e7e6a3f8e7d8c0001a1b2c3",
            ResourceType = "deployment",
            DefaultRules = new[]
            {
                new Datarobot.Inputs.QuotaDefaultRuleArgs
                {
                    Rule = "requests",
                    Limit = 750,
                    Window = "day",
                },
                new Datarobot.Inputs.QuotaDefaultRuleArgs
                {
                    Rule = "token",
                    Limit = 100000000,
                    Window = "day",
                },
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["exampleId"] = example.Id,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datarobot.Quota;
    import com.pulumi.datarobot.QuotaArgs;
    import com.pulumi.datarobot.inputs.QuotaDefaultRuleArgs;
    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 example = new Quota("example", QuotaArgs.builder()
                .resourceId("5e7e6a3f8e7d8c0001a1b2c3")
                .resourceType("deployment")
                .defaultRules(            
                    QuotaDefaultRuleArgs.builder()
                        .rule("requests")
                        .limit(750)
                        .window("day")
                        .build(),
                    QuotaDefaultRuleArgs.builder()
                        .rule("token")
                        .limit(100000000)
                        .window("day")
                        .build())
                .build());
    
            ctx.export("exampleId", example.id());
        }
    }
    
    resources:
      example:
        type: datarobot:Quota
        properties:
          # The id of the resource the quota applies to (a deployment id by default).
          resourceId: 5e7e6a3f8e7d8c0001a1b2c3
          resourceType: deployment
          defaultRules:
            - rule: requests
              limit: 750
              window: day
            - rule: token
              limit: 1e+08
              window: day
    outputs:
      exampleId: ${example.id}
    
    Example coming soon!
    

    Create Quota Resource

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

    Constructor syntax

    new Quota(name: string, args: QuotaArgs, opts?: CustomResourceOptions);
    @overload
    def Quota(resource_name: str,
              args: QuotaArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Quota(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              default_rules: Optional[Sequence[QuotaDefaultRuleArgs]] = None,
              resource_id: Optional[str] = None,
              resource_type: Optional[str] = None)
    func NewQuota(ctx *Context, name string, args QuotaArgs, opts ...ResourceOption) (*Quota, error)
    public Quota(string name, QuotaArgs args, CustomResourceOptions? opts = null)
    public Quota(String name, QuotaArgs args)
    public Quota(String name, QuotaArgs args, CustomResourceOptions options)
    
    type: datarobot:Quota
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "datarobot_quota" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args QuotaArgs
    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 QuotaArgs
    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 QuotaArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args QuotaArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args QuotaArgs
    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 quotaResource = new Datarobot.Quota("quotaResource", new()
    {
        DefaultRules = new[]
        {
            new Datarobot.Inputs.QuotaDefaultRuleArgs
            {
                Limit = 0,
                Rule = "string",
                Window = "string",
            },
        },
        ResourceId = "string",
        ResourceType = "string",
    });
    
    example, err := datarobot.NewQuota(ctx, "quotaResource", &datarobot.QuotaArgs{
    	DefaultRules: datarobot.QuotaDefaultRuleArray{
    		&datarobot.QuotaDefaultRuleArgs{
    			Limit:  pulumi.Int(0),
    			Rule:   pulumi.String("string"),
    			Window: pulumi.String("string"),
    		},
    	},
    	ResourceId:   pulumi.String("string"),
    	ResourceType: pulumi.String("string"),
    })
    
    resource "datarobot_quota" "quotaResource" {
      lifecycle {
        create_before_destroy = true
      }
      default_rules {
        limit  = 0
        rule   = "string"
        window = "string"
      }
      resource_id   = "string"
      resource_type = "string"
    }
    
    var quotaResource = new Quota("quotaResource", QuotaArgs.builder()
        .defaultRules(QuotaDefaultRuleArgs.builder()
            .limit(0)
            .rule("string")
            .window("string")
            .build())
        .resourceId("string")
        .resourceType("string")
        .build());
    
    quota_resource = datarobot.Quota("quotaResource",
        default_rules=[{
            "limit": 0,
            "rule": "string",
            "window": "string",
        }],
        resource_id="string",
        resource_type="string")
    
    const quotaResource = new datarobot.Quota("quotaResource", {
        defaultRules: [{
            limit: 0,
            rule: "string",
            window: "string",
        }],
        resourceId: "string",
        resourceType: "string",
    });
    
    type: datarobot:Quota
    properties:
        defaultRules:
            - limit: 0
              rule: string
              window: string
        resourceId: string
        resourceType: string
    

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

    DefaultRules List<DataRobotQuotaDefaultRule>
    The default rate-limit rules applied to all consumers.
    ResourceId string
    The ID of the resource (e.g. the Deployment) the quota governs.
    ResourceType string
    The type of resource the quota governs. Defaults to deployment.
    DefaultRules []QuotaDefaultRuleArgs
    The default rate-limit rules applied to all consumers.
    ResourceId string
    The ID of the resource (e.g. the Deployment) the quota governs.
    ResourceType string
    The type of resource the quota governs. Defaults to deployment.
    default_rules list(object)
    The default rate-limit rules applied to all consumers.
    resource_id string
    The ID of the resource (e.g. the Deployment) the quota governs.
    resource_type string
    The type of resource the quota governs. Defaults to deployment.
    defaultRules List<QuotaDefaultRule>
    The default rate-limit rules applied to all consumers.
    resourceId String
    The ID of the resource (e.g. the Deployment) the quota governs.
    resourceType String
    The type of resource the quota governs. Defaults to deployment.
    defaultRules QuotaDefaultRule[]
    The default rate-limit rules applied to all consumers.
    resourceId string
    The ID of the resource (e.g. the Deployment) the quota governs.
    resourceType string
    The type of resource the quota governs. Defaults to deployment.
    default_rules Sequence[QuotaDefaultRuleArgs]
    The default rate-limit rules applied to all consumers.
    resource_id str
    The ID of the resource (e.g. the Deployment) the quota governs.
    resource_type str
    The type of resource the quota governs. Defaults to deployment.
    defaultRules List<Property Map>
    The default rate-limit rules applied to all consumers.
    resourceId String
    The ID of the resource (e.g. the Deployment) the quota governs.
    resourceType String
    The type of resource the quota governs. Defaults to deployment.

    Outputs

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

    Get an existing Quota 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?: QuotaState, opts?: CustomResourceOptions): Quota
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            default_rules: Optional[Sequence[QuotaDefaultRuleArgs]] = None,
            resource_id: Optional[str] = None,
            resource_type: Optional[str] = None) -> Quota
    func GetQuota(ctx *Context, name string, id IDInput, state *QuotaState, opts ...ResourceOption) (*Quota, error)
    public static Quota Get(string name, Input<string> id, QuotaState? state, CustomResourceOptions? opts = null)
    public static Quota get(String name, Output<String> id, QuotaState state, CustomResourceOptions options)
    resources:  _:    type: datarobot:Quota    get:      id: ${id}
    import {
      to = datarobot_quota.example
      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:
    DefaultRules List<DataRobotQuotaDefaultRule>
    The default rate-limit rules applied to all consumers.
    ResourceId string
    The ID of the resource (e.g. the Deployment) the quota governs.
    ResourceType string
    The type of resource the quota governs. Defaults to deployment.
    DefaultRules []QuotaDefaultRuleArgs
    The default rate-limit rules applied to all consumers.
    ResourceId string
    The ID of the resource (e.g. the Deployment) the quota governs.
    ResourceType string
    The type of resource the quota governs. Defaults to deployment.
    default_rules list(object)
    The default rate-limit rules applied to all consumers.
    resource_id string
    The ID of the resource (e.g. the Deployment) the quota governs.
    resource_type string
    The type of resource the quota governs. Defaults to deployment.
    defaultRules List<QuotaDefaultRule>
    The default rate-limit rules applied to all consumers.
    resourceId String
    The ID of the resource (e.g. the Deployment) the quota governs.
    resourceType String
    The type of resource the quota governs. Defaults to deployment.
    defaultRules QuotaDefaultRule[]
    The default rate-limit rules applied to all consumers.
    resourceId string
    The ID of the resource (e.g. the Deployment) the quota governs.
    resourceType string
    The type of resource the quota governs. Defaults to deployment.
    default_rules Sequence[QuotaDefaultRuleArgs]
    The default rate-limit rules applied to all consumers.
    resource_id str
    The ID of the resource (e.g. the Deployment) the quota governs.
    resource_type str
    The type of resource the quota governs. Defaults to deployment.
    defaultRules List<Property Map>
    The default rate-limit rules applied to all consumers.
    resourceId String
    The ID of the resource (e.g. the Deployment) the quota governs.
    resourceType String
    The type of resource the quota governs. Defaults to deployment.

    Supporting Types

    QuotaDefaultRule, QuotaDefaultRuleArgs

    Limit int
    The maximum allowed for rule within window.
    Rule string
    The metric the rule limits, e.g. requests or token.
    Window string
    The time window the limit applies to: min, hour, or day.
    Limit int
    The maximum allowed for rule within window.
    Rule string
    The metric the rule limits, e.g. requests or token.
    Window string
    The time window the limit applies to: min, hour, or day.
    limit number
    The maximum allowed for rule within window.
    rule string
    The metric the rule limits, e.g. requests or token.
    window string
    The time window the limit applies to: min, hour, or day.
    limit Integer
    The maximum allowed for rule within window.
    rule String
    The metric the rule limits, e.g. requests or token.
    window String
    The time window the limit applies to: min, hour, or day.
    limit number
    The maximum allowed for rule within window.
    rule string
    The metric the rule limits, e.g. requests or token.
    window string
    The time window the limit applies to: min, hour, or day.
    limit int
    The maximum allowed for rule within window.
    rule str
    The metric the rule limits, e.g. requests or token.
    window str
    The time window the limit applies to: min, hour, or day.
    limit Number
    The maximum allowed for rule within window.
    rule String
    The metric the rule limits, e.g. requests or token.
    window String
    The time window the limit applies to: min, hour, or day.

    Package Details

    Repository
    datarobot datarobot-community/pulumi-datarobot
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the datarobot Terraform Provider.
    datarobot logo
    Viewing docs for DataRobot v0.10.43
    published on Thursday, Jul 16, 2026 by DataRobot, Inc.

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial