GetCertificates

This data source provides a list of CAS Certificates in an Alibaba Cloud account according to the specified filters.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var certs = Output.Create(AliCloud.Cas.GetCertificates.InvokeAsync(new AliCloud.Cas.GetCertificatesArgs
        {
            NameRegex = "^cas",
            OutputFile = $"{path.Module}/cas_certificates.json",
        }));
        this.Cert = certs.Apply(certs => certs.Certificates[0].Id);
    }

    [Output("cert")]
    public Output<string> Cert { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

certs = alicloud.cas.get_certificates(name_regex="^cas",
    output_file=f"{path['module']}/cas_certificates.json")
pulumi.export("cert", certs.certificates[0]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const certs = pulumi.output(alicloud.cas.getCertificates({
    nameRegex: "^cas",
    outputFile: `./cas_certificates.json`,
}, { async: true }));

export const cert = certs.certificates[0].id;

Using GetCertificates

function getCertificates(args: GetCertificatesArgs, opts?: InvokeOptions): Promise<GetCertificatesResult>
function  get_certificates(ids=None, name_regex=None, output_file=None, opts=None)
func GetCertificates(ctx *Context, args *GetCertificatesArgs, opts ...InvokeOption) (*GetCertificatesResult, error)
public static class GetCertificates {
    public static Task<GetCertificatesResult> InvokeAsync(GetCertificatesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Ids List<string>

A list of cert IDs.

NameRegex string

A regex string to filter results by the certificate name.

OutputFile string
Ids []string

A list of cert IDs.

NameRegex string

A regex string to filter results by the certificate name.

OutputFile string
ids string[]

A list of cert IDs.

nameRegex string

A regex string to filter results by the certificate name.

outputFile string
ids List[str]

A list of cert IDs.

name_regex str

A regex string to filter results by the certificate name.

output_file str

GetCertificates Result

The following output properties are available:

Certificates List<Pulumi.AliCloud.Cas.Outputs.GetCertificatesCertificate>

A list of apis. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of cert IDs.

Names List<string>

A list of cert names.

NameRegex string
OutputFile string
Certificates []GetCertificatesCertificate

A list of apis. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of cert IDs.

Names []string

A list of cert names.

NameRegex string
OutputFile string
certificates GetCertificatesCertificate[]

A list of apis. Each element contains the following attributes:

id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of cert IDs.

names string[]

A list of cert names.

nameRegex string
outputFile string
certificates List[GetCertificatesCertificate]

A list of apis. Each element contains the following attributes:

id str

The provider-assigned unique ID for this managed resource.

ids List[str]

A list of cert IDs.

names List[str]

A list of cert names.

name_regex str
output_file str

Supporting Types

GetCertificatesCertificate

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

BuyInAliyun bool

The cert is buy from aliyun or not.

City string

The cert’s city.

Common string

The cert’s common name.

Country string

The cert’s country.

EndDate string

The cert’s not valid after time.

Expired bool

The cert is expired or not.

FingerPrint string

The cert’s finger.

Id int

The cert’s id.

Issuer string

The cert’s .

Name string

The cert’s name.

OrgName string

The cert’s organization.

Province string

The cert’s province.

Sans string

The cert’s subject alternative name.

StartDate string

The cert’s not valid before time.

BuyInAliyun bool

The cert is buy from aliyun or not.

City string

The cert’s city.

Common string

The cert’s common name.

Country string

The cert’s country.

EndDate string

The cert’s not valid after time.

Expired bool

The cert is expired or not.

FingerPrint string

The cert’s finger.

Id int

The cert’s id.

Issuer string

The cert’s .

Name string

The cert’s name.

OrgName string

The cert’s organization.

Province string

The cert’s province.

Sans string

The cert’s subject alternative name.

StartDate string

The cert’s not valid before time.

buyInAliyun boolean

The cert is buy from aliyun or not.

city string

The cert’s city.

common string

The cert’s common name.

country string

The cert’s country.

endDate string

The cert’s not valid after time.

expired boolean

The cert is expired or not.

fingerPrint string

The cert’s finger.

id number

The cert’s id.

issuer string

The cert’s .

name string

The cert’s name.

orgName string

The cert’s organization.

province string

The cert’s province.

sans string

The cert’s subject alternative name.

startDate string

The cert’s not valid before time.

buyInAliyun bool

The cert is buy from aliyun or not.

city str

The cert’s city.

common str

The cert’s common name.

country str

The cert’s country.

endDate str

The cert’s not valid after time.

expired bool

The cert is expired or not.

finger_print str

The cert’s finger.

id float

The cert’s id.

issuer str

The cert’s .

name str

The cert’s name.

orgName str

The cert’s organization.

province str

The cert’s province.

sans str

The cert’s subject alternative name.

startDate str

The cert’s not valid before time.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.