1. Packages
  2. Vkcs Provider
  3. API Docs
  4. getCdnSslCertificate
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

vkcs.getCdnSslCertificate

Explore with Pulumi AI

vkcs logo
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vkcs from "@pulumi/vkcs";
    
    const cert = vkcs.getCdnSslCertificate({
        name: vkcs_cdn_ssl_certificate.certificate.name,
    });
    
    import pulumi
    import pulumi_vkcs as vkcs
    
    cert = vkcs.get_cdn_ssl_certificate(name=vkcs_cdn_ssl_certificate["certificate"]["name"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vkcs.LookupCdnSslCertificate(ctx, &vkcs.LookupCdnSslCertificateArgs{
    			Name: vkcs_cdn_ssl_certificate.Certificate.Name,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vkcs = Pulumi.Vkcs;
    
    return await Deployment.RunAsync(() => 
    {
        var cert = Vkcs.GetCdnSslCertificate.Invoke(new()
        {
            Name = vkcs_cdn_ssl_certificate.Certificate.Name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vkcs.VkcsFunctions;
    import com.pulumi.vkcs.inputs.GetCdnSslCertificateArgs;
    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) {
            final var cert = VkcsFunctions.getCdnSslCertificate(GetCdnSslCertificateArgs.builder()
                .name(vkcs_cdn_ssl_certificate.certificate().name())
                .build());
    
        }
    }
    
    variables:
      cert:
        fn::invoke:
          function: vkcs:getCdnSslCertificate
          arguments:
            name: ${vkcs_cdn_ssl_certificate.certificate.name}
    

    Using getCdnSslCertificate

    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 getCdnSslCertificate(args: GetCdnSslCertificateArgs, opts?: InvokeOptions): Promise<GetCdnSslCertificateResult>
    function getCdnSslCertificateOutput(args: GetCdnSslCertificateOutputArgs, opts?: InvokeOptions): Output<GetCdnSslCertificateResult>
    def get_cdn_ssl_certificate(name: Optional[str] = None,
                                region: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetCdnSslCertificateResult
    def get_cdn_ssl_certificate_output(name: Optional[pulumi.Input[str]] = None,
                                region: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetCdnSslCertificateResult]
    func LookupCdnSslCertificate(ctx *Context, args *LookupCdnSslCertificateArgs, opts ...InvokeOption) (*LookupCdnSslCertificateResult, error)
    func LookupCdnSslCertificateOutput(ctx *Context, args *LookupCdnSslCertificateOutputArgs, opts ...InvokeOption) LookupCdnSslCertificateResultOutput

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

    public static class GetCdnSslCertificate 
    {
        public static Task<GetCdnSslCertificateResult> InvokeAsync(GetCdnSslCertificateArgs args, InvokeOptions? opts = null)
        public static Output<GetCdnSslCertificateResult> Invoke(GetCdnSslCertificateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCdnSslCertificateResult> getCdnSslCertificate(GetCdnSslCertificateArgs args, InvokeOptions options)
    public static Output<GetCdnSslCertificateResult> getCdnSslCertificate(GetCdnSslCertificateArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vkcs:index/getCdnSslCertificate:getCdnSslCertificate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    required string → SSL certificate name.
    Region string
    optional string → The region in which to obtain the CDN client. If omitted, the region argument of the provider is used.
    Name string
    required string → SSL certificate name.
    Region string
    optional string → The region in which to obtain the CDN client. If omitted, the region argument of the provider is used.
    name String
    required string → SSL certificate name.
    region String
    optional string → The region in which to obtain the CDN client. If omitted, the region argument of the provider is used.
    name string
    required string → SSL certificate name.
    region string
    optional string → The region in which to obtain the CDN client. If omitted, the region argument of the provider is used.
    name str
    required string → SSL certificate name.
    region str
    optional string → The region in which to obtain the CDN client. If omitted, the region argument of the provider is used.
    name String
    required string → SSL certificate name.
    region String
    optional string → The region in which to obtain the CDN client. If omitted, the region argument of the provider is used.

    getCdnSslCertificate Result

    The following output properties are available:

    Id double
    number → ID of the SSL certificate.
    Issuer string
    string → Name of the certification center issued the SSL certificate.
    Name string
    Region string
    SubjectCn string
    string → Domain name that the SSL certificate secures.
    ValidityNotAfter string
    string → Date when certificate become untrusted (ISO 8601/RFC 3339 format, UTC.).
    ValidityNotBefore string
    string → Date when certificate become valid (ISO 8601/RFC 3339 format, UTC.).
    Id float64
    number → ID of the SSL certificate.
    Issuer string
    string → Name of the certification center issued the SSL certificate.
    Name string
    Region string
    SubjectCn string
    string → Domain name that the SSL certificate secures.
    ValidityNotAfter string
    string → Date when certificate become untrusted (ISO 8601/RFC 3339 format, UTC.).
    ValidityNotBefore string
    string → Date when certificate become valid (ISO 8601/RFC 3339 format, UTC.).
    id Double
    number → ID of the SSL certificate.
    issuer String
    string → Name of the certification center issued the SSL certificate.
    name String
    region String
    subjectCn String
    string → Domain name that the SSL certificate secures.
    validityNotAfter String
    string → Date when certificate become untrusted (ISO 8601/RFC 3339 format, UTC.).
    validityNotBefore String
    string → Date when certificate become valid (ISO 8601/RFC 3339 format, UTC.).
    id number
    number → ID of the SSL certificate.
    issuer string
    string → Name of the certification center issued the SSL certificate.
    name string
    region string
    subjectCn string
    string → Domain name that the SSL certificate secures.
    validityNotAfter string
    string → Date when certificate become untrusted (ISO 8601/RFC 3339 format, UTC.).
    validityNotBefore string
    string → Date when certificate become valid (ISO 8601/RFC 3339 format, UTC.).
    id float
    number → ID of the SSL certificate.
    issuer str
    string → Name of the certification center issued the SSL certificate.
    name str
    region str
    subject_cn str
    string → Domain name that the SSL certificate secures.
    validity_not_after str
    string → Date when certificate become untrusted (ISO 8601/RFC 3339 format, UTC.).
    validity_not_before str
    string → Date when certificate become valid (ISO 8601/RFC 3339 format, UTC.).
    id Number
    number → ID of the SSL certificate.
    issuer String
    string → Name of the certification center issued the SSL certificate.
    name String
    region String
    subjectCn String
    string → Domain name that the SSL certificate secures.
    validityNotAfter String
    string → Date when certificate become untrusted (ISO 8601/RFC 3339 format, UTC.).
    validityNotBefore String
    string → Date when certificate become valid (ISO 8601/RFC 3339 format, UTC.).

    Package Details

    Repository
    vkcs vk-cs/terraform-provider-vkcs
    License
    Notes
    This Pulumi package is based on the vkcs Terraform Provider.
    vkcs logo
    vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs