1. Packages
  2. Packages
  3. Opentelekomcloud Provider
  4. API Docs
  5. getSwrRepositoryV2
Viewing docs for opentelekomcloud 1.36.64
published on Thursday, Apr 23, 2026 by opentelekomcloud
Viewing docs for opentelekomcloud 1.36.64
published on Thursday, Apr 23, 2026 by opentelekomcloud

    Up-to-date reference of API arguments for SWR repository you can get at documentation portal

    Get details of SWR repositories within Open Telekom Cloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const repo1 = opentelekomcloud.getSwrRepositoryV2({});
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    repo1 = opentelekomcloud.get_swr_repository_v2()
    
    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 {
    		_, err := opentelekomcloud.LookupSwrRepositoryV2(ctx, &opentelekomcloud.LookupSwrRepositoryV2Args{}, nil)
    		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 repo1 = Opentelekomcloud.GetSwrRepositoryV2.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetSwrRepositoryV2Args;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var repo1 = OpentelekomcloudFunctions.getSwrRepositoryV2(GetSwrRepositoryV2Args.builder()
                .build());
    
        }
    }
    
    variables:
      repo1:
        fn::invoke:
          function: opentelekomcloud:getSwrRepositoryV2
          arguments: {}
    

    Using getSwrRepositoryV2

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSwrRepositoryV2(args: GetSwrRepositoryV2Args, opts?: InvokeOptions): Promise<GetSwrRepositoryV2Result>
    function getSwrRepositoryV2Output(args: GetSwrRepositoryV2OutputArgs, opts?: InvokeOptions): Output<GetSwrRepositoryV2Result>
    def get_swr_repository_v2(id: Optional[str] = None,
                              name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetSwrRepositoryV2Result
    def get_swr_repository_v2_output(id: Optional[pulumi.Input[str]] = None,
                              name: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetSwrRepositoryV2Result]
    func LookupSwrRepositoryV2(ctx *Context, args *LookupSwrRepositoryV2Args, opts ...InvokeOption) (*LookupSwrRepositoryV2Result, error)
    func LookupSwrRepositoryV2Output(ctx *Context, args *LookupSwrRepositoryV2OutputArgs, opts ...InvokeOption) LookupSwrRepositoryV2ResultOutput

    > Note: This function is named LookupSwrRepositoryV2 in the Go SDK.

    public static class GetSwrRepositoryV2 
    {
        public static Task<GetSwrRepositoryV2Result> InvokeAsync(GetSwrRepositoryV2Args args, InvokeOptions? opts = null)
        public static Output<GetSwrRepositoryV2Result> Invoke(GetSwrRepositoryV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSwrRepositoryV2Result> getSwrRepositoryV2(GetSwrRepositoryV2Args args, InvokeOptions options)
    public static Output<GetSwrRepositoryV2Result> getSwrRepositoryV2(GetSwrRepositoryV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getSwrRepositoryV2:getSwrRepositoryV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Name string
    Specify the name of the repository. Use this to filter repositories list.
    Id string
    Name string
    Specify the name of the repository. Use this to filter repositories list.
    id String
    name String
    Specify the name of the repository. Use this to filter repositories list.
    id string
    name string
    Specify the name of the repository. Use this to filter repositories list.
    id str
    name str
    Specify the name of the repository. Use this to filter repositories list.
    id String
    name String
    Specify the name of the repository. Use this to filter repositories list.

    getSwrRepositoryV2 Result

    The following output properties are available:

    Id string
    Repositories List<GetSwrRepositoryV2Repository>
    List of repositories. The structure is documented below:
    Name string
    The name of the repository.
    Id string
    Repositories []GetSwrRepositoryV2Repository
    List of repositories. The structure is documented below:
    Name string
    The name of the repository.
    id String
    repositories List<GetSwrRepositoryV2Repository>
    List of repositories. The structure is documented below:
    name String
    The name of the repository.
    id string
    repositories GetSwrRepositoryV2Repository[]
    List of repositories. The structure is documented below:
    name string
    The name of the repository.
    id str
    repositories Sequence[GetSwrRepositoryV2Repository]
    List of repositories. The structure is documented below:
    name str
    The name of the repository.
    id String
    repositories List<Property Map>
    List of repositories. The structure is documented below:
    name String
    The name of the repository.

    Supporting Types

    GetSwrRepositoryV2Repository

    Category string
    Repository category.
    Description string
    Repository description.
    InternalPath string
    Intra-cluster image address for docker pull.
    IsPublic bool
    Whether the repository is public (true) or private (false).
    Name string
    Specify the name of the repository. Use this to filter repositories list.
    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.
    Category string
    Repository category.
    Description string
    Repository description.
    InternalPath string
    Intra-cluster image address for docker pull.
    IsPublic bool
    Whether the repository is public (true) or private (false).
    Name string
    Specify the name of the repository. Use this to filter repositories list.
    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.
    category String
    Repository category.
    description String
    Repository description.
    internalPath String
    Intra-cluster image address for docker pull.
    isPublic Boolean
    Whether the repository is public (true) or private (false).
    name String
    Specify the name of the repository. Use this to filter repositories list.
    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.
    category string
    Repository category.
    description string
    Repository description.
    internalPath string
    Intra-cluster image address for docker pull.
    isPublic boolean
    Whether the repository is public (true) or private (false).
    name string
    Specify the name of the repository. Use this to filter repositories list.
    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.
    category str
    Repository category.
    description str
    Repository description.
    internal_path str
    Intra-cluster image address for docker pull.
    is_public bool
    Whether the repository is public (true) or private (false).
    name str
    Specify the name of the repository. Use this to filter repositories list.
    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.
    category String
    Repository category.
    description String
    Repository description.
    internalPath String
    Intra-cluster image address for docker pull.
    isPublic Boolean
    Whether the repository is public (true) or private (false).
    name String
    Specify the name of the repository. Use this to filter repositories list.
    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.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    Viewing docs for opentelekomcloud 1.36.64
    published on Thursday, Apr 23, 2026 by opentelekomcloud
      Try Pulumi Cloud free. Your team will thank you.