Zscaler Private Access v0.0.12 published on Tuesday, Jul 30, 2024 by Zscaler
zpa.getBaCertificate
Explore with Pulumi AI
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:
getBaCertificate Result
The following output properties are available:
- Cert
Chain string - Certificate string
- Cname string
- Creation
Time string - Description string
- Issued
By string - Issued
To string - Microtenant
Id string - Modified
Time string - Modifiedby string
- Public
Key string - Sans List<string>
- Serial
No string - Status string
- Valid
From stringIn Epochsec - Valid
To stringIn Epochsec - Id string
- Name string
- Cert
Chain string - Certificate string
- Cname string
- Creation
Time string - Description string
- Issued
By string - Issued
To string - Microtenant
Id string - Modified
Time string - Modifiedby string
- Public
Key string - Sans []string
- Serial
No string - Status string
- Valid
From stringIn Epochsec - Valid
To stringIn Epochsec - Id string
- Name string
- cert
Chain String - certificate String
- cname String
- creation
Time String - description String
- issued
By String - issued
To String - microtenant
Id String - modified
Time String - modifiedby String
- public
Key String - sans List<String>
- serial
No String - status String
- valid
From StringIn Epochsec - valid
To StringIn Epochsec - id String
- name String
- cert
Chain string - certificate string
- cname string
- creation
Time string - description string
- issued
By string - issued
To string - microtenant
Id string - modified
Time string - modifiedby string
- public
Key string - sans string[]
- serial
No string - status string
- valid
From stringIn Epochsec - valid
To stringIn Epochsec - id string
- name string
- cert_
chain str - certificate str
- cname str
- creation_
time str - description str
- issued_
by str - issued_
to str - microtenant_
id str - modified_
time str - modifiedby str
- public_
key str - sans Sequence[str]
- serial_
no str - status str
- valid_
from_ strin_ epochsec - valid_
to_ strin_ epochsec - id str
- name str
- cert
Chain String - certificate String
- cname String
- creation
Time String - description String
- issued
By String - issued
To String - microtenant
Id String - modified
Time String - modifiedby String
- public
Key String - sans List<String>
- serial
No String - status String
- valid
From StringIn Epochsec - valid
To StringIn Epochsec - id String
- name String
Package Details
- Repository
- zpa zscaler/pulumi-zpa
- License
- MIT
- Notes
- This Pulumi package is based on the
zpa
Terraform Provider.