Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 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.
 - Name
Regex string - A regex string to filter results by ca 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 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.
 - Name
Regex string - A regex string to filter results by ca 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 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.
 - name
Regex String - A regex string to filter results by ca 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 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.
 - name
Regex string - A regex string to filter results by ca 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 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.
 - name
Regex String - A regex string to filter results by ca 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 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.
 - Name
Regex string - Output
File string - Resource
Group 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
[]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 []string
 - A list of SLB ca certificates IDs.
 - Names []string
 - A list of SLB ca certificates names.
 - Name
Regex string - Output
File string - Resource
Group 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<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.
 - name
Regex String - output
File String - resource
Group 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
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 string[]
 - A list of SLB ca certificates IDs.
 - names string[]
 - A list of SLB ca certificates names.
 - name
Regex string - output
File string - resource
Group 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[Get
Ca 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.
 - name
Regex String - output
File String - resource
Group 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   
- Ca
Certificate stringId  - (Available in v1.123.1+) CA certificate ID.
 - Ca
Certificate stringName  - (Available in v1.123.1+) CA certificate name.
 - Common
Name string - CA certificate common name.
 - Created
Timestamp int - CA certificate created timestamp.
 - Expired
Time string - CA certificate expired time.
 - Expired
Timestamp 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. - Resource
Group stringId  - The Id of resource group which ca certificates belongs.
 - Dictionary<string, string>
 - A mapping of tags to assign to the resource.
 
- Ca
Certificate stringId  - (Available in v1.123.1+) CA certificate ID.
 - Ca
Certificate stringName  - (Available in v1.123.1+) CA certificate name.
 - Common
Name string - CA certificate common name.
 - Created
Timestamp int - CA certificate created timestamp.
 - Expired
Time string - CA certificate expired time.
 - Expired
Timestamp 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. - Resource
Group stringId  - The Id of resource group which ca certificates belongs.
 - map[string]string
 - A mapping of tags to assign to the resource.
 
- ca
Certificate StringId  - (Available in v1.123.1+) CA certificate ID.
 - ca
Certificate StringName  - (Available in v1.123.1+) CA certificate name.
 - common
Name String - CA certificate common name.
 - created
Timestamp Integer - CA certificate created timestamp.
 - expired
Time String - CA certificate expired time.
 - expired
Timestamp 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. - resource
Group StringId  - The Id of resource group which ca certificates belongs.
 - Map<String,String>
 - A mapping of tags to assign to the resource.
 
- ca
Certificate stringId  - (Available in v1.123.1+) CA certificate ID.
 - ca
Certificate stringName  - (Available in v1.123.1+) CA certificate name.
 - common
Name string - CA certificate common name.
 - created
Timestamp number - CA certificate created timestamp.
 - expired
Time string - CA certificate expired time.
 - expired
Timestamp 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. - resource
Group 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.
 
- ca
Certificate StringId  - (Available in v1.123.1+) CA certificate ID.
 - ca
Certificate StringName  - (Available in v1.123.1+) CA certificate name.
 - common
Name String - CA certificate common name.
 - created
Timestamp Number - CA certificate created timestamp.
 - expired
Time String - CA certificate expired time.
 - expired
Timestamp 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. - resource
Group 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.