1. Registry
  2. Packages
  3. Alibaba Cloud Provider
  4. API Docs
  5. sslcertificatesserviceinstance
  6. Certificates
Viewing docs for Alibaba Cloud v3.106.0
published on Monday, Aug 24, 2026 by Pulumi
alicloud logo alicloud logo
Viewing docs for Alibaba Cloud v3.106.0
published on Monday, Aug 24, 2026 by Pulumi

    This data source provides Ssl Certificates Service Instance Certificate available to the user.What is Instance Certificate

    NOTE: Available since v1.287.0.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const _default = alicloud.sslcertificatesserviceinstance.Certificates({
        certificateStatus: "issued",
    });
    export const alicloudSslCertificatesServiceInstanceCertificateExampleId = _default.then(_default => _default.certificates?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.sslcertificatesserviceinstance.certificates(certificate_status="issued")
    pulumi.export("alicloudSslCertificatesServiceInstanceCertificateExampleId", default.certificates[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sslcertificatesserviceinstance"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_default, err := sslcertificatesserviceinstance.Certificates(ctx, &sslcertificatesserviceinstance.CertificatesArgs{
    			CertificateStatus: pulumi.StringRef("issued"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("alicloudSslCertificatesServiceInstanceCertificateExampleId", _default.Certificates[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = AliCloud.SslCertificatesServiceInstance.Certificates.Invoke(new()
        {
            CertificateStatus = "issued",
        });
    
        return new Dictionary<string, object?>
        {
            ["alicloudSslCertificatesServiceInstanceCertificateExampleId"] = @default.Apply(@default => @default.Apply(certificatesResult => certificatesResult.Certificates[0]?.Id)),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.sslcertificatesserviceinstance.SslcertificatesserviceinstanceFunctions;
    import com.pulumi.alicloud.sslcertificatesserviceinstance.inputs.CertificatesArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 default = SslcertificatesserviceinstanceFunctions.Certificates(CertificatesArgs.builder()
                .certificateStatus("issued")
                .build());
    
            ctx.export("alicloudSslCertificatesServiceInstanceCertificateExampleId", default_.certificates()[0].id());
        }
    }
    
    variables:
      default:
        fn::invoke:
          function: alicloud:sslcertificatesserviceinstance:Certificates
          arguments:
            certificateStatus: issued
    outputs:
      alicloudSslCertificatesServiceInstanceCertificateExampleId: ${default.certificates[0].id}
    
    pulumi {
      required_providers {
        alicloud = {
          source = "pulumi/alicloud"
        }
      }
    }
    
    data "alicloud_sslcertificatesserviceinstance_certificates" "default" {
      certificate_status = "issued"
    }
    
    output "alicloudSslCertificatesServiceInstanceCertificateExampleId" {
      value = data.alicloud_sslcertificatesserviceinstance_certificates.default.certificates[0].id
    }
    

    Using Certificates

    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 certificates(args: CertificatesArgs, opts?: InvokeOptions): Promise<CertificatesResult>
    function certificatesOutput(args: CertificatesOutputArgs, opts?: InvokeOutputOptions): Output<CertificatesResult>
    def certificates(certificate_source: Optional[str] = None,
                     certificate_status: Optional[str] = None,
                     ids: Optional[Sequence[str]] = None,
                     instance_id: Optional[str] = None,
                     output_file: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> CertificatesResult
    def certificates_output(certificate_source: pulumi.Input[Optional[str]] = None,
                     certificate_status: pulumi.Input[Optional[str]] = None,
                     ids: pulumi.Input[Optional[Sequence[pulumi.Input[str]]]] = None,
                     instance_id: pulumi.Input[Optional[str]] = None,
                     output_file: pulumi.Input[Optional[str]] = None,
                     opts: Optional[InvokeOutputOptions] = None) -> Output[CertificatesResult]
    func Certificates(ctx *Context, args *CertificatesArgs, opts ...InvokeOption) (*CertificatesResult, error)
    func CertificatesOutput(ctx *Context, args *CertificatesOutputArgs, opts ...InvokeOption) CertificatesResultOutput
    public static class Certificates 
    {
        public static Task<CertificatesResult> InvokeAsync(CertificatesArgs args, InvokeOptions? opts = null)
        public static Output<CertificatesResult> Invoke(CertificatesInvokeArgs args, InvokeOptions? opts = null)
        public static Output<CertificatesResult> Invoke(CertificatesInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<CertificatesResult> certificates(CertificatesArgs args, InvokeOptions options)
    public static Output<CertificatesResult> certificates(CertificatesArgs args, InvokeOptions options)
    public static Output<CertificatesResult> certificates(CertificatesArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: alicloud:sslcertificatesserviceinstance:Certificates
      arguments:
        # arguments dictionary
    data "alicloud_sslcertificatesserviceinstance_certificates" "name" {
        # arguments
    }

    The following arguments are supported:

    CertificateSource string
    The source of the certificate. Valid values: BUY, UPLOAD and TEST.
    CertificateStatus string
    The status of the certificate. Valid values: issued, revoked, willExpire and expired.
    Ids List<string>
    A list of Instance Certificate IDs.
    InstanceId string
    The ID of the certificate instance that issued the certificate. Use it to list the certificates a single instance has issued.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    CertificateSource string
    The source of the certificate. Valid values: BUY, UPLOAD and TEST.
    CertificateStatus string
    The status of the certificate. Valid values: issued, revoked, willExpire and expired.
    Ids []string
    A list of Instance Certificate IDs.
    InstanceId string
    The ID of the certificate instance that issued the certificate. Use it to list the certificates a single instance has issued.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    certificate_source string
    The source of the certificate. Valid values: BUY, UPLOAD and TEST.
    certificate_status string
    The status of the certificate. Valid values: issued, revoked, willExpire and expired.
    ids list(string)
    A list of Instance Certificate IDs.
    instance_id string
    The ID of the certificate instance that issued the certificate. Use it to list the certificates a single instance has issued.
    output_file string
    File name where to save data source results (after running pulumi preview).
    certificateSource String
    The source of the certificate. Valid values: BUY, UPLOAD and TEST.
    certificateStatus String
    The status of the certificate. Valid values: issued, revoked, willExpire and expired.
    ids List<String>
    A list of Instance Certificate IDs.
    instanceId String
    The ID of the certificate instance that issued the certificate. Use it to list the certificates a single instance has issued.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    certificateSource string
    The source of the certificate. Valid values: BUY, UPLOAD and TEST.
    certificateStatus string
    The status of the certificate. Valid values: issued, revoked, willExpire and expired.
    ids string[]
    A list of Instance Certificate IDs.
    instanceId string
    The ID of the certificate instance that issued the certificate. Use it to list the certificates a single instance has issued.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    certificate_source str
    The source of the certificate. Valid values: BUY, UPLOAD and TEST.
    certificate_status str
    The status of the certificate. Valid values: issued, revoked, willExpire and expired.
    ids Sequence[str]
    A list of Instance Certificate IDs.
    instance_id str
    The ID of the certificate instance that issued the certificate. Use it to list the certificates a single instance has issued.
    output_file str
    File name where to save data source results (after running pulumi preview).
    certificateSource String
    The source of the certificate. Valid values: BUY, UPLOAD and TEST.
    certificateStatus String
    The status of the certificate. Valid values: issued, revoked, willExpire and expired.
    ids List<String>
    A list of Instance Certificate IDs.
    instanceId String
    The ID of the certificate instance that issued the certificate. Use it to list the certificates a single instance has issued.
    outputFile String
    File name where to save data source results (after running pulumi preview).

    Certificates Result

    The following output properties are available:

    Certificates List<Pulumi.AliCloud.sslCertificatesServiceInstance.Outputs.CertificatesCertificate>
    A list of Instance Certificate Entries. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    A list of Instance Certificate IDs.
    CertificateSource string
    The source of the certificate.
    CertificateStatus string
    The status of the certificate.
    InstanceId string
    The ID of the certificate instance that issued this certificate.
    OutputFile string
    Certificates []CertificatesCertificate
    A list of Instance Certificate Entries. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    A list of Instance Certificate IDs.
    CertificateSource string
    The source of the certificate.
    CertificateStatus string
    The status of the certificate.
    InstanceId string
    The ID of the certificate instance that issued this certificate.
    OutputFile string
    certificates list(object)
    A list of Instance Certificate Entries. Each element contains the following attributes:
    id string
    The provider-assigned unique ID for this managed resource.
    ids list(string)
    A list of Instance Certificate IDs.
    certificate_source string
    The source of the certificate.
    certificate_status string
    The status of the certificate.
    instance_id string
    The ID of the certificate instance that issued this certificate.
    output_file string
    certificates List<CertificatesCertificate>
    A list of Instance Certificate Entries. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of Instance Certificate IDs.
    certificateSource String
    The source of the certificate.
    certificateStatus String
    The status of the certificate.
    instanceId String
    The ID of the certificate instance that issued this certificate.
    outputFile String
    certificates CertificatesCertificate[]
    A list of Instance Certificate Entries. Each element contains the following attributes:
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    A list of Instance Certificate IDs.
    certificateSource string
    The source of the certificate.
    certificateStatus string
    The status of the certificate.
    instanceId string
    The ID of the certificate instance that issued this certificate.
    outputFile string
    certificates Sequence[CertificatesCertificate]
    A list of Instance Certificate Entries. Each element contains the following attributes:
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    A list of Instance Certificate IDs.
    certificate_source str
    The source of the certificate.
    certificate_status str
    The status of the certificate.
    instance_id str
    The ID of the certificate instance that issued this certificate.
    output_file str
    certificates List<Property Map>
    A list of Instance Certificate Entries. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of Instance Certificate IDs.
    certificateSource String
    The source of the certificate.
    certificateStatus String
    The status of the certificate.
    instanceId String
    The ID of the certificate instance that issued this certificate.
    outputFile String

    Supporting Types

    CertificatesCertificate

    Algorithm string
    The encryption algorithm of the certificate.
    CertIdentifier string
    The global certificate identifier, formatted as the certificate ID plus - plus the site region ID. Alibaba Cloud services such as ALB, CDN and WAF reference a certificate by this value.
    CertificateId int
    The ID of the certificate.
    CertificateName string
    The name of the certificate.
    CertificateSource string
    The source of the certificate. Valid values: BUY, UPLOAD and TEST.
    CertificateStatus string
    The status of the certificate. Valid values: issued, revoked, willExpire and expired.
    CommonName string
    The common name of the certificate.
    Domain string
    All domain names covered by the certificate, separated by commas.
    ExistPrivateKey bool
    Indicates whether the private key of the certificate is held on the server side.
    FingerPrint string
    The public key fingerprint of the certificate.
    Id int
    The ID of the resource supplied above.
    InstanceId string
    The ID of the certificate instance that issued the certificate. Use it to list the certificates a single instance has issued.
    Issuer string
    The certificate authority that issued the certificate.
    KeySize int
    The key length of the certificate algorithm.
    NotAfter int
    The end of the certificate validity period.
    NotBefore int
    The start of the certificate validity period.
    Algorithm string
    The encryption algorithm of the certificate.
    CertIdentifier string
    The global certificate identifier, formatted as the certificate ID plus - plus the site region ID. Alibaba Cloud services such as ALB, CDN and WAF reference a certificate by this value.
    CertificateId int
    The ID of the certificate.
    CertificateName string
    The name of the certificate.
    CertificateSource string
    The source of the certificate. Valid values: BUY, UPLOAD and TEST.
    CertificateStatus string
    The status of the certificate. Valid values: issued, revoked, willExpire and expired.
    CommonName string
    The common name of the certificate.
    Domain string
    All domain names covered by the certificate, separated by commas.
    ExistPrivateKey bool
    Indicates whether the private key of the certificate is held on the server side.
    FingerPrint string
    The public key fingerprint of the certificate.
    Id int
    The ID of the resource supplied above.
    InstanceId string
    The ID of the certificate instance that issued the certificate. Use it to list the certificates a single instance has issued.
    Issuer string
    The certificate authority that issued the certificate.
    KeySize int
    The key length of the certificate algorithm.
    NotAfter int
    The end of the certificate validity period.
    NotBefore int
    The start of the certificate validity period.
    algorithm string
    The encryption algorithm of the certificate.
    cert_identifier string
    The global certificate identifier, formatted as the certificate ID plus - plus the site region ID. Alibaba Cloud services such as ALB, CDN and WAF reference a certificate by this value.
    certificate_id number
    The ID of the certificate.
    certificate_name string
    The name of the certificate.
    certificate_source string
    The source of the certificate. Valid values: BUY, UPLOAD and TEST.
    certificate_status string
    The status of the certificate. Valid values: issued, revoked, willExpire and expired.
    common_name string
    The common name of the certificate.
    domain string
    All domain names covered by the certificate, separated by commas.
    exist_private_key bool
    Indicates whether the private key of the certificate is held on the server side.
    finger_print string
    The public key fingerprint of the certificate.
    id number
    The ID of the resource supplied above.
    instance_id string
    The ID of the certificate instance that issued the certificate. Use it to list the certificates a single instance has issued.
    issuer string
    The certificate authority that issued the certificate.
    key_size number
    The key length of the certificate algorithm.
    not_after number
    The end of the certificate validity period.
    not_before number
    The start of the certificate validity period.
    algorithm String
    The encryption algorithm of the certificate.
    certIdentifier String
    The global certificate identifier, formatted as the certificate ID plus - plus the site region ID. Alibaba Cloud services such as ALB, CDN and WAF reference a certificate by this value.
    certificateId Integer
    The ID of the certificate.
    certificateName String
    The name of the certificate.
    certificateSource String
    The source of the certificate. Valid values: BUY, UPLOAD and TEST.
    certificateStatus String
    The status of the certificate. Valid values: issued, revoked, willExpire and expired.
    commonName String
    The common name of the certificate.
    domain String
    All domain names covered by the certificate, separated by commas.
    existPrivateKey Boolean
    Indicates whether the private key of the certificate is held on the server side.
    fingerPrint String
    The public key fingerprint of the certificate.
    id Integer
    The ID of the resource supplied above.
    instanceId String
    The ID of the certificate instance that issued the certificate. Use it to list the certificates a single instance has issued.
    issuer String
    The certificate authority that issued the certificate.
    keySize Integer
    The key length of the certificate algorithm.
    notAfter Integer
    The end of the certificate validity period.
    notBefore Integer
    The start of the certificate validity period.
    algorithm string
    The encryption algorithm of the certificate.
    certIdentifier string
    The global certificate identifier, formatted as the certificate ID plus - plus the site region ID. Alibaba Cloud services such as ALB, CDN and WAF reference a certificate by this value.
    certificateId number
    The ID of the certificate.
    certificateName string
    The name of the certificate.
    certificateSource string
    The source of the certificate. Valid values: BUY, UPLOAD and TEST.
    certificateStatus string
    The status of the certificate. Valid values: issued, revoked, willExpire and expired.
    commonName string
    The common name of the certificate.
    domain string
    All domain names covered by the certificate, separated by commas.
    existPrivateKey boolean
    Indicates whether the private key of the certificate is held on the server side.
    fingerPrint string
    The public key fingerprint of the certificate.
    id number
    The ID of the resource supplied above.
    instanceId string
    The ID of the certificate instance that issued the certificate. Use it to list the certificates a single instance has issued.
    issuer string
    The certificate authority that issued the certificate.
    keySize number
    The key length of the certificate algorithm.
    notAfter number
    The end of the certificate validity period.
    notBefore number
    The start of the certificate validity period.
    algorithm str
    The encryption algorithm of the certificate.
    cert_identifier str
    The global certificate identifier, formatted as the certificate ID plus - plus the site region ID. Alibaba Cloud services such as ALB, CDN and WAF reference a certificate by this value.
    certificate_id int
    The ID of the certificate.
    certificate_name str
    The name of the certificate.
    certificate_source str
    The source of the certificate. Valid values: BUY, UPLOAD and TEST.
    certificate_status str
    The status of the certificate. Valid values: issued, revoked, willExpire and expired.
    common_name str
    The common name of the certificate.
    domain str
    All domain names covered by the certificate, separated by commas.
    exist_private_key bool
    Indicates whether the private key of the certificate is held on the server side.
    finger_print str
    The public key fingerprint of the certificate.
    id int
    The ID of the resource supplied above.
    instance_id str
    The ID of the certificate instance that issued the certificate. Use it to list the certificates a single instance has issued.
    issuer str
    The certificate authority that issued the certificate.
    key_size int
    The key length of the certificate algorithm.
    not_after int
    The end of the certificate validity period.
    not_before int
    The start of the certificate validity period.
    algorithm String
    The encryption algorithm of the certificate.
    certIdentifier String
    The global certificate identifier, formatted as the certificate ID plus - plus the site region ID. Alibaba Cloud services such as ALB, CDN and WAF reference a certificate by this value.
    certificateId Number
    The ID of the certificate.
    certificateName String
    The name of the certificate.
    certificateSource String
    The source of the certificate. Valid values: BUY, UPLOAD and TEST.
    certificateStatus String
    The status of the certificate. Valid values: issued, revoked, willExpire and expired.
    commonName String
    The common name of the certificate.
    domain String
    All domain names covered by the certificate, separated by commas.
    existPrivateKey Boolean
    Indicates whether the private key of the certificate is held on the server side.
    fingerPrint String
    The public key fingerprint of the certificate.
    id Number
    The ID of the resource supplied above.
    instanceId String
    The ID of the certificate instance that issued the certificate. Use it to list the certificates a single instance has issued.
    issuer String
    The certificate authority that issued the certificate.
    keySize Number
    The key length of the certificate algorithm.
    notAfter Number
    The end of the certificate validity period.
    notBefore Number
    The start of the certificate validity period.

    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 alicloud logo
    Viewing docs for Alibaba Cloud v3.106.0
    published on Monday, Aug 24, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial