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.
- Name
Regex string A regex string to filter results by the certificate name.
- Output
File 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.
Ali Cloud. Cas. Outputs. Get Certificates Certificate> 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.
- Name
Regex string - Output
File string
- Certificates
[]Get
Certificates Certificate 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.
- Name
Regex string - Output
File string
- certificates
Get
Certificates Certificate[] 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.
- name
Regex string - output
File string
- certificates
List[Get
Certificates Certificate] 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.
- Buy
In boolAliyun 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.
- End
Date string The cert’s not valid after time.
- Expired bool
The cert is expired or not.
- Finger
Print string The cert’s finger.
- Id int
The cert’s id.
- Issuer string
The cert’s .
- Name string
The cert’s name.
- Org
Name string The cert’s organization.
- Province string
The cert’s province.
- Sans string
The cert’s subject alternative name.
- Start
Date string The cert’s not valid before time.
- Buy
In boolAliyun 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.
- End
Date string The cert’s not valid after time.
- Expired bool
The cert is expired or not.
- Finger
Print string The cert’s finger.
- Id int
The cert’s id.
- Issuer string
The cert’s .
- Name string
The cert’s name.
- Org
Name string The cert’s organization.
- Province string
The cert’s province.
- Sans string
The cert’s subject alternative name.
- Start
Date string The cert’s not valid before time.
- buy
In booleanAliyun 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.
- end
Date string The cert’s not valid after time.
- expired boolean
The cert is expired or not.
- finger
Print string The cert’s finger.
- id number
The cert’s id.
- issuer string
The cert’s .
- name string
The cert’s name.
- org
Name string The cert’s organization.
- province string
The cert’s province.
- sans string
The cert’s subject alternative name.
- start
Date string The cert’s not valid before time.
- buy
In boolAliyun 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.
- end
Date 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.
- org
Name str The cert’s organization.
- province str
The cert’s province.
- sans str
The cert’s subject alternative name.
- start
Date 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
alicloudTerraform Provider.