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.
- Name
Regex string A regex string to filter results by server certificate name.
- Output
File string - Resource
Group stringId The Id of resource group which the slb server certificates belongs.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Ids []string
A list of server certificates IDs to filter results.
- Name
Regex string A regex string to filter results by server certificate name.
- Output
File string - Resource
Group stringId The Id of resource group which the slb server certificates belongs.
- map[string]interface{}
A mapping of tags to assign to the resource.
- ids string[]
A list of server certificates IDs to filter results.
- name
Regex string A regex string to filter results by server certificate name.
- output
File string - resource
Group stringId The Id of resource group which the slb server certificates belongs.
- {[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_ strid The Id of resource group which the slb server certificates belongs.
- Dict[str, Any]
A mapping of tags to assign to the resource.
GetServerCertificates Result
The following output properties are available:
- Certificates
List<Pulumi.
Ali Cloud. Slb. Outputs. Get Server Certificates Certificate> 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.
- Name
Regex string - Output
File string - Resource
Group stringId The Id of resource group which the slb server certificates belongs.
- Dictionary<string, object>
(Available in v1.66.0+) A mapping of tags to assign to the resource.
- Certificates
[]Get
Server Certificates Certificate 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.
- Name
Regex string - Output
File string - Resource
Group stringId The Id of resource group which the slb server certificates belongs.
- map[string]interface{}
(Available in v1.66.0+) A mapping of tags to assign to the resource.
- certificates
Get
Server Certificates Certificate[] 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.
- name
Regex string - output
File string - resource
Group stringId The Id of resource group which the slb server certificates belongs.
- {[key: string]: any}
(Available in v1.66.0+) A mapping of tags to assign to the resource.
- certificates
List[Get
Server Certificates Certificate] 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_ strid The Id of resource group which the slb server certificates belongs.
- 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.
- Alicloud
Certificate stringId 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 stringName - Common
Name string Server certificate common name.
- Created
Time string Server certificate created time.
- Created
Timestamp int Server certificate created timestamp.
- Expired
Time string Server certificate expired time.
- Expired
Timestamp int Server certificate expired timestamp.
- Fingerprint string
Server certificate fingerprint.
- Id string
Server certificate ID.
- Is
Alicloud boolCertificate - Name string
Server certificate name.
- Subject
Alternative List<string>Names Server certificate subject alternative name list.
- Resource
Group stringId The Id of resource group which the slb server certificates belongs.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Alicloud
Certificate stringId 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 stringName - Common
Name string Server certificate common name.
- Created
Time string Server certificate created time.
- Created
Timestamp int Server certificate created timestamp.
- Expired
Time string Server certificate expired time.
- Expired
Timestamp int Server certificate expired timestamp.
- Fingerprint string
Server certificate fingerprint.
- Id string
Server certificate ID.
- Is
Alicloud boolCertificate - Name string
Server certificate name.
- Subject
Alternative []stringNames Server certificate subject alternative name list.
- Resource
Group stringId The Id of resource group which the slb server certificates belongs.
- map[string]interface{}
A mapping of tags to assign to the resource.
- alicloud
Certificate stringId 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 stringName - common
Name string Server certificate common name.
- created
Time string Server certificate created time.
- created
Timestamp number Server certificate created timestamp.
- expired
Time string Server certificate expired time.
- expired
Timestamp number Server certificate expired timestamp.
- fingerprint string
Server certificate fingerprint.
- id string
Server certificate ID.
- is
Alicloud booleanCertificate - name string
Server certificate name.
- subject
Alternative string[]Names Server certificate subject alternative name list.
- resource
Group stringId The Id of resource group which the slb server certificates belongs.
- {[key: string]: any}
A mapping of tags to assign to the resource.
- alicloud_
certificate_ strid 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_ strname - common
Name str Server certificate common name.
- created
Time str Server certificate created time.
- created
Timestamp float Server certificate created timestamp.
- expired
Timestamp float Server certificate expired timestamp.
- expired_
time str Server certificate expired time.
- fingerprint str
Server certificate fingerprint.
- id str
Server certificate ID.
- is
Alicloud boolCertificate - name str
Server certificate name.
- subject
Alternative List[str]Names Server certificate subject alternative name list.
- resource_
group_ strid The Id of resource group which the slb server certificates belongs.
- 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
alicloudTerraform Provider.