1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. GenerativeAi
  5. getAgentProvisionedCapacity
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
oci logo
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi

    This data source provides details about a specific Provisioned Capacity resource in Oracle Cloud Infrastructure Generative Ai Agent service.

    Gets information about a provisioned capacity.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testProvisionedCapacity = oci.GenerativeAi.getAgentProvisionedCapacity({
        provisionedCapacityId: testProvisionedCapacityOciGenerativeAiAgentProvisionedCapacity.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_provisioned_capacity = oci.GenerativeAi.get_agent_provisioned_capacity(provisioned_capacity_id=test_provisioned_capacity_oci_generative_ai_agent_provisioned_capacity["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/generativeai"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := generativeai.GetAgentProvisionedCapacity(ctx, &generativeai.GetAgentProvisionedCapacityArgs{
    			ProvisionedCapacityId: testProvisionedCapacityOciGenerativeAiAgentProvisionedCapacity.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testProvisionedCapacity = Oci.GenerativeAi.GetAgentProvisionedCapacity.Invoke(new()
        {
            ProvisionedCapacityId = testProvisionedCapacityOciGenerativeAiAgentProvisionedCapacity.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.GenerativeAi.GenerativeAiFunctions;
    import com.pulumi.oci.GenerativeAi.inputs.GetAgentProvisionedCapacityArgs;
    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 testProvisionedCapacity = GenerativeAiFunctions.getAgentProvisionedCapacity(GetAgentProvisionedCapacityArgs.builder()
                .provisionedCapacityId(testProvisionedCapacityOciGenerativeAiAgentProvisionedCapacity.id())
                .build());
    
        }
    }
    
    variables:
      testProvisionedCapacity:
        fn::invoke:
          function: oci:GenerativeAi:getAgentProvisionedCapacity
          arguments:
            provisionedCapacityId: ${testProvisionedCapacityOciGenerativeAiAgentProvisionedCapacity.id}
    

    Using getAgentProvisionedCapacity

    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 getAgentProvisionedCapacity(args: GetAgentProvisionedCapacityArgs, opts?: InvokeOptions): Promise<GetAgentProvisionedCapacityResult>
    function getAgentProvisionedCapacityOutput(args: GetAgentProvisionedCapacityOutputArgs, opts?: InvokeOptions): Output<GetAgentProvisionedCapacityResult>
    def get_agent_provisioned_capacity(provisioned_capacity_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetAgentProvisionedCapacityResult
    def get_agent_provisioned_capacity_output(provisioned_capacity_id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetAgentProvisionedCapacityResult]
    func LookupAgentProvisionedCapacity(ctx *Context, args *LookupAgentProvisionedCapacityArgs, opts ...InvokeOption) (*LookupAgentProvisionedCapacityResult, error)
    func LookupAgentProvisionedCapacityOutput(ctx *Context, args *LookupAgentProvisionedCapacityOutputArgs, opts ...InvokeOption) LookupAgentProvisionedCapacityResultOutput

    > Note: This function is named LookupAgentProvisionedCapacity in the Go SDK.

    public static class GetAgentProvisionedCapacity 
    {
        public static Task<GetAgentProvisionedCapacityResult> InvokeAsync(GetAgentProvisionedCapacityArgs args, InvokeOptions? opts = null)
        public static Output<GetAgentProvisionedCapacityResult> Invoke(GetAgentProvisionedCapacityInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAgentProvisionedCapacityResult> getAgentProvisionedCapacity(GetAgentProvisionedCapacityArgs args, InvokeOptions options)
    public static Output<GetAgentProvisionedCapacityResult> getAgentProvisionedCapacity(GetAgentProvisionedCapacityArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:GenerativeAi/getAgentProvisionedCapacity:getAgentProvisionedCapacity
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProvisionedCapacityId string
    The OCID of the provisioned capacity.
    ProvisionedCapacityId string
    The OCID of the provisioned capacity.
    provisionedCapacityId String
    The OCID of the provisioned capacity.
    provisionedCapacityId string
    The OCID of the provisioned capacity.
    provisioned_capacity_id str
    The OCID of the provisioned capacity.
    provisionedCapacityId String
    The OCID of the provisioned capacity.

    getAgentProvisionedCapacity Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    An optional description of the provisioned capacity.
    DisplayName string
    The name of the provisioned capacity.
    FreeformTags Dictionary<string, string>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the provisioned capacity.
    NumberOfUnits int
    Provisioned Capacity Unit corresponds to the amount of characters processed per minute.
    ProvisionedCapacityId string
    State string
    The current state of the provisioned capacity.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the provisioned capacity was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the provisioned capacity was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    CompartmentId string
    The OCID of the compartment.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    An optional description of the provisioned capacity.
    DisplayName string
    The name of the provisioned capacity.
    FreeformTags map[string]string
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the provisioned capacity.
    NumberOfUnits int
    Provisioned Capacity Unit corresponds to the amount of characters processed per minute.
    ProvisionedCapacityId string
    State string
    The current state of the provisioned capacity.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the provisioned capacity was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the provisioned capacity was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    compartmentId String
    The OCID of the compartment.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    An optional description of the provisioned capacity.
    displayName String
    The name of the provisioned capacity.
    freeformTags Map<String,String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the provisioned capacity.
    numberOfUnits Integer
    Provisioned Capacity Unit corresponds to the amount of characters processed per minute.
    provisionedCapacityId String
    state String
    The current state of the provisioned capacity.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the provisioned capacity was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the provisioned capacity was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    compartmentId string
    The OCID of the compartment.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description string
    An optional description of the provisioned capacity.
    displayName string
    The name of the provisioned capacity.
    freeformTags {[key: string]: string}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    The OCID of the provisioned capacity.
    numberOfUnits number
    Provisioned Capacity Unit corresponds to the amount of characters processed per minute.
    provisionedCapacityId string
    state string
    The current state of the provisioned capacity.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time the provisioned capacity was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated string
    The date and time the provisioned capacity was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    compartment_id str
    The OCID of the compartment.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description str
    An optional description of the provisioned capacity.
    display_name str
    The name of the provisioned capacity.
    freeform_tags Mapping[str, str]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    The OCID of the provisioned capacity.
    number_of_units int
    Provisioned Capacity Unit corresponds to the amount of characters processed per minute.
    provisioned_capacity_id str
    state str
    The current state of the provisioned capacity.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The date and time the provisioned capacity was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_updated str
    The date and time the provisioned capacity was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    compartmentId String
    The OCID of the compartment.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    An optional description of the provisioned capacity.
    displayName String
    The name of the provisioned capacity.
    freeformTags Map<String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the provisioned capacity.
    numberOfUnits Number
    Provisioned Capacity Unit corresponds to the amount of characters processed per minute.
    provisionedCapacityId String
    state String
    The current state of the provisioned capacity.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the provisioned capacity was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the provisioned capacity was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Viewing docs for Oracle Cloud Infrastructure v4.2.0
    published on Friday, Mar 6, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.