Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
This data source provides the list of Provisioned Capacities in Oracle Cloud Infrastructure Generative Ai Agent service.
Gets a list of provisioned capacities.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testProvisionedCapacities = oci.GenerativeAi.getAgentProvisionedCapacities({
compartmentId: compartmentId,
displayName: provisionedCapacityDisplayName,
provisionedCapacityId: testProvisionedCapacity.id,
state: provisionedCapacityState,
});
import pulumi
import pulumi_oci as oci
test_provisioned_capacities = oci.GenerativeAi.get_agent_provisioned_capacities(compartment_id=compartment_id,
display_name=provisioned_capacity_display_name,
provisioned_capacity_id=test_provisioned_capacity["id"],
state=provisioned_capacity_state)
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.GetAgentProvisionedCapacities(ctx, &generativeai.GetAgentProvisionedCapacitiesArgs{
CompartmentId: pulumi.StringRef(compartmentId),
DisplayName: pulumi.StringRef(provisionedCapacityDisplayName),
ProvisionedCapacityId: pulumi.StringRef(testProvisionedCapacity.Id),
State: pulumi.StringRef(provisionedCapacityState),
}, 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 testProvisionedCapacities = Oci.GenerativeAi.GetAgentProvisionedCapacities.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = provisionedCapacityDisplayName,
ProvisionedCapacityId = testProvisionedCapacity.Id,
State = provisionedCapacityState,
});
});
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.GetAgentProvisionedCapacitiesArgs;
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 testProvisionedCapacities = GenerativeAiFunctions.getAgentProvisionedCapacities(GetAgentProvisionedCapacitiesArgs.builder()
.compartmentId(compartmentId)
.displayName(provisionedCapacityDisplayName)
.provisionedCapacityId(testProvisionedCapacity.id())
.state(provisionedCapacityState)
.build());
}
}
variables:
testProvisionedCapacities:
fn::invoke:
function: oci:GenerativeAi:getAgentProvisionedCapacities
arguments:
compartmentId: ${compartmentId}
displayName: ${provisionedCapacityDisplayName}
provisionedCapacityId: ${testProvisionedCapacity.id}
state: ${provisionedCapacityState}
Using getAgentProvisionedCapacities
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 getAgentProvisionedCapacities(args: GetAgentProvisionedCapacitiesArgs, opts?: InvokeOptions): Promise<GetAgentProvisionedCapacitiesResult>
function getAgentProvisionedCapacitiesOutput(args: GetAgentProvisionedCapacitiesOutputArgs, opts?: InvokeOptions): Output<GetAgentProvisionedCapacitiesResult>def get_agent_provisioned_capacities(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[GetAgentProvisionedCapacitiesFilter]] = None,
provisioned_capacity_id: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAgentProvisionedCapacitiesResult
def get_agent_provisioned_capacities_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetAgentProvisionedCapacitiesFilterArgs]]]] = None,
provisioned_capacity_id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAgentProvisionedCapacitiesResult]func GetAgentProvisionedCapacities(ctx *Context, args *GetAgentProvisionedCapacitiesArgs, opts ...InvokeOption) (*GetAgentProvisionedCapacitiesResult, error)
func GetAgentProvisionedCapacitiesOutput(ctx *Context, args *GetAgentProvisionedCapacitiesOutputArgs, opts ...InvokeOption) GetAgentProvisionedCapacitiesResultOutput> Note: This function is named GetAgentProvisionedCapacities in the Go SDK.
public static class GetAgentProvisionedCapacities
{
public static Task<GetAgentProvisionedCapacitiesResult> InvokeAsync(GetAgentProvisionedCapacitiesArgs args, InvokeOptions? opts = null)
public static Output<GetAgentProvisionedCapacitiesResult> Invoke(GetAgentProvisionedCapacitiesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAgentProvisionedCapacitiesResult> getAgentProvisionedCapacities(GetAgentProvisionedCapacitiesArgs args, InvokeOptions options)
public static Output<GetAgentProvisionedCapacitiesResult> getAgentProvisionedCapacities(GetAgentProvisionedCapacitiesArgs args, InvokeOptions options)
fn::invoke:
function: oci:GenerativeAi/getAgentProvisionedCapacities:getAgentProvisionedCapacities
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
List<Get
Agent Provisioned Capacities Filter> - Provisioned
Capacity stringId - The OCID of the provisioned capacity.
- State string
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
[]Get
Agent Provisioned Capacities Filter - Provisioned
Capacity stringId - The OCID of the provisioned capacity.
- State string
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- compartment
Id String - The OCID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters
List<Get
Agent Provisioned Capacities Filter> - provisioned
Capacity StringId - The OCID of the provisioned capacity.
- state String
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- compartment
Id string - The OCID of the compartment in which to list resources.
- display
Name string - A filter to return only resources that match the given display name exactly.
- filters
Get
Agent Provisioned Capacities Filter[] - provisioned
Capacity stringId - The OCID of the provisioned capacity.
- state string
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- compartment_
id str - The OCID of the compartment in which to list resources.
- display_
name str - A filter to return only resources that match the given display name exactly.
- filters
Sequence[Get
Agent Provisioned Capacities Filter] - provisioned_
capacity_ strid - The OCID of the provisioned capacity.
- state str
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- compartment
Id String - The OCID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters List<Property Map>
- provisioned
Capacity StringId - The OCID of the provisioned capacity.
- state String
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
getAgentProvisionedCapacities Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Provisioned
Capacity List<GetCollections Agent Provisioned Capacities Provisioned Capacity Collection> - The list of provisioned_capacity_collection.
- Compartment
Id string - The OCID of the compartment.
- Display
Name string - The name of the provisioned capacity.
- Filters
List<Get
Agent Provisioned Capacities Filter> - Provisioned
Capacity stringId - State string
- The current state of the provisioned capacity.
- Id string
- The provider-assigned unique ID for this managed resource.
- Provisioned
Capacity []GetCollections Agent Provisioned Capacities Provisioned Capacity Collection - The list of provisioned_capacity_collection.
- Compartment
Id string - The OCID of the compartment.
- Display
Name string - The name of the provisioned capacity.
- Filters
[]Get
Agent Provisioned Capacities Filter - Provisioned
Capacity stringId - State string
- The current state of the provisioned capacity.
- id String
- The provider-assigned unique ID for this managed resource.
- provisioned
Capacity List<GetCollections Agent Provisioned Capacities Provisioned Capacity Collection> - The list of provisioned_capacity_collection.
- compartment
Id String - The OCID of the compartment.
- display
Name String - The name of the provisioned capacity.
- filters
List<Get
Agent Provisioned Capacities Filter> - provisioned
Capacity StringId - state String
- The current state of the provisioned capacity.
- id string
- The provider-assigned unique ID for this managed resource.
- provisioned
Capacity GetCollections Agent Provisioned Capacities Provisioned Capacity Collection[] - The list of provisioned_capacity_collection.
- compartment
Id string - The OCID of the compartment.
- display
Name string - The name of the provisioned capacity.
- filters
Get
Agent Provisioned Capacities Filter[] - provisioned
Capacity stringId - state string
- The current state of the provisioned capacity.
- id str
- The provider-assigned unique ID for this managed resource.
- provisioned_
capacity_ Sequence[Getcollections Agent Provisioned Capacities Provisioned Capacity Collection] - The list of provisioned_capacity_collection.
- compartment_
id str - The OCID of the compartment.
- display_
name str - The name of the provisioned capacity.
- filters
Sequence[Get
Agent Provisioned Capacities Filter] - provisioned_
capacity_ strid - state str
- The current state of the provisioned capacity.
- id String
- The provider-assigned unique ID for this managed resource.
- provisioned
Capacity List<Property Map>Collections - The list of provisioned_capacity_collection.
- compartment
Id String - The OCID of the compartment.
- display
Name String - The name of the provisioned capacity.
- filters List<Property Map>
- provisioned
Capacity StringId - state String
- The current state of the provisioned capacity.
Supporting Types
GetAgentProvisionedCapacitiesFilter
GetAgentProvisionedCapacitiesProvisionedCapacityCollection
GetAgentProvisionedCapacitiesProvisionedCapacityCollectionItem
- Compartment
Id string - The OCID of the compartment in which to list resources.
- 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.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- 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.
- Number
Of intUnits - Provisioned Capacity Unit corresponds to the amount of characters processed per minute.
- State string
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - 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 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 string - The OCID of the compartment in which to list resources.
- 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.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- 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.
- Number
Of intUnits - Provisioned Capacity Unit corresponds to the amount of characters processed per minute.
- State string
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - 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 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 String - The OCID of the compartment in which to list resources.
- 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.
- display
Name String - A filter to return only resources that match the given display name exactly.
- 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.
- number
Of IntegerUnits - Provisioned Capacity Unit corresponds to the amount of characters processed per minute.
- state String
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - 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 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 string - The OCID of the compartment in which to list resources.
- {[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.
- display
Name string - A filter to return only resources that match the given display name exactly.
- {[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.
- number
Of numberUnits - Provisioned Capacity Unit corresponds to the amount of characters processed per minute.
- state string
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - 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 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 in which to list resources.
- 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 - A filter to return only resources that match the given display name exactly.
- 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_ intunits - Provisioned Capacity Unit corresponds to the amount of characters processed per minute.
- state str
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- 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
- compartment
Id String - The OCID of the compartment in which to list resources.
- 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.
- display
Name String - A filter to return only resources that match the given display name exactly.
- 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.
- number
Of NumberUnits - Provisioned Capacity Unit corresponds to the amount of characters processed per minute.
- state String
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - 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 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
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
