1. Packages
  2. Packages
  3. Opentelekomcloud Provider
  4. API Docs
  5. getSwrOrganizationV2
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 organization you can get at documentation portal

    Get details of SWR organizations within Open Telekom Cloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const org1 = opentelekomcloud.getSwrOrganizationV2({});
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    org1 = opentelekomcloud.get_swr_organization_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.LookupSwrOrganizationV2(ctx, &opentelekomcloud.LookupSwrOrganizationV2Args{}, 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 org1 = Opentelekomcloud.GetSwrOrganizationV2.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.GetSwrOrganizationV2Args;
    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 org1 = OpentelekomcloudFunctions.getSwrOrganizationV2(GetSwrOrganizationV2Args.builder()
                .build());
    
        }
    }
    
    variables:
      org1:
        fn::invoke:
          function: opentelekomcloud:getSwrOrganizationV2
          arguments: {}
    

    Using getSwrOrganizationV2

    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 getSwrOrganizationV2(args: GetSwrOrganizationV2Args, opts?: InvokeOptions): Promise<GetSwrOrganizationV2Result>
    function getSwrOrganizationV2Output(args: GetSwrOrganizationV2OutputArgs, opts?: InvokeOptions): Output<GetSwrOrganizationV2Result>
    def get_swr_organization_v2(id: Optional[str] = None,
                                name: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetSwrOrganizationV2Result
    def get_swr_organization_v2_output(id: Optional[pulumi.Input[str]] = None,
                                name: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetSwrOrganizationV2Result]
    func LookupSwrOrganizationV2(ctx *Context, args *LookupSwrOrganizationV2Args, opts ...InvokeOption) (*LookupSwrOrganizationV2Result, error)
    func LookupSwrOrganizationV2Output(ctx *Context, args *LookupSwrOrganizationV2OutputArgs, opts ...InvokeOption) LookupSwrOrganizationV2ResultOutput

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

    public static class GetSwrOrganizationV2 
    {
        public static Task<GetSwrOrganizationV2Result> InvokeAsync(GetSwrOrganizationV2Args args, InvokeOptions? opts = null)
        public static Output<GetSwrOrganizationV2Result> Invoke(GetSwrOrganizationV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSwrOrganizationV2Result> getSwrOrganizationV2(GetSwrOrganizationV2Args args, InvokeOptions options)
    public static Output<GetSwrOrganizationV2Result> getSwrOrganizationV2(GetSwrOrganizationV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getSwrOrganizationV2:getSwrOrganizationV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Name string
    The name of the SWR organization. Use this to filter organizations list.
    Id string
    Name string
    The name of the SWR organization. Use this to filter organizations list.
    id String
    name String
    The name of the SWR organization. Use this to filter organizations list.
    id string
    name string
    The name of the SWR organization. Use this to filter organizations list.
    id str
    name str
    The name of the SWR organization. Use this to filter organizations list.
    id String
    name String
    The name of the SWR organization. Use this to filter organizations list.

    getSwrOrganizationV2 Result

    The following output properties are available:

    Id string
    Organizations List<GetSwrOrganizationV2Organization>
    List of organizations. The structure is documented below:
    Name string
    Organization name.
    Id string
    Organizations []GetSwrOrganizationV2Organization
    List of organizations. The structure is documented below:
    Name string
    Organization name.
    id String
    organizations List<GetSwrOrganizationV2Organization>
    List of organizations. The structure is documented below:
    name String
    Organization name.
    id string
    organizations GetSwrOrganizationV2Organization[]
    List of organizations. The structure is documented below:
    name string
    Organization name.
    id str
    organizations Sequence[GetSwrOrganizationV2Organization]
    List of organizations. The structure is documented below:
    name str
    Organization name.
    id String
    organizations List<Property Map>
    List of organizations. The structure is documented below:
    name String
    Organization name.

    Supporting Types

    GetSwrOrganizationV2Organization

    Auth double
    User permission. The value can be 1, 3, or 7. 7: manage 3: write 1: read
    CreatorName string
    Username of the organization creator.
    Name string
    The name of the SWR organization. Use this to filter organizations list.
    OrganizationId double
    Numeric ID of the organization.
    Auth float64
    User permission. The value can be 1, 3, or 7. 7: manage 3: write 1: read
    CreatorName string
    Username of the organization creator.
    Name string
    The name of the SWR organization. Use this to filter organizations list.
    OrganizationId float64
    Numeric ID of the organization.
    auth Double
    User permission. The value can be 1, 3, or 7. 7: manage 3: write 1: read
    creatorName String
    Username of the organization creator.
    name String
    The name of the SWR organization. Use this to filter organizations list.
    organizationId Double
    Numeric ID of the organization.
    auth number
    User permission. The value can be 1, 3, or 7. 7: manage 3: write 1: read
    creatorName string
    Username of the organization creator.
    name string
    The name of the SWR organization. Use this to filter organizations list.
    organizationId number
    Numeric ID of the organization.
    auth float
    User permission. The value can be 1, 3, or 7. 7: manage 3: write 1: read
    creator_name str
    Username of the organization creator.
    name str
    The name of the SWR organization. Use this to filter organizations list.
    organization_id float
    Numeric ID of the organization.
    auth Number
    User permission. The value can be 1, 3, or 7. 7: manage 3: write 1: read
    creatorName String
    Username of the organization creator.
    name String
    The name of the SWR organization. Use this to filter organizations list.
    organizationId Number
    Numeric ID of the organization.

    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.