harbor.getRegistry
Explore with Pulumi AI
Example Usage
data "harbor_registry" "main" {
name = "test_docker_harbor"
}
output "harbor_registry_id" {
value = data.harbor_registry.main.id
}
Using getRegistry
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 getRegistry(args: GetRegistryArgs, opts?: InvokeOptions): Promise<GetRegistryResult>
function getRegistryOutput(args: GetRegistryOutputArgs, opts?: InvokeOptions): Output<GetRegistryResult>
def get_registry(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRegistryResult
def get_registry_output(name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRegistryResult]
func LookupRegistry(ctx *Context, args *LookupRegistryArgs, opts ...InvokeOption) (*LookupRegistryResult, error)
func LookupRegistryOutput(ctx *Context, args *LookupRegistryOutputArgs, opts ...InvokeOption) LookupRegistryResultOutput
> Note: This function is named LookupRegistry
in the Go SDK.
public static class GetRegistry
{
public static Task<GetRegistryResult> InvokeAsync(GetRegistryArgs args, InvokeOptions? opts = null)
public static Output<GetRegistryResult> Invoke(GetRegistryInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRegistryResult> getRegistry(GetRegistryArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: harbor:index/getRegistry:getRegistry
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Name string
- name String
- name string
- name str
- name String
getRegistry Result
The following output properties are available:
- Description string
- Id string
The provider-assigned unique ID for this managed resource.
- Insecure string
- Name string
- Registry
Id int - Status string
- Type string
- Url string
- Description string
- Id string
The provider-assigned unique ID for this managed resource.
- Insecure string
- Name string
- Registry
Id int - Status string
- Type string
- Url string
- description String
- id String
The provider-assigned unique ID for this managed resource.
- insecure String
- name String
- registry
Id Integer - status String
- type String
- url String
- description string
- id string
The provider-assigned unique ID for this managed resource.
- insecure string
- name string
- registry
Id number - status string
- type string
- url string
- description str
- id str
The provider-assigned unique ID for this managed resource.
- insecure str
- name str
- registry_
id int - status str
- type str
- url str
- description String
- id String
The provider-assigned unique ID for this managed resource.
- insecure String
- name String
- registry
Id Number - status String
- type String
- url String
Package Details
- Repository
- harbor pulumiverse/pulumi-harbor
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
harbor
Terraform Provider.