1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getSwrDomainsV2
Viewing docs for opentelekomcloud 1.36.62
published on Thursday, Mar 26, 2026 by opentelekomcloud
Viewing docs for opentelekomcloud 1.36.62
published on Thursday, Mar 26, 2026 by opentelekomcloud

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

    Get list of SWR image sharing domains within Open Telekom Cloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const orgName = config.requireObject<any>("orgName");
    const repoName = config.requireObject<any>("repoName");
    const domains = opentelekomcloud.getSwrDomainsV2({
        organization: orgName,
        repository: repoName,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    org_name = config.require_object("orgName")
    repo_name = config.require_object("repoName")
    domains = opentelekomcloud.get_swr_domains_v2(organization=org_name,
        repository=repo_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		orgName := cfg.RequireObject("orgName")
    		repoName := cfg.RequireObject("repoName")
    		_, err := opentelekomcloud.GetSwrDomainsV2(ctx, &opentelekomcloud.GetSwrDomainsV2Args{
    			Organization: orgName,
    			Repository:   repoName,
    		}, 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 config = new Config();
        var orgName = config.RequireObject<dynamic>("orgName");
        var repoName = config.RequireObject<dynamic>("repoName");
        var domains = Opentelekomcloud.GetSwrDomainsV2.Invoke(new()
        {
            Organization = orgName,
            Repository = repoName,
        });
    
    });
    
    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.GetSwrDomainsV2Args;
    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 config = ctx.config();
            final var orgName = config.get("orgName");
            final var repoName = config.get("repoName");
            final var domains = OpentelekomcloudFunctions.getSwrDomainsV2(GetSwrDomainsV2Args.builder()
                .organization(orgName)
                .repository(repoName)
                .build());
    
        }
    }
    
    configuration:
      orgName:
        type: dynamic
      repoName:
        type: dynamic
    variables:
      domains:
        fn::invoke:
          function: opentelekomcloud:getSwrDomainsV2
          arguments:
            organization: ${orgName}
            repository: ${repoName}
    

    Using getSwrDomainsV2

    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 getSwrDomainsV2(args: GetSwrDomainsV2Args, opts?: InvokeOptions): Promise<GetSwrDomainsV2Result>
    function getSwrDomainsV2Output(args: GetSwrDomainsV2OutputArgs, opts?: InvokeOptions): Output<GetSwrDomainsV2Result>
    def get_swr_domains_v2(id: Optional[str] = None,
                           organization: Optional[str] = None,
                           repository: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetSwrDomainsV2Result
    def get_swr_domains_v2_output(id: Optional[pulumi.Input[str]] = None,
                           organization: Optional[pulumi.Input[str]] = None,
                           repository: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetSwrDomainsV2Result]
    func GetSwrDomainsV2(ctx *Context, args *GetSwrDomainsV2Args, opts ...InvokeOption) (*GetSwrDomainsV2Result, error)
    func GetSwrDomainsV2Output(ctx *Context, args *GetSwrDomainsV2OutputArgs, opts ...InvokeOption) GetSwrDomainsV2ResultOutput

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

    public static class GetSwrDomainsV2 
    {
        public static Task<GetSwrDomainsV2Result> InvokeAsync(GetSwrDomainsV2Args args, InvokeOptions? opts = null)
        public static Output<GetSwrDomainsV2Result> Invoke(GetSwrDomainsV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSwrDomainsV2Result> getSwrDomainsV2(GetSwrDomainsV2Args args, InvokeOptions options)
    public static Output<GetSwrDomainsV2Result> getSwrDomainsV2(GetSwrDomainsV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getSwrDomainsV2:getSwrDomainsV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Organization string
    The name of the repository organization.
    Repository string
    The name of the repository.
    Id string
    Organization string
    The name of the repository organization.
    Repository string
    The name of the repository.
    Id string
    organization String
    The name of the repository organization.
    repository String
    The name of the repository.
    id String
    organization string
    The name of the repository organization.
    repository string
    The name of the repository.
    id string
    organization str
    The name of the repository organization.
    repository str
    The name of the repository.
    id str
    organization String
    The name of the repository organization.
    repository String
    The name of the repository.
    id String

    getSwrDomainsV2 Result

    The following output properties are available:

    AccessDomains List<GetSwrDomainsV2AccessDomain>
    The list of the access domains. The structure is documented below:
    Id string
    Organization string
    Repository string
    AccessDomains []GetSwrDomainsV2AccessDomain
    The list of the access domains. The structure is documented below:
    Id string
    Organization string
    Repository string
    accessDomains List<GetSwrDomainsV2AccessDomain>
    The list of the access domains. The structure is documented below:
    id String
    organization String
    repository String
    accessDomains GetSwrDomainsV2AccessDomain[]
    The list of the access domains. The structure is documented below:
    id string
    organization string
    repository string
    access_domains Sequence[GetSwrDomainsV2AccessDomain]
    The list of the access domains. The structure is documented below:
    id str
    organization str
    repository str
    accessDomains List<Property Map>
    The list of the access domains. The structure is documented below:
    id String
    organization String
    repository String

    Supporting Types

    GetSwrDomainsV2AccessDomain

    AccessDomain string
    (Required) The name of the domain for image sharing.
    Created string
    Indicates the creation time.
    CreatorId string
    Username ID of the domain creator.
    CreatorName string
    Username of the domain creator.
    Deadline string
    End date of image sharing (UTC).
    Description string
    Specifies SWR domain description.
    Permission string
    Permission to be granted.
    Status bool
    Indicates the domain is valid (true) or expired (false).
    Updated string
    Indicates the domain when was last updated.
    AccessDomain string
    (Required) The name of the domain for image sharing.
    Created string
    Indicates the creation time.
    CreatorId string
    Username ID of the domain creator.
    CreatorName string
    Username of the domain creator.
    Deadline string
    End date of image sharing (UTC).
    Description string
    Specifies SWR domain description.
    Permission string
    Permission to be granted.
    Status bool
    Indicates the domain is valid (true) or expired (false).
    Updated string
    Indicates the domain when was last updated.
    accessDomain String
    (Required) The name of the domain for image sharing.
    created String
    Indicates the creation time.
    creatorId String
    Username ID of the domain creator.
    creatorName String
    Username of the domain creator.
    deadline String
    End date of image sharing (UTC).
    description String
    Specifies SWR domain description.
    permission String
    Permission to be granted.
    status Boolean
    Indicates the domain is valid (true) or expired (false).
    updated String
    Indicates the domain when was last updated.
    accessDomain string
    (Required) The name of the domain for image sharing.
    created string
    Indicates the creation time.
    creatorId string
    Username ID of the domain creator.
    creatorName string
    Username of the domain creator.
    deadline string
    End date of image sharing (UTC).
    description string
    Specifies SWR domain description.
    permission string
    Permission to be granted.
    status boolean
    Indicates the domain is valid (true) or expired (false).
    updated string
    Indicates the domain when was last updated.
    access_domain str
    (Required) The name of the domain for image sharing.
    created str
    Indicates the creation time.
    creator_id str
    Username ID of the domain creator.
    creator_name str
    Username of the domain creator.
    deadline str
    End date of image sharing (UTC).
    description str
    Specifies SWR domain description.
    permission str
    Permission to be granted.
    status bool
    Indicates the domain is valid (true) or expired (false).
    updated str
    Indicates the domain when was last updated.
    accessDomain String
    (Required) The name of the domain for image sharing.
    created String
    Indicates the creation time.
    creatorId String
    Username ID of the domain creator.
    creatorName String
    Username of the domain creator.
    deadline String
    End date of image sharing (UTC).
    description String
    Specifies SWR domain description.
    permission String
    Permission to be granted.
    status Boolean
    Indicates the domain is valid (true) or expired (false).
    updated String
    Indicates the domain when was last updated.

    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.62
    published on Thursday, Mar 26, 2026 by opentelekomcloud
      Try Pulumi Cloud free. Your team will thank you.