tencentcloud.TcssImageRegistry
Explore with Pulumi AI
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:
- Net
Type string - Network type, which can be
public
(public network). - Password string
- Password.
- Registry
Type string - Repository type, which can be
harbor
. Valid values: harbor, quay, jfrog, aws, azure, other-tcr. - Url string
- Repository URL.
- Username string
- Username.
- Conn
Detect List<TcssConfigs Image Registry Conn Detect Config> - 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.
- Need
Scan bool - Whether to scan the latest image.
- Registry
Region string - Region. Default value:
default
. - Registry
Version string - Repository version.
- Speed
Limit double - Speed limit.
- Tcss
Image stringRegistry Id - ID of the resource.
- Net
Type string - Network type, which can be
public
(public network). - Password string
- Password.
- Registry
Type string - Repository type, which can be
harbor
. Valid values: harbor, quay, jfrog, aws, azure, other-tcr. - Url string
- Repository URL.
- Username string
- Username.
- Conn
Detect []TcssConfigs Image Registry Conn Detect Config Args - 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.
- Need
Scan bool - Whether to scan the latest image.
- Registry
Region string - Region. Default value:
default
. - Registry
Version string - Repository version.
- Speed
Limit float64 - Speed limit.
- Tcss
Image stringRegistry Id - ID of the resource.
- net
Type String - Network type, which can be
public
(public network). - password String
- Password.
- registry
Type String - Repository type, which can be
harbor
. Valid values: harbor, quay, jfrog, aws, azure, other-tcr. - url String
- Repository URL.
- username String
- Username.
- conn
Detect List<TcssConfigs Image Registry Conn Detect Config> - 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.
- need
Scan Boolean - Whether to scan the latest image.
- registry
Region String - Region. Default value:
default
. - registry
Version String - Repository version.
- speed
Limit Double - Speed limit.
- tcss
Image StringRegistry Id - ID of the resource.
- net
Type string - Network type, which can be
public
(public network). - password string
- Password.
- registry
Type string - Repository type, which can be
harbor
. Valid values: harbor, quay, jfrog, aws, azure, other-tcr. - url string
- Repository URL.
- username string
- Username.
- conn
Detect TcssConfigs Image Registry Conn Detect Config[] - 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.
- need
Scan boolean - Whether to scan the latest image.
- registry
Region string - Region. Default value:
default
. - registry
Version string - Repository version.
- speed
Limit number - Speed limit.
- tcss
Image stringRegistry Id - 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_ Sequence[Tcssconfigs Image Registry Conn Detect Config Args] - 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_ strregistry_ id - ID of the resource.
- net
Type String - Network type, which can be
public
(public network). - password String
- Password.
- registry
Type String - Repository type, which can be
harbor
. Valid values: harbor, quay, jfrog, aws, azure, other-tcr. - url String
- Repository URL.
- username String
- Username.
- conn
Detect List<Property Map>Configs - 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.
- need
Scan Boolean - Whether to scan the latest image.
- registry
Region String - Region. Default value:
default
. - registry
Version String - Repository version.
- speed
Limit Number - Speed limit.
- tcss
Image StringRegistry Id - 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.
- Sync
Status string - Sync status.
- Id string
- The provider-assigned unique ID for this managed resource.
- Sync
Status string - Sync status.
- id String
- The provider-assigned unique ID for this managed resource.
- sync
Status String - Sync status.
- id string
- The provider-assigned unique ID for this managed resource.
- sync
Status 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.
- sync
Status 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.
- Conn
Detect List<TcssConfigs Image Registry Conn Detect Config> - 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.
- Need
Scan bool - Whether to scan the latest image.
- Net
Type string - Network type, which can be
public
(public network). - Password string
- Password.
- Registry
Region string - Region. Default value:
default
. - Registry
Type string - Repository type, which can be
harbor
. Valid values: harbor, quay, jfrog, aws, azure, other-tcr. - Registry
Version string - Repository version.
- Speed
Limit double - Speed limit.
- Sync
Status string - Sync status.
- Tcss
Image stringRegistry Id - ID of the resource.
- Url string
- Repository URL.
- Username string
- Username.
- Conn
Detect []TcssConfigs Image Registry Conn Detect Config Args - 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.
- Need
Scan bool - Whether to scan the latest image.
- Net
Type string - Network type, which can be
public
(public network). - Password string
- Password.
- Registry
Region string - Region. Default value:
default
. - Registry
Type string - Repository type, which can be
harbor
. Valid values: harbor, quay, jfrog, aws, azure, other-tcr. - Registry
Version string - Repository version.
- Speed
Limit float64 - Speed limit.
- Sync
Status string - Sync status.
- Tcss
Image stringRegistry Id - ID of the resource.
- Url string
- Repository URL.
- Username string
- Username.
- conn
Detect List<TcssConfigs Image Registry Conn Detect Config> - 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.
- need
Scan Boolean - Whether to scan the latest image.
- net
Type String - Network type, which can be
public
(public network). - password String
- Password.
- registry
Region String - Region. Default value:
default
. - registry
Type String - Repository type, which can be
harbor
. Valid values: harbor, quay, jfrog, aws, azure, other-tcr. - registry
Version String - Repository version.
- speed
Limit Double - Speed limit.
- sync
Status String - Sync status.
- tcss
Image StringRegistry Id - ID of the resource.
- url String
- Repository URL.
- username String
- Username.
- conn
Detect TcssConfigs Image Registry Conn Detect Config[] - 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.
- need
Scan boolean - Whether to scan the latest image.
- net
Type string - Network type, which can be
public
(public network). - password string
- Password.
- registry
Region string - Region. Default value:
default
. - registry
Type string - Repository type, which can be
harbor
. Valid values: harbor, quay, jfrog, aws, azure, other-tcr. - registry
Version string - Repository version.
- speed
Limit number - Speed limit.
- sync
Status string - Sync status.
- tcss
Image stringRegistry Id - ID of the resource.
- url string
- Repository URL.
- username string
- Username.
- conn_
detect_ Sequence[Tcssconfigs Image Registry Conn Detect Config Args] - 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_ strregistry_ id - ID of the resource.
- url str
- Repository URL.
- username str
- Username.
- conn
Detect List<Property Map>Configs - 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.
- need
Scan Boolean - Whether to scan the latest image.
- net
Type String - Network type, which can be
public
(public network). - password String
- Password.
- registry
Region String - Region. Default value:
default
. - registry
Type String - Repository type, which can be
harbor
. Valid values: harbor, quay, jfrog, aws, azure, other-tcr. - registry
Version String - Repository version.
- speed
Limit Number - Speed limit.
- sync
Status String - Sync status.
- tcss
Image StringRegistry Id - ID of the resource.
- url String
- Repository URL.
- username String
- Username.
Supporting Types
TcssImageRegistryConnDetectConfig, TcssImageRegistryConnDetectConfigArgs
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.