Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi
alicloud.slb.getServerCertificates
Explore with Pulumi AI
This data source provides the server certificate list.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const sampleDs = alicloud.slb.getServerCertificates({});
export const firstSlbServerCertificateId = sampleDs.then(sampleDs => sampleDs.certificates?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
sample_ds = alicloud.slb.get_server_certificates()
pulumi.export("firstSlbServerCertificateId", sample_ds.certificates[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
sampleDs, err := slb.GetServerCertificates(ctx, nil, nil)
if err != nil {
return err
}
ctx.Export("firstSlbServerCertificateId", sampleDs.Certificates[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var sampleDs = AliCloud.Slb.GetServerCertificates.Invoke();
return new Dictionary<string, object?>
{
["firstSlbServerCertificateId"] = sampleDs.Apply(getServerCertificatesResult => getServerCertificatesResult.Certificates[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.slb.SlbFunctions;
import com.pulumi.alicloud.slb.inputs.GetServerCertificatesArgs;
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 sampleDs = SlbFunctions.getServerCertificates();
ctx.export("firstSlbServerCertificateId", sampleDs.applyValue(getServerCertificatesResult -> getServerCertificatesResult.certificates()[0].id()));
}
}
variables:
sampleDs:
fn::invoke:
Function: alicloud:slb:getServerCertificates
Arguments: {}
outputs:
firstSlbServerCertificateId: ${sampleDs.certificates[0].id}
Using getServerCertificates
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 getServerCertificates(args: GetServerCertificatesArgs, opts?: InvokeOptions): Promise<GetServerCertificatesResult>
function getServerCertificatesOutput(args: GetServerCertificatesOutputArgs, opts?: InvokeOptions): Output<GetServerCertificatesResult>
def get_server_certificates(ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
resource_group_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetServerCertificatesResult
def get_server_certificates_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
resource_group_id: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServerCertificatesResult]
func GetServerCertificates(ctx *Context, args *GetServerCertificatesArgs, opts ...InvokeOption) (*GetServerCertificatesResult, error)
func GetServerCertificatesOutput(ctx *Context, args *GetServerCertificatesOutputArgs, opts ...InvokeOption) GetServerCertificatesResultOutput
> Note: This function is named GetServerCertificates
in the Go SDK.
public static class GetServerCertificates
{
public static Task<GetServerCertificatesResult> InvokeAsync(GetServerCertificatesArgs args, InvokeOptions? opts = null)
public static Output<GetServerCertificatesResult> Invoke(GetServerCertificatesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetServerCertificatesResult> getServerCertificates(GetServerCertificatesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:slb/getServerCertificates:getServerCertificates
arguments:
# arguments dictionary
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 - File name where to save data source results (after running
pulumi preview
). - Resource
Group stringId - The Id of resource group which the slb server certificates belongs.
- Dictionary<string, string>
- 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 - File name where to save data source results (after running
pulumi preview
). - Resource
Group stringId - The Id of resource group which the slb server certificates belongs.
- map[string]string
- A mapping of tags to assign to the resource.
- 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 - File name where to save data source results (after running
pulumi preview
). - resource
Group StringId - The Id of resource group which the slb server certificates belongs.
- Map<String,String>
- 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 - File name where to save data source results (after running
pulumi preview
). - resource
Group stringId - The Id of resource group which the slb server certificates belongs.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- ids Sequence[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 - File name where to save data source results (after running
pulumi preview
). - resource_
group_ strid - The Id of resource group which the slb server certificates belongs.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- 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 - File name where to save data source results (after running
pulumi preview
). - resource
Group StringId - The Id of resource group which the slb server certificates belongs.
- Map<String>
- 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, string>
- (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]string
- (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 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.
- Map<String,String>
- (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]: string}
- (Available in v1.66.0+) A mapping of tags to assign to the resource.
- certificates
Sequence[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 Sequence[str]
- A list of SLB server certificates IDs.
- names Sequence[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.
- Mapping[str, str]
- (Available in v1.66.0+) A mapping of tags to assign to the resource.
- certificates List<Property Map>
- 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.
- Map<String>
- (Available in v1.66.0+) A mapping of tags to assign to the resource.
Supporting Types
GetServerCertificatesCertificate
- Alicloud
Certificate stringId - Id of server certificate issued by alibaba cloud.
- Alicloud
Certificate stringName - Name of server certificate issued by alibaba cloud.
- 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 - Is server certificate issued by alibaba cloud or not.
- 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, string>
- A mapping of tags to assign to the resource.
- Alicloud
Certificate stringId - Id of server certificate issued by alibaba cloud.
- Alicloud
Certificate stringName - Name of server certificate issued by alibaba cloud.
- 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 - Is server certificate issued by alibaba cloud or not.
- 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]string
- A mapping of tags to assign to the resource.
- alicloud
Certificate StringId - Id of server certificate issued by alibaba cloud.
- alicloud
Certificate StringName - Name of server certificate issued by alibaba cloud.
- common
Name String - Server certificate common name.
- created
Time String - Server certificate created time.
- created
Timestamp Integer - Server certificate created timestamp.
- expired
Time String - Server certificate expired time.
- expired
Timestamp Integer - Server certificate expired timestamp.
- fingerprint String
- Server certificate fingerprint.
- id String
- Server certificate ID.
- is
Alicloud BooleanCertificate - Is server certificate issued by alibaba cloud or not.
- 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.
- Map<String,String>
- A mapping of tags to assign to the resource.
- alicloud
Certificate stringId - Id of server certificate issued by alibaba cloud.
- alicloud
Certificate stringName - Name of server certificate issued by alibaba cloud.
- 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 - Is server certificate issued by alibaba cloud or not.
- 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]: string}
- A mapping of tags to assign to the resource.
- alicloud_
certificate_ strid - Id of server certificate issued by alibaba cloud.
- alicloud_
certificate_ strname - Name of server certificate issued by alibaba cloud.
- common_
name str - Server certificate common name.
- created_
time str - Server certificate created time.
- created_
timestamp int - Server certificate created timestamp.
- expired_
time str - Server certificate expired time.
- expired_
timestamp int - Server certificate expired timestamp.
- fingerprint str
- Server certificate fingerprint.
- id str
- Server certificate ID.
- is_
alicloud_ boolcertificate - Is server certificate issued by alibaba cloud or not.
- name str
- Server certificate name.
- subject_
alternative_ Sequence[str]names - Server certificate subject alternative name list.
- resource_
group_ strid - The Id of resource group which the slb server certificates belongs.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- alicloud
Certificate StringId - Id of server certificate issued by alibaba cloud.
- alicloud
Certificate StringName - Name of server certificate issued by alibaba cloud.
- 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 - Is server certificate issued by alibaba cloud or not.
- 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.
- Map<String>
- A mapping of tags to assign to the resource.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.