Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine
volcengine.cdn.Certificates
Explore with Pulumi AI
Use this data source to query detailed information of cdn certificates
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooCdnCertificate = new volcengine.cdn.CdnCertificate("fooCdnCertificate", {
    certificate: "",
    privateKey: "",
    desc: "tftest",
    source: "cdn_cert_hosting",
});
const fooCertificates = volcengine.cdn.CertificatesOutput({
    source: fooCdnCertificate.source,
});
import pulumi
import pulumi_volcengine as volcengine
foo_cdn_certificate = volcengine.cdn.CdnCertificate("fooCdnCertificate",
    certificate="",
    private_key="",
    desc="tftest",
    source="cdn_cert_hosting")
foo_certificates = volcengine.cdn.certificates_output(source=foo_cdn_certificate.source)
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cdn"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		fooCdnCertificate, err := cdn.NewCdnCertificate(ctx, "fooCdnCertificate", &cdn.CdnCertificateArgs{
			Certificate: pulumi.String(""),
			PrivateKey:  pulumi.String(""),
			Desc:        pulumi.String("tftest"),
			Source:      pulumi.String("cdn_cert_hosting"),
		})
		if err != nil {
			return err
		}
		_ = cdn.CertificatesOutput(ctx, cdn.CertificatesOutputArgs{
			Source: fooCdnCertificate.Source,
		}, nil)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() => 
{
    var fooCdnCertificate = new Volcengine.Cdn.CdnCertificate("fooCdnCertificate", new()
    {
        Certificate = "",
        PrivateKey = "",
        Desc = "tftest",
        Source = "cdn_cert_hosting",
    });
    var fooCertificates = Volcengine.Cdn.Certificates.Invoke(new()
    {
        Source = fooCdnCertificate.Source,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.cdn.CdnCertificate;
import com.pulumi.volcengine.cdn.CdnCertificateArgs;
import com.pulumi.volcengine.cdn.CdnFunctions;
import com.pulumi.volcengine.cdn.inputs.CertificatesArgs;
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 fooCdnCertificate = new CdnCertificate("fooCdnCertificate", CdnCertificateArgs.builder()        
            .certificate("")
            .privateKey("")
            .desc("tftest")
            .source("cdn_cert_hosting")
            .build());
        final var fooCertificates = CdnFunctions.Certificates(CertificatesArgs.builder()
            .source(fooCdnCertificate.source())
            .build());
    }
}
resources:
  fooCdnCertificate:
    type: volcengine:cdn:CdnCertificate
    properties:
      certificate:
      privateKey:
      desc: tftest
      source: cdn_cert_hosting
variables:
  fooCertificates:
    fn::invoke:
      Function: volcengine:cdn:Certificates
      Arguments:
        source: ${fooCdnCertificate.source}
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?: InvokeOptions): Output<CertificatesResult>def certificates(name: Optional[str] = None,
                 output_file: Optional[str] = None,
                 source: Optional[str] = None,
                 status: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> CertificatesResult
def certificates_output(name: Optional[pulumi.Input[str]] = None,
                 output_file: Optional[pulumi.Input[str]] = None,
                 source: Optional[pulumi.Input[str]] = None,
                 status: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[CertificatesResult]func Certificates(ctx *Context, args *CertificatesArgs, opts ...InvokeOption) (*CertificatesResult, error)
func CertificatesOutput(ctx *Context, args *CertificatesOutputArgs, opts ...InvokeOption) CertificatesResultOutputpublic 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 CompletableFuture<CertificatesResult> certificates(CertificatesArgs args, InvokeOptions options)
public static Output<CertificatesResult> certificates(CertificatesArgs args, InvokeOptions options)
fn::invoke:
  function: volcengine:cdn:Certificates
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Source string
- Specify the location for storing the certificate. The parameter can take the following values: volc_cert_center: indicates that the certificate will be stored in the certificate center.cdn_cert_hosting: indicates that the certificate will be hosted on the content delivery network.
- Name string
- Specify a domain to obtain certificates that include that domain in the SAN field. The domain can be a wildcard domain. For example, specifying *.example.com will obtain certificates that include img.example.com or www.example.com in the SAN field.
- OutputFile string
- File name where to save data source results.
- Status string
- Specify one or more states to retrieve certificates in those states. By default, all certificates in all states are returned. You can specify the following states. Multiple states are separated by commas. running: Retrieves certificates with a validity period greater than 30 days. expired: Retrieves certificates that have already expired. expiring_soon: Retrieves certificates with a validity period less than or equal to 30 days but have not yet expired.
- Source string
- Specify the location for storing the certificate. The parameter can take the following values: volc_cert_center: indicates that the certificate will be stored in the certificate center.cdn_cert_hosting: indicates that the certificate will be hosted on the content delivery network.
- Name string
- Specify a domain to obtain certificates that include that domain in the SAN field. The domain can be a wildcard domain. For example, specifying *.example.com will obtain certificates that include img.example.com or www.example.com in the SAN field.
- OutputFile string
- File name where to save data source results.
- Status string
- Specify one or more states to retrieve certificates in those states. By default, all certificates in all states are returned. You can specify the following states. Multiple states are separated by commas. running: Retrieves certificates with a validity period greater than 30 days. expired: Retrieves certificates that have already expired. expiring_soon: Retrieves certificates with a validity period less than or equal to 30 days but have not yet expired.
- source String
- Specify the location for storing the certificate. The parameter can take the following values: volc_cert_center: indicates that the certificate will be stored in the certificate center.cdn_cert_hosting: indicates that the certificate will be hosted on the content delivery network.
- name String
- Specify a domain to obtain certificates that include that domain in the SAN field. The domain can be a wildcard domain. For example, specifying *.example.com will obtain certificates that include img.example.com or www.example.com in the SAN field.
- outputFile String
- File name where to save data source results.
- status String
- Specify one or more states to retrieve certificates in those states. By default, all certificates in all states are returned. You can specify the following states. Multiple states are separated by commas. running: Retrieves certificates with a validity period greater than 30 days. expired: Retrieves certificates that have already expired. expiring_soon: Retrieves certificates with a validity period less than or equal to 30 days but have not yet expired.
- source string
- Specify the location for storing the certificate. The parameter can take the following values: volc_cert_center: indicates that the certificate will be stored in the certificate center.cdn_cert_hosting: indicates that the certificate will be hosted on the content delivery network.
- name string
- Specify a domain to obtain certificates that include that domain in the SAN field. The domain can be a wildcard domain. For example, specifying *.example.com will obtain certificates that include img.example.com or www.example.com in the SAN field.
- outputFile string
- File name where to save data source results.
- status string
- Specify one or more states to retrieve certificates in those states. By default, all certificates in all states are returned. You can specify the following states. Multiple states are separated by commas. running: Retrieves certificates with a validity period greater than 30 days. expired: Retrieves certificates that have already expired. expiring_soon: Retrieves certificates with a validity period less than or equal to 30 days but have not yet expired.
- source str
- Specify the location for storing the certificate. The parameter can take the following values: volc_cert_center: indicates that the certificate will be stored in the certificate center.cdn_cert_hosting: indicates that the certificate will be hosted on the content delivery network.
- name str
- Specify a domain to obtain certificates that include that domain in the SAN field. The domain can be a wildcard domain. For example, specifying *.example.com will obtain certificates that include img.example.com or www.example.com in the SAN field.
- output_file str
- File name where to save data source results.
- status str
- Specify one or more states to retrieve certificates in those states. By default, all certificates in all states are returned. You can specify the following states. Multiple states are separated by commas. running: Retrieves certificates with a validity period greater than 30 days. expired: Retrieves certificates that have already expired. expiring_soon: Retrieves certificates with a validity period less than or equal to 30 days but have not yet expired.
- source String
- Specify the location for storing the certificate. The parameter can take the following values: volc_cert_center: indicates that the certificate will be stored in the certificate center.cdn_cert_hosting: indicates that the certificate will be hosted on the content delivery network.
- name String
- Specify a domain to obtain certificates that include that domain in the SAN field. The domain can be a wildcard domain. For example, specifying *.example.com will obtain certificates that include img.example.com or www.example.com in the SAN field.
- outputFile String
- File name where to save data source results.
- status String
- Specify one or more states to retrieve certificates in those states. By default, all certificates in all states are returned. You can specify the following states. Multiple states are separated by commas. running: Retrieves certificates with a validity period greater than 30 days. expired: Retrieves certificates that have already expired. expiring_soon: Retrieves certificates with a validity period less than or equal to 30 days but have not yet expired.
Certificates Result
The following output properties are available:
- CertInfos List<CertificatesCert Info> 
- The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Source string
- Specify the location for storing the certificate. The parameter can take the following values: volc_cert_center: indicates that the certificate will be stored in the certificate center.cdn_cert_hosting: indicates that the certificate will be hosted on the content delivery network.
- TotalCount int
- The total count of query.
- Name string
- OutputFile string
- Status string
- Specify one or more states to retrieve certificates in those states. By default, all certificates in all states are returned. You can specify the following states. Multiple states are separated by commas. running: Retrieves certificates with a validity period greater than 30 days. expired: Retrieves certificates that have already expired. expiring_soon: Retrieves certificates with a validity period less than or equal to 30 days but have not yet expired.
- CertInfos []CertificatesCert Info 
- The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Source string
- Specify the location for storing the certificate. The parameter can take the following values: volc_cert_center: indicates that the certificate will be stored in the certificate center.cdn_cert_hosting: indicates that the certificate will be hosted on the content delivery network.
- TotalCount int
- The total count of query.
- Name string
- OutputFile string
- Status string
- Specify one or more states to retrieve certificates in those states. By default, all certificates in all states are returned. You can specify the following states. Multiple states are separated by commas. running: Retrieves certificates with a validity period greater than 30 days. expired: Retrieves certificates that have already expired. expiring_soon: Retrieves certificates with a validity period less than or equal to 30 days but have not yet expired.
- certInfos List<CertificatesCert Info> 
- The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- source String
- Specify the location for storing the certificate. The parameter can take the following values: volc_cert_center: indicates that the certificate will be stored in the certificate center.cdn_cert_hosting: indicates that the certificate will be hosted on the content delivery network.
- totalCount Integer
- The total count of query.
- name String
- outputFile String
- status String
- Specify one or more states to retrieve certificates in those states. By default, all certificates in all states are returned. You can specify the following states. Multiple states are separated by commas. running: Retrieves certificates with a validity period greater than 30 days. expired: Retrieves certificates that have already expired. expiring_soon: Retrieves certificates with a validity period less than or equal to 30 days but have not yet expired.
- certInfos CertificatesCert Info[] 
- The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- source string
- Specify the location for storing the certificate. The parameter can take the following values: volc_cert_center: indicates that the certificate will be stored in the certificate center.cdn_cert_hosting: indicates that the certificate will be hosted on the content delivery network.
- totalCount number
- The total count of query.
- name string
- outputFile string
- status string
- Specify one or more states to retrieve certificates in those states. By default, all certificates in all states are returned. You can specify the following states. Multiple states are separated by commas. running: Retrieves certificates with a validity period greater than 30 days. expired: Retrieves certificates that have already expired. expiring_soon: Retrieves certificates with a validity period less than or equal to 30 days but have not yet expired.
- cert_infos Sequence[CertificatesCert Info] 
- The collection of query.
- id str
- The provider-assigned unique ID for this managed resource.
- source str
- Specify the location for storing the certificate. The parameter can take the following values: volc_cert_center: indicates that the certificate will be stored in the certificate center.cdn_cert_hosting: indicates that the certificate will be hosted on the content delivery network.
- total_count int
- The total count of query.
- name str
- output_file str
- status str
- Specify one or more states to retrieve certificates in those states. By default, all certificates in all states are returned. You can specify the following states. Multiple states are separated by commas. running: Retrieves certificates with a validity period greater than 30 days. expired: Retrieves certificates that have already expired. expiring_soon: Retrieves certificates with a validity period less than or equal to 30 days but have not yet expired.
- certInfos List<Property Map>
- The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- source String
- Specify the location for storing the certificate. The parameter can take the following values: volc_cert_center: indicates that the certificate will be stored in the certificate center.cdn_cert_hosting: indicates that the certificate will be hosted on the content delivery network.
- totalCount Number
- The total count of query.
- name String
- outputFile String
- status String
- Specify one or more states to retrieve certificates in those states. By default, all certificates in all states are returned. You can specify the following states. Multiple states are separated by commas. running: Retrieves certificates with a validity period greater than 30 days. expired: Retrieves certificates that have already expired. expiring_soon: Retrieves certificates with a validity period less than or equal to 30 days but have not yet expired.
Supporting Types
CertificatesCertInfo  
- CertId string
- ID indicating the certificate.
- CertName string
- The domain name to which the certificate is issued.
- ConfiguredDomain string
- The domain name associated with the certificate. If the certificate is not yet associated with any domain name, the parameter value is null.
- Desc string
- The remark of the cert.
- DnsName string
- The domain names included in the SAN field of the certificate.
- EffectiveTime int
- The issuance time of the certificate is indicated. The unit is Unix timestamp.
- ExpireTime int
- The expiration time of the certificate is indicated. The unit is Unix timestamp.
- Source string
- Specify the location for storing the certificate. The parameter can take the following values: volc_cert_center: indicates that the certificate will be stored in the certificate center.cdn_cert_hosting: indicates that the certificate will be hosted on the content delivery network.
- Status string
- Specify one or more states to retrieve certificates in those states. By default, all certificates in all states are returned. You can specify the following states. Multiple states are separated by commas. running: Retrieves certificates with a validity period greater than 30 days. expired: Retrieves certificates that have already expired. expiring_soon: Retrieves certificates with a validity period less than or equal to 30 days but have not yet expired.
- CertId string
- ID indicating the certificate.
- CertName string
- The domain name to which the certificate is issued.
- ConfiguredDomain string
- The domain name associated with the certificate. If the certificate is not yet associated with any domain name, the parameter value is null.
- Desc string
- The remark of the cert.
- DnsName string
- The domain names included in the SAN field of the certificate.
- EffectiveTime int
- The issuance time of the certificate is indicated. The unit is Unix timestamp.
- ExpireTime int
- The expiration time of the certificate is indicated. The unit is Unix timestamp.
- Source string
- Specify the location for storing the certificate. The parameter can take the following values: volc_cert_center: indicates that the certificate will be stored in the certificate center.cdn_cert_hosting: indicates that the certificate will be hosted on the content delivery network.
- Status string
- Specify one or more states to retrieve certificates in those states. By default, all certificates in all states are returned. You can specify the following states. Multiple states are separated by commas. running: Retrieves certificates with a validity period greater than 30 days. expired: Retrieves certificates that have already expired. expiring_soon: Retrieves certificates with a validity period less than or equal to 30 days but have not yet expired.
- certId String
- ID indicating the certificate.
- certName String
- The domain name to which the certificate is issued.
- configuredDomain String
- The domain name associated with the certificate. If the certificate is not yet associated with any domain name, the parameter value is null.
- desc String
- The remark of the cert.
- dnsName String
- The domain names included in the SAN field of the certificate.
- effectiveTime Integer
- The issuance time of the certificate is indicated. The unit is Unix timestamp.
- expireTime Integer
- The expiration time of the certificate is indicated. The unit is Unix timestamp.
- source String
- Specify the location for storing the certificate. The parameter can take the following values: volc_cert_center: indicates that the certificate will be stored in the certificate center.cdn_cert_hosting: indicates that the certificate will be hosted on the content delivery network.
- status String
- Specify one or more states to retrieve certificates in those states. By default, all certificates in all states are returned. You can specify the following states. Multiple states are separated by commas. running: Retrieves certificates with a validity period greater than 30 days. expired: Retrieves certificates that have already expired. expiring_soon: Retrieves certificates with a validity period less than or equal to 30 days but have not yet expired.
- certId string
- ID indicating the certificate.
- certName string
- The domain name to which the certificate is issued.
- configuredDomain string
- The domain name associated with the certificate. If the certificate is not yet associated with any domain name, the parameter value is null.
- desc string
- The remark of the cert.
- dnsName string
- The domain names included in the SAN field of the certificate.
- effectiveTime number
- The issuance time of the certificate is indicated. The unit is Unix timestamp.
- expireTime number
- The expiration time of the certificate is indicated. The unit is Unix timestamp.
- source string
- Specify the location for storing the certificate. The parameter can take the following values: volc_cert_center: indicates that the certificate will be stored in the certificate center.cdn_cert_hosting: indicates that the certificate will be hosted on the content delivery network.
- status string
- Specify one or more states to retrieve certificates in those states. By default, all certificates in all states are returned. You can specify the following states. Multiple states are separated by commas. running: Retrieves certificates with a validity period greater than 30 days. expired: Retrieves certificates that have already expired. expiring_soon: Retrieves certificates with a validity period less than or equal to 30 days but have not yet expired.
- cert_id str
- ID indicating the certificate.
- cert_name str
- The domain name to which the certificate is issued.
- configured_domain str
- The domain name associated with the certificate. If the certificate is not yet associated with any domain name, the parameter value is null.
- desc str
- The remark of the cert.
- dns_name str
- The domain names included in the SAN field of the certificate.
- effective_time int
- The issuance time of the certificate is indicated. The unit is Unix timestamp.
- expire_time int
- The expiration time of the certificate is indicated. The unit is Unix timestamp.
- source str
- Specify the location for storing the certificate. The parameter can take the following values: volc_cert_center: indicates that the certificate will be stored in the certificate center.cdn_cert_hosting: indicates that the certificate will be hosted on the content delivery network.
- status str
- Specify one or more states to retrieve certificates in those states. By default, all certificates in all states are returned. You can specify the following states. Multiple states are separated by commas. running: Retrieves certificates with a validity period greater than 30 days. expired: Retrieves certificates that have already expired. expiring_soon: Retrieves certificates with a validity period less than or equal to 30 days but have not yet expired.
- certId String
- ID indicating the certificate.
- certName String
- The domain name to which the certificate is issued.
- configuredDomain String
- The domain name associated with the certificate. If the certificate is not yet associated with any domain name, the parameter value is null.
- desc String
- The remark of the cert.
- dnsName String
- The domain names included in the SAN field of the certificate.
- effectiveTime Number
- The issuance time of the certificate is indicated. The unit is Unix timestamp.
- expireTime Number
- The expiration time of the certificate is indicated. The unit is Unix timestamp.
- source String
- Specify the location for storing the certificate. The parameter can take the following values: volc_cert_center: indicates that the certificate will be stored in the certificate center.cdn_cert_hosting: indicates that the certificate will be hosted on the content delivery network.
- status String
- Specify one or more states to retrieve certificates in those states. By default, all certificates in all states are returned. You can specify the following states. Multiple states are separated by commas. running: Retrieves certificates with a validity period greater than 30 days. expired: Retrieves certificates that have already expired. expiring_soon: Retrieves certificates with a validity period less than or equal to 30 days but have not yet expired.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the volcengineTerraform Provider.