1. Packages
  2. Harbor
  3. API Docs
  4. getRegistry
Harbor v3.10.19 published on Monday, Feb 10, 2025 by Pulumiverse

harbor.getRegistry

Explore with Pulumi AI

Harbor v3.10.19 published on Monday, Feb 10, 2025 by Pulumiverse

Example Usage

data "harbor_registry" "main" {
  name          = "test_docker_harbor"
}

output "harbor_registry_id" {
  value   = data.harbor_registry.main.id
}
Copy

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>
Copy
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]
Copy
func LookupRegistry(ctx *Context, args *LookupRegistryArgs, opts ...InvokeOption) (*LookupRegistryResult, error)
func LookupRegistryOutput(ctx *Context, args *LookupRegistryOutputArgs, opts ...InvokeOption) LookupRegistryResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetRegistryResult> getRegistry(GetRegistryArgs args, InvokeOptions options)
public static Output<GetRegistryResult> getRegistry(GetRegistryArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: harbor:index/getRegistry:getRegistry
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
The name of the register.
Name This property is required. string
The name of the register.
name This property is required. String
The name of the register.
name This property is required. string
The name of the register.
name This property is required. str
The name of the register.
name This property is required. String
The name of the register.

getRegistry Result

The following output properties are available:

Description string
The description of the external container register.
Id string
The provider-assigned unique ID for this managed resource.
Insecure bool
If the certificate of the external container register can be verified.
Name string
The name of the register.
RegistryId int
The id of the register within harbor.
Status string
The health status of the external container register
Type string
The type of the provider type.
Url string
The url endpoint for the external container register
Description string
The description of the external container register.
Id string
The provider-assigned unique ID for this managed resource.
Insecure bool
If the certificate of the external container register can be verified.
Name string
The name of the register.
RegistryId int
The id of the register within harbor.
Status string
The health status of the external container register
Type string
The type of the provider type.
Url string
The url endpoint for the external container register
description String
The description of the external container register.
id String
The provider-assigned unique ID for this managed resource.
insecure Boolean
If the certificate of the external container register can be verified.
name String
The name of the register.
registryId Integer
The id of the register within harbor.
status String
The health status of the external container register
type String
The type of the provider type.
url String
The url endpoint for the external container register
description string
The description of the external container register.
id string
The provider-assigned unique ID for this managed resource.
insecure boolean
If the certificate of the external container register can be verified.
name string
The name of the register.
registryId number
The id of the register within harbor.
status string
The health status of the external container register
type string
The type of the provider type.
url string
The url endpoint for the external container register
description str
The description of the external container register.
id str
The provider-assigned unique ID for this managed resource.
insecure bool
If the certificate of the external container register can be verified.
name str
The name of the register.
registry_id int
The id of the register within harbor.
status str
The health status of the external container register
type str
The type of the provider type.
url str
The url endpoint for the external container register
description String
The description of the external container register.
id String
The provider-assigned unique ID for this managed resource.
insecure Boolean
If the certificate of the external container register can be verified.
name String
The name of the register.
registryId Number
The id of the register within harbor.
status String
The health status of the external container register
type String
The type of the provider type.
url String
The url endpoint for the external container register

Package Details

Repository
harbor pulumiverse/pulumi-harbor
License
Apache-2.0
Notes
This Pulumi package is based on the harbor Terraform Provider.
Harbor v3.10.19 published on Monday, Feb 10, 2025 by Pulumiverse