Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Artifacts.getContainerRepository
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides details about a specific Container Repository resource in Oracle Cloud Infrastructure Artifacts service.
Get container repository.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testContainerRepository = oci.Artifacts.getContainerRepository({
repositoryId: testRepository.id,
});
import pulumi
import pulumi_oci as oci
test_container_repository = oci.Artifacts.get_container_repository(repository_id=test_repository["id"])
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.GetContainerRepository(ctx, &artifacts.GetContainerRepositoryArgs{
RepositoryId: testRepository.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 testContainerRepository = Oci.Artifacts.GetContainerRepository.Invoke(new()
{
RepositoryId = testRepository.Id,
});
});
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.GetContainerRepositoryArgs;
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 testContainerRepository = ArtifactsFunctions.getContainerRepository(GetContainerRepositoryArgs.builder()
.repositoryId(testRepository.id())
.build());
}
}
variables:
testContainerRepository:
fn::invoke:
Function: oci:Artifacts:getContainerRepository
Arguments:
repositoryId: ${testRepository.id}
Using getContainerRepository
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 getContainerRepository(args: GetContainerRepositoryArgs, opts?: InvokeOptions): Promise<GetContainerRepositoryResult>
function getContainerRepositoryOutput(args: GetContainerRepositoryOutputArgs, opts?: InvokeOptions): Output<GetContainerRepositoryResult>
def get_container_repository(repository_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetContainerRepositoryResult
def get_container_repository_output(repository_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetContainerRepositoryResult]
func GetContainerRepository(ctx *Context, args *GetContainerRepositoryArgs, opts ...InvokeOption) (*GetContainerRepositoryResult, error)
func GetContainerRepositoryOutput(ctx *Context, args *GetContainerRepositoryOutputArgs, opts ...InvokeOption) GetContainerRepositoryResultOutput
> Note: This function is named GetContainerRepository
in the Go SDK.
public static class GetContainerRepository
{
public static Task<GetContainerRepositoryResult> InvokeAsync(GetContainerRepositoryArgs args, InvokeOptions? opts = null)
public static Output<GetContainerRepositoryResult> Invoke(GetContainerRepositoryInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetContainerRepositoryResult> getContainerRepository(GetContainerRepositoryArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Artifacts/getContainerRepository:getContainerRepository
arguments:
# arguments dictionary
The following arguments are supported:
- Repository
Id string - The OCID of the container repository. Example:
ocid1.containerrepo.oc1..exampleuniqueID
- Repository
Id string - The OCID of the container repository. Example:
ocid1.containerrepo.oc1..exampleuniqueID
- repository
Id String - The OCID of the container repository. Example:
ocid1.containerrepo.oc1..exampleuniqueID
- repository
Id string - The OCID of the container repository. Example:
ocid1.containerrepo.oc1..exampleuniqueID
- repository_
id str - The OCID of the container repository. Example:
ocid1.containerrepo.oc1..exampleuniqueID
- repository
Id String - The OCID of the container repository. Example:
ocid1.containerrepo.oc1..exampleuniqueID
getContainerRepository Result
The following output properties are available:
- Billable
Size stringIn Gbs - Total storage size in GBs that will be charged.
- Compartment
Id string - The OCID of the compartment in which the container repository exists.
- 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 - The container repository name.
- 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 - Whether the repository is public. A public repository allows unauthenticated access.
- 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 Repository Readme> - Container repository readme.
- Repository
Id string - State string
- The current state of the container repository.
- 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 in which the container repository exists.
- 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 - The container repository name.
- 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 - Whether the repository is public. A public repository allows unauthenticated access.
- 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 Repository Readme - Container repository readme.
- Repository
Id string - State string
- The current state of the container repository.
- 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 in which the container repository exists.
- 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 - The container repository name.
- 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 - Whether the repository is public. A public repository allows unauthenticated access.
- 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 Repository Readme> - Container repository readme.
- repository
Id String - state String
- The current state of the container repository.
- 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 in which the container repository exists.
- 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 - The container repository name.
- {[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 - Whether the repository is public. A public repository allows unauthenticated access.
- 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 Repository Readme[] - Container repository readme.
- repository
Id string - state string
- The current state of the container repository.
- {[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 in which the container repository exists.
- 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 - The container repository name.
- 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 - Whether the repository is public. A public repository allows unauthenticated access.
- 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 Repository Readme] - Container repository readme.
- repository_
id str - state str
- The current state of the container repository.
- 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 in which the container repository exists.
- 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 - The container repository name.
- 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 - Whether the repository is public. A public repository allows unauthenticated access.
- 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.
- repository
Id String - state String
- The current state of the container repository.
- 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.
Supporting Types
GetContainerRepositoryReadme
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