1. Packages
  2. Zscaler Private Access (ZPA)
  3. API Docs
  4. getCloudConnectorGroup
Zscaler Private Access v0.0.12 published on Tuesday, Jul 30, 2024 by Zscaler

zpa.getCloudConnectorGroup

Explore with Pulumi AI

zpa logo
Zscaler Private Access v0.0.12 published on Tuesday, Jul 30, 2024 by Zscaler

    Use the zpa_cloud_connector_group data source to get information about a cloud connector group created from the Zscaler Private Access cloud. This data source can then be referenced within an Access Policy rule

    NOTE: A Cloud Connector Group resource is created in the Zscaler Cloud Connector cloud and replicated to the ZPA cloud. This resource can then be referenced in a Access Policy Rule where the Object Type = EDGE_CONNECTOR_GROUP is being used.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zpa from "@pulumi/zpa";
    
    const foo = zpa.getCloudConnectorGroup({
        name: "AWS-Cloud",
    });
    
    import pulumi
    import pulumi_zpa as zpa
    
    foo = zpa.get_cloud_connector_group(name="AWS-Cloud")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/zscaler/pulumi-zpa/sdk/go/zpa"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := zpa.GetCloudConnectorGroup(ctx, &zpa.GetCloudConnectorGroupArgs{
    			Name: pulumi.StringRef("AWS-Cloud"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zpa = Pulumi.Zpa;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Zpa.GetCloudConnectorGroup.Invoke(new()
        {
            Name = "AWS-Cloud",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zpa.ZpaFunctions;
    import com.pulumi.zpa.inputs.GetCloudConnectorGroupArgs;
    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 foo = ZpaFunctions.getCloudConnectorGroup(GetCloudConnectorGroupArgs.builder()
                .name("AWS-Cloud")
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          Function: zpa:getCloudConnectorGroup
          Arguments:
            name: AWS-Cloud
    
    import * as pulumi from "@pulumi/pulumi";
    import * as zpa from "@pulumi/zpa";
    
    const foo = zpa.getCloudConnectorGroup({
        id: "1234567890",
    });
    
    import pulumi
    import pulumi_zpa as zpa
    
    foo = zpa.get_cloud_connector_group(id="1234567890")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/zscaler/pulumi-zpa/sdk/go/zpa"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := zpa.GetCloudConnectorGroup(ctx, &zpa.GetCloudConnectorGroupArgs{
    			Id: pulumi.StringRef("1234567890"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zpa = Pulumi.Zpa;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Zpa.GetCloudConnectorGroup.Invoke(new()
        {
            Id = "1234567890",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zpa.ZpaFunctions;
    import com.pulumi.zpa.inputs.GetCloudConnectorGroupArgs;
    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 foo = ZpaFunctions.getCloudConnectorGroup(GetCloudConnectorGroupArgs.builder()
                .id("1234567890")
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          Function: zpa:getCloudConnectorGroup
          Arguments:
            id: '1234567890'
    

    Using getCloudConnectorGroup

    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 getCloudConnectorGroup(args: GetCloudConnectorGroupArgs, opts?: InvokeOptions): Promise<GetCloudConnectorGroupResult>
    function getCloudConnectorGroupOutput(args: GetCloudConnectorGroupOutputArgs, opts?: InvokeOptions): Output<GetCloudConnectorGroupResult>
    def get_cloud_connector_group(id: Optional[str] = None,
                                  name: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetCloudConnectorGroupResult
    def get_cloud_connector_group_output(id: Optional[pulumi.Input[str]] = None,
                                  name: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetCloudConnectorGroupResult]
    func GetCloudConnectorGroup(ctx *Context, args *GetCloudConnectorGroupArgs, opts ...InvokeOption) (*GetCloudConnectorGroupResult, error)
    func GetCloudConnectorGroupOutput(ctx *Context, args *GetCloudConnectorGroupOutputArgs, opts ...InvokeOption) GetCloudConnectorGroupResultOutput

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

    public static class GetCloudConnectorGroup 
    {
        public static Task<GetCloudConnectorGroupResult> InvokeAsync(GetCloudConnectorGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudConnectorGroupResult> Invoke(GetCloudConnectorGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudConnectorGroupResult> getCloudConnectorGroup(GetCloudConnectorGroupArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: zpa:index/getCloudConnectorGroup:getCloudConnectorGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Name string
    Id string
    Name string
    id String
    name String
    id string
    name string
    id str
    name str
    id String
    name String

    getCloudConnectorGroup Result

    The following output properties are available:

    Supporting Types

    GetCloudConnectorGroupCloudConnector

    CreationTime string
    Description string
    Enabled bool
    Fingerprint string
    Id string
    Ipacls List<object>
    IssuedCertId string
    ModifiedTime string
    Modifiedby string
    Name string
    SigningCert Dictionary<string, object>
    CreationTime string
    Description string
    Enabled bool
    Fingerprint string
    Id string
    Ipacls []interface{}
    IssuedCertId string
    ModifiedTime string
    Modifiedby string
    Name string
    SigningCert map[string]interface{}
    creationTime String
    description String
    enabled Boolean
    fingerprint String
    id String
    ipacls List<Object>
    issuedCertId String
    modifiedTime String
    modifiedby String
    name String
    signingCert Map<String,Object>
    creationTime string
    description string
    enabled boolean
    fingerprint string
    id string
    ipacls any[]
    issuedCertId string
    modifiedTime string
    modifiedby string
    name string
    signingCert {[key: string]: any}
    creation_time str
    description str
    enabled bool
    fingerprint str
    id str
    ipacls Sequence[Any]
    issued_cert_id str
    modified_time str
    modifiedby str
    name str
    signing_cert Mapping[str, Any]
    creationTime String
    description String
    enabled Boolean
    fingerprint String
    id String
    ipacls List<Any>
    issuedCertId String
    modifiedTime String
    modifiedby String
    name String
    signingCert Map<Any>

    Package Details

    Repository
    zpa zscaler/pulumi-zpa
    License
    MIT
    Notes
    This Pulumi package is based on the zpa Terraform Provider.
    zpa logo
    Zscaler Private Access v0.0.12 published on Tuesday, Jul 30, 2024 by Zscaler