1. Packages
  2. Volcengine
  3. API Docs
  4. cdn
  5. Certificates
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

volcengine.cdn.Certificates

Explore with Pulumi AI

Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
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}
Copy

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>
Copy
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]
Copy
func Certificates(ctx *Context, args *CertificatesArgs, opts ...InvokeOption) (*CertificatesResult, error)
func CertificatesOutput(ctx *Context, args *CertificatesOutputArgs, opts ...InvokeOption) CertificatesResultOutput
Copy
public static class Certificates 
{
    public static Task<CertificatesResult> InvokeAsync(CertificatesArgs args, InvokeOptions? opts = null)
    public static Output<CertificatesResult> Invoke(CertificatesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<CertificatesResult> certificates(CertificatesArgs args, InvokeOptions options)
public static Output<CertificatesResult> certificates(CertificatesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: volcengine:cdn:Certificates
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Source This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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<CertificatesCertInfo>
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 []CertificatesCertInfo
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<CertificatesCertInfo>
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 CertificatesCertInfo[]
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[CertificatesCertInfo]
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 This property is required. string
ID indicating the certificate.
CertName This property is required. string
The domain name to which the certificate is issued.
ConfiguredDomain This property is required. 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 This property is required. string
The remark of the cert.
DnsName This property is required. string
The domain names included in the SAN field of the certificate.
EffectiveTime This property is required. int
The issuance time of the certificate is indicated. The unit is Unix timestamp.
ExpireTime This property is required. int
The expiration time of the certificate is indicated. The unit is Unix timestamp.
Source This property is required. 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 This property is required. 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 This property is required. string
ID indicating the certificate.
CertName This property is required. string
The domain name to which the certificate is issued.
ConfiguredDomain This property is required. 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 This property is required. string
The remark of the cert.
DnsName This property is required. string
The domain names included in the SAN field of the certificate.
EffectiveTime This property is required. int
The issuance time of the certificate is indicated. The unit is Unix timestamp.
ExpireTime This property is required. int
The expiration time of the certificate is indicated. The unit is Unix timestamp.
Source This property is required. 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 This property is required. 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 This property is required. String
ID indicating the certificate.
certName This property is required. String
The domain name to which the certificate is issued.
configuredDomain This property is required. 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 This property is required. String
The remark of the cert.
dnsName This property is required. String
The domain names included in the SAN field of the certificate.
effectiveTime This property is required. Integer
The issuance time of the certificate is indicated. The unit is Unix timestamp.
expireTime This property is required. Integer
The expiration time of the certificate is indicated. The unit is Unix timestamp.
source This property is required. 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 This property is required. 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 This property is required. string
ID indicating the certificate.
certName This property is required. string
The domain name to which the certificate is issued.
configuredDomain This property is required. 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 This property is required. string
The remark of the cert.
dnsName This property is required. string
The domain names included in the SAN field of the certificate.
effectiveTime This property is required. number
The issuance time of the certificate is indicated. The unit is Unix timestamp.
expireTime This property is required. number
The expiration time of the certificate is indicated. The unit is Unix timestamp.
source This property is required. 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 This property is required. 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 This property is required. str
ID indicating the certificate.
cert_name This property is required. str
The domain name to which the certificate is issued.
configured_domain This property is required. 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 This property is required. str
The remark of the cert.
dns_name This property is required. str
The domain names included in the SAN field of the certificate.
effective_time This property is required. int
The issuance time of the certificate is indicated. The unit is Unix timestamp.
expire_time This property is required. int
The expiration time of the certificate is indicated. The unit is Unix timestamp.
source This property is required. 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 This property is required. 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 This property is required. String
ID indicating the certificate.
certName This property is required. String
The domain name to which the certificate is issued.
configuredDomain This property is required. 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 This property is required. String
The remark of the cert.
dnsName This property is required. String
The domain names included in the SAN field of the certificate.
effectiveTime This property is required. Number
The issuance time of the certificate is indicated. The unit is Unix timestamp.
expireTime This property is required. Number
The expiration time of the certificate is indicated. The unit is Unix timestamp.
source This property is required. 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 This property is required. 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 volcengine Terraform Provider.
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine