1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. TcssImageRegistry
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.TcssImageRegistry

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a tcss image registry

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.TcssImageRegistry("example", {
        connDetectConfigs: [{
            quuid: "backend",
            uuid: "backend",
        }],
        needScan: true,
        netType: "public",
        password: "Password@demo",
        registryRegion: "default",
        registryType: "harbor",
        registryVersion: "V1",
        url: "https://example.com",
        username: "root",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.TcssImageRegistry("example",
        conn_detect_configs=[{
            "quuid": "backend",
            "uuid": "backend",
        }],
        need_scan=True,
        net_type="public",
        password="Password@demo",
        registry_region="default",
        registry_type="harbor",
        registry_version="V1",
        url="https://example.com",
        username="root")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewTcssImageRegistry(ctx, "example", &tencentcloud.TcssImageRegistryArgs{
    			ConnDetectConfigs: tencentcloud.TcssImageRegistryConnDetectConfigArray{
    				&tencentcloud.TcssImageRegistryConnDetectConfigArgs{
    					Quuid: pulumi.String("backend"),
    					Uuid:  pulumi.String("backend"),
    				},
    			},
    			NeedScan:        pulumi.Bool(true),
    			NetType:         pulumi.String("public"),
    			Password:        pulumi.String("Password@demo"),
    			RegistryRegion:  pulumi.String("default"),
    			RegistryType:    pulumi.String("harbor"),
    			RegistryVersion: pulumi.String("V1"),
    			Url:             pulumi.String("https://example.com"),
    			Username:        pulumi.String("root"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.TcssImageRegistry("example", new()
        {
            ConnDetectConfigs = new[]
            {
                new Tencentcloud.Inputs.TcssImageRegistryConnDetectConfigArgs
                {
                    Quuid = "backend",
                    Uuid = "backend",
                },
            },
            NeedScan = true,
            NetType = "public",
            Password = "Password@demo",
            RegistryRegion = "default",
            RegistryType = "harbor",
            RegistryVersion = "V1",
            Url = "https://example.com",
            Username = "root",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TcssImageRegistry;
    import com.pulumi.tencentcloud.TcssImageRegistryArgs;
    import com.pulumi.tencentcloud.inputs.TcssImageRegistryConnDetectConfigArgs;
    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 example = new TcssImageRegistry("example", TcssImageRegistryArgs.builder()
                .connDetectConfigs(TcssImageRegistryConnDetectConfigArgs.builder()
                    .quuid("backend")
                    .uuid("backend")
                    .build())
                .needScan(true)
                .netType("public")
                .password("Password@demo")
                .registryRegion("default")
                .registryType("harbor")
                .registryVersion("V1")
                .url("https://example.com")
                .username("root")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:TcssImageRegistry
        properties:
          connDetectConfigs:
            - quuid: backend
              uuid: backend
          needScan: true
          netType: public
          password: Password@demo
          registryRegion: default
          registryType: harbor
          registryVersion: V1
          url: https://example.com
          username: root
    

    Create TcssImageRegistry Resource

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

    Constructor syntax

    new TcssImageRegistry(name: string, args: TcssImageRegistryArgs, opts?: CustomResourceOptions);
    @overload
    def TcssImageRegistry(resource_name: str,
                          args: TcssImageRegistryArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def TcssImageRegistry(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          password: Optional[str] = None,
                          username: Optional[str] = None,
                          url: Optional[str] = None,
                          registry_type: Optional[str] = None,
                          net_type: Optional[str] = None,
                          registry_region: Optional[str] = None,
                          conn_detect_configs: Optional[Sequence[TcssImageRegistryConnDetectConfigArgs]] = None,
                          need_scan: Optional[bool] = None,
                          registry_version: Optional[str] = None,
                          speed_limit: Optional[float] = None,
                          tcss_image_registry_id: Optional[str] = None,
                          name: Optional[str] = None,
                          insecure: Optional[float] = None)
    func NewTcssImageRegistry(ctx *Context, name string, args TcssImageRegistryArgs, opts ...ResourceOption) (*TcssImageRegistry, error)
    public TcssImageRegistry(string name, TcssImageRegistryArgs args, CustomResourceOptions? opts = null)
    public TcssImageRegistry(String name, TcssImageRegistryArgs args)
    public TcssImageRegistry(String name, TcssImageRegistryArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TcssImageRegistry
    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 TcssImageRegistryArgs
    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 TcssImageRegistryArgs
    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 TcssImageRegistryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TcssImageRegistryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TcssImageRegistryArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    TcssImageRegistry Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The TcssImageRegistry resource accepts the following input properties:

    NetType string
    Network type, which can be public (public network).
    Password string
    Password.
    RegistryType string
    Repository type, which can be harbor. Valid values: harbor, quay, jfrog, aws, azure, other-tcr.
    Url string
    Repository URL.
    Username string
    Username.
    ConnDetectConfigs List<TcssImageRegistryConnDetectConfig>
    Connectivity detection configuration.
    Insecure double
    Valid values: 0 (secure mode with certificate verification, which is the default value); 1 (unsecure mode that skips certificate verification).
    Name string
    Repository name.
    NeedScan bool
    Whether to scan the latest image.
    RegistryRegion string
    Region. Default value: default.
    RegistryVersion string
    Repository version.
    SpeedLimit double
    Speed limit.
    TcssImageRegistryId string
    ID of the resource.
    NetType string
    Network type, which can be public (public network).
    Password string
    Password.
    RegistryType string
    Repository type, which can be harbor. Valid values: harbor, quay, jfrog, aws, azure, other-tcr.
    Url string
    Repository URL.
    Username string
    Username.
    ConnDetectConfigs []TcssImageRegistryConnDetectConfigArgs
    Connectivity detection configuration.
    Insecure float64
    Valid values: 0 (secure mode with certificate verification, which is the default value); 1 (unsecure mode that skips certificate verification).
    Name string
    Repository name.
    NeedScan bool
    Whether to scan the latest image.
    RegistryRegion string
    Region. Default value: default.
    RegistryVersion string
    Repository version.
    SpeedLimit float64
    Speed limit.
    TcssImageRegistryId string
    ID of the resource.
    netType String
    Network type, which can be public (public network).
    password String
    Password.
    registryType String
    Repository type, which can be harbor. Valid values: harbor, quay, jfrog, aws, azure, other-tcr.
    url String
    Repository URL.
    username String
    Username.
    connDetectConfigs List<TcssImageRegistryConnDetectConfig>
    Connectivity detection configuration.
    insecure Double
    Valid values: 0 (secure mode with certificate verification, which is the default value); 1 (unsecure mode that skips certificate verification).
    name String
    Repository name.
    needScan Boolean
    Whether to scan the latest image.
    registryRegion String
    Region. Default value: default.
    registryVersion String
    Repository version.
    speedLimit Double
    Speed limit.
    tcssImageRegistryId String
    ID of the resource.
    netType string
    Network type, which can be public (public network).
    password string
    Password.
    registryType string
    Repository type, which can be harbor. Valid values: harbor, quay, jfrog, aws, azure, other-tcr.
    url string
    Repository URL.
    username string
    Username.
    connDetectConfigs TcssImageRegistryConnDetectConfig[]
    Connectivity detection configuration.
    insecure number
    Valid values: 0 (secure mode with certificate verification, which is the default value); 1 (unsecure mode that skips certificate verification).
    name string
    Repository name.
    needScan boolean
    Whether to scan the latest image.
    registryRegion string
    Region. Default value: default.
    registryVersion string
    Repository version.
    speedLimit number
    Speed limit.
    tcssImageRegistryId string
    ID of the resource.
    net_type str
    Network type, which can be public (public network).
    password str
    Password.
    registry_type str
    Repository type, which can be harbor. Valid values: harbor, quay, jfrog, aws, azure, other-tcr.
    url str
    Repository URL.
    username str
    Username.
    conn_detect_configs Sequence[TcssImageRegistryConnDetectConfigArgs]
    Connectivity detection configuration.
    insecure float
    Valid values: 0 (secure mode with certificate verification, which is the default value); 1 (unsecure mode that skips certificate verification).
    name str
    Repository name.
    need_scan bool
    Whether to scan the latest image.
    registry_region str
    Region. Default value: default.
    registry_version str
    Repository version.
    speed_limit float
    Speed limit.
    tcss_image_registry_id str
    ID of the resource.
    netType String
    Network type, which can be public (public network).
    password String
    Password.
    registryType String
    Repository type, which can be harbor. Valid values: harbor, quay, jfrog, aws, azure, other-tcr.
    url String
    Repository URL.
    username String
    Username.
    connDetectConfigs List<Property Map>
    Connectivity detection configuration.
    insecure Number
    Valid values: 0 (secure mode with certificate verification, which is the default value); 1 (unsecure mode that skips certificate verification).
    name String
    Repository name.
    needScan Boolean
    Whether to scan the latest image.
    registryRegion String
    Region. Default value: default.
    registryVersion String
    Repository version.
    speedLimit Number
    Speed limit.
    tcssImageRegistryId String
    ID of the resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    SyncStatus string
    Sync status.
    Id string
    The provider-assigned unique ID for this managed resource.
    SyncStatus string
    Sync status.
    id String
    The provider-assigned unique ID for this managed resource.
    syncStatus String
    Sync status.
    id string
    The provider-assigned unique ID for this managed resource.
    syncStatus string
    Sync status.
    id str
    The provider-assigned unique ID for this managed resource.
    sync_status str
    Sync status.
    id String
    The provider-assigned unique ID for this managed resource.
    syncStatus String
    Sync status.

    Look up Existing TcssImageRegistry Resource

    Get an existing TcssImageRegistry 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?: TcssImageRegistryState, opts?: CustomResourceOptions): TcssImageRegistry
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            conn_detect_configs: Optional[Sequence[TcssImageRegistryConnDetectConfigArgs]] = None,
            insecure: Optional[float] = None,
            name: Optional[str] = None,
            need_scan: Optional[bool] = None,
            net_type: Optional[str] = None,
            password: Optional[str] = None,
            registry_region: Optional[str] = None,
            registry_type: Optional[str] = None,
            registry_version: Optional[str] = None,
            speed_limit: Optional[float] = None,
            sync_status: Optional[str] = None,
            tcss_image_registry_id: Optional[str] = None,
            url: Optional[str] = None,
            username: Optional[str] = None) -> TcssImageRegistry
    func GetTcssImageRegistry(ctx *Context, name string, id IDInput, state *TcssImageRegistryState, opts ...ResourceOption) (*TcssImageRegistry, error)
    public static TcssImageRegistry Get(string name, Input<string> id, TcssImageRegistryState? state, CustomResourceOptions? opts = null)
    public static TcssImageRegistry get(String name, Output<String> id, TcssImageRegistryState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TcssImageRegistry    get:      id: ${id}
    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:
    ConnDetectConfigs List<TcssImageRegistryConnDetectConfig>
    Connectivity detection configuration.
    Insecure double
    Valid values: 0 (secure mode with certificate verification, which is the default value); 1 (unsecure mode that skips certificate verification).
    Name string
    Repository name.
    NeedScan bool
    Whether to scan the latest image.
    NetType string
    Network type, which can be public (public network).
    Password string
    Password.
    RegistryRegion string
    Region. Default value: default.
    RegistryType string
    Repository type, which can be harbor. Valid values: harbor, quay, jfrog, aws, azure, other-tcr.
    RegistryVersion string
    Repository version.
    SpeedLimit double
    Speed limit.
    SyncStatus string
    Sync status.
    TcssImageRegistryId string
    ID of the resource.
    Url string
    Repository URL.
    Username string
    Username.
    ConnDetectConfigs []TcssImageRegistryConnDetectConfigArgs
    Connectivity detection configuration.
    Insecure float64
    Valid values: 0 (secure mode with certificate verification, which is the default value); 1 (unsecure mode that skips certificate verification).
    Name string
    Repository name.
    NeedScan bool
    Whether to scan the latest image.
    NetType string
    Network type, which can be public (public network).
    Password string
    Password.
    RegistryRegion string
    Region. Default value: default.
    RegistryType string
    Repository type, which can be harbor. Valid values: harbor, quay, jfrog, aws, azure, other-tcr.
    RegistryVersion string
    Repository version.
    SpeedLimit float64
    Speed limit.
    SyncStatus string
    Sync status.
    TcssImageRegistryId string
    ID of the resource.
    Url string
    Repository URL.
    Username string
    Username.
    connDetectConfigs List<TcssImageRegistryConnDetectConfig>
    Connectivity detection configuration.
    insecure Double
    Valid values: 0 (secure mode with certificate verification, which is the default value); 1 (unsecure mode that skips certificate verification).
    name String
    Repository name.
    needScan Boolean
    Whether to scan the latest image.
    netType String
    Network type, which can be public (public network).
    password String
    Password.
    registryRegion String
    Region. Default value: default.
    registryType String
    Repository type, which can be harbor. Valid values: harbor, quay, jfrog, aws, azure, other-tcr.
    registryVersion String
    Repository version.
    speedLimit Double
    Speed limit.
    syncStatus String
    Sync status.
    tcssImageRegistryId String
    ID of the resource.
    url String
    Repository URL.
    username String
    Username.
    connDetectConfigs TcssImageRegistryConnDetectConfig[]
    Connectivity detection configuration.
    insecure number
    Valid values: 0 (secure mode with certificate verification, which is the default value); 1 (unsecure mode that skips certificate verification).
    name string
    Repository name.
    needScan boolean
    Whether to scan the latest image.
    netType string
    Network type, which can be public (public network).
    password string
    Password.
    registryRegion string
    Region. Default value: default.
    registryType string
    Repository type, which can be harbor. Valid values: harbor, quay, jfrog, aws, azure, other-tcr.
    registryVersion string
    Repository version.
    speedLimit number
    Speed limit.
    syncStatus string
    Sync status.
    tcssImageRegistryId string
    ID of the resource.
    url string
    Repository URL.
    username string
    Username.
    conn_detect_configs Sequence[TcssImageRegistryConnDetectConfigArgs]
    Connectivity detection configuration.
    insecure float
    Valid values: 0 (secure mode with certificate verification, which is the default value); 1 (unsecure mode that skips certificate verification).
    name str
    Repository name.
    need_scan bool
    Whether to scan the latest image.
    net_type str
    Network type, which can be public (public network).
    password str
    Password.
    registry_region str
    Region. Default value: default.
    registry_type str
    Repository type, which can be harbor. Valid values: harbor, quay, jfrog, aws, azure, other-tcr.
    registry_version str
    Repository version.
    speed_limit float
    Speed limit.
    sync_status str
    Sync status.
    tcss_image_registry_id str
    ID of the resource.
    url str
    Repository URL.
    username str
    Username.
    connDetectConfigs List<Property Map>
    Connectivity detection configuration.
    insecure Number
    Valid values: 0 (secure mode with certificate verification, which is the default value); 1 (unsecure mode that skips certificate verification).
    name String
    Repository name.
    needScan Boolean
    Whether to scan the latest image.
    netType String
    Network type, which can be public (public network).
    password String
    Password.
    registryRegion String
    Region. Default value: default.
    registryType String
    Repository type, which can be harbor. Valid values: harbor, quay, jfrog, aws, azure, other-tcr.
    registryVersion String
    Repository version.
    speedLimit Number
    Speed limit.
    syncStatus String
    Sync status.
    tcssImageRegistryId String
    ID of the resource.
    url String
    Repository URL.
    username String
    Username.

    Supporting Types

    TcssImageRegistryConnDetectConfig, TcssImageRegistryConnDetectConfigArgs

    Quuid string
    Host Quuid.
    Uuid string
    Host uuid.
    Quuid string
    Host Quuid.
    Uuid string
    Host uuid.
    quuid String
    Host Quuid.
    uuid String
    Host uuid.
    quuid string
    Host Quuid.
    uuid string
    Host uuid.
    quuid str
    Host Quuid.
    uuid str
    Host uuid.
    quuid String
    Host Quuid.
    uuid String
    Host uuid.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack