1. Packages
  2. Harbor
  3. API Docs
  4. Packages
Harbor v3.9.1 published on Tuesday, May 30, 2023 by Pulumiverse

harbor.Registry

Explore with Pulumi AI

harbor logo
Harbor v3.9.1 published on Tuesday, May 30, 2023 by Pulumiverse

    Import

    Harbor project can be imported using the registry id eg, `

     $ pulumi import harbor:index/registry:Registry main /registries/7
    

    `

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harbor = Pulumiverse.Harbor;
    
    return await Deployment.RunAsync(() => 
    {
        var main = new Harbor.Registry("main", new()
        {
            EndpointUrl = "https://hub.docker.com",
            ProviderName = "docker-hub",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-harbor/sdk/v3/go/harbor"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := harbor.NewRegistry(ctx, "main", &harbor.RegistryArgs{
    			EndpointUrl:  pulumi.String("https://hub.docker.com"),
    			ProviderName: pulumi.String("docker-hub"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harbor.Registry;
    import com.pulumi.harbor.RegistryArgs;
    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) {
            var main = new Registry("main", RegistryArgs.builder()        
                .endpointUrl("https://hub.docker.com")
                .providerName("docker-hub")
                .build());
    
        }
    }
    
    import pulumi
    import pulumiverse_harbor as harbor
    
    main = harbor.Registry("main",
        endpoint_url="https://hub.docker.com",
        provider_name="docker-hub")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as harbor from "@pulumiverse/harbor";
    
    const main = new harbor.Registry("main", {
        endpointUrl: "https://hub.docker.com",
        providerName: "docker-hub",
    });
    
    resources:
      main:
        type: harbor:Registry
        properties:
          endpointUrl: https://hub.docker.com
          providerName: docker-hub
    

    Create Registry Resource

    new Registry(name: string, args: RegistryArgs, opts?: CustomResourceOptions);
    @overload
    def Registry(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 access_id: Optional[str] = None,
                 access_secret: Optional[str] = None,
                 description: Optional[str] = None,
                 endpoint_url: Optional[str] = None,
                 insecure: Optional[bool] = None,
                 name: Optional[str] = None,
                 provider_name: Optional[str] = None)
    @overload
    def Registry(resource_name: str,
                 args: RegistryArgs,
                 opts: Optional[ResourceOptions] = None)
    func NewRegistry(ctx *Context, name string, args RegistryArgs, opts ...ResourceOption) (*Registry, error)
    public Registry(string name, RegistryArgs args, CustomResourceOptions? opts = null)
    public Registry(String name, RegistryArgs args)
    public Registry(String name, RegistryArgs args, CustomResourceOptions options)
    
    type: harbor:Registry
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args RegistryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args RegistryArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args RegistryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RegistryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RegistryArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Registry Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Registry resource accepts the following input properties:

    EndpointUrl string
    ProviderName string
    AccessId string
    AccessSecret string
    Description string
    Insecure bool
    Name string
    EndpointUrl string
    ProviderName string
    AccessId string
    AccessSecret string
    Description string
    Insecure bool
    Name string
    endpointUrl String
    providerName String
    accessId String
    accessSecret String
    description String
    insecure Boolean
    name String
    endpointUrl string
    providerName string
    accessId string
    accessSecret string
    description string
    insecure boolean
    name string
    endpointUrl String
    providerName String
    accessId String
    accessSecret String
    description String
    insecure Boolean
    name String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Registry resource produces the following output properties:

    Id string

    The provider-assigned unique ID for this managed resource.

    RegistryId int
    Status string
    Id string

    The provider-assigned unique ID for this managed resource.

    RegistryId int
    Status string
    id String

    The provider-assigned unique ID for this managed resource.

    registryId Integer
    status String
    id string

    The provider-assigned unique ID for this managed resource.

    registryId number
    status string
    id str

    The provider-assigned unique ID for this managed resource.

    registry_id int
    status str
    id String

    The provider-assigned unique ID for this managed resource.

    registryId Number
    status String

    Look up Existing Registry Resource

    Get an existing Registry resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: RegistryState, opts?: CustomResourceOptions): Registry
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_id: Optional[str] = None,
            access_secret: Optional[str] = None,
            description: Optional[str] = None,
            endpoint_url: Optional[str] = None,
            insecure: Optional[bool] = None,
            name: Optional[str] = None,
            provider_name: Optional[str] = None,
            registry_id: Optional[int] = None,
            status: Optional[str] = None) -> Registry
    func GetRegistry(ctx *Context, name string, id IDInput, state *RegistryState, opts ...ResourceOption) (*Registry, error)
    public static Registry Get(string name, Input<string> id, RegistryState? state, CustomResourceOptions? opts = null)
    public static Registry get(String name, Output<String> id, RegistryState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccessId string
    AccessSecret string
    Description string
    EndpointUrl string
    Insecure bool
    Name string
    ProviderName string
    RegistryId int
    Status string
    AccessId string
    AccessSecret string
    Description string
    EndpointUrl string
    Insecure bool
    Name string
    ProviderName string
    RegistryId int
    Status string
    accessId String
    accessSecret String
    description String
    endpointUrl String
    insecure Boolean
    name String
    providerName String
    registryId Integer
    status String
    accessId string
    accessSecret string
    description string
    endpointUrl string
    insecure boolean
    name string
    providerName string
    registryId number
    status string
    accessId String
    accessSecret String
    description String
    endpointUrl String
    insecure Boolean
    name String
    providerName String
    registryId Number
    status String

    Package Details

    Repository
    harbor pulumiverse/pulumi-harbor
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the harbor Terraform Provider.

    harbor logo
    Harbor v3.9.1 published on Tuesday, May 30, 2023 by Pulumiverse