published on Thursday, Jul 16, 2026 by DataRobot, Inc.
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)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:
- Default
Rules List<DataRobot Quota Default Rule> - 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.
- Default
Rules []QuotaDefault Rule Args - 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.
- 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.
- default
Rules List<QuotaDefault Rule> - 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.
- default
Rules QuotaDefault Rule[] - 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.
- default_
rules Sequence[QuotaDefault Rule Args] - 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.
- default
Rules List<Property Map> - 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.
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) -> Quotafunc 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.
- Default
Rules List<DataRobot Quota Default Rule> - 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.
- Default
Rules []QuotaDefault Rule Args - 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.
- 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.
- default
Rules List<QuotaDefault Rule> - 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.
- default
Rules QuotaDefault Rule[] - 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.
- default_
rules Sequence[QuotaDefault Rule Args] - 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.
- default
Rules List<Property Map> - 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.
Supporting Types
QuotaDefaultRule, QuotaDefaultRuleArgs
Package Details
- Repository
- datarobot datarobot-community/pulumi-datarobot
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datarobotTerraform Provider.
published on Thursday, Jul 16, 2026 by DataRobot, Inc.