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

zpa.getBaCertificate

Explore with Pulumi AI

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

    Use the zpa_ba_certificate data source to get information about a browser access certificate created in the Zscaler Private Access cloud. This data source is required when creating a browser access application segment resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zpa from "@pulumi/zpa";
    
    const foo = zpa.getBaCertificate({
        name: "example.acme.com",
    });
    
    import pulumi
    import pulumi_zpa as zpa
    
    foo = zpa.get_ba_certificate(name="example.acme.com")
    
    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.GetBaCertificate(ctx, &zpa.GetBaCertificateArgs{
    			Name: pulumi.StringRef("example.acme.com"),
    		}, 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.GetBaCertificate.Invoke(new()
        {
            Name = "example.acme.com",
        });
    
    });
    
    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.GetBaCertificateArgs;
    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.getBaCertificate(GetBaCertificateArgs.builder()
                .name("example.acme.com")
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          Function: zpa:getBaCertificate
          Arguments:
            name: example.acme.com
    
    import * as pulumi from "@pulumi/pulumi";
    import * as zpa from "@pulumi/zpa";
    
    const foo = zpa.getBaCertificate({
        id: "1234567890",
    });
    
    import pulumi
    import pulumi_zpa as zpa
    
    foo = zpa.get_ba_certificate(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.GetBaCertificate(ctx, &zpa.GetBaCertificateArgs{
    			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.GetBaCertificate.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.GetBaCertificateArgs;
    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.getBaCertificate(GetBaCertificateArgs.builder()
                .id("1234567890")
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          Function: zpa:getBaCertificate
          Arguments:
            id: '1234567890'
    

    Using getBaCertificate

    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 getBaCertificate(args: GetBaCertificateArgs, opts?: InvokeOptions): Promise<GetBaCertificateResult>
    function getBaCertificateOutput(args: GetBaCertificateOutputArgs, opts?: InvokeOptions): Output<GetBaCertificateResult>
    def get_ba_certificate(id: Optional[str] = None,
                           name: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetBaCertificateResult
    def get_ba_certificate_output(id: Optional[pulumi.Input[str]] = None,
                           name: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetBaCertificateResult]
    func GetBaCertificate(ctx *Context, args *GetBaCertificateArgs, opts ...InvokeOption) (*GetBaCertificateResult, error)
    func GetBaCertificateOutput(ctx *Context, args *GetBaCertificateOutputArgs, opts ...InvokeOption) GetBaCertificateResultOutput

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

    public static class GetBaCertificate 
    {
        public static Task<GetBaCertificateResult> InvokeAsync(GetBaCertificateArgs args, InvokeOptions? opts = null)
        public static Output<GetBaCertificateResult> Invoke(GetBaCertificateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBaCertificateResult> getBaCertificate(GetBaCertificateArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: zpa:index/getBaCertificate:getBaCertificate
      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

    getBaCertificate Result

    The following output properties are available:

    CertChain string
    Certificate string
    Cname string
    CreationTime string
    Description string
    IssuedBy string
    IssuedTo string
    MicrotenantId string
    ModifiedTime string
    Modifiedby string
    PublicKey string
    Sans List<string>
    SerialNo string
    Status string
    ValidFromInEpochsec string
    ValidToInEpochsec string
    Id string
    Name string
    CertChain string
    Certificate string
    Cname string
    CreationTime string
    Description string
    IssuedBy string
    IssuedTo string
    MicrotenantId string
    ModifiedTime string
    Modifiedby string
    PublicKey string
    Sans []string
    SerialNo string
    Status string
    ValidFromInEpochsec string
    ValidToInEpochsec string
    Id string
    Name string
    certChain String
    certificate String
    cname String
    creationTime String
    description String
    issuedBy String
    issuedTo String
    microtenantId String
    modifiedTime String
    modifiedby String
    publicKey String
    sans List<String>
    serialNo String
    status String
    validFromInEpochsec String
    validToInEpochsec String
    id String
    name String
    certChain string
    certificate string
    cname string
    creationTime string
    description string
    issuedBy string
    issuedTo string
    microtenantId string
    modifiedTime string
    modifiedby string
    publicKey string
    sans string[]
    serialNo string
    status string
    validFromInEpochsec string
    validToInEpochsec string
    id string
    name string
    certChain String
    certificate String
    cname String
    creationTime String
    description String
    issuedBy String
    issuedTo String
    microtenantId String
    modifiedTime String
    modifiedby String
    publicKey String
    sans List<String>
    serialNo String
    status String
    validFromInEpochsec String
    validToInEpochsec String
    id String
    name String

    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