opentelekomcloud.SwrRepositoryV2
Explore with Pulumi AI
Up-to-date reference of API arguments for SWR repository you can get at documentation portal
Manages the SWR repository resource within Open Telekom Cloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const org1 = new opentelekomcloud.SwrOrganizationV2("org1", {});
const repo1 = new opentelekomcloud.SwrRepositoryV2("repo1", {
organization: org1.name,
description: "Test repository",
category: "linux",
isPublic: false,
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
org1 = opentelekomcloud.SwrOrganizationV2("org1")
repo1 = opentelekomcloud.SwrRepositoryV2("repo1",
organization=org1.name,
description="Test repository",
category="linux",
is_public=False)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
org1, err := opentelekomcloud.NewSwrOrganizationV2(ctx, "org1", nil)
if err != nil {
return err
}
_, err = opentelekomcloud.NewSwrRepositoryV2(ctx, "repo1", &opentelekomcloud.SwrRepositoryV2Args{
Organization: org1.Name,
Description: pulumi.String("Test repository"),
Category: pulumi.String("linux"),
IsPublic: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var org1 = new Opentelekomcloud.SwrOrganizationV2("org1");
var repo1 = new Opentelekomcloud.SwrRepositoryV2("repo1", new()
{
Organization = org1.Name,
Description = "Test repository",
Category = "linux",
IsPublic = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.SwrOrganizationV2;
import com.pulumi.opentelekomcloud.SwrRepositoryV2;
import com.pulumi.opentelekomcloud.SwrRepositoryV2Args;
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 org1 = new SwrOrganizationV2("org1");
var repo1 = new SwrRepositoryV2("repo1", SwrRepositoryV2Args.builder()
.organization(org1.name())
.description("Test repository")
.category("linux")
.isPublic(false)
.build());
}
}
resources:
org1:
type: opentelekomcloud:SwrOrganizationV2
repo1:
type: opentelekomcloud:SwrRepositoryV2
properties:
organization: ${org1.name}
description: Test repository
category: linux
isPublic: false
Create SwrRepositoryV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SwrRepositoryV2(name: string, args: SwrRepositoryV2Args, opts?: CustomResourceOptions);
@overload
def SwrRepositoryV2(resource_name: str,
args: SwrRepositoryV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def SwrRepositoryV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
is_public: Optional[bool] = None,
organization: Optional[str] = None,
category: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
swr_repository_v2_id: Optional[str] = None,
timeouts: Optional[SwrRepositoryV2TimeoutsArgs] = None)
func NewSwrRepositoryV2(ctx *Context, name string, args SwrRepositoryV2Args, opts ...ResourceOption) (*SwrRepositoryV2, error)
public SwrRepositoryV2(string name, SwrRepositoryV2Args args, CustomResourceOptions? opts = null)
public SwrRepositoryV2(String name, SwrRepositoryV2Args args)
public SwrRepositoryV2(String name, SwrRepositoryV2Args args, CustomResourceOptions options)
type: opentelekomcloud:SwrRepositoryV2
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 SwrRepositoryV2Args
- 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 SwrRepositoryV2Args
- 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 SwrRepositoryV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SwrRepositoryV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SwrRepositoryV2Args
- 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 swrRepositoryV2Resource = new Opentelekomcloud.SwrRepositoryV2("swrRepositoryV2Resource", new()
{
IsPublic = false,
Organization = "string",
Category = "string",
Description = "string",
Name = "string",
SwrRepositoryV2Id = "string",
Timeouts = new Opentelekomcloud.Inputs.SwrRepositoryV2TimeoutsArgs
{
Default = "string",
},
});
example, err := opentelekomcloud.NewSwrRepositoryV2(ctx, "swrRepositoryV2Resource", &opentelekomcloud.SwrRepositoryV2Args{
IsPublic: pulumi.Bool(false),
Organization: pulumi.String("string"),
Category: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
SwrRepositoryV2Id: pulumi.String("string"),
Timeouts: &opentelekomcloud.SwrRepositoryV2TimeoutsArgs{
Default: pulumi.String("string"),
},
})
var swrRepositoryV2Resource = new SwrRepositoryV2("swrRepositoryV2Resource", SwrRepositoryV2Args.builder()
.isPublic(false)
.organization("string")
.category("string")
.description("string")
.name("string")
.swrRepositoryV2Id("string")
.timeouts(SwrRepositoryV2TimeoutsArgs.builder()
.default_("string")
.build())
.build());
swr_repository_v2_resource = opentelekomcloud.SwrRepositoryV2("swrRepositoryV2Resource",
is_public=False,
organization="string",
category="string",
description="string",
name="string",
swr_repository_v2_id="string",
timeouts={
"default": "string",
})
const swrRepositoryV2Resource = new opentelekomcloud.SwrRepositoryV2("swrRepositoryV2Resource", {
isPublic: false,
organization: "string",
category: "string",
description: "string",
name: "string",
swrRepositoryV2Id: "string",
timeouts: {
"default": "string",
},
});
type: opentelekomcloud:SwrRepositoryV2
properties:
category: string
description: string
isPublic: false
name: string
organization: string
swrRepositoryV2Id: string
timeouts:
default: string
SwrRepositoryV2 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 SwrRepositoryV2 resource accepts the following input properties:
- Is
Public bool - Whether the repository is public.
When the value is
true
, it indicates the repository is public. When the value isfalse
, it indicates the repository is private. - Organization string
- The name of the repository organization.
- Category string
- Repository category. The value can be
app_server
,linux
,framework_app
,database
,lang
,other
,windows
,arm
. - Description string
- Repository description.
- Name string
- Enter 1 to 128 characters, starting and ending with a lowercase letter or digit.
Only lowercase letters, digits, periods (
.
), slashes (/
), underscores (_
), and hyphens (-
) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed. - Swr
Repository stringV2Id - Timeouts
Swr
Repository V2Timeouts
- Is
Public bool - Whether the repository is public.
When the value is
true
, it indicates the repository is public. When the value isfalse
, it indicates the repository is private. - Organization string
- The name of the repository organization.
- Category string
- Repository category. The value can be
app_server
,linux
,framework_app
,database
,lang
,other
,windows
,arm
. - Description string
- Repository description.
- Name string
- Enter 1 to 128 characters, starting and ending with a lowercase letter or digit.
Only lowercase letters, digits, periods (
.
), slashes (/
), underscores (_
), and hyphens (-
) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed. - Swr
Repository stringV2Id - Timeouts
Swr
Repository V2Timeouts Args
- is
Public Boolean - Whether the repository is public.
When the value is
true
, it indicates the repository is public. When the value isfalse
, it indicates the repository is private. - organization String
- The name of the repository organization.
- category String
- Repository category. The value can be
app_server
,linux
,framework_app
,database
,lang
,other
,windows
,arm
. - description String
- Repository description.
- name String
- Enter 1 to 128 characters, starting and ending with a lowercase letter or digit.
Only lowercase letters, digits, periods (
.
), slashes (/
), underscores (_
), and hyphens (-
) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed. - swr
Repository StringV2Id - timeouts
Swr
Repository V2Timeouts
- is
Public boolean - Whether the repository is public.
When the value is
true
, it indicates the repository is public. When the value isfalse
, it indicates the repository is private. - organization string
- The name of the repository organization.
- category string
- Repository category. The value can be
app_server
,linux
,framework_app
,database
,lang
,other
,windows
,arm
. - description string
- Repository description.
- name string
- Enter 1 to 128 characters, starting and ending with a lowercase letter or digit.
Only lowercase letters, digits, periods (
.
), slashes (/
), underscores (_
), and hyphens (-
) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed. - swr
Repository stringV2Id - timeouts
Swr
Repository V2Timeouts
- is_
public bool - Whether the repository is public.
When the value is
true
, it indicates the repository is public. When the value isfalse
, it indicates the repository is private. - organization str
- The name of the repository organization.
- category str
- Repository category. The value can be
app_server
,linux
,framework_app
,database
,lang
,other
,windows
,arm
. - description str
- Repository description.
- name str
- Enter 1 to 128 characters, starting and ending with a lowercase letter or digit.
Only lowercase letters, digits, periods (
.
), slashes (/
), underscores (_
), and hyphens (-
) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed. - swr_
repository_ strv2_ id - timeouts
Swr
Repository V2Timeouts Args
- is
Public Boolean - Whether the repository is public.
When the value is
true
, it indicates the repository is public. When the value isfalse
, it indicates the repository is private. - organization String
- The name of the repository organization.
- category String
- Repository category. The value can be
app_server
,linux
,framework_app
,database
,lang
,other
,windows
,arm
. - description String
- Repository description.
- name String
- Enter 1 to 128 characters, starting and ending with a lowercase letter or digit.
Only lowercase letters, digits, periods (
.
), slashes (/
), underscores (_
), and hyphens (-
) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed. - swr
Repository StringV2Id - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the SwrRepositoryV2 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Path string - Intra-cluster image address for docker pull.
- Num
Images double - Number of image tags in a repository.
- Path string
- Image address for docker pull.
- Repository
Id double - Numeric ID of the repository.
- Size double
- Repository size.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Path string - Intra-cluster image address for docker pull.
- Num
Images float64 - Number of image tags in a repository.
- Path string
- Image address for docker pull.
- Repository
Id float64 - Numeric ID of the repository.
- Size float64
- Repository size.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Path String - Intra-cluster image address for docker pull.
- num
Images Double - Number of image tags in a repository.
- path String
- Image address for docker pull.
- repository
Id Double - Numeric ID of the repository.
- size Double
- Repository size.
- id string
- The provider-assigned unique ID for this managed resource.
- internal
Path string - Intra-cluster image address for docker pull.
- num
Images number - Number of image tags in a repository.
- path string
- Image address for docker pull.
- repository
Id number - Numeric ID of the repository.
- size number
- Repository size.
- id str
- The provider-assigned unique ID for this managed resource.
- internal_
path str - Intra-cluster image address for docker pull.
- num_
images float - Number of image tags in a repository.
- path str
- Image address for docker pull.
- repository_
id float - Numeric ID of the repository.
- size float
- Repository size.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Path String - Intra-cluster image address for docker pull.
- num
Images Number - Number of image tags in a repository.
- path String
- Image address for docker pull.
- repository
Id Number - Numeric ID of the repository.
- size Number
- Repository size.
Look up Existing SwrRepositoryV2 Resource
Get an existing SwrRepositoryV2 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?: SwrRepositoryV2State, opts?: CustomResourceOptions): SwrRepositoryV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
category: Optional[str] = None,
description: Optional[str] = None,
internal_path: Optional[str] = None,
is_public: Optional[bool] = None,
name: Optional[str] = None,
num_images: Optional[float] = None,
organization: Optional[str] = None,
path: Optional[str] = None,
repository_id: Optional[float] = None,
size: Optional[float] = None,
swr_repository_v2_id: Optional[str] = None,
timeouts: Optional[SwrRepositoryV2TimeoutsArgs] = None) -> SwrRepositoryV2
func GetSwrRepositoryV2(ctx *Context, name string, id IDInput, state *SwrRepositoryV2State, opts ...ResourceOption) (*SwrRepositoryV2, error)
public static SwrRepositoryV2 Get(string name, Input<string> id, SwrRepositoryV2State? state, CustomResourceOptions? opts = null)
public static SwrRepositoryV2 get(String name, Output<String> id, SwrRepositoryV2State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:SwrRepositoryV2 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.
- Category string
- Repository category. The value can be
app_server
,linux
,framework_app
,database
,lang
,other
,windows
,arm
. - Description string
- Repository description.
- Internal
Path string - Intra-cluster image address for docker pull.
- Is
Public bool - Whether the repository is public.
When the value is
true
, it indicates the repository is public. When the value isfalse
, it indicates the repository is private. - Name string
- Enter 1 to 128 characters, starting and ending with a lowercase letter or digit.
Only lowercase letters, digits, periods (
.
), slashes (/
), underscores (_
), and hyphens (-
) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed. - Num
Images double - Number of image tags in a repository.
- Organization string
- The name of the repository organization.
- Path string
- Image address for docker pull.
- Repository
Id double - Numeric ID of the repository.
- Size double
- Repository size.
- Swr
Repository stringV2Id - Timeouts
Swr
Repository V2Timeouts
- Category string
- Repository category. The value can be
app_server
,linux
,framework_app
,database
,lang
,other
,windows
,arm
. - Description string
- Repository description.
- Internal
Path string - Intra-cluster image address for docker pull.
- Is
Public bool - Whether the repository is public.
When the value is
true
, it indicates the repository is public. When the value isfalse
, it indicates the repository is private. - Name string
- Enter 1 to 128 characters, starting and ending with a lowercase letter or digit.
Only lowercase letters, digits, periods (
.
), slashes (/
), underscores (_
), and hyphens (-
) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed. - Num
Images float64 - Number of image tags in a repository.
- Organization string
- The name of the repository organization.
- Path string
- Image address for docker pull.
- Repository
Id float64 - Numeric ID of the repository.
- Size float64
- Repository size.
- Swr
Repository stringV2Id - Timeouts
Swr
Repository V2Timeouts Args
- category String
- Repository category. The value can be
app_server
,linux
,framework_app
,database
,lang
,other
,windows
,arm
. - description String
- Repository description.
- internal
Path String - Intra-cluster image address for docker pull.
- is
Public Boolean - Whether the repository is public.
When the value is
true
, it indicates the repository is public. When the value isfalse
, it indicates the repository is private. - name String
- Enter 1 to 128 characters, starting and ending with a lowercase letter or digit.
Only lowercase letters, digits, periods (
.
), slashes (/
), underscores (_
), and hyphens (-
) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed. - num
Images Double - Number of image tags in a repository.
- organization String
- The name of the repository organization.
- path String
- Image address for docker pull.
- repository
Id Double - Numeric ID of the repository.
- size Double
- Repository size.
- swr
Repository StringV2Id - timeouts
Swr
Repository V2Timeouts
- category string
- Repository category. The value can be
app_server
,linux
,framework_app
,database
,lang
,other
,windows
,arm
. - description string
- Repository description.
- internal
Path string - Intra-cluster image address for docker pull.
- is
Public boolean - Whether the repository is public.
When the value is
true
, it indicates the repository is public. When the value isfalse
, it indicates the repository is private. - name string
- Enter 1 to 128 characters, starting and ending with a lowercase letter or digit.
Only lowercase letters, digits, periods (
.
), slashes (/
), underscores (_
), and hyphens (-
) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed. - num
Images number - Number of image tags in a repository.
- organization string
- The name of the repository organization.
- path string
- Image address for docker pull.
- repository
Id number - Numeric ID of the repository.
- size number
- Repository size.
- swr
Repository stringV2Id - timeouts
Swr
Repository V2Timeouts
- category str
- Repository category. The value can be
app_server
,linux
,framework_app
,database
,lang
,other
,windows
,arm
. - description str
- Repository description.
- internal_
path str - Intra-cluster image address for docker pull.
- is_
public bool - Whether the repository is public.
When the value is
true
, it indicates the repository is public. When the value isfalse
, it indicates the repository is private. - name str
- Enter 1 to 128 characters, starting and ending with a lowercase letter or digit.
Only lowercase letters, digits, periods (
.
), slashes (/
), underscores (_
), and hyphens (-
) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed. - num_
images float - Number of image tags in a repository.
- organization str
- The name of the repository organization.
- path str
- Image address for docker pull.
- repository_
id float - Numeric ID of the repository.
- size float
- Repository size.
- swr_
repository_ strv2_ id - timeouts
Swr
Repository V2Timeouts Args
- category String
- Repository category. The value can be
app_server
,linux
,framework_app
,database
,lang
,other
,windows
,arm
. - description String
- Repository description.
- internal
Path String - Intra-cluster image address for docker pull.
- is
Public Boolean - Whether the repository is public.
When the value is
true
, it indicates the repository is public. When the value isfalse
, it indicates the repository is private. - name String
- Enter 1 to 128 characters, starting and ending with a lowercase letter or digit.
Only lowercase letters, digits, periods (
.
), slashes (/
), underscores (_
), and hyphens (-
) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed. - num
Images Number - Number of image tags in a repository.
- organization String
- The name of the repository organization.
- path String
- Image address for docker pull.
- repository
Id Number - Numeric ID of the repository.
- size Number
- Repository size.
- swr
Repository StringV2Id - timeouts Property Map
Supporting Types
SwrRepositoryV2Timeouts, SwrRepositoryV2TimeoutsArgs
- Default string
- Default string
- default_ String
- default string
- default str
- default String
Import
Repositories can be imported with organization/repository
, e.g.
$ pulumi import opentelekomcloud:index/swrRepositoryV2:SwrRepositoryV2 repo_1 organization_1/repository_1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.