1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. slb
  5. getCaCertificates
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.slb.getCaCertificates

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:slb/getCaCertificates:getCaCertificates
      arguments:
        # arguments dictionary

    The 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).
    ResourceGroupId string
    The Id of resource group which ca certificates belongs.
    Tags 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).
    ResourceGroupId string
    The Id of resource group which ca certificates belongs.
    Tags 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).
    resourceGroupId String
    The Id of resource group which ca certificates belongs.
    tags 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).
    resourceGroupId string
    The Id of resource group which ca certificates belongs.
    tags {[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_id str
    The Id of resource group which ca certificates belongs.
    tags 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).
    resourceGroupId String
    The Id of resource group which ca certificates belongs.
    tags Map<String>
    A mapping of tags to assign to the resource.

    getCaCertificates Result

    The following output properties are available:

    Certificates List<Pulumi.AliCloud.Slb.Outputs.GetCaCertificatesCertificate>
    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
    ResourceGroupId string
    The resource group Id of CA certificate.
    Tags Dictionary<string, string>
    (Available in v1.66.0+) A mapping of tags to assign to the resource.
    Certificates []GetCaCertificatesCertificate
    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
    ResourceGroupId string
    The resource group Id of CA certificate.
    Tags map[string]string
    (Available in v1.66.0+) A mapping of tags to assign to the resource.
    certificates List<GetCaCertificatesCertificate>
    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
    resourceGroupId String
    The resource group Id of CA certificate.
    tags Map<String,String>
    (Available in v1.66.0+) A mapping of tags to assign to the resource.
    certificates GetCaCertificatesCertificate[]
    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
    resourceGroupId string
    The resource group Id of CA certificate.
    tags {[key: string]: string}
    (Available in v1.66.0+) A mapping of tags to assign to the resource.
    certificates Sequence[GetCaCertificatesCertificate]
    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_id str
    The resource group Id of CA certificate.
    tags 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
    resourceGroupId String
    The resource group Id of CA certificate.
    tags Map<String>
    (Available in v1.66.0+) A mapping of tags to assign to the resource.

    Supporting Types

    GetCaCertificatesCertificate

    CaCertificateId string
    (Available in v1.123.1+) CA certificate ID.
    CaCertificateName string
    (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.
    ResourceGroupId string
    The Id of resource group which ca certificates belongs.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    CaCertificateId string
    (Available in v1.123.1+) CA certificate ID.
    CaCertificateName string
    (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.
    ResourceGroupId string
    The Id of resource group which ca certificates belongs.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    caCertificateId String
    (Available in v1.123.1+) CA certificate ID.
    caCertificateName String
    (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.
    resourceGroupId String
    The Id of resource group which ca certificates belongs.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    caCertificateId string
    (Available in v1.123.1+) CA certificate ID.
    caCertificateName string
    (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.
    resourceGroupId string
    The Id of resource group which ca certificates belongs.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    ca_certificate_id str
    (Available in v1.123.1+) CA certificate ID.
    ca_certificate_name str
    (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_id str
    The Id of resource group which ca certificates belongs.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    caCertificateId String
    (Available in v1.123.1+) CA certificate ID.
    caCertificateName String
    (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.
    resourceGroupId String
    The Id of resource group which ca certificates belongs.
    tags 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.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi