1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getSwrDomainV2
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 details of SWR image sharing domain resource 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 accessDomain = config.requireObject<any>("accessDomain");
    const domain1 = opentelekomcloud.getSwrDomainV2({
        organization: orgName,
        repository: repoName,
        accessDomain: accessDomain,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    org_name = config.require_object("orgName")
    repo_name = config.require_object("repoName")
    access_domain = config.require_object("accessDomain")
    domain1 = opentelekomcloud.get_swr_domain_v2(organization=org_name,
        repository=repo_name,
        access_domain=access_domain)
    
    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")
    		accessDomain := cfg.RequireObject("accessDomain")
    		_, err := opentelekomcloud.LookupSwrDomainV2(ctx, &opentelekomcloud.LookupSwrDomainV2Args{
    			Organization: orgName,
    			Repository:   repoName,
    			AccessDomain: accessDomain,
    		}, 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 accessDomain = config.RequireObject<dynamic>("accessDomain");
        var domain1 = Opentelekomcloud.GetSwrDomainV2.Invoke(new()
        {
            Organization = orgName,
            Repository = repoName,
            AccessDomain = accessDomain,
        });
    
    });
    
    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.GetSwrDomainV2Args;
    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 accessDomain = config.get("accessDomain");
            final var domain1 = OpentelekomcloudFunctions.getSwrDomainV2(GetSwrDomainV2Args.builder()
                .organization(orgName)
                .repository(repoName)
                .accessDomain(accessDomain)
                .build());
    
        }
    }
    
    configuration:
      orgName:
        type: dynamic
      repoName:
        type: dynamic
      accessDomain:
        type: dynamic
    variables:
      domain1:
        fn::invoke:
          function: opentelekomcloud:getSwrDomainV2
          arguments:
            organization: ${orgName}
            repository: ${repoName}
            accessDomain: ${accessDomain}
    

    Using getSwrDomainV2

    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 getSwrDomainV2(args: GetSwrDomainV2Args, opts?: InvokeOptions): Promise<GetSwrDomainV2Result>
    function getSwrDomainV2Output(args: GetSwrDomainV2OutputArgs, opts?: InvokeOptions): Output<GetSwrDomainV2Result>
    def get_swr_domain_v2(access_domain: Optional[str] = None,
                          id: Optional[str] = None,
                          organization: Optional[str] = None,
                          repository: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetSwrDomainV2Result
    def get_swr_domain_v2_output(access_domain: Optional[pulumi.Input[str]] = None,
                          id: Optional[pulumi.Input[str]] = None,
                          organization: Optional[pulumi.Input[str]] = None,
                          repository: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetSwrDomainV2Result]
    func LookupSwrDomainV2(ctx *Context, args *LookupSwrDomainV2Args, opts ...InvokeOption) (*LookupSwrDomainV2Result, error)
    func LookupSwrDomainV2Output(ctx *Context, args *LookupSwrDomainV2OutputArgs, opts ...InvokeOption) LookupSwrDomainV2ResultOutput

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

    public static class GetSwrDomainV2 
    {
        public static Task<GetSwrDomainV2Result> InvokeAsync(GetSwrDomainV2Args args, InvokeOptions? opts = null)
        public static Output<GetSwrDomainV2Result> Invoke(GetSwrDomainV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSwrDomainV2Result> getSwrDomainV2(GetSwrDomainV2Args args, InvokeOptions options)
    public static Output<GetSwrDomainV2Result> getSwrDomainV2(GetSwrDomainV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getSwrDomainV2:getSwrDomainV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccessDomain string

    The name of the domain for image sharing.

    access_domain should be an existing OTC domain.

    Organization string
    The name of the repository organization.
    Repository string
    The name of the repository.
    Id string
    AccessDomain string

    The name of the domain for image sharing.

    access_domain should be an existing OTC domain.

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

    The name of the domain for image sharing.

    access_domain should be an existing OTC domain.

    organization String
    The name of the repository organization.
    repository String
    The name of the repository.
    id String
    accessDomain string

    The name of the domain for image sharing.

    access_domain should be an existing OTC domain.

    organization string
    The name of the repository organization.
    repository string
    The name of the repository.
    id string
    access_domain str

    The name of the domain for image sharing.

    access_domain should be an existing OTC domain.

    organization str
    The name of the repository organization.
    repository str
    The name of the repository.
    id str
    accessDomain String

    The name of the domain for image sharing.

    access_domain should be an existing OTC domain.

    organization String
    The name of the repository organization.
    repository String
    The name of the repository.
    id String

    getSwrDomainV2 Result

    The following output properties are available:

    AccessDomain string
    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.
    Id string
    Organization string
    Permission string
    Permission to be granted.
    Repository string
    Status bool
    Indicates the domain is valid (true) or expired (false).
    Updated string
    Indicates the domain when was last updated.
    AccessDomain string
    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.
    Id string
    Organization string
    Permission string
    Permission to be granted.
    Repository string
    Status bool
    Indicates the domain is valid (true) or expired (false).
    Updated string
    Indicates the domain when was last updated.
    accessDomain String
    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.
    id String
    organization String
    permission String
    Permission to be granted.
    repository String
    status Boolean
    Indicates the domain is valid (true) or expired (false).
    updated String
    Indicates the domain when was last updated.
    accessDomain string
    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.
    id string
    organization string
    permission string
    Permission to be granted.
    repository string
    status boolean
    Indicates the domain is valid (true) or expired (false).
    updated string
    Indicates the domain when was last updated.
    access_domain str
    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.
    id str
    organization str
    permission str
    Permission to be granted.
    repository str
    status bool
    Indicates the domain is valid (true) or expired (false).
    updated str
    Indicates the domain when was last updated.
    accessDomain String
    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.
    id String
    organization String
    permission String
    Permission to be granted.
    repository String
    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.