1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. SwrRepositoryV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.SwrRepositoryV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    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:

    IsPublic bool
    Whether the repository is public. When the value is true, it indicates the repository is public. When the value is false, 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.
    SwrRepositoryV2Id string
    Timeouts SwrRepositoryV2Timeouts
    IsPublic bool
    Whether the repository is public. When the value is true, it indicates the repository is public. When the value is false, 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.
    SwrRepositoryV2Id string
    Timeouts SwrRepositoryV2TimeoutsArgs
    isPublic Boolean
    Whether the repository is public. When the value is true, it indicates the repository is public. When the value is false, 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.
    swrRepositoryV2Id String
    timeouts SwrRepositoryV2Timeouts
    isPublic boolean
    Whether the repository is public. When the value is true, it indicates the repository is public. When the value is false, 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.
    swrRepositoryV2Id string
    timeouts SwrRepositoryV2Timeouts
    is_public bool
    Whether the repository is public. When the value is true, it indicates the repository is public. When the value is false, 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_v2_id str
    timeouts SwrRepositoryV2TimeoutsArgs
    isPublic Boolean
    Whether the repository is public. When the value is true, it indicates the repository is public. When the value is false, 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.
    swrRepositoryV2Id String
    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.
    InternalPath string
    Intra-cluster image address for docker pull.
    NumImages double
    Number of image tags in a repository.
    Path string
    Image address for docker pull.
    RepositoryId double
    Numeric ID of the repository.
    Size double
    Repository size.
    Id string
    The provider-assigned unique ID for this managed resource.
    InternalPath string
    Intra-cluster image address for docker pull.
    NumImages float64
    Number of image tags in a repository.
    Path string
    Image address for docker pull.
    RepositoryId float64
    Numeric ID of the repository.
    Size float64
    Repository size.
    id String
    The provider-assigned unique ID for this managed resource.
    internalPath String
    Intra-cluster image address for docker pull.
    numImages Double
    Number of image tags in a repository.
    path String
    Image address for docker pull.
    repositoryId Double
    Numeric ID of the repository.
    size Double
    Repository size.
    id string
    The provider-assigned unique ID for this managed resource.
    internalPath string
    Intra-cluster image address for docker pull.
    numImages number
    Number of image tags in a repository.
    path string
    Image address for docker pull.
    repositoryId 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.
    internalPath String
    Intra-cluster image address for docker pull.
    numImages Number
    Number of image tags in a repository.
    path String
    Image address for docker pull.
    repositoryId 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.
    The following state arguments are supported:
    Category string
    Repository category. The value can be app_server, linux, framework_app, database, lang, other, windows, arm.
    Description string
    Repository description.
    InternalPath string
    Intra-cluster image address for docker pull.
    IsPublic bool
    Whether the repository is public. When the value is true, it indicates the repository is public. When the value is false, 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.
    NumImages double
    Number of image tags in a repository.
    Organization string
    The name of the repository organization.
    Path string
    Image address for docker pull.
    RepositoryId double
    Numeric ID of the repository.
    Size double
    Repository size.
    SwrRepositoryV2Id string
    Timeouts SwrRepositoryV2Timeouts
    Category string
    Repository category. The value can be app_server, linux, framework_app, database, lang, other, windows, arm.
    Description string
    Repository description.
    InternalPath string
    Intra-cluster image address for docker pull.
    IsPublic bool
    Whether the repository is public. When the value is true, it indicates the repository is public. When the value is false, 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.
    NumImages float64
    Number of image tags in a repository.
    Organization string
    The name of the repository organization.
    Path string
    Image address for docker pull.
    RepositoryId float64
    Numeric ID of the repository.
    Size float64
    Repository size.
    SwrRepositoryV2Id string
    Timeouts SwrRepositoryV2TimeoutsArgs
    category String
    Repository category. The value can be app_server, linux, framework_app, database, lang, other, windows, arm.
    description String
    Repository description.
    internalPath String
    Intra-cluster image address for docker pull.
    isPublic Boolean
    Whether the repository is public. When the value is true, it indicates the repository is public. When the value is false, 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.
    numImages Double
    Number of image tags in a repository.
    organization String
    The name of the repository organization.
    path String
    Image address for docker pull.
    repositoryId Double
    Numeric ID of the repository.
    size Double
    Repository size.
    swrRepositoryV2Id String
    timeouts SwrRepositoryV2Timeouts
    category string
    Repository category. The value can be app_server, linux, framework_app, database, lang, other, windows, arm.
    description string
    Repository description.
    internalPath string
    Intra-cluster image address for docker pull.
    isPublic boolean
    Whether the repository is public. When the value is true, it indicates the repository is public. When the value is false, 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.
    numImages number
    Number of image tags in a repository.
    organization string
    The name of the repository organization.
    path string
    Image address for docker pull.
    repositoryId number
    Numeric ID of the repository.
    size number
    Repository size.
    swrRepositoryV2Id string
    timeouts SwrRepositoryV2Timeouts
    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 is false, 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_v2_id str
    timeouts SwrRepositoryV2TimeoutsArgs
    category String
    Repository category. The value can be app_server, linux, framework_app, database, lang, other, windows, arm.
    description String
    Repository description.
    internalPath String
    Intra-cluster image address for docker pull.
    isPublic Boolean
    Whether the repository is public. When the value is true, it indicates the repository is public. When the value is false, 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.
    numImages Number
    Number of image tags in a repository.
    organization String
    The name of the repository organization.
    path String
    Image address for docker pull.
    repositoryId Number
    Numeric ID of the repository.
    size Number
    Repository size.
    swrRepositoryV2Id String
    timeouts Property Map

    Supporting Types

    SwrRepositoryV2Timeouts, SwrRepositoryV2TimeoutsArgs

    Default string
    Default string
    default_ String
    default string
    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.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud