1. Packages
  2. Nutanix
  3. API Docs
  4. KarbonPrivateRegistry
Nutanix v0.1.0 published on Tuesday, Sep 24, 2024 by Piers Karsenbarg

nutanix.KarbonPrivateRegistry

Explore with Pulumi AI

nutanix logo
Nutanix v0.1.0 published on Tuesday, Sep 24, 2024 by Piers Karsenbarg

    Provides a Nutanix Karbon Registry resource to Create a private registry entry in Karbon.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pierskarsenbarg/nutanix";
    import * as nutanix from "@pulumi/nutanix";
    
    const registries = nutanix.getKarbonPrivateRegistry({});
    const registry = new nutanix.KarbonPrivateRegistry("registry", {});
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    registries = nutanix.get_karbon_private_registry()
    registry = nutanix.KarbonPrivateRegistry("registry")
    
    package main
    
    import (
    	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := nutanix.LookupKarbonPrivateRegistry(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		_, err = nutanix.NewKarbonPrivateRegistry(ctx, "registry", nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nutanix = PiersKarsenbarg.Nutanix;
    using Nutanix = Pulumi.Nutanix;
    
    return await Deployment.RunAsync(() => 
    {
        var registries = Nutanix.GetKarbonPrivateRegistry.Invoke();
    
        var registry = new Nutanix.KarbonPrivateRegistry("registry");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.NutanixFunctions;
    import com.pulumi.nutanix.inputs.GetKarbonPrivateRegistryArgs;
    import com.pulumi.nutanix.KarbonPrivateRegistry;
    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 registries = NutanixFunctions.getKarbonPrivateRegistry();
    
            var registry = new KarbonPrivateRegistry("registry");
    
        }
    }
    
    resources:
      registry:
        type: nutanix:KarbonPrivateRegistry
    variables:
      registries:
        fn::invoke:
          Function: nutanix:getKarbonPrivateRegistry
          Arguments: {}
    

    Create KarbonPrivateRegistry Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new KarbonPrivateRegistry(name: string, args: KarbonPrivateRegistryArgs, opts?: CustomResourceOptions);
    @overload
    def KarbonPrivateRegistry(resource_name: str,
                              args: KarbonPrivateRegistryArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def KarbonPrivateRegistry(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              url: Optional[str] = None,
                              cert: Optional[str] = None,
                              name: Optional[str] = None,
                              password: Optional[str] = None,
                              port: Optional[int] = None,
                              username: Optional[str] = None)
    func NewKarbonPrivateRegistry(ctx *Context, name string, args KarbonPrivateRegistryArgs, opts ...ResourceOption) (*KarbonPrivateRegistry, error)
    public KarbonPrivateRegistry(string name, KarbonPrivateRegistryArgs args, CustomResourceOptions? opts = null)
    public KarbonPrivateRegistry(String name, KarbonPrivateRegistryArgs args)
    public KarbonPrivateRegistry(String name, KarbonPrivateRegistryArgs args, CustomResourceOptions options)
    
    type: nutanix:KarbonPrivateRegistry
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args KarbonPrivateRegistryArgs
    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 KarbonPrivateRegistryArgs
    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 KarbonPrivateRegistryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args KarbonPrivateRegistryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args KarbonPrivateRegistryArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var karbonPrivateRegistryResource = new Nutanix.KarbonPrivateRegistry("karbonPrivateRegistryResource", new()
    {
        Url = "string",
        Cert = "string",
        Name = "string",
        Password = "string",
        Port = 0,
        Username = "string",
    });
    
    example, err := nutanix.NewKarbonPrivateRegistry(ctx, "karbonPrivateRegistryResource", &nutanix.KarbonPrivateRegistryArgs{
    	Url:      pulumi.String("string"),
    	Cert:     pulumi.String("string"),
    	Name:     pulumi.String("string"),
    	Password: pulumi.String("string"),
    	Port:     pulumi.Int(0),
    	Username: pulumi.String("string"),
    })
    
    var karbonPrivateRegistryResource = new KarbonPrivateRegistry("karbonPrivateRegistryResource", KarbonPrivateRegistryArgs.builder()
        .url("string")
        .cert("string")
        .name("string")
        .password("string")
        .port(0)
        .username("string")
        .build());
    
    karbon_private_registry_resource = nutanix.KarbonPrivateRegistry("karbonPrivateRegistryResource",
        url="string",
        cert="string",
        name="string",
        password="string",
        port=0,
        username="string")
    
    const karbonPrivateRegistryResource = new nutanix.KarbonPrivateRegistry("karbonPrivateRegistryResource", {
        url: "string",
        cert: "string",
        name: "string",
        password: "string",
        port: 0,
        username: "string",
    });
    
    type: nutanix:KarbonPrivateRegistry
    properties:
        cert: string
        name: string
        password: string
        port: 0
        url: string
        username: string
    

    KarbonPrivateRegistry 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 KarbonPrivateRegistry resource accepts the following input properties:

    Url string
    • (Optional) URL of the private registry. Note: Updates to this attribute forces new resource creation.
    Cert string
    • (Optional) Certificate of the private registry in format of base64-encoded byte array. Note: Updates to this attribute forces new resource creation.
    Name string
    • (Required) Name of the private registry configuration. Note: Updates to this attribute forces new resource creation.
    Password string
    • (Optional) Password for authentication to the private registry. Note: Updates to this attribute forces new resource creation.
    Port int
    • (Optional) Port of the private registry.
    Username string
    • (Optional) Username for authentication to the private registry. Note: Updates to this attribute forces new resource creation.
    Url string
    • (Optional) URL of the private registry. Note: Updates to this attribute forces new resource creation.
    Cert string
    • (Optional) Certificate of the private registry in format of base64-encoded byte array. Note: Updates to this attribute forces new resource creation.
    Name string
    • (Required) Name of the private registry configuration. Note: Updates to this attribute forces new resource creation.
    Password string
    • (Optional) Password for authentication to the private registry. Note: Updates to this attribute forces new resource creation.
    Port int
    • (Optional) Port of the private registry.
    Username string
    • (Optional) Username for authentication to the private registry. Note: Updates to this attribute forces new resource creation.
    url String
    • (Optional) URL of the private registry. Note: Updates to this attribute forces new resource creation.
    cert String
    • (Optional) Certificate of the private registry in format of base64-encoded byte array. Note: Updates to this attribute forces new resource creation.
    name String
    • (Required) Name of the private registry configuration. Note: Updates to this attribute forces new resource creation.
    password String
    • (Optional) Password for authentication to the private registry. Note: Updates to this attribute forces new resource creation.
    port Integer
    • (Optional) Port of the private registry.
    username String
    • (Optional) Username for authentication to the private registry. Note: Updates to this attribute forces new resource creation.
    url string
    • (Optional) URL of the private registry. Note: Updates to this attribute forces new resource creation.
    cert string
    • (Optional) Certificate of the private registry in format of base64-encoded byte array. Note: Updates to this attribute forces new resource creation.
    name string
    • (Required) Name of the private registry configuration. Note: Updates to this attribute forces new resource creation.
    password string
    • (Optional) Password for authentication to the private registry. Note: Updates to this attribute forces new resource creation.
    port number
    • (Optional) Port of the private registry.
    username string
    • (Optional) Username for authentication to the private registry. Note: Updates to this attribute forces new resource creation.
    url str
    • (Optional) URL of the private registry. Note: Updates to this attribute forces new resource creation.
    cert str
    • (Optional) Certificate of the private registry in format of base64-encoded byte array. Note: Updates to this attribute forces new resource creation.
    name str
    • (Required) Name of the private registry configuration. Note: Updates to this attribute forces new resource creation.
    password str
    • (Optional) Password for authentication to the private registry. Note: Updates to this attribute forces new resource creation.
    port int
    • (Optional) Port of the private registry.
    username str
    • (Optional) Username for authentication to the private registry. Note: Updates to this attribute forces new resource creation.
    url String
    • (Optional) URL of the private registry. Note: Updates to this attribute forces new resource creation.
    cert String
    • (Optional) Certificate of the private registry in format of base64-encoded byte array. Note: Updates to this attribute forces new resource creation.
    name String
    • (Required) Name of the private registry configuration. Note: Updates to this attribute forces new resource creation.
    password String
    • (Optional) Password for authentication to the private registry. Note: Updates to this attribute forces new resource creation.
    port Number
    • (Optional) Port of the private registry.
    username String
    • (Optional) Username for authentication to the private registry. Note: Updates to this attribute forces new resource creation.

    Outputs

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

    Endpoint string
    • Endpoint of the private in format url:port.
    Id string
    The provider-assigned unique ID for this managed resource.
    Endpoint string
    • Endpoint of the private in format url:port.
    Id string
    The provider-assigned unique ID for this managed resource.
    endpoint String
    • Endpoint of the private in format url:port.
    id String
    The provider-assigned unique ID for this managed resource.
    endpoint string
    • Endpoint of the private in format url:port.
    id string
    The provider-assigned unique ID for this managed resource.
    endpoint str
    • Endpoint of the private in format url:port.
    id str
    The provider-assigned unique ID for this managed resource.
    endpoint String
    • Endpoint of the private in format url:port.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing KarbonPrivateRegistry Resource

    Get an existing KarbonPrivateRegistry 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?: KarbonPrivateRegistryState, opts?: CustomResourceOptions): KarbonPrivateRegistry
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cert: Optional[str] = None,
            endpoint: Optional[str] = None,
            name: Optional[str] = None,
            password: Optional[str] = None,
            port: Optional[int] = None,
            url: Optional[str] = None,
            username: Optional[str] = None) -> KarbonPrivateRegistry
    func GetKarbonPrivateRegistry(ctx *Context, name string, id IDInput, state *KarbonPrivateRegistryState, opts ...ResourceOption) (*KarbonPrivateRegistry, error)
    public static KarbonPrivateRegistry Get(string name, Input<string> id, KarbonPrivateRegistryState? state, CustomResourceOptions? opts = null)
    public static KarbonPrivateRegistry get(String name, Output<String> id, KarbonPrivateRegistryState 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:
    Cert string
    • (Optional) Certificate of the private registry in format of base64-encoded byte array. Note: Updates to this attribute forces new resource creation.
    Endpoint string
    • Endpoint of the private in format url:port.
    Name string
    • (Required) Name of the private registry configuration. Note: Updates to this attribute forces new resource creation.
    Password string
    • (Optional) Password for authentication to the private registry. Note: Updates to this attribute forces new resource creation.
    Port int
    • (Optional) Port of the private registry.
    Url string
    • (Optional) URL of the private registry. Note: Updates to this attribute forces new resource creation.
    Username string
    • (Optional) Username for authentication to the private registry. Note: Updates to this attribute forces new resource creation.
    Cert string
    • (Optional) Certificate of the private registry in format of base64-encoded byte array. Note: Updates to this attribute forces new resource creation.
    Endpoint string
    • Endpoint of the private in format url:port.
    Name string
    • (Required) Name of the private registry configuration. Note: Updates to this attribute forces new resource creation.
    Password string
    • (Optional) Password for authentication to the private registry. Note: Updates to this attribute forces new resource creation.
    Port int
    • (Optional) Port of the private registry.
    Url string
    • (Optional) URL of the private registry. Note: Updates to this attribute forces new resource creation.
    Username string
    • (Optional) Username for authentication to the private registry. Note: Updates to this attribute forces new resource creation.
    cert String
    • (Optional) Certificate of the private registry in format of base64-encoded byte array. Note: Updates to this attribute forces new resource creation.
    endpoint String
    • Endpoint of the private in format url:port.
    name String
    • (Required) Name of the private registry configuration. Note: Updates to this attribute forces new resource creation.
    password String
    • (Optional) Password for authentication to the private registry. Note: Updates to this attribute forces new resource creation.
    port Integer
    • (Optional) Port of the private registry.
    url String
    • (Optional) URL of the private registry. Note: Updates to this attribute forces new resource creation.
    username String
    • (Optional) Username for authentication to the private registry. Note: Updates to this attribute forces new resource creation.
    cert string
    • (Optional) Certificate of the private registry in format of base64-encoded byte array. Note: Updates to this attribute forces new resource creation.
    endpoint string
    • Endpoint of the private in format url:port.
    name string
    • (Required) Name of the private registry configuration. Note: Updates to this attribute forces new resource creation.
    password string
    • (Optional) Password for authentication to the private registry. Note: Updates to this attribute forces new resource creation.
    port number
    • (Optional) Port of the private registry.
    url string
    • (Optional) URL of the private registry. Note: Updates to this attribute forces new resource creation.
    username string
    • (Optional) Username for authentication to the private registry. Note: Updates to this attribute forces new resource creation.
    cert str
    • (Optional) Certificate of the private registry in format of base64-encoded byte array. Note: Updates to this attribute forces new resource creation.
    endpoint str
    • Endpoint of the private in format url:port.
    name str
    • (Required) Name of the private registry configuration. Note: Updates to this attribute forces new resource creation.
    password str
    • (Optional) Password for authentication to the private registry. Note: Updates to this attribute forces new resource creation.
    port int
    • (Optional) Port of the private registry.
    url str
    • (Optional) URL of the private registry. Note: Updates to this attribute forces new resource creation.
    username str
    • (Optional) Username for authentication to the private registry. Note: Updates to this attribute forces new resource creation.
    cert String
    • (Optional) Certificate of the private registry in format of base64-encoded byte array. Note: Updates to this attribute forces new resource creation.
    endpoint String
    • Endpoint of the private in format url:port.
    name String
    • (Required) Name of the private registry configuration. Note: Updates to this attribute forces new resource creation.
    password String
    • (Optional) Password for authentication to the private registry. Note: Updates to this attribute forces new resource creation.
    port Number
    • (Optional) Port of the private registry.
    url String
    • (Optional) URL of the private registry. Note: Updates to this attribute forces new resource creation.
    username String
    • (Optional) Username for authentication to the private registry. Note: Updates to this attribute forces new resource creation.

    Package Details

    Repository
    nutanix pierskarsenbarg/pulumi-nutanix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the nutanix Terraform Provider.
    nutanix logo
    Nutanix v0.1.0 published on Tuesday, Sep 24, 2024 by Piers Karsenbarg