Viewing docs for MongoDB Atlas v4.15.0
published on Friday, Aug 28, 2026 by Pulumi
published on Friday, Aug 28, 2026 by Pulumi
Viewing docs for MongoDB Atlas v4.15.0
published on Friday, Aug 28, 2026 by Pulumi
published on Friday, Aug 28, 2026 by Pulumi
mongodbatlas.getAiModelRateLimits returns all AI Model Rate Limits for the specified Project.
Example Usage
S
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const thisAiModelRateLimit = new mongodbatlas.AiModelRateLimit("this", {
projectId: projectId,
cloud: "ANY",
geography: "ANY",
modelGroupName: "embed_large",
requestsPerMinuteLimit: 100,
tokensPerMinuteLimit: 10000,
});
const _this = mongodbatlas.getAiModelRateLimitOutput({
projectId: projectId,
cloud: "ANY",
geography: "ANY",
modelGroupName: thisAiModelRateLimit.modelGroupName,
});
const thisGetAiModelRateLimits = mongodbatlas.getAiModelRateLimits({
projectId: projectId,
});
export const aiModelRateLimitRequestsPerMinute = thisAiModelRateLimit.requestsPerMinuteLimit;
export const aiModelRateLimitTokensPerMinute = thisAiModelRateLimit.tokensPerMinuteLimit;
export const aiModelRateLimitModelNames = _this.modelNames;
export const aiModelRateLimitEndpoint = _this.endpoint;
export const aiModelRateLimitsResults = thisGetAiModelRateLimits.then(thisGetAiModelRateLimits => thisGetAiModelRateLimits.results);
import pulumi
import pulumi_mongodbatlas as mongodbatlas
this_ai_model_rate_limit = mongodbatlas.AiModelRateLimit("this",
project_id=project_id,
cloud="ANY",
geography="ANY",
model_group_name="embed_large",
requests_per_minute_limit=100,
tokens_per_minute_limit=10000)
this = mongodbatlas.get_ai_model_rate_limit_output(project_id=project_id,
cloud="ANY",
geography="ANY",
model_group_name=this_ai_model_rate_limit.model_group_name)
this_get_ai_model_rate_limits = mongodbatlas.get_ai_model_rate_limits(project_id=project_id)
pulumi.export("aiModelRateLimitRequestsPerMinute", this_ai_model_rate_limit.requests_per_minute_limit)
pulumi.export("aiModelRateLimitTokensPerMinute", this_ai_model_rate_limit.tokens_per_minute_limit)
pulumi.export("aiModelRateLimitModelNames", this.model_names)
pulumi.export("aiModelRateLimitEndpoint", this.endpoint)
pulumi.export("aiModelRateLimitsResults", this_get_ai_model_rate_limits.results)
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/v4/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
thisAiModelRateLimit, err := mongodbatlas.NewAiModelRateLimit(ctx, "this", &mongodbatlas.AiModelRateLimitArgs{
ProjectId: pulumi.Any(projectId),
Cloud: pulumi.String("ANY"),
Geography: pulumi.String("ANY"),
ModelGroupName: pulumi.String("embed_large"),
RequestsPerMinuteLimit: pulumi.Int(100),
TokensPerMinuteLimit: pulumi.Int(10000),
})
if err != nil {
return err
}
this := mongodbatlas.GetAiModelRateLimitOutput(ctx, mongodbatlas.GetAiModelRateLimitOutputArgs{
ProjectId: pulumi.Any(projectId),
Cloud: pulumi.String("ANY"),
Geography: pulumi.String("ANY"),
ModelGroupName: thisAiModelRateLimit.ModelGroupName,
}, nil)
thisGetAiModelRateLimits, err := mongodbatlas.GetAiModelRateLimits(ctx, &mongodbatlas.LookupAiModelRateLimitsArgs{
ProjectId: projectId,
}, nil)
if err != nil {
return err
}
ctx.Export("aiModelRateLimitRequestsPerMinute", thisAiModelRateLimit.RequestsPerMinuteLimit)
ctx.Export("aiModelRateLimitTokensPerMinute", thisAiModelRateLimit.TokensPerMinuteLimit)
ctx.Export("aiModelRateLimitModelNames", this.ModelNames())
ctx.Export("aiModelRateLimitEndpoint", this.Endpoint())
ctx.Export("aiModelRateLimitsResults", thisGetAiModelRateLimits.Results)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var thisAiModelRateLimit = new Mongodbatlas.AiModelRateLimit("this", new()
{
ProjectId = projectId,
Cloud = "ANY",
Geography = "ANY",
ModelGroupName = "embed_large",
RequestsPerMinuteLimit = 100,
TokensPerMinuteLimit = 10000,
});
var @this = Mongodbatlas.GetAiModelRateLimit.Invoke(new()
{
ProjectId = projectId,
Cloud = "ANY",
Geography = "ANY",
ModelGroupName = thisAiModelRateLimit.ModelGroupName,
});
var thisGetAiModelRateLimits = Mongodbatlas.GetAiModelRateLimits.Invoke(new()
{
ProjectId = projectId,
});
return new Dictionary<string, object?>
{
["aiModelRateLimitRequestsPerMinute"] = thisAiModelRateLimit.RequestsPerMinuteLimit,
["aiModelRateLimitTokensPerMinute"] = thisAiModelRateLimit.TokensPerMinuteLimit,
["aiModelRateLimitModelNames"] = @this.Apply(@this => @this.Apply(getAiModelRateLimitResult => getAiModelRateLimitResult.ModelNames)),
["aiModelRateLimitEndpoint"] = @this.Apply(@this => @this.Apply(getAiModelRateLimitResult => getAiModelRateLimitResult.Endpoint)),
["aiModelRateLimitsResults"] = thisGetAiModelRateLimits.Apply(getAiModelRateLimitsResult => getAiModelRateLimitsResult.Results),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.AiModelRateLimit;
import com.pulumi.mongodbatlas.AiModelRateLimitArgs;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetAiModelRateLimitArgs;
import com.pulumi.mongodbatlas.inputs.GetAiModelRateLimitsArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 thisAiModelRateLimit = new AiModelRateLimit("thisAiModelRateLimit", AiModelRateLimitArgs.builder()
.projectId(projectId)
.cloud("ANY")
.geography("ANY")
.modelGroupName("embed_large")
.requestsPerMinuteLimit(100)
.tokensPerMinuteLimit(10000)
.build());
final var this = MongodbatlasFunctions.getAiModelRateLimit(GetAiModelRateLimitArgs.builder()
.projectId(projectId)
.cloud("ANY")
.geography("ANY")
.modelGroupName(thisAiModelRateLimit.modelGroupName())
.build());
final var thisGetAiModelRateLimits = MongodbatlasFunctions.getAiModelRateLimits(GetAiModelRateLimitsArgs.builder()
.projectId(projectId)
.build());
ctx.export("aiModelRateLimitRequestsPerMinute", thisAiModelRateLimit.requestsPerMinuteLimit());
ctx.export("aiModelRateLimitTokensPerMinute", thisAiModelRateLimit.tokensPerMinuteLimit());
ctx.export("aiModelRateLimitModelNames", this_.applyValue(_this_ -> _this_.modelNames()));
ctx.export("aiModelRateLimitEndpoint", this_.applyValue(_this_ -> _this_.endpoint()));
ctx.export("aiModelRateLimitsResults", thisGetAiModelRateLimits.results());
}
}
resources:
thisAiModelRateLimit:
type: mongodbatlas:AiModelRateLimit
name: this
properties:
projectId: ${projectId}
cloud: ANY
geography: ANY
modelGroupName: embed_large
requestsPerMinuteLimit: 100
tokensPerMinuteLimit: 10000
variables:
this:
fn::invoke:
function: mongodbatlas:getAiModelRateLimit
arguments:
projectId: ${projectId}
cloud: ANY
geography: ANY
modelGroupName: ${thisAiModelRateLimit.modelGroupName}
thisGetAiModelRateLimits:
fn::invoke:
function: mongodbatlas:getAiModelRateLimits
arguments:
projectId: ${projectId}
outputs:
aiModelRateLimitRequestsPerMinute: ${thisAiModelRateLimit.requestsPerMinuteLimit}
aiModelRateLimitTokensPerMinute: ${thisAiModelRateLimit.tokensPerMinuteLimit}
aiModelRateLimitModelNames: ${this.modelNames}
aiModelRateLimitEndpoint: ${this.endpoint}
aiModelRateLimitsResults: ${thisGetAiModelRateLimits.results}
pulumi {
required_providers {
mongodbatlas = {
source = "pulumi/mongodbatlas"
}
}
}
data "mongodbatlas_getaimodelratelimit" "this" {
project_id = projectId
cloud = "ANY"
geography = "ANY"
model_group_name = mongodbatlas_aimodelratelimit.this.model_group_name
}
data "mongodbatlas_getaimodelratelimits" "thisGetAiModelRateLimits" {
project_id = projectId
}
resource "mongodbatlas_aimodelratelimit" "this" {
project_id = projectId
cloud = "ANY"
geography = "ANY"
model_group_name = "embed_large"
requests_per_minute_limit = 100
tokens_per_minute_limit = 10000
}
output "aiModelRateLimitRequestsPerMinute" {
value = mongodbatlas_aimodelratelimit.this.requests_per_minute_limit
}
output "aiModelRateLimitTokensPerMinute" {
value = mongodbatlas_aimodelratelimit.this.tokens_per_minute_limit
}
output "aiModelRateLimitModelNames" {
value = data.mongodbatlas_getaimodelratelimit.this.model_names
}
output "aiModelRateLimitEndpoint" {
value = data.mongodbatlas_getaimodelratelimit.this.endpoint
}
output "aiModelRateLimitsResults" {
value = data.mongodbatlas_getaimodelratelimits.thisGetAiModelRateLimits.results
}
Using getAiModelRateLimits
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAiModelRateLimits(args: GetAiModelRateLimitsArgs, opts?: InvokeOptions): Promise<GetAiModelRateLimitsResult>
function getAiModelRateLimitsOutput(args: GetAiModelRateLimitsOutputArgs, opts?: InvokeOutputOptions): Output<GetAiModelRateLimitsResult>def get_ai_model_rate_limits(project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAiModelRateLimitsResult
def get_ai_model_rate_limits_output(project_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetAiModelRateLimitsResult]func LookupAiModelRateLimits(ctx *Context, args *LookupAiModelRateLimitsArgs, opts ...InvokeOption) (*LookupAiModelRateLimitsResult, error)
func LookupAiModelRateLimitsOutput(ctx *Context, args *LookupAiModelRateLimitsOutputArgs, opts ...InvokeOption) LookupAiModelRateLimitsResultOutput> Note: This function is named LookupAiModelRateLimits in the Go SDK.
public static class GetAiModelRateLimits
{
public static Task<GetAiModelRateLimitsResult> InvokeAsync(GetAiModelRateLimitsArgs args, InvokeOptions? opts = null)
public static Output<GetAiModelRateLimitsResult> Invoke(GetAiModelRateLimitsInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetAiModelRateLimitsResult> Invoke(GetAiModelRateLimitsInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetAiModelRateLimitsResult> getAiModelRateLimits(GetAiModelRateLimitsArgs args, InvokeOptions options)
public static Output<GetAiModelRateLimitsResult> getAiModelRateLimits(GetAiModelRateLimitsArgs args, InvokeOptions options)
public static Output<GetAiModelRateLimitsResult> getAiModelRateLimits(GetAiModelRateLimitsArgs args, InvokeOutputOptions options)
fn::invoke:
function: mongodbatlas:index/getAiModelRateLimits:getAiModelRateLimits
arguments:
# arguments dictionarydata "mongodbatlas_get_ai_model_rate_limits" "name" {
# arguments
}The following arguments are supported:
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- project_
id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- project_
id str - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
getAiModelRateLimits Result
The following output properties are available:
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - Results
List<Get
Ai Model Rate Limits Result> - List of returned documents that MongoDB Cloud provides when completing this request.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - Results
[]Get
Ai Model Rate Limits Result - List of returned documents that MongoDB Cloud provides when completing this request.
- project_
id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - results list(object)
- List of returned documents that MongoDB Cloud provides when completing this request.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - results
List<Get
Ai Model Rate Limits Result> - List of returned documents that MongoDB Cloud provides when completing this request.
- project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - results
Get
Ai Model Rate Limits Result[] - List of returned documents that MongoDB Cloud provides when completing this request.
- project_
id str - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - results
Sequence[Get
Ai Model Rate Limits Result] - List of returned documents that MongoDB Cloud provides when completing this request.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - results List<Property Map>
- List of returned documents that MongoDB Cloud provides when completing this request.
Supporting Types
GetAiModelRateLimitsResult
- Cloud string
- Cloud provider scope for this rate limit. Use "ANY" for cloud-agnostic scope.
- Endpoint string
- Server-computed endpoint hostname derived from
cloudandgeography. This field is read-only and must not be supplied in request bodies. - Geography string
- Geography scope for this rate limit. Use "ANY" for geography-agnostic scope.
- Model
Group stringName - Identifier used to reference this model group.
- Model
Names List<string> - List of embedding model names included in this model group.
- Requests
Per intMinute Limit - The number of requests per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- Tokens
Per intMinute Limit - The number of tokens per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- Cloud string
- Cloud provider scope for this rate limit. Use "ANY" for cloud-agnostic scope.
- Endpoint string
- Server-computed endpoint hostname derived from
cloudandgeography. This field is read-only and must not be supplied in request bodies. - Geography string
- Geography scope for this rate limit. Use "ANY" for geography-agnostic scope.
- Model
Group stringName - Identifier used to reference this model group.
- Model
Names []string - List of embedding model names included in this model group.
- Requests
Per intMinute Limit - The number of requests per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- Tokens
Per intMinute Limit - The number of tokens per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- cloud string
- Cloud provider scope for this rate limit. Use "ANY" for cloud-agnostic scope.
- endpoint string
- Server-computed endpoint hostname derived from
cloudandgeography. This field is read-only and must not be supplied in request bodies. - geography string
- Geography scope for this rate limit. Use "ANY" for geography-agnostic scope.
- model_
group_ stringname - Identifier used to reference this model group.
- model_
names list(string) - List of embedding model names included in this model group.
- requests_
per_ numberminute_ limit - The number of requests per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- tokens_
per_ numberminute_ limit - The number of tokens per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- cloud String
- Cloud provider scope for this rate limit. Use "ANY" for cloud-agnostic scope.
- endpoint String
- Server-computed endpoint hostname derived from
cloudandgeography. This field is read-only and must not be supplied in request bodies. - geography String
- Geography scope for this rate limit. Use "ANY" for geography-agnostic scope.
- model
Group StringName - Identifier used to reference this model group.
- model
Names List<String> - List of embedding model names included in this model group.
- requests
Per IntegerMinute Limit - The number of requests per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- tokens
Per IntegerMinute Limit - The number of tokens per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- cloud string
- Cloud provider scope for this rate limit. Use "ANY" for cloud-agnostic scope.
- endpoint string
- Server-computed endpoint hostname derived from
cloudandgeography. This field is read-only and must not be supplied in request bodies. - geography string
- Geography scope for this rate limit. Use "ANY" for geography-agnostic scope.
- model
Group stringName - Identifier used to reference this model group.
- model
Names string[] - List of embedding model names included in this model group.
- requests
Per numberMinute Limit - The number of requests per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- tokens
Per numberMinute Limit - The number of tokens per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- cloud str
- Cloud provider scope for this rate limit. Use "ANY" for cloud-agnostic scope.
- endpoint str
- Server-computed endpoint hostname derived from
cloudandgeography. This field is read-only and must not be supplied in request bodies. - geography str
- Geography scope for this rate limit. Use "ANY" for geography-agnostic scope.
- model_
group_ strname - Identifier used to reference this model group.
- model_
names Sequence[str] - List of embedding model names included in this model group.
- requests_
per_ intminute_ limit - The number of requests per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- tokens_
per_ intminute_ limit - The number of tokens per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- cloud String
- Cloud provider scope for this rate limit. Use "ANY" for cloud-agnostic scope.
- endpoint String
- Server-computed endpoint hostname derived from
cloudandgeography. This field is read-only and must not be supplied in request bodies. - geography String
- Geography scope for this rate limit. Use "ANY" for geography-agnostic scope.
- model
Group StringName - Identifier used to reference this model group.
- model
Names List<String> - List of embedding model names included in this model group.
- requests
Per NumberMinute Limit - The number of requests per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- tokens
Per NumberMinute Limit - The number of tokens per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlasTerraform Provider.
Viewing docs for MongoDB Atlas v4.15.0
published on Friday, Aug 28, 2026 by Pulumi
published on Friday, Aug 28, 2026 by Pulumi