1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getSslCertificates
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getSslCertificates

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query SSL certificates.

    Example Usage

    Query all SSL certificates

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getSslCertificates({});
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_ssl_certificates()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.GetSslCertificates(ctx, &tencentcloud.GetSslCertificatesArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Tencentcloud.GetSslCertificates.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetSslCertificatesArgs;
    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 example = TencentcloudFunctions.getSslCertificates();
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getSslCertificates
          arguments: {}
    

    Query SSL certificates by filter

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getSslCertificates({
        id: "LCYouprI",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_ssl_certificates(id="LCYouprI")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.GetSslCertificates(ctx, &tencentcloud.GetSslCertificatesArgs{
    			Id: pulumi.StringRef("LCYouprI"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Tencentcloud.GetSslCertificates.Invoke(new()
        {
            Id = "LCYouprI",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetSslCertificatesArgs;
    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 example = TencentcloudFunctions.getSslCertificates(GetSslCertificatesArgs.builder()
                .id("LCYouprI")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getSslCertificates
          arguments:
            id: LCYouprI
    

    Using getSslCertificates

    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 getSslCertificates(args: GetSslCertificatesArgs, opts?: InvokeOptions): Promise<GetSslCertificatesResult>
    function getSslCertificatesOutput(args: GetSslCertificatesOutputArgs, opts?: InvokeOptions): Output<GetSslCertificatesResult>
    def get_ssl_certificates(id: Optional[str] = None,
                             name: Optional[str] = None,
                             result_output_file: Optional[str] = None,
                             type: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetSslCertificatesResult
    def get_ssl_certificates_output(id: Optional[pulumi.Input[str]] = None,
                             name: Optional[pulumi.Input[str]] = None,
                             result_output_file: Optional[pulumi.Input[str]] = None,
                             type: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetSslCertificatesResult]
    func GetSslCertificates(ctx *Context, args *GetSslCertificatesArgs, opts ...InvokeOption) (*GetSslCertificatesResult, error)
    func GetSslCertificatesOutput(ctx *Context, args *GetSslCertificatesOutputArgs, opts ...InvokeOption) GetSslCertificatesResultOutput

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

    public static class GetSslCertificates 
    {
        public static Task<GetSslCertificatesResult> InvokeAsync(GetSslCertificatesArgs args, InvokeOptions? opts = null)
        public static Output<GetSslCertificatesResult> Invoke(GetSslCertificatesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSslCertificatesResult> getSslCertificates(GetSslCertificatesArgs args, InvokeOptions options)
    public static Output<GetSslCertificatesResult> getSslCertificates(GetSslCertificatesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getSslCertificates:getSslCertificates
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ID of the SSL certificate to be queried.
    Name string
    Name of the SSL certificate to be queried.
    ResultOutputFile string
    Used to save results.
    Type string
    Type of the SSL certificate to be queried. Available values includes: CA and SVR.
    Id string
    ID of the SSL certificate to be queried.
    Name string
    Name of the SSL certificate to be queried.
    ResultOutputFile string
    Used to save results.
    Type string
    Type of the SSL certificate to be queried. Available values includes: CA and SVR.
    id String
    ID of the SSL certificate to be queried.
    name String
    Name of the SSL certificate to be queried.
    resultOutputFile String
    Used to save results.
    type String
    Type of the SSL certificate to be queried. Available values includes: CA and SVR.
    id string
    ID of the SSL certificate to be queried.
    name string
    Name of the SSL certificate to be queried.
    resultOutputFile string
    Used to save results.
    type string
    Type of the SSL certificate to be queried. Available values includes: CA and SVR.
    id str
    ID of the SSL certificate to be queried.
    name str
    Name of the SSL certificate to be queried.
    result_output_file str
    Used to save results.
    type str
    Type of the SSL certificate to be queried. Available values includes: CA and SVR.
    id String
    ID of the SSL certificate to be queried.
    name String
    Name of the SSL certificate to be queried.
    resultOutputFile String
    Used to save results.
    type String
    Type of the SSL certificate to be queried. Available values includes: CA and SVR.

    getSslCertificates Result

    The following output properties are available:

    Certificates List<GetSslCertificatesCertificate>
    An information list of certificate. Each element contains the following attributes:
    Id string
    ID of the SSL certificate.
    Name string
    Name of the SSL certificate.
    ResultOutputFile string
    Type string
    Type of the SSL certificate.
    Certificates []GetSslCertificatesCertificate
    An information list of certificate. Each element contains the following attributes:
    Id string
    ID of the SSL certificate.
    Name string
    Name of the SSL certificate.
    ResultOutputFile string
    Type string
    Type of the SSL certificate.
    certificates List<GetSslCertificatesCertificate>
    An information list of certificate. Each element contains the following attributes:
    id String
    ID of the SSL certificate.
    name String
    Name of the SSL certificate.
    resultOutputFile String
    type String
    Type of the SSL certificate.
    certificates GetSslCertificatesCertificate[]
    An information list of certificate. Each element contains the following attributes:
    id string
    ID of the SSL certificate.
    name string
    Name of the SSL certificate.
    resultOutputFile string
    type string
    Type of the SSL certificate.
    certificates Sequence[GetSslCertificatesCertificate]
    An information list of certificate. Each element contains the following attributes:
    id str
    ID of the SSL certificate.
    name str
    Name of the SSL certificate.
    result_output_file str
    type str
    Type of the SSL certificate.
    certificates List<Property Map>
    An information list of certificate. Each element contains the following attributes:
    id String
    ID of the SSL certificate.
    name String
    Name of the SSL certificate.
    resultOutputFile String
    type String
    Type of the SSL certificate.

    Supporting Types

    GetSslCertificatesCertificate

    BeginTime string
    Beginning time of the SSL certificate.
    Cert string
    Content of the SSL certificate.
    CreateTime string
    Creation time of the SSL certificate.
    Domain string
    Primary domain of the SSL certificate.
    DvAuths List<GetSslCertificatesCertificateDvAuth>
    DV certification information.
    EndTime string
    Ending time of the SSL certificate.
    Id string
    ID of the SSL certificate to be queried.
    Key string
    Key of the SSL certificate.
    Name string
    Name of the SSL certificate to be queried.
    OrderId string
    Order ID returned.
    OwnerUin string
    Account UIN.Note: This field may return NULL, indicating that the valid value cannot be obtained.
    ProductZhName string
    Certificate authority.
    ProjectId double
    Project ID of the SSL certificate.
    Status double
    Status of the SSL certificate.
    SubjectNames List<string>
    ALL domains included in the SSL certificate. Including the primary domain name.
    Type string
    Type of the SSL certificate to be queried. Available values includes: CA and SVR.
    ValidityPeriod string
    Validity period: unit (month).Note: This field may return NULL, indicating that the valid value cannot be obtained.
    BeginTime string
    Beginning time of the SSL certificate.
    Cert string
    Content of the SSL certificate.
    CreateTime string
    Creation time of the SSL certificate.
    Domain string
    Primary domain of the SSL certificate.
    DvAuths []GetSslCertificatesCertificateDvAuth
    DV certification information.
    EndTime string
    Ending time of the SSL certificate.
    Id string
    ID of the SSL certificate to be queried.
    Key string
    Key of the SSL certificate.
    Name string
    Name of the SSL certificate to be queried.
    OrderId string
    Order ID returned.
    OwnerUin string
    Account UIN.Note: This field may return NULL, indicating that the valid value cannot be obtained.
    ProductZhName string
    Certificate authority.
    ProjectId float64
    Project ID of the SSL certificate.
    Status float64
    Status of the SSL certificate.
    SubjectNames []string
    ALL domains included in the SSL certificate. Including the primary domain name.
    Type string
    Type of the SSL certificate to be queried. Available values includes: CA and SVR.
    ValidityPeriod string
    Validity period: unit (month).Note: This field may return NULL, indicating that the valid value cannot be obtained.
    beginTime String
    Beginning time of the SSL certificate.
    cert String
    Content of the SSL certificate.
    createTime String
    Creation time of the SSL certificate.
    domain String
    Primary domain of the SSL certificate.
    dvAuths List<GetSslCertificatesCertificateDvAuth>
    DV certification information.
    endTime String
    Ending time of the SSL certificate.
    id String
    ID of the SSL certificate to be queried.
    key String
    Key of the SSL certificate.
    name String
    Name of the SSL certificate to be queried.
    orderId String
    Order ID returned.
    ownerUin String
    Account UIN.Note: This field may return NULL, indicating that the valid value cannot be obtained.
    productZhName String
    Certificate authority.
    projectId Double
    Project ID of the SSL certificate.
    status Double
    Status of the SSL certificate.
    subjectNames List<String>
    ALL domains included in the SSL certificate. Including the primary domain name.
    type String
    Type of the SSL certificate to be queried. Available values includes: CA and SVR.
    validityPeriod String
    Validity period: unit (month).Note: This field may return NULL, indicating that the valid value cannot be obtained.
    beginTime string
    Beginning time of the SSL certificate.
    cert string
    Content of the SSL certificate.
    createTime string
    Creation time of the SSL certificate.
    domain string
    Primary domain of the SSL certificate.
    dvAuths GetSslCertificatesCertificateDvAuth[]
    DV certification information.
    endTime string
    Ending time of the SSL certificate.
    id string
    ID of the SSL certificate to be queried.
    key string
    Key of the SSL certificate.
    name string
    Name of the SSL certificate to be queried.
    orderId string
    Order ID returned.
    ownerUin string
    Account UIN.Note: This field may return NULL, indicating that the valid value cannot be obtained.
    productZhName string
    Certificate authority.
    projectId number
    Project ID of the SSL certificate.
    status number
    Status of the SSL certificate.
    subjectNames string[]
    ALL domains included in the SSL certificate. Including the primary domain name.
    type string
    Type of the SSL certificate to be queried. Available values includes: CA and SVR.
    validityPeriod string
    Validity period: unit (month).Note: This field may return NULL, indicating that the valid value cannot be obtained.
    begin_time str
    Beginning time of the SSL certificate.
    cert str
    Content of the SSL certificate.
    create_time str
    Creation time of the SSL certificate.
    domain str
    Primary domain of the SSL certificate.
    dv_auths Sequence[GetSslCertificatesCertificateDvAuth]
    DV certification information.
    end_time str
    Ending time of the SSL certificate.
    id str
    ID of the SSL certificate to be queried.
    key str
    Key of the SSL certificate.
    name str
    Name of the SSL certificate to be queried.
    order_id str
    Order ID returned.
    owner_uin str
    Account UIN.Note: This field may return NULL, indicating that the valid value cannot be obtained.
    product_zh_name str
    Certificate authority.
    project_id float
    Project ID of the SSL certificate.
    status float
    Status of the SSL certificate.
    subject_names Sequence[str]
    ALL domains included in the SSL certificate. Including the primary domain name.
    type str
    Type of the SSL certificate to be queried. Available values includes: CA and SVR.
    validity_period str
    Validity period: unit (month).Note: This field may return NULL, indicating that the valid value cannot be obtained.
    beginTime String
    Beginning time of the SSL certificate.
    cert String
    Content of the SSL certificate.
    createTime String
    Creation time of the SSL certificate.
    domain String
    Primary domain of the SSL certificate.
    dvAuths List<Property Map>
    DV certification information.
    endTime String
    Ending time of the SSL certificate.
    id String
    ID of the SSL certificate to be queried.
    key String
    Key of the SSL certificate.
    name String
    Name of the SSL certificate to be queried.
    orderId String
    Order ID returned.
    ownerUin String
    Account UIN.Note: This field may return NULL, indicating that the valid value cannot be obtained.
    productZhName String
    Certificate authority.
    projectId Number
    Project ID of the SSL certificate.
    status Number
    Status of the SSL certificate.
    subjectNames List<String>
    ALL domains included in the SSL certificate. Including the primary domain name.
    type String
    Type of the SSL certificate to be queried. Available values includes: CA and SVR.
    validityPeriod String
    Validity period: unit (month).Note: This field may return NULL, indicating that the valid value cannot be obtained.

    GetSslCertificatesCertificateDvAuth

    DvAuthKey string
    DV authentication key.
    DvAuthValue string
    DV authentication value.
    DvAuthVerifyType string
    DV authentication type.
    DvAuthKey string
    DV authentication key.
    DvAuthValue string
    DV authentication value.
    DvAuthVerifyType string
    DV authentication type.
    dvAuthKey String
    DV authentication key.
    dvAuthValue String
    DV authentication value.
    dvAuthVerifyType String
    DV authentication type.
    dvAuthKey string
    DV authentication key.
    dvAuthValue string
    DV authentication value.
    dvAuthVerifyType string
    DV authentication type.
    dv_auth_key str
    DV authentication key.
    dv_auth_value str
    DV authentication value.
    dv_auth_verify_type str
    DV authentication type.
    dvAuthKey String
    DV authentication key.
    dvAuthValue String
    DV authentication value.
    dvAuthVerifyType String
    DV authentication type.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack