Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi
alicloud.slb.getCaCertificates
Explore with Pulumi AI
This data source provides the CA certificate list.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const sampleDs = alicloud.slb.getCaCertificates({});
export const firstSlbCaCertificateId = sampleDs.then(sampleDs => sampleDs.certificates?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
sample_ds = alicloud.slb.get_ca_certificates()
pulumi.export("firstSlbCaCertificateId", 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.GetCaCertificates(ctx, &slb.GetCaCertificatesArgs{}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstSlbCaCertificateId", 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.GetCaCertificates.Invoke();
    return new Dictionary<string, object?>
    {
        ["firstSlbCaCertificateId"] = sampleDs.Apply(getCaCertificatesResult => getCaCertificatesResult.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.GetCaCertificatesArgs;
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.getCaCertificates();
        ctx.export("firstSlbCaCertificateId", sampleDs.applyValue(getCaCertificatesResult -> getCaCertificatesResult.certificates()[0].id()));
    }
}
variables:
  sampleDs:
    fn::invoke:
      function: alicloud:slb:getCaCertificates
      arguments: {}
outputs:
  firstSlbCaCertificateId: ${sampleDs.certificates[0].id}
Using getCaCertificates
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 getCaCertificates(args: GetCaCertificatesArgs, opts?: InvokeOptions): Promise<GetCaCertificatesResult>
function getCaCertificatesOutput(args: GetCaCertificatesOutputArgs, opts?: InvokeOptions): Output<GetCaCertificatesResult>def get_ca_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) -> GetCaCertificatesResult
def get_ca_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[GetCaCertificatesResult]func GetCaCertificates(ctx *Context, args *GetCaCertificatesArgs, opts ...InvokeOption) (*GetCaCertificatesResult, error)
func GetCaCertificatesOutput(ctx *Context, args *GetCaCertificatesOutputArgs, opts ...InvokeOption) GetCaCertificatesResultOutput> Note: This function is named GetCaCertificates in the Go SDK.
public static class GetCaCertificates 
{
    public static Task<GetCaCertificatesResult> InvokeAsync(GetCaCertificatesArgs args, InvokeOptions? opts = null)
    public static Output<GetCaCertificatesResult> Invoke(GetCaCertificatesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCaCertificatesResult> getCaCertificates(GetCaCertificatesArgs args, InvokeOptions options)
public static Output<GetCaCertificatesResult> getCaCertificates(GetCaCertificatesArgs args, InvokeOptions options)
fn::invoke:
  function: alicloud:slb/getCaCertificates:getCaCertificates
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Ids List<string>
- A list of ca certificates IDs to filter results.
- NameRegex string
- A regex string to filter results by ca certificate name.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- ResourceGroup stringId 
- The Id of resource group which ca certificates belongs.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Ids []string
- A list of ca certificates IDs to filter results.
- NameRegex string
- A regex string to filter results by ca certificate name.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- ResourceGroup stringId 
- The Id of resource group which ca certificates belongs.
- map[string]string
- A mapping of tags to assign to the resource.
- ids List<String>
- A list of ca certificates IDs to filter results.
- nameRegex String
- A regex string to filter results by ca certificate name.
- outputFile String
- File name where to save data source results (after running pulumi preview).
- resourceGroup StringId 
- The Id of resource group which ca certificates belongs.
- Map<String,String>
- A mapping of tags to assign to the resource.
- ids string[]
- A list of ca certificates IDs to filter results.
- nameRegex string
- A regex string to filter results by ca certificate name.
- outputFile string
- File name where to save data source results (after running pulumi preview).
- resourceGroup stringId 
- The Id of resource group which ca certificates belongs.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- ids Sequence[str]
- A list of ca certificates IDs to filter results.
- name_regex str
- A regex string to filter results by ca 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 ca certificates belongs.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- ids List<String>
- A list of ca certificates IDs to filter results.
- nameRegex String
- A regex string to filter results by ca certificate name.
- outputFile String
- File name where to save data source results (after running pulumi preview).
- resourceGroup StringId 
- The Id of resource group which ca certificates belongs.
- Map<String>
- A mapping of tags to assign to the resource.
getCaCertificates Result
The following output properties are available:
- Certificates
List<Pulumi.Ali Cloud. Slb. Outputs. Get Ca Certificates Certificate> 
- A list of SLB ca 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 ca certificates IDs.
- Names List<string>
- A list of SLB ca certificates names.
- NameRegex string
- OutputFile string
- ResourceGroup stringId 
- The resource group Id of CA certificate.
- Dictionary<string, string>
- (Available in v1.66.0+) A mapping of tags to assign to the resource.
- Certificates
[]GetCa Certificates Certificate 
- A list of SLB ca certificates. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of SLB ca certificates IDs.
- Names []string
- A list of SLB ca certificates names.
- NameRegex string
- OutputFile string
- ResourceGroup stringId 
- The resource group Id of CA certificate.
- map[string]string
- (Available in v1.66.0+) A mapping of tags to assign to the resource.
- certificates
List<GetCa Certificates Certificate> 
- A list of SLB ca 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 ca certificates IDs.
- names List<String>
- A list of SLB ca certificates names.
- nameRegex String
- outputFile String
- resourceGroup StringId 
- The resource group Id of CA certificate.
- Map<String,String>
- (Available in v1.66.0+) A mapping of tags to assign to the resource.
- certificates
GetCa Certificates Certificate[] 
- A list of SLB ca certificates. Each element contains the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of SLB ca certificates IDs.
- names string[]
- A list of SLB ca certificates names.
- nameRegex string
- outputFile string
- resourceGroup stringId 
- The resource group Id of CA certificate.
- {[key: string]: string}
- (Available in v1.66.0+) A mapping of tags to assign to the resource.
- certificates
Sequence[GetCa Certificates Certificate] 
- A list of SLB ca 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 ca certificates IDs.
- names Sequence[str]
- A list of SLB ca certificates names.
- name_regex str
- output_file str
- resource_group_ strid 
- The resource group Id of CA certificate.
- 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 ca 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 ca certificates IDs.
- names List<String>
- A list of SLB ca certificates names.
- nameRegex String
- outputFile String
- resourceGroup StringId 
- The resource group Id of CA certificate.
- Map<String>
- (Available in v1.66.0+) A mapping of tags to assign to the resource.
Supporting Types
GetCaCertificatesCertificate   
- CaCertificate stringId 
- (Available in v1.123.1+) CA certificate ID.
- CaCertificate stringName 
- (Available in v1.123.1+) CA certificate name.
- CommonName string
- CA certificate common name.
- CreatedTimestamp int
- CA certificate created timestamp.
- ExpiredTime string
- CA certificate expired time.
- ExpiredTimestamp int
- CA certificate expired timestamp.
- Fingerprint string
- CA certificate fingerprint.
- Id string
- CA certificate ID.
- Name string
- (Deprecated from v1.123.1) Deprecated and replace by ca_certificate_name.
- ResourceGroup stringId 
- The Id of resource group which ca certificates belongs.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- CaCertificate stringId 
- (Available in v1.123.1+) CA certificate ID.
- CaCertificate stringName 
- (Available in v1.123.1+) CA certificate name.
- CommonName string
- CA certificate common name.
- CreatedTimestamp int
- CA certificate created timestamp.
- ExpiredTime string
- CA certificate expired time.
- ExpiredTimestamp int
- CA certificate expired timestamp.
- Fingerprint string
- CA certificate fingerprint.
- Id string
- CA certificate ID.
- Name string
- (Deprecated from v1.123.1) Deprecated and replace by ca_certificate_name.
- ResourceGroup stringId 
- The Id of resource group which ca certificates belongs.
- map[string]string
- A mapping of tags to assign to the resource.
- caCertificate StringId 
- (Available in v1.123.1+) CA certificate ID.
- caCertificate StringName 
- (Available in v1.123.1+) CA certificate name.
- commonName String
- CA certificate common name.
- createdTimestamp Integer
- CA certificate created timestamp.
- expiredTime String
- CA certificate expired time.
- expiredTimestamp Integer
- CA certificate expired timestamp.
- fingerprint String
- CA certificate fingerprint.
- id String
- CA certificate ID.
- name String
- (Deprecated from v1.123.1) Deprecated and replace by ca_certificate_name.
- resourceGroup StringId 
- The Id of resource group which ca certificates belongs.
- Map<String,String>
- A mapping of tags to assign to the resource.
- caCertificate stringId 
- (Available in v1.123.1+) CA certificate ID.
- caCertificate stringName 
- (Available in v1.123.1+) CA certificate name.
- commonName string
- CA certificate common name.
- createdTimestamp number
- CA certificate created timestamp.
- expiredTime string
- CA certificate expired time.
- expiredTimestamp number
- CA certificate expired timestamp.
- fingerprint string
- CA certificate fingerprint.
- id string
- CA certificate ID.
- name string
- (Deprecated from v1.123.1) Deprecated and replace by ca_certificate_name.
- resourceGroup stringId 
- The Id of resource group which ca certificates belongs.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- ca_certificate_ strid 
- (Available in v1.123.1+) CA certificate ID.
- ca_certificate_ strname 
- (Available in v1.123.1+) CA certificate name.
- common_name str
- CA certificate common name.
- created_timestamp int
- CA certificate created timestamp.
- expired_time str
- CA certificate expired time.
- expired_timestamp int
- CA certificate expired timestamp.
- fingerprint str
- CA certificate fingerprint.
- id str
- CA certificate ID.
- name str
- (Deprecated from v1.123.1) Deprecated and replace by ca_certificate_name.
- resource_group_ strid 
- The Id of resource group which ca certificates belongs.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- caCertificate StringId 
- (Available in v1.123.1+) CA certificate ID.
- caCertificate StringName 
- (Available in v1.123.1+) CA certificate name.
- commonName String
- CA certificate common name.
- createdTimestamp Number
- CA certificate created timestamp.
- expiredTime String
- CA certificate expired time.
- expiredTimestamp Number
- CA certificate expired timestamp.
- fingerprint String
- CA certificate fingerprint.
- id String
- CA certificate ID.
- name String
- (Deprecated from v1.123.1) Deprecated and replace by ca_certificate_name.
- resourceGroup StringId 
- The Id of resource group which ca 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 alicloudTerraform Provider.