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

tencentcloud.getGaapCertificates

Explore with Pulumi AI

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

    Use this data source to query GAAP certificate.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const fooGaapCertificate = new tencentcloud.GaapCertificate("fooGaapCertificate", {
        type: "BASIC",
        content: "test:tx2KGdo3zJg/.",
    });
    const fooGaapCertificates = tencentcloud.getGaapCertificatesOutput({
        id: fooGaapCertificate.gaapCertificateId,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo_gaap_certificate = tencentcloud.GaapCertificate("fooGaapCertificate",
        type="BASIC",
        content="test:tx2KGdo3zJg/.")
    foo_gaap_certificates = tencentcloud.get_gaap_certificates_output(id=foo_gaap_certificate.gaap_certificate_id)
    
    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 {
    		fooGaapCertificate, err := tencentcloud.NewGaapCertificate(ctx, "fooGaapCertificate", &tencentcloud.GaapCertificateArgs{
    			Type:    pulumi.String("BASIC"),
    			Content: pulumi.String("test:tx2KGdo3zJg/."),
    		})
    		if err != nil {
    			return err
    		}
    		_ = tencentcloud.GetGaapCertificatesOutput(ctx, tencentcloud.GetGaapCertificatesOutputArgs{
    			Id: fooGaapCertificate.GaapCertificateId,
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var fooGaapCertificate = new Tencentcloud.GaapCertificate("fooGaapCertificate", new()
        {
            Type = "BASIC",
            Content = "test:tx2KGdo3zJg/.",
        });
    
        var fooGaapCertificates = Tencentcloud.GetGaapCertificates.Invoke(new()
        {
            Id = fooGaapCertificate.GaapCertificateId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.GaapCertificate;
    import com.pulumi.tencentcloud.GaapCertificateArgs;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetGaapCertificatesArgs;
    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) {
            var fooGaapCertificate = new GaapCertificate("fooGaapCertificate", GaapCertificateArgs.builder()
                .type("BASIC")
                .content("test:tx2KGdo3zJg/.")
                .build());
    
            final var fooGaapCertificates = TencentcloudFunctions.getGaapCertificates(GetGaapCertificatesArgs.builder()
                .id(fooGaapCertificate.gaapCertificateId())
                .build());
    
        }
    }
    
    resources:
      fooGaapCertificate:
        type: tencentcloud:GaapCertificate
        properties:
          type: BASIC
          content: test:tx2KGdo3zJg/.
    variables:
      fooGaapCertificates:
        fn::invoke:
          function: tencentcloud:getGaapCertificates
          arguments:
            id: ${fooGaapCertificate.gaapCertificateId}
    

    Using getGaapCertificates

    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 getGaapCertificates(args: GetGaapCertificatesArgs, opts?: InvokeOptions): Promise<GetGaapCertificatesResult>
    function getGaapCertificatesOutput(args: GetGaapCertificatesOutputArgs, opts?: InvokeOptions): Output<GetGaapCertificatesResult>
    def get_gaap_certificates(id: Optional[str] = None,
                              name: Optional[str] = None,
                              result_output_file: Optional[str] = None,
                              type: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetGaapCertificatesResult
    def get_gaap_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[GetGaapCertificatesResult]
    func GetGaapCertificates(ctx *Context, args *GetGaapCertificatesArgs, opts ...InvokeOption) (*GetGaapCertificatesResult, error)
    func GetGaapCertificatesOutput(ctx *Context, args *GetGaapCertificatesOutputArgs, opts ...InvokeOption) GetGaapCertificatesResultOutput

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

    public static class GetGaapCertificates 
    {
        public static Task<GetGaapCertificatesResult> InvokeAsync(GetGaapCertificatesArgs args, InvokeOptions? opts = null)
        public static Output<GetGaapCertificatesResult> Invoke(GetGaapCertificatesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGaapCertificatesResult> getGaapCertificates(GetGaapCertificatesArgs args, InvokeOptions options)
    public static Output<GetGaapCertificatesResult> getGaapCertificates(GetGaapCertificatesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getGaapCertificates:getGaapCertificates
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ID of the certificate to be queried.
    Name string
    Name of the certificate to be queried.
    ResultOutputFile string
    Used to save results.
    Type string
    Type of the certificate to be queried. Valid values: BASIC, CLIENT, SERVER, REALSERVER and PROXY. BASIC means basic certificate; CLIENT means client CA certificate; SERVER means server SSL certificate; REALSERVER means realserver CA certificate; PROXY means proxy SSL certificate.
    Id string
    ID of the certificate to be queried.
    Name string
    Name of the certificate to be queried.
    ResultOutputFile string
    Used to save results.
    Type string
    Type of the certificate to be queried. Valid values: BASIC, CLIENT, SERVER, REALSERVER and PROXY. BASIC means basic certificate; CLIENT means client CA certificate; SERVER means server SSL certificate; REALSERVER means realserver CA certificate; PROXY means proxy SSL certificate.
    id String
    ID of the certificate to be queried.
    name String
    Name of the certificate to be queried.
    resultOutputFile String
    Used to save results.
    type String
    Type of the certificate to be queried. Valid values: BASIC, CLIENT, SERVER, REALSERVER and PROXY. BASIC means basic certificate; CLIENT means client CA certificate; SERVER means server SSL certificate; REALSERVER means realserver CA certificate; PROXY means proxy SSL certificate.
    id string
    ID of the certificate to be queried.
    name string
    Name of the certificate to be queried.
    resultOutputFile string
    Used to save results.
    type string
    Type of the certificate to be queried. Valid values: BASIC, CLIENT, SERVER, REALSERVER and PROXY. BASIC means basic certificate; CLIENT means client CA certificate; SERVER means server SSL certificate; REALSERVER means realserver CA certificate; PROXY means proxy SSL certificate.
    id str
    ID of the certificate to be queried.
    name str
    Name of the certificate to be queried.
    result_output_file str
    Used to save results.
    type str
    Type of the certificate to be queried. Valid values: BASIC, CLIENT, SERVER, REALSERVER and PROXY. BASIC means basic certificate; CLIENT means client CA certificate; SERVER means server SSL certificate; REALSERVER means realserver CA certificate; PROXY means proxy SSL certificate.
    id String
    ID of the certificate to be queried.
    name String
    Name of the certificate to be queried.
    resultOutputFile String
    Used to save results.
    type String
    Type of the certificate to be queried. Valid values: BASIC, CLIENT, SERVER, REALSERVER and PROXY. BASIC means basic certificate; CLIENT means client CA certificate; SERVER means server SSL certificate; REALSERVER means realserver CA certificate; PROXY means proxy SSL certificate.

    getGaapCertificates Result

    The following output properties are available:

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

    Supporting Types

    GetGaapCertificatesCertificate

    BeginTime string
    Beginning time of the certificate.
    CreateTime string
    Creation time of the certificate.
    EndTime string
    Ending time of the certificate.
    Id string
    ID of the certificate to be queried.
    IssuerCn string
    Issuer name of the certificate.
    Name string
    Name of the certificate to be queried.
    SubjectCn string
    Subject name of the certificate.
    Type string
    Type of the certificate to be queried. Valid values: BASIC, CLIENT, SERVER, REALSERVER and PROXY. BASIC means basic certificate; CLIENT means client CA certificate; SERVER means server SSL certificate; REALSERVER means realserver CA certificate; PROXY means proxy SSL certificate.
    BeginTime string
    Beginning time of the certificate.
    CreateTime string
    Creation time of the certificate.
    EndTime string
    Ending time of the certificate.
    Id string
    ID of the certificate to be queried.
    IssuerCn string
    Issuer name of the certificate.
    Name string
    Name of the certificate to be queried.
    SubjectCn string
    Subject name of the certificate.
    Type string
    Type of the certificate to be queried. Valid values: BASIC, CLIENT, SERVER, REALSERVER and PROXY. BASIC means basic certificate; CLIENT means client CA certificate; SERVER means server SSL certificate; REALSERVER means realserver CA certificate; PROXY means proxy SSL certificate.
    beginTime String
    Beginning time of the certificate.
    createTime String
    Creation time of the certificate.
    endTime String
    Ending time of the certificate.
    id String
    ID of the certificate to be queried.
    issuerCn String
    Issuer name of the certificate.
    name String
    Name of the certificate to be queried.
    subjectCn String
    Subject name of the certificate.
    type String
    Type of the certificate to be queried. Valid values: BASIC, CLIENT, SERVER, REALSERVER and PROXY. BASIC means basic certificate; CLIENT means client CA certificate; SERVER means server SSL certificate; REALSERVER means realserver CA certificate; PROXY means proxy SSL certificate.
    beginTime string
    Beginning time of the certificate.
    createTime string
    Creation time of the certificate.
    endTime string
    Ending time of the certificate.
    id string
    ID of the certificate to be queried.
    issuerCn string
    Issuer name of the certificate.
    name string
    Name of the certificate to be queried.
    subjectCn string
    Subject name of the certificate.
    type string
    Type of the certificate to be queried. Valid values: BASIC, CLIENT, SERVER, REALSERVER and PROXY. BASIC means basic certificate; CLIENT means client CA certificate; SERVER means server SSL certificate; REALSERVER means realserver CA certificate; PROXY means proxy SSL certificate.
    begin_time str
    Beginning time of the certificate.
    create_time str
    Creation time of the certificate.
    end_time str
    Ending time of the certificate.
    id str
    ID of the certificate to be queried.
    issuer_cn str
    Issuer name of the certificate.
    name str
    Name of the certificate to be queried.
    subject_cn str
    Subject name of the certificate.
    type str
    Type of the certificate to be queried. Valid values: BASIC, CLIENT, SERVER, REALSERVER and PROXY. BASIC means basic certificate; CLIENT means client CA certificate; SERVER means server SSL certificate; REALSERVER means realserver CA certificate; PROXY means proxy SSL certificate.
    beginTime String
    Beginning time of the certificate.
    createTime String
    Creation time of the certificate.
    endTime String
    Ending time of the certificate.
    id String
    ID of the certificate to be queried.
    issuerCn String
    Issuer name of the certificate.
    name String
    Name of the certificate to be queried.
    subjectCn String
    Subject name of the certificate.
    type String
    Type of the certificate to be queried. Valid values: BASIC, CLIENT, SERVER, REALSERVER and PROXY. BASIC means basic certificate; CLIENT means client CA certificate; SERVER means server SSL certificate; REALSERVER means realserver CA certificate; PROXY means proxy SSL certificate.

    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