GetServerCertificates

This data source provides the server certificate list.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var sampleDs = Output.Create(AliCloud.Slb.GetServerCertificates.InvokeAsync());
        this.FirstSlbServerCertificateId = sampleDs.Apply(sampleDs => sampleDs.Certificates[0].Id);
    }

    [Output("firstSlbServerCertificateId")]
    public Output<string> FirstSlbServerCertificateId { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

sample_ds = alicloud.slb.get_server_certificates()
pulumi.export("firstSlbServerCertificateId", sample_ds.certificates[0]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const sampleDs = pulumi.output(alicloud.slb.getServerCertificates({ async: true }));

export const firstSlbServerCertificateId = sampleDs.certificates[0].id;

Using GetServerCertificates

function getServerCertificates(args: GetServerCertificatesArgs, opts?: InvokeOptions): Promise<GetServerCertificatesResult>
function  get_server_certificates(ids=None, name_regex=None, output_file=None, resource_group_id=None, tags=None, opts=None)
func GetServerCertificates(ctx *Context, args *GetServerCertificatesArgs, opts ...InvokeOption) (*GetServerCertificatesResult, error)
public static class GetServerCertificates {
    public static Task<GetServerCertificatesResult> InvokeAsync(GetServerCertificatesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Ids List<string>

A list of server certificates IDs to filter results.

NameRegex string

A regex string to filter results by server certificate name.

OutputFile string
ResourceGroupId string

The Id of resource group which the slb server certificates belongs.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

Ids []string

A list of server certificates IDs to filter results.

NameRegex string

A regex string to filter results by server certificate name.

OutputFile string
ResourceGroupId string

The Id of resource group which the slb server certificates belongs.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

ids string[]

A list of server certificates IDs to filter results.

nameRegex string

A regex string to filter results by server certificate name.

outputFile string
resourceGroupId string

The Id of resource group which the slb server certificates belongs.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

ids List[str]

A list of server certificates IDs to filter results.

name_regex str

A regex string to filter results by server certificate name.

output_file str
resource_group_id str

The Id of resource group which the slb server certificates belongs.

tags Dict[str, Any]

A mapping of tags to assign to the resource.

GetServerCertificates Result

The following output properties are available:

Certificates List<Pulumi.AliCloud.Slb.Outputs.GetServerCertificatesCertificate>

A list of SLB server certificates. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of SLB server certificates IDs.

Names List<string>

A list of SLB server certificates names.

NameRegex string
OutputFile string
ResourceGroupId string

The Id of resource group which the slb server certificates belongs.

Tags Dictionary<string, object>

(Available in v1.66.0+) A mapping of tags to assign to the resource.

Certificates []GetServerCertificatesCertificate

A list of SLB server certificates. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of SLB server certificates IDs.

Names []string

A list of SLB server certificates names.

NameRegex string
OutputFile string
ResourceGroupId string

The Id of resource group which the slb server certificates belongs.

Tags map[string]interface{}

(Available in v1.66.0+) A mapping of tags to assign to the resource.

certificates GetServerCertificatesCertificate[]

A list of SLB server certificates. Each element contains the following attributes:

id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of SLB server certificates IDs.

names string[]

A list of SLB server certificates names.

nameRegex string
outputFile string
resourceGroupId string

The Id of resource group which the slb server certificates belongs.

tags {[key: string]: any}

(Available in v1.66.0+) A mapping of tags to assign to the resource.

certificates List[GetServerCertificatesCertificate]

A list of SLB server certificates. Each element contains the following attributes:

id str

The provider-assigned unique ID for this managed resource.

ids List[str]

A list of SLB server certificates IDs.

names List[str]

A list of SLB server certificates names.

name_regex str
output_file str
resource_group_id str

The Id of resource group which the slb server certificates belongs.

tags Dict[str, Any]

(Available in v1.66.0+) A mapping of tags to assign to the resource.

Supporting Types

GetServerCertificatesCertificate

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

AlicloudCertificateId string

Id of server certificate issued by alibaba cloud. * alicloud_certificate_name- Name of server certificate issued by alibaba cloud. * is_alicloud_certificate- Is server certificate issued by alibaba cloud or not.

AlicloudCertificateName string
CommonName string

Server certificate common name.

CreatedTime string

Server certificate created time.

CreatedTimestamp int

Server certificate created timestamp.

ExpiredTime string

Server certificate expired time.

ExpiredTimestamp int

Server certificate expired timestamp.

Fingerprint string

Server certificate fingerprint.

Id string

Server certificate ID.

IsAlicloudCertificate bool
Name string

Server certificate name.

SubjectAlternativeNames List<string>

Server certificate subject alternative name list.

ResourceGroupId string

The Id of resource group which the slb server certificates belongs.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

AlicloudCertificateId string

Id of server certificate issued by alibaba cloud. * alicloud_certificate_name- Name of server certificate issued by alibaba cloud. * is_alicloud_certificate- Is server certificate issued by alibaba cloud or not.

AlicloudCertificateName string
CommonName string

Server certificate common name.

CreatedTime string

Server certificate created time.

CreatedTimestamp int

Server certificate created timestamp.

ExpiredTime string

Server certificate expired time.

ExpiredTimestamp int

Server certificate expired timestamp.

Fingerprint string

Server certificate fingerprint.

Id string

Server certificate ID.

IsAlicloudCertificate bool
Name string

Server certificate name.

SubjectAlternativeNames []string

Server certificate subject alternative name list.

ResourceGroupId string

The Id of resource group which the slb server certificates belongs.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

alicloudCertificateId string

Id of server certificate issued by alibaba cloud. * alicloud_certificate_name- Name of server certificate issued by alibaba cloud. * is_alicloud_certificate- Is server certificate issued by alibaba cloud or not.

alicloudCertificateName string
commonName string

Server certificate common name.

createdTime string

Server certificate created time.

createdTimestamp number

Server certificate created timestamp.

expiredTime string

Server certificate expired time.

expiredTimestamp number

Server certificate expired timestamp.

fingerprint string

Server certificate fingerprint.

id string

Server certificate ID.

isAlicloudCertificate boolean
name string

Server certificate name.

subjectAlternativeNames string[]

Server certificate subject alternative name list.

resourceGroupId string

The Id of resource group which the slb server certificates belongs.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

alicloud_certificate_id str

Id of server certificate issued by alibaba cloud. * alicloud_certificate_name- Name of server certificate issued by alibaba cloud. * is_alicloud_certificate- Is server certificate issued by alibaba cloud or not.

alicloud_certificate_name str
commonName str

Server certificate common name.

createdTime str

Server certificate created time.

createdTimestamp float

Server certificate created timestamp.

expiredTimestamp float

Server certificate expired timestamp.

expired_time str

Server certificate expired time.

fingerprint str

Server certificate fingerprint.

id str

Server certificate ID.

isAlicloudCertificate bool
name str

Server certificate name.

subjectAlternativeNames List[str]

Server certificate subject alternative name list.

resource_group_id str

The Id of resource group which the slb server certificates belongs.

tags Dict[str, Any]

A mapping of tags to assign to the resource.

Package Details

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