Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.DataScience.getContainers
Start a Neo task
Explain and create an oci.DataScience.getContainers resource
This data source provides the list of Containers in Oracle Cloud Infrastructure Data Science service.
List containers.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testContainers = oci.DataScience.getContainers({
containerName: testContainer.name,
displayName: containerDisplayName,
isLatest: containerIsLatest,
state: containerState,
tagQueryParam: containerTagQueryParam,
targetWorkload: containerTargetWorkload,
usageQueryParam: containerUsageQueryParam,
});
import pulumi
import pulumi_oci as oci
test_containers = oci.DataScience.get_containers(container_name=test_container["name"],
display_name=container_display_name,
is_latest=container_is_latest,
state=container_state,
tag_query_param=container_tag_query_param,
target_workload=container_target_workload,
usage_query_param=container_usage_query_param)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/datascience"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datascience.GetContainers(ctx, &datascience.GetContainersArgs{
ContainerName: pulumi.StringRef(testContainer.Name),
DisplayName: pulumi.StringRef(containerDisplayName),
IsLatest: pulumi.BoolRef(containerIsLatest),
State: pulumi.StringRef(containerState),
TagQueryParam: pulumi.StringRef(containerTagQueryParam),
TargetWorkload: pulumi.StringRef(containerTargetWorkload),
UsageQueryParam: pulumi.StringRef(containerUsageQueryParam),
}, 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 testContainers = Oci.DataScience.GetContainers.Invoke(new()
{
ContainerName = testContainer.Name,
DisplayName = containerDisplayName,
IsLatest = containerIsLatest,
State = containerState,
TagQueryParam = containerTagQueryParam,
TargetWorkload = containerTargetWorkload,
UsageQueryParam = containerUsageQueryParam,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataScience.DataScienceFunctions;
import com.pulumi.oci.DataScience.inputs.GetContainersArgs;
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 testContainers = DataScienceFunctions.getContainers(GetContainersArgs.builder()
.containerName(testContainer.name())
.displayName(containerDisplayName)
.isLatest(containerIsLatest)
.state(containerState)
.tagQueryParam(containerTagQueryParam)
.targetWorkload(containerTargetWorkload)
.usageQueryParam(containerUsageQueryParam)
.build());
}
}
variables:
testContainers:
fn::invoke:
function: oci:DataScience:getContainers
arguments:
containerName: ${testContainer.name}
displayName: ${containerDisplayName}
isLatest: ${containerIsLatest}
state: ${containerState}
tagQueryParam: ${containerTagQueryParam}
targetWorkload: ${containerTargetWorkload}
usageQueryParam: ${containerUsageQueryParam}
Using getContainers
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 getContainers(args: GetContainersArgs, opts?: InvokeOptions): Promise<GetContainersResult>
function getContainersOutput(args: GetContainersOutputArgs, opts?: InvokeOptions): Output<GetContainersResult>def get_containers(container_name: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[GetContainersFilter]] = None,
is_latest: Optional[bool] = None,
state: Optional[str] = None,
tag_query_param: Optional[str] = None,
target_workload: Optional[str] = None,
usage_query_param: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetContainersResult
def get_containers_output(container_name: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetContainersFilterArgs]]]] = None,
is_latest: Optional[pulumi.Input[bool]] = None,
state: Optional[pulumi.Input[str]] = None,
tag_query_param: Optional[pulumi.Input[str]] = None,
target_workload: Optional[pulumi.Input[str]] = None,
usage_query_param: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetContainersResult]func GetContainers(ctx *Context, args *GetContainersArgs, opts ...InvokeOption) (*GetContainersResult, error)
func GetContainersOutput(ctx *Context, args *GetContainersOutputArgs, opts ...InvokeOption) GetContainersResultOutput> Note: This function is named GetContainers in the Go SDK.
public static class GetContainers
{
public static Task<GetContainersResult> InvokeAsync(GetContainersArgs args, InvokeOptions? opts = null)
public static Output<GetContainersResult> Invoke(GetContainersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetContainersResult> getContainers(GetContainersArgs args, InvokeOptions options)
public static Output<GetContainersResult> getContainers(GetContainersArgs args, InvokeOptions options)
fn::invoke:
function: oci:DataScience/getContainers:getContainers
arguments:
# arguments dictionaryThe following arguments are supported:
- Container
Name string - Filter results by the container name.
- Display
Name string - Filter results by its user-friendly name.
- Filters
List<Get
Containers Filter> - Is
Latest bool - if true, this returns latest version of container.
- State string
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- Tag
Query stringParam - Filter results by the container version tag.
- Target
Workload string - Filter results by the target workload.
- Usage
Query stringParam - Filter results by the usage.
- Container
Name string - Filter results by the container name.
- Display
Name string - Filter results by its user-friendly name.
- Filters
[]Get
Containers Filter - Is
Latest bool - if true, this returns latest version of container.
- State string
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- Tag
Query stringParam - Filter results by the container version tag.
- Target
Workload string - Filter results by the target workload.
- Usage
Query stringParam - Filter results by the usage.
- container
Name String - Filter results by the container name.
- display
Name String - Filter results by its user-friendly name.
- filters
List<Get
Containers Filter> - is
Latest Boolean - if true, this returns latest version of container.
- state String
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- tag
Query StringParam - Filter results by the container version tag.
- target
Workload String - Filter results by the target workload.
- usage
Query StringParam - Filter results by the usage.
- container
Name string - Filter results by the container name.
- display
Name string - Filter results by its user-friendly name.
- filters
Get
Containers Filter[] - is
Latest boolean - if true, this returns latest version of container.
- state string
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- tag
Query stringParam - Filter results by the container version tag.
- target
Workload string - Filter results by the target workload.
- usage
Query stringParam - Filter results by the usage.
- container_
name str - Filter results by the container name.
- display_
name str - Filter results by its user-friendly name.
- filters
Sequence[Get
Containers Filter] - is_
latest bool - if true, this returns latest version of container.
- state str
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- tag_
query_ strparam - Filter results by the container version tag.
- target_
workload str - Filter results by the target workload.
- usage_
query_ strparam - Filter results by the usage.
- container
Name String - Filter results by the container name.
- display
Name String - Filter results by its user-friendly name.
- filters List<Property Map>
- is
Latest Boolean - if true, this returns latest version of container.
- state String
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- tag
Query StringParam - Filter results by the container version tag.
- target
Workload String - Filter results by the target workload.
- usage
Query StringParam - Filter results by the usage.
getContainers Result
The following output properties are available:
- Containers
List<Get
Containers Container> - The list of containers.
- Id string
- The provider-assigned unique ID for this managed resource.
- Container
Name string - The name of the container. This can be same for different tags
- Display
Name string - The display name of the container.
- Filters
List<Get
Containers Filter> - Is
Latest bool - The latest tag of the container.
- State string
- Container Version LifecycleState.
- Tag
Query stringParam - Target
Workload string - Usage
Query stringParam
- Containers
[]Get
Containers Container - The list of containers.
- Id string
- The provider-assigned unique ID for this managed resource.
- Container
Name string - The name of the container. This can be same for different tags
- Display
Name string - The display name of the container.
- Filters
[]Get
Containers Filter - Is
Latest bool - The latest tag of the container.
- State string
- Container Version LifecycleState.
- Tag
Query stringParam - Target
Workload string - Usage
Query stringParam
- containers
List<Get
Containers Container> - The list of containers.
- id String
- The provider-assigned unique ID for this managed resource.
- container
Name String - The name of the container. This can be same for different tags
- display
Name String - The display name of the container.
- filters
List<Get
Containers Filter> - is
Latest Boolean - The latest tag of the container.
- state String
- Container Version LifecycleState.
- tag
Query StringParam - target
Workload String - usage
Query StringParam
- containers
Get
Containers Container[] - The list of containers.
- id string
- The provider-assigned unique ID for this managed resource.
- container
Name string - The name of the container. This can be same for different tags
- display
Name string - The display name of the container.
- filters
Get
Containers Filter[] - is
Latest boolean - The latest tag of the container.
- state string
- Container Version LifecycleState.
- tag
Query stringParam - target
Workload string - usage
Query stringParam
- containers
Sequence[Get
Containers Container] - The list of containers.
- id str
- The provider-assigned unique ID for this managed resource.
- container_
name str - The name of the container. This can be same for different tags
- display_
name str - The display name of the container.
- filters
Sequence[Get
Containers Filter] - is_
latest bool - The latest tag of the container.
- state str
- Container Version LifecycleState.
- tag_
query_ strparam - target_
workload str - usage_
query_ strparam
- containers List<Property Map>
- The list of containers.
- id String
- The provider-assigned unique ID for this managed resource.
- container
Name String - The name of the container. This can be same for different tags
- display
Name String - The display name of the container.
- filters List<Property Map>
- is
Latest Boolean - The latest tag of the container.
- state String
- Container Version LifecycleState.
- tag
Query StringParam - target
Workload String - usage
Query StringParam
Supporting Types
GetContainersContainer
- Container
Name string - Filter results by the container name.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"} - Description string
- Description of the container.
- Display
Name string - Filter results by its user-friendly name.
- Family
Name string - The family name of the container.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example:
{"Department": "Finance"} - Is
Latest bool - if true, this returns latest version of container.
- State string
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- Tag string
- Container Tag.
- Tag
Configuration List<GetLists Containers Container Tag Configuration List> - An array of defined metadata details for the model.
- Target
Workloads List<string> - The list of target workload. This Container can be used with given data science resources.
- Usages List<string>
- The list of usages of this container. This Container can be used for given use-cases.
- Workload
Configuration List<GetDetails Lists Containers Container Workload Configuration Details List> - workload configuration of the container.
- Container
Name string - Filter results by the container name.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"} - Description string
- Description of the container.
- Display
Name string - Filter results by its user-friendly name.
- Family
Name string - The family name of the container.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example:
{"Department": "Finance"} - Is
Latest bool - if true, this returns latest version of container.
- State string
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- Tag string
- Container Tag.
- Tag
Configuration []GetLists Containers Container Tag Configuration List - An array of defined metadata details for the model.
- Target
Workloads []string - The list of target workload. This Container can be used with given data science resources.
- Usages []string
- The list of usages of this container. This Container can be used for given use-cases.
- Workload
Configuration []GetDetails Lists Containers Container Workload Configuration Details List - workload configuration of the container.
- container
Name String - Filter results by the container name.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"} - description String
- Description of the container.
- display
Name String - Filter results by its user-friendly name.
- family
Name String - The family name of the container.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example:
{"Department": "Finance"} - is
Latest Boolean - if true, this returns latest version of container.
- state String
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- tag String
- Container Tag.
- tag
Configuration List<GetLists Containers Container Tag Configuration List> - An array of defined metadata details for the model.
- target
Workloads List<String> - The list of target workload. This Container can be used with given data science resources.
- usages List<String>
- The list of usages of this container. This Container can be used for given use-cases.
- workload
Configuration List<GetDetails Lists Containers Container Workload Configuration Details List> - workload configuration of the container.
- container
Name string - Filter results by the container name.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"} - description string
- Description of the container.
- display
Name string - Filter results by its user-friendly name.
- family
Name string - The family name of the container.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example:
{"Department": "Finance"} - is
Latest boolean - if true, this returns latest version of container.
- state string
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- tag string
- Container Tag.
- tag
Configuration GetLists Containers Container Tag Configuration List[] - An array of defined metadata details for the model.
- target
Workloads string[] - The list of target workload. This Container can be used with given data science resources.
- usages string[]
- The list of usages of this container. This Container can be used for given use-cases.
- workload
Configuration GetDetails Lists Containers Container Workload Configuration Details List[] - workload configuration of the container.
- container_
name str - Filter results by the container name.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"} - description str
- Description of the container.
- display_
name str - Filter results by its user-friendly name.
- family_
name str - The family name of the container.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example:
{"Department": "Finance"} - is_
latest bool - if true, this returns latest version of container.
- state str
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- tag str
- Container Tag.
- tag_
configuration_ Sequence[Getlists Containers Container Tag Configuration List] - An array of defined metadata details for the model.
- target_
workloads Sequence[str] - The list of target workload. This Container can be used with given data science resources.
- usages Sequence[str]
- The list of usages of this container. This Container can be used for given use-cases.
- workload_
configuration_ Sequence[Getdetails_ lists Containers Container Workload Configuration Details List] - workload configuration of the container.
- container
Name String - Filter results by the container name.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"} - description String
- Description of the container.
- display
Name String - Filter results by its user-friendly name.
- family
Name String - The family name of the container.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example:
{"Department": "Finance"} - is
Latest Boolean - if true, this returns latest version of container.
- state String
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- tag String
- Container Tag.
- tag
Configuration List<Property Map>Lists - An array of defined metadata details for the model.
- target
Workloads List<String> - The list of target workload. This Container can be used with given data science resources.
- usages List<String>
- The list of usages of this container. This Container can be used for given use-cases.
- workload
Configuration List<Property Map>Details Lists - workload configuration of the container.
GetContainersContainerTagConfigurationList
GetContainersContainerWorkloadConfigurationDetailsList
- Additional
Configurations Dictionary<string, string> - The additional configurations
- Cmd string
- The container image run CMD as a list of strings. Use
CMDas arguments to theENTRYPOINTor the only command to run in the absence of anENTRYPOINT. The combined size ofCMDandENTRYPOINTmust be less than 2048 bytes. - Health
Check intPort - The port on which the container HEALTHCHECK would listen. The port can be anything between
1024and65535. The following ports cannot be used24224,8446,8447. - Server
Port int - The port on which the web server serving the inference is running. The port can be anything between
1024and65535. The following ports cannot be used24224,8446,8447. - Use
Case List<GetConfigurations Containers Container Workload Configuration Details List Use Case Configuration> - The use-case configuration details
- Workload
Type string - The workload use case.
- Additional
Configurations map[string]string - The additional configurations
- Cmd string
- The container image run CMD as a list of strings. Use
CMDas arguments to theENTRYPOINTor the only command to run in the absence of anENTRYPOINT. The combined size ofCMDandENTRYPOINTmust be less than 2048 bytes. - Health
Check intPort - The port on which the container HEALTHCHECK would listen. The port can be anything between
1024and65535. The following ports cannot be used24224,8446,8447. - Server
Port int - The port on which the web server serving the inference is running. The port can be anything between
1024and65535. The following ports cannot be used24224,8446,8447. - Use
Case []GetConfigurations Containers Container Workload Configuration Details List Use Case Configuration - The use-case configuration details
- Workload
Type string - The workload use case.
- additional
Configurations Map<String,String> - The additional configurations
- cmd String
- The container image run CMD as a list of strings. Use
CMDas arguments to theENTRYPOINTor the only command to run in the absence of anENTRYPOINT. The combined size ofCMDandENTRYPOINTmust be less than 2048 bytes. - health
Check IntegerPort - The port on which the container HEALTHCHECK would listen. The port can be anything between
1024and65535. The following ports cannot be used24224,8446,8447. - server
Port Integer - The port on which the web server serving the inference is running. The port can be anything between
1024and65535. The following ports cannot be used24224,8446,8447. - use
Case List<GetConfigurations Containers Container Workload Configuration Details List Use Case Configuration> - The use-case configuration details
- workload
Type String - The workload use case.
- additional
Configurations {[key: string]: string} - The additional configurations
- cmd string
- The container image run CMD as a list of strings. Use
CMDas arguments to theENTRYPOINTor the only command to run in the absence of anENTRYPOINT. The combined size ofCMDandENTRYPOINTmust be less than 2048 bytes. - health
Check numberPort - The port on which the container HEALTHCHECK would listen. The port can be anything between
1024and65535. The following ports cannot be used24224,8446,8447. - server
Port number - The port on which the web server serving the inference is running. The port can be anything between
1024and65535. The following ports cannot be used24224,8446,8447. - use
Case GetConfigurations Containers Container Workload Configuration Details List Use Case Configuration[] - The use-case configuration details
- workload
Type string - The workload use case.
- additional_
configurations Mapping[str, str] - The additional configurations
- cmd str
- The container image run CMD as a list of strings. Use
CMDas arguments to theENTRYPOINTor the only command to run in the absence of anENTRYPOINT. The combined size ofCMDandENTRYPOINTmust be less than 2048 bytes. - health_
check_ intport - The port on which the container HEALTHCHECK would listen. The port can be anything between
1024and65535. The following ports cannot be used24224,8446,8447. - server_
port int - The port on which the web server serving the inference is running. The port can be anything between
1024and65535. The following ports cannot be used24224,8446,8447. - use_
case_ Sequence[Getconfigurations Containers Container Workload Configuration Details List Use Case Configuration] - The use-case configuration details
- workload_
type str - The workload use case.
- additional
Configurations Map<String> - The additional configurations
- cmd String
- The container image run CMD as a list of strings. Use
CMDas arguments to theENTRYPOINTor the only command to run in the absence of anENTRYPOINT. The combined size ofCMDandENTRYPOINTmust be less than 2048 bytes. - health
Check NumberPort - The port on which the container HEALTHCHECK would listen. The port can be anything between
1024and65535. The following ports cannot be used24224,8446,8447. - server
Port Number - The port on which the web server serving the inference is running. The port can be anything between
1024and65535. The following ports cannot be used24224,8446,8447. - use
Case List<Property Map>Configurations - The use-case configuration details
- workload
Type String - The workload use case.
GetContainersContainerWorkloadConfigurationDetailsListUseCaseConfiguration
- Additional
Configurations Dictionary<string, string> - The additional configurations
- Use
Case stringType - The job-run use-case.
- Additional
Configurations map[string]string - The additional configurations
- Use
Case stringType - The job-run use-case.
- additional
Configurations Map<String,String> - The additional configurations
- use
Case StringType - The job-run use-case.
- additional
Configurations {[key: string]: string} - The additional configurations
- use
Case stringType - The job-run use-case.
- additional_
configurations Mapping[str, str] - The additional configurations
- use_
case_ strtype - The job-run use-case.
- additional
Configurations Map<String> - The additional configurations
- use
Case StringType - The job-run use-case.
GetContainersFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
