Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine
volcengine.cdn.Certificates
Explore with Pulumi AI
Use this data source to query detailed information of cdn certificates
Example Usage
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 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
})
}
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());
}
}
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)
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,
});
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) 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 CompletableFuture<CertificatesResult> certificates(CertificatesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: volcengine:cdn:Certificates
arguments:
# arguments dictionary
The 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.
- Output
File 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.
- Output
File 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.
- output
File 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.
- output
File 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.
- output
File 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:
- Cert
Infos 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. - Total
Count int - The total count of query.
- Name string
- Output
File 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 []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. - Total
Count int - The total count of query.
- Name string
- Output
File 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 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. - total
Count Integer - The total count of query.
- name String
- output
File 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 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. - total
Count number - The total count of query.
- name string
- output
File 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.
- cert
Infos 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. - total
Count Number - The total count of query.
- name String
- output
File 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
- Cert
Id string - ID indicating the certificate.
- Cert
Name string - The domain name to which the certificate is issued.
- Configured
Domain 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.
- Dns
Name string - 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 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 string - ID indicating the certificate.
- Cert
Name string - The domain name to which the certificate is issued.
- Configured
Domain 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.
- Dns
Name string - 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 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 String - ID indicating the certificate.
- cert
Name String - The domain name to which the certificate is issued.
- configured
Domain 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.
- dns
Name String - The domain names included in the SAN field of the certificate.
- effective
Time Integer - The issuance time of the certificate is indicated. The unit is Unix timestamp.
- expire
Time 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.
- cert
Id string - ID indicating the certificate.
- cert
Name string - The domain name to which the certificate is issued.
- configured
Domain 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.
- dns
Name string - The domain names included in the SAN field of the certificate.
- effective
Time number - The issuance time of the certificate is indicated. The unit is Unix timestamp.
- expire
Time 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.
- cert
Id String - ID indicating the certificate.
- cert
Name String - The domain name to which the certificate is issued.
- configured
Domain 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.
- dns
Name String - The domain names included in the SAN field of the certificate.
- effective
Time Number - The issuance time of the certificate is indicated. The unit is Unix timestamp.
- expire
Time 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
volcengine
Terraform Provider.