Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Artifacts.getContainerRepositories
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides the list of Container Repositories in Oracle Cloud Infrastructure Artifacts service.
List container repositories in a compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testContainerRepositories = oci.Artifacts.getContainerRepositories({
compartmentId: compartmentId,
compartmentIdInSubtree: containerRepositoryCompartmentIdInSubtree,
displayName: containerRepositoryDisplayName,
isPublic: containerRepositoryIsPublic,
repositoryId: testRepository.id,
state: containerRepositoryState,
});
import pulumi
import pulumi_oci as oci
test_container_repositories = oci.Artifacts.get_container_repositories(compartment_id=compartment_id,
compartment_id_in_subtree=container_repository_compartment_id_in_subtree,
display_name=container_repository_display_name,
is_public=container_repository_is_public,
repository_id=test_repository["id"],
state=container_repository_state)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Artifacts"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Artifacts.GetContainerRepositories(ctx, &artifacts.GetContainerRepositoriesArgs{
CompartmentId: compartmentId,
CompartmentIdInSubtree: pulumi.BoolRef(containerRepositoryCompartmentIdInSubtree),
DisplayName: pulumi.StringRef(containerRepositoryDisplayName),
IsPublic: pulumi.BoolRef(containerRepositoryIsPublic),
RepositoryId: pulumi.StringRef(testRepository.Id),
State: pulumi.StringRef(containerRepositoryState),
}, 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 testContainerRepositories = Oci.Artifacts.GetContainerRepositories.Invoke(new()
{
CompartmentId = compartmentId,
CompartmentIdInSubtree = containerRepositoryCompartmentIdInSubtree,
DisplayName = containerRepositoryDisplayName,
IsPublic = containerRepositoryIsPublic,
RepositoryId = testRepository.Id,
State = containerRepositoryState,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Artifacts.ArtifactsFunctions;
import com.pulumi.oci.Artifacts.inputs.GetContainerRepositoriesArgs;
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 testContainerRepositories = ArtifactsFunctions.getContainerRepositories(GetContainerRepositoriesArgs.builder()
.compartmentId(compartmentId)
.compartmentIdInSubtree(containerRepositoryCompartmentIdInSubtree)
.displayName(containerRepositoryDisplayName)
.isPublic(containerRepositoryIsPublic)
.repositoryId(testRepository.id())
.state(containerRepositoryState)
.build());
}
}
variables:
testContainerRepositories:
fn::invoke:
Function: oci:Artifacts:getContainerRepositories
Arguments:
compartmentId: ${compartmentId}
compartmentIdInSubtree: ${containerRepositoryCompartmentIdInSubtree}
displayName: ${containerRepositoryDisplayName}
isPublic: ${containerRepositoryIsPublic}
repositoryId: ${testRepository.id}
state: ${containerRepositoryState}
Using getContainerRepositories
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 getContainerRepositories(args: GetContainerRepositoriesArgs, opts?: InvokeOptions): Promise<GetContainerRepositoriesResult>
function getContainerRepositoriesOutput(args: GetContainerRepositoriesOutputArgs, opts?: InvokeOptions): Output<GetContainerRepositoriesResult>
def get_container_repositories(compartment_id: Optional[str] = None,
compartment_id_in_subtree: Optional[bool] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_artifacts.GetContainerRepositoriesFilter]] = None,
is_public: Optional[bool] = None,
repository_id: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetContainerRepositoriesResult
def get_container_repositories_output(compartment_id: Optional[pulumi.Input[str]] = None,
compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_artifacts.GetContainerRepositoriesFilterArgs]]]] = None,
is_public: Optional[pulumi.Input[bool]] = None,
repository_id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetContainerRepositoriesResult]
func GetContainerRepositories(ctx *Context, args *GetContainerRepositoriesArgs, opts ...InvokeOption) (*GetContainerRepositoriesResult, error)
func GetContainerRepositoriesOutput(ctx *Context, args *GetContainerRepositoriesOutputArgs, opts ...InvokeOption) GetContainerRepositoriesResultOutput
> Note: This function is named GetContainerRepositories
in the Go SDK.
public static class GetContainerRepositories
{
public static Task<GetContainerRepositoriesResult> InvokeAsync(GetContainerRepositoriesArgs args, InvokeOptions? opts = null)
public static Output<GetContainerRepositoriesResult> Invoke(GetContainerRepositoriesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetContainerRepositoriesResult> getContainerRepositories(GetContainerRepositoriesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Artifacts/getContainerRepositories:getContainerRepositories
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment.
- Compartment
Id boolIn Subtree - When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are inspected depending on the the setting of
accessLevel
. Default is false. Can only be set to true when calling the API on the tenancy (root compartment). - Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
List<Get
Container Repositories Filter> - Is
Public bool - A filter to return resources that match the isPublic value.
- Repository
Id string - A filter to return container images only for the specified container repository OCID.
- State string
- A filter to return only resources that match the given lifecycle state name exactly.
- Compartment
Id string - The OCID of the compartment.
- Compartment
Id boolIn Subtree - When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are inspected depending on the the setting of
accessLevel
. Default is false. Can only be set to true when calling the API on the tenancy (root compartment). - Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
[]Get
Container Repositories Filter - Is
Public bool - A filter to return resources that match the isPublic value.
- Repository
Id string - A filter to return container images only for the specified container repository OCID.
- State string
- A filter to return only resources that match the given lifecycle state name exactly.
- compartment
Id String - The OCID of the compartment.
- compartment
Id BooleanIn Subtree - When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are inspected depending on the the setting of
accessLevel
. Default is false. Can only be set to true when calling the API on the tenancy (root compartment). - display
Name String - A filter to return only resources that match the given display name exactly.
- filters
List<Get
Container Repositories Filter> - is
Public Boolean - A filter to return resources that match the isPublic value.
- repository
Id String - A filter to return container images only for the specified container repository OCID.
- state String
- A filter to return only resources that match the given lifecycle state name exactly.
- compartment
Id string - The OCID of the compartment.
- compartment
Id booleanIn Subtree - When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are inspected depending on the the setting of
accessLevel
. Default is false. Can only be set to true when calling the API on the tenancy (root compartment). - display
Name string - A filter to return only resources that match the given display name exactly.
- filters
Get
Container Repositories Filter[] - is
Public boolean - A filter to return resources that match the isPublic value.
- repository
Id string - A filter to return container images only for the specified container repository OCID.
- state string
- A filter to return only resources that match the given lifecycle state name exactly.
- compartment_
id str - The OCID of the compartment.
- compartment_
id_ boolin_ subtree - When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are inspected depending on the the setting of
accessLevel
. Default is false. Can only be set to true when calling the API on the tenancy (root compartment). - display_
name str - A filter to return only resources that match the given display name exactly.
- filters
Sequence[artifacts.
Get Container Repositories Filter] - is_
public bool - A filter to return resources that match the isPublic value.
- repository_
id str - A filter to return container images only for the specified container repository OCID.
- state str
- A filter to return only resources that match the given lifecycle state name exactly.
- compartment
Id String - The OCID of the compartment.
- compartment
Id BooleanIn Subtree - When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are inspected depending on the the setting of
accessLevel
. Default is false. Can only be set to true when calling the API on the tenancy (root compartment). - display
Name String - A filter to return only resources that match the given display name exactly.
- filters List<Property Map>
- is
Public Boolean - A filter to return resources that match the isPublic value.
- repository
Id String - A filter to return container images only for the specified container repository OCID.
- state String
- A filter to return only resources that match the given lifecycle state name exactly.
getContainerRepositories Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment in which the container repository exists.
- Container
Repository List<GetCollections Container Repositories Container Repository Collection> - The list of container_repository_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Compartment
Id boolIn Subtree - Display
Name string - The container repository name.
- Filters
List<Get
Container Repositories Filter> - Is
Public bool - Whether the repository is public. A public repository allows unauthenticated access.
- Repository
Id string - State string
- The current state of the container repository.
- Compartment
Id string - The OCID of the compartment in which the container repository exists.
- Container
Repository []GetCollections Container Repositories Container Repository Collection - The list of container_repository_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Compartment
Id boolIn Subtree - Display
Name string - The container repository name.
- Filters
[]Get
Container Repositories Filter - Is
Public bool - Whether the repository is public. A public repository allows unauthenticated access.
- Repository
Id string - State string
- The current state of the container repository.
- compartment
Id String - The OCID of the compartment in which the container repository exists.
- container
Repository List<GetCollections Container Repositories Container Repository Collection> - The list of container_repository_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- compartment
Id BooleanIn Subtree - display
Name String - The container repository name.
- filters
List<Get
Container Repositories Filter> - is
Public Boolean - Whether the repository is public. A public repository allows unauthenticated access.
- repository
Id String - state String
- The current state of the container repository.
- compartment
Id string - The OCID of the compartment in which the container repository exists.
- container
Repository GetCollections Container Repositories Container Repository Collection[] - The list of container_repository_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- compartment
Id booleanIn Subtree - display
Name string - The container repository name.
- filters
Get
Container Repositories Filter[] - is
Public boolean - Whether the repository is public. A public repository allows unauthenticated access.
- repository
Id string - state string
- The current state of the container repository.
- compartment_
id str - The OCID of the compartment in which the container repository exists.
- container_
repository_ Sequence[artifacts.collections Get Container Repositories Container Repository Collection] - The list of container_repository_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- compartment_
id_ boolin_ subtree - display_
name str - The container repository name.
- filters
Sequence[artifacts.
Get Container Repositories Filter] - is_
public bool - Whether the repository is public. A public repository allows unauthenticated access.
- repository_
id str - state str
- The current state of the container repository.
- compartment
Id String - The OCID of the compartment in which the container repository exists.
- container
Repository List<Property Map>Collections - The list of container_repository_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- compartment
Id BooleanIn Subtree - display
Name String - The container repository name.
- filters List<Property Map>
- is
Public Boolean - Whether the repository is public. A public repository allows unauthenticated access.
- repository
Id String - state String
- The current state of the container repository.
Supporting Types
GetContainerRepositoriesContainerRepositoryCollection
- Image
Count int - Total number of images.
- Items
List<Get
Container Repositories Container Repository Collection Item> - Layer
Count int - Total number of layers.
- Layers
Size stringIn Bytes - Total storage in bytes consumed by layers.
- Remaining
Items intCount - Repository
Count int
- Image
Count int - Total number of images.
- Items
[]Get
Container Repositories Container Repository Collection Item - Layer
Count int - Total number of layers.
- Layers
Size stringIn Bytes - Total storage in bytes consumed by layers.
- Remaining
Items intCount - Repository
Count int
- image
Count Integer - Total number of images.
- items
List<Get
Container Repositories Container Repository Collection Item> - layer
Count Integer - Total number of layers.
- layers
Size StringIn Bytes - Total storage in bytes consumed by layers.
- remaining
Items IntegerCount - repository
Count Integer
- image
Count number - Total number of images.
- items
Get
Container Repositories Container Repository Collection Item[] - layer
Count number - Total number of layers.
- layers
Size stringIn Bytes - Total storage in bytes consumed by layers.
- remaining
Items numberCount - repository
Count number
- image_
count int - Total number of images.
- items
Sequence[artifacts.
Get Container Repositories Container Repository Collection Item] - layer_
count int - Total number of layers.
- layers_
size_ strin_ bytes - Total storage in bytes consumed by layers.
- remaining_
items_ intcount - repository_
count int
- image
Count Number - Total number of images.
- items List<Property Map>
- layer
Count Number - Total number of layers.
- layers
Size StringIn Bytes - Total storage in bytes consumed by layers.
- remaining
Items NumberCount - repository
Count Number
GetContainerRepositoriesContainerRepositoryCollectionItem
- Billable
Size stringIn Gbs - Total storage size in GBs that will be charged.
- Compartment
Id string - The OCID of the compartment.
- Created
By string - The id of the user or principal that created the resource.
- Dictionary<string, object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Dictionary<string, object>
- 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 container repository. Example:
ocid1.containerrepo.oc1..exampleuniqueID
- Image
Count int - Total number of images.
- Is
Immutable bool - Whether the repository is immutable. Images cannot be overwritten in an immutable repository.
- Is
Public bool - A filter to return resources that match the isPublic value.
- Layer
Count int - Total number of layers.
- Layers
Size stringIn Bytes - Total storage in bytes consumed by layers.
- Namespace string
- The tenancy namespace used in the container repository path.
- Readmes
List<Get
Container Repositories Container Repository Collection Item Readme> - Container repository readme.
- State string
- A filter to return only resources that match the given lifecycle state name exactly.
- Dictionary<string, object>
- The system tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - An RFC 3339 timestamp indicating when the repository was created.
- Time
Last stringPushed - An RFC 3339 timestamp indicating when an image was last pushed to the repository.
- Billable
Size stringIn Gbs - Total storage size in GBs that will be charged.
- Compartment
Id string - The OCID of the compartment.
- Created
By string - The id of the user or principal that created the resource.
- map[string]interface{}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - A filter to return only resources that match the given display name exactly.
- map[string]interface{}
- 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 container repository. Example:
ocid1.containerrepo.oc1..exampleuniqueID
- Image
Count int - Total number of images.
- Is
Immutable bool - Whether the repository is immutable. Images cannot be overwritten in an immutable repository.
- Is
Public bool - A filter to return resources that match the isPublic value.
- Layer
Count int - Total number of layers.
- Layers
Size stringIn Bytes - Total storage in bytes consumed by layers.
- Namespace string
- The tenancy namespace used in the container repository path.
- Readmes
[]Get
Container Repositories Container Repository Collection Item Readme - Container repository readme.
- State string
- A filter to return only resources that match the given lifecycle state name exactly.
- map[string]interface{}
- The system tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - An RFC 3339 timestamp indicating when the repository was created.
- Time
Last stringPushed - An RFC 3339 timestamp indicating when an image was last pushed to the repository.
- billable
Size StringIn Gbs - Total storage size in GBs that will be charged.
- compartment
Id String - The OCID of the compartment.
- created
By String - The id of the user or principal that created the resource.
- Map<String,Object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - A filter to return only resources that match the given display name exactly.
- Map<String,Object>
- 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 container repository. Example:
ocid1.containerrepo.oc1..exampleuniqueID
- image
Count Integer - Total number of images.
- is
Immutable Boolean - Whether the repository is immutable. Images cannot be overwritten in an immutable repository.
- is
Public Boolean - A filter to return resources that match the isPublic value.
- layer
Count Integer - Total number of layers.
- layers
Size StringIn Bytes - Total storage in bytes consumed by layers.
- namespace String
- The tenancy namespace used in the container repository path.
- readmes
List<Get
Container Repositories Container Repository Collection Item Readme> - Container repository readme.
- state String
- A filter to return only resources that match the given lifecycle state name exactly.
- Map<String,Object>
- The system tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - An RFC 3339 timestamp indicating when the repository was created.
- time
Last StringPushed - An RFC 3339 timestamp indicating when an image was last pushed to the repository.
- billable
Size stringIn Gbs - Total storage size in GBs that will be charged.
- compartment
Id string - The OCID of the compartment.
- created
By string - The id of the user or principal that created the resource.
- {[key: string]: any}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name string - A filter to return only resources that match the given display name exactly.
- {[key: string]: any}
- 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 container repository. Example:
ocid1.containerrepo.oc1..exampleuniqueID
- image
Count number - Total number of images.
- is
Immutable boolean - Whether the repository is immutable. Images cannot be overwritten in an immutable repository.
- is
Public boolean - A filter to return resources that match the isPublic value.
- layer
Count number - Total number of layers.
- layers
Size stringIn Bytes - Total storage in bytes consumed by layers.
- namespace string
- The tenancy namespace used in the container repository path.
- readmes
Get
Container Repositories Container Repository Collection Item Readme[] - Container repository readme.
- state string
- A filter to return only resources that match the given lifecycle state name exactly.
- {[key: string]: any}
- The system tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - An RFC 3339 timestamp indicating when the repository was created.
- time
Last stringPushed - An RFC 3339 timestamp indicating when an image was last pushed to the repository.
- billable_
size_ strin_ gbs - Total storage size in GBs that will be charged.
- compartment_
id str - The OCID of the compartment.
- created_
by str - The id of the user or principal that created the resource.
- Mapping[str, Any]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display_
name str - A filter to return only resources that match the given display name exactly.
- Mapping[str, Any]
- 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 container repository. Example:
ocid1.containerrepo.oc1..exampleuniqueID
- image_
count int - Total number of images.
- is_
immutable bool - Whether the repository is immutable. Images cannot be overwritten in an immutable repository.
- is_
public bool - A filter to return resources that match the isPublic value.
- layer_
count int - Total number of layers.
- layers_
size_ strin_ bytes - Total storage in bytes consumed by layers.
- namespace str
- The tenancy namespace used in the container repository path.
- readmes
Sequence[artifacts.
Get Container Repositories Container Repository Collection Item Readme] - Container repository readme.
- state str
- A filter to return only resources that match the given lifecycle state name exactly.
- Mapping[str, Any]
- The system tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - An RFC 3339 timestamp indicating when the repository was created.
- time_
last_ strpushed - An RFC 3339 timestamp indicating when an image was last pushed to the repository.
- billable
Size StringIn Gbs - Total storage size in GBs that will be charged.
- compartment
Id String - The OCID of the compartment.
- created
By String - The id of the user or principal that created the resource.
- Map<Any>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - A filter to return only resources that match the given display name exactly.
- Map<Any>
- 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 container repository. Example:
ocid1.containerrepo.oc1..exampleuniqueID
- image
Count Number - Total number of images.
- is
Immutable Boolean - Whether the repository is immutable. Images cannot be overwritten in an immutable repository.
- is
Public Boolean - A filter to return resources that match the isPublic value.
- layer
Count Number - Total number of layers.
- layers
Size StringIn Bytes - Total storage in bytes consumed by layers.
- namespace String
- The tenancy namespace used in the container repository path.
- readmes List<Property Map>
- Container repository readme.
- state String
- A filter to return only resources that match the given lifecycle state name exactly.
- Map<Any>
- The system tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - An RFC 3339 timestamp indicating when the repository was created.
- time
Last StringPushed - An RFC 3339 timestamp indicating when an image was last pushed to the repository.
GetContainerRepositoriesContainerRepositoryCollectionItemReadme
GetContainerRepositoriesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi