1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. vpc
  5. getSslVpnClientCerts
Alibaba Cloud v3.56.0 published on Friday, May 31, 2024 by Pulumi

alicloud.vpc.getSslVpnClientCerts

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.56.0 published on Friday, May 31, 2024 by Pulumi

    The SSL-VPN client certificates data source lists lots of SSL-VPN client certificates resource information owned by an Alicloud account.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const foo = alicloud.vpc.getSslVpnClientCerts({
        ids: ["fake-cert-id"],
        sslVpnServerId: "fake-server-id",
        outputFile: "/tmp/clientcert",
        nameRegex: "^foo",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    foo = alicloud.vpc.get_ssl_vpn_client_certs(ids=["fake-cert-id"],
        ssl_vpn_server_id="fake-server-id",
        output_file="/tmp/clientcert",
        name_regex="^foo")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vpc.GetSslVpnClientCerts(ctx, &vpc.GetSslVpnClientCertsArgs{
    			Ids: []string{
    				"fake-cert-id",
    			},
    			SslVpnServerId: pulumi.StringRef("fake-server-id"),
    			OutputFile:     pulumi.StringRef("/tmp/clientcert"),
    			NameRegex:      pulumi.StringRef("^foo"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = AliCloud.Vpc.GetSslVpnClientCerts.Invoke(new()
        {
            Ids = new[]
            {
                "fake-cert-id",
            },
            SslVpnServerId = "fake-server-id",
            OutputFile = "/tmp/clientcert",
            NameRegex = "^foo",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.vpc.VpcFunctions;
    import com.pulumi.alicloud.vpc.inputs.GetSslVpnClientCertsArgs;
    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 = VpcFunctions.getSslVpnClientCerts(GetSslVpnClientCertsArgs.builder()
                .ids("fake-cert-id")
                .sslVpnServerId("fake-server-id")
                .outputFile("/tmp/clientcert")
                .nameRegex("^foo")
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          Function: alicloud:vpc:getSslVpnClientCerts
          Arguments:
            ids:
              - fake-cert-id
            sslVpnServerId: fake-server-id
            outputFile: /tmp/clientcert
            nameRegex: ^foo
    

    Using getSslVpnClientCerts

    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 getSslVpnClientCerts(args: GetSslVpnClientCertsArgs, opts?: InvokeOptions): Promise<GetSslVpnClientCertsResult>
    function getSslVpnClientCertsOutput(args: GetSslVpnClientCertsOutputArgs, opts?: InvokeOptions): Output<GetSslVpnClientCertsResult>
    def get_ssl_vpn_client_certs(ids: Optional[Sequence[str]] = None,
                                 name_regex: Optional[str] = None,
                                 output_file: Optional[str] = None,
                                 ssl_vpn_server_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetSslVpnClientCertsResult
    def get_ssl_vpn_client_certs_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                 name_regex: Optional[pulumi.Input[str]] = None,
                                 output_file: Optional[pulumi.Input[str]] = None,
                                 ssl_vpn_server_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetSslVpnClientCertsResult]
    func GetSslVpnClientCerts(ctx *Context, args *GetSslVpnClientCertsArgs, opts ...InvokeOption) (*GetSslVpnClientCertsResult, error)
    func GetSslVpnClientCertsOutput(ctx *Context, args *GetSslVpnClientCertsOutputArgs, opts ...InvokeOption) GetSslVpnClientCertsResultOutput

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

    public static class GetSslVpnClientCerts 
    {
        public static Task<GetSslVpnClientCertsResult> InvokeAsync(GetSslVpnClientCertsArgs args, InvokeOptions? opts = null)
        public static Output<GetSslVpnClientCertsResult> Invoke(GetSslVpnClientCertsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSslVpnClientCertsResult> getSslVpnClientCerts(GetSslVpnClientCertsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:vpc/getSslVpnClientCerts:getSslVpnClientCerts
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    IDs of the SSL-VPN client certificates.
    NameRegex string
    A regex string of SSL-VPN client certificate name.
    OutputFile string
    Save the result to the file.
    SslVpnServerId string
    Use the SSL-VPN server ID as the search key.
    Ids []string
    IDs of the SSL-VPN client certificates.
    NameRegex string
    A regex string of SSL-VPN client certificate name.
    OutputFile string
    Save the result to the file.
    SslVpnServerId string
    Use the SSL-VPN server ID as the search key.
    ids List<String>
    IDs of the SSL-VPN client certificates.
    nameRegex String
    A regex string of SSL-VPN client certificate name.
    outputFile String
    Save the result to the file.
    sslVpnServerId String
    Use the SSL-VPN server ID as the search key.
    ids string[]
    IDs of the SSL-VPN client certificates.
    nameRegex string
    A regex string of SSL-VPN client certificate name.
    outputFile string
    Save the result to the file.
    sslVpnServerId string
    Use the SSL-VPN server ID as the search key.
    ids Sequence[str]
    IDs of the SSL-VPN client certificates.
    name_regex str
    A regex string of SSL-VPN client certificate name.
    output_file str
    Save the result to the file.
    ssl_vpn_server_id str
    Use the SSL-VPN server ID as the search key.
    ids List<String>
    IDs of the SSL-VPN client certificates.
    nameRegex String
    A regex string of SSL-VPN client certificate name.
    outputFile String
    Save the result to the file.
    sslVpnServerId String
    Use the SSL-VPN server ID as the search key.

    getSslVpnClientCerts Result

    The following output properties are available:

    Certs List<Pulumi.AliCloud.Vpc.Outputs.GetSslVpnClientCertsCert>
    A list of SSL-VPN client certificates. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    A list of SSL-VPN client cert IDs.
    Names List<string>
    A list of SSL-VPN client cert names.
    NameRegex string
    OutputFile string
    SslVpnServerId string
    ID of the SSL-VPN Server.
    Certs []GetSslVpnClientCertsCert
    A list of SSL-VPN client certificates. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    A list of SSL-VPN client cert IDs.
    Names []string
    A list of SSL-VPN client cert names.
    NameRegex string
    OutputFile string
    SslVpnServerId string
    ID of the SSL-VPN Server.
    certs List<GetSslVpnClientCertsCert>
    A list of SSL-VPN client certificates. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of SSL-VPN client cert IDs.
    names List<String>
    A list of SSL-VPN client cert names.
    nameRegex String
    outputFile String
    sslVpnServerId String
    ID of the SSL-VPN Server.
    certs GetSslVpnClientCertsCert[]
    A list of SSL-VPN client certificates. Each element contains the following attributes:
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    A list of SSL-VPN client cert IDs.
    names string[]
    A list of SSL-VPN client cert names.
    nameRegex string
    outputFile string
    sslVpnServerId string
    ID of the SSL-VPN Server.
    certs Sequence[GetSslVpnClientCertsCert]
    A list of SSL-VPN client certificates. Each element contains the following attributes:
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    A list of SSL-VPN client cert IDs.
    names Sequence[str]
    A list of SSL-VPN client cert names.
    name_regex str
    output_file str
    ssl_vpn_server_id str
    ID of the SSL-VPN Server.
    certs List<Property Map>
    A list of SSL-VPN client certificates. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of SSL-VPN client cert IDs.
    names List<String>
    A list of SSL-VPN client cert names.
    nameRegex String
    outputFile String
    sslVpnServerId String
    ID of the SSL-VPN Server.

    Supporting Types

    GetSslVpnClientCertsCert

    CreateTime string
    The time of creation.
    EndTime int
    The expiration time of the client certificate.
    Id string
    ID of the SSL-VPN client certificate.
    Name string
    The name of the SSL-VPN client certificate.
    SslVpnServerId string
    Use the SSL-VPN server ID as the search key.
    Status string
    The status of the client certificate. valid value:expiring-soon, normal, expired.
    CreateTime string
    The time of creation.
    EndTime int
    The expiration time of the client certificate.
    Id string
    ID of the SSL-VPN client certificate.
    Name string
    The name of the SSL-VPN client certificate.
    SslVpnServerId string
    Use the SSL-VPN server ID as the search key.
    Status string
    The status of the client certificate. valid value:expiring-soon, normal, expired.
    createTime String
    The time of creation.
    endTime Integer
    The expiration time of the client certificate.
    id String
    ID of the SSL-VPN client certificate.
    name String
    The name of the SSL-VPN client certificate.
    sslVpnServerId String
    Use the SSL-VPN server ID as the search key.
    status String
    The status of the client certificate. valid value:expiring-soon, normal, expired.
    createTime string
    The time of creation.
    endTime number
    The expiration time of the client certificate.
    id string
    ID of the SSL-VPN client certificate.
    name string
    The name of the SSL-VPN client certificate.
    sslVpnServerId string
    Use the SSL-VPN server ID as the search key.
    status string
    The status of the client certificate. valid value:expiring-soon, normal, expired.
    create_time str
    The time of creation.
    end_time int
    The expiration time of the client certificate.
    id str
    ID of the SSL-VPN client certificate.
    name str
    The name of the SSL-VPN client certificate.
    ssl_vpn_server_id str
    Use the SSL-VPN server ID as the search key.
    status str
    The status of the client certificate. valid value:expiring-soon, normal, expired.
    createTime String
    The time of creation.
    endTime Number
    The expiration time of the client certificate.
    id String
    ID of the SSL-VPN client certificate.
    name String
    The name of the SSL-VPN client certificate.
    sslVpnServerId String
    Use the SSL-VPN server ID as the search key.
    status String
    The status of the client certificate. valid value:expiring-soon, normal, expired.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.56.0 published on Friday, May 31, 2024 by Pulumi