1. Packages
  2. Alicloud Provider
  3. API Docs
  4. ga
  5. getAdditionalCertificates
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.ga.getAdditionalCertificates

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

    This data source provides the Ga Additional Certificates of the current Alibaba Cloud user.

    NOTE: Available in v1.150.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const ids = alicloud.ga.getAdditionalCertificates({
        acceleratorId: "example_value",
        listenerId: "example_value",
        ids: [
            "example_value-1",
            "example_value-2",
        ],
    });
    export const gaAdditionalCertificateId1 = ids.then(ids => ids.certificates?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    ids = alicloud.ga.get_additional_certificates(accelerator_id="example_value",
        listener_id="example_value",
        ids=[
            "example_value-1",
            "example_value-2",
        ])
    pulumi.export("gaAdditionalCertificateId1", ids.certificates[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ga"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ids, err := ga.GetAdditionalCertificates(ctx, &ga.GetAdditionalCertificatesArgs{
    			AcceleratorId: "example_value",
    			ListenerId:    "example_value",
    			Ids: []string{
    				"example_value-1",
    				"example_value-2",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("gaAdditionalCertificateId1", ids.Certificates[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var ids = AliCloud.Ga.GetAdditionalCertificates.Invoke(new()
        {
            AcceleratorId = "example_value",
            ListenerId = "example_value",
            Ids = new[]
            {
                "example_value-1",
                "example_value-2",
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["gaAdditionalCertificateId1"] = ids.Apply(getAdditionalCertificatesResult => getAdditionalCertificatesResult.Certificates[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.ga.GaFunctions;
    import com.pulumi.alicloud.ga.inputs.GetAdditionalCertificatesArgs;
    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 ids = GaFunctions.getAdditionalCertificates(GetAdditionalCertificatesArgs.builder()
                .acceleratorId("example_value")
                .listenerId("example_value")
                .ids(            
                    "example_value-1",
                    "example_value-2")
                .build());
    
            ctx.export("gaAdditionalCertificateId1", ids.applyValue(getAdditionalCertificatesResult -> getAdditionalCertificatesResult.certificates()[0].id()));
        }
    }
    
    variables:
      ids:
        fn::invoke:
          Function: alicloud:ga:getAdditionalCertificates
          Arguments:
            acceleratorId: example_value
            listenerId: example_value
            ids:
              - example_value-1
              - example_value-2
    outputs:
      gaAdditionalCertificateId1: ${ids.certificates[0].id}
    

    Using getAdditionalCertificates

    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 getAdditionalCertificates(args: GetAdditionalCertificatesArgs, opts?: InvokeOptions): Promise<GetAdditionalCertificatesResult>
    function getAdditionalCertificatesOutput(args: GetAdditionalCertificatesOutputArgs, opts?: InvokeOptions): Output<GetAdditionalCertificatesResult>
    def get_additional_certificates(accelerator_id: Optional[str] = None,
                                    ids: Optional[Sequence[str]] = None,
                                    listener_id: Optional[str] = None,
                                    output_file: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetAdditionalCertificatesResult
    def get_additional_certificates_output(accelerator_id: Optional[pulumi.Input[str]] = None,
                                    ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                    listener_id: Optional[pulumi.Input[str]] = None,
                                    output_file: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetAdditionalCertificatesResult]
    func GetAdditionalCertificates(ctx *Context, args *GetAdditionalCertificatesArgs, opts ...InvokeOption) (*GetAdditionalCertificatesResult, error)
    func GetAdditionalCertificatesOutput(ctx *Context, args *GetAdditionalCertificatesOutputArgs, opts ...InvokeOption) GetAdditionalCertificatesResultOutput

    > Note: This function is named GetAdditionalCertificates in the Go SDK.

    public static class GetAdditionalCertificates 
    {
        public static Task<GetAdditionalCertificatesResult> InvokeAsync(GetAdditionalCertificatesArgs args, InvokeOptions? opts = null)
        public static Output<GetAdditionalCertificatesResult> Invoke(GetAdditionalCertificatesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAdditionalCertificatesResult> getAdditionalCertificates(GetAdditionalCertificatesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:ga/getAdditionalCertificates:getAdditionalCertificates
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AcceleratorId string
    The ID of the GA instance.
    ListenerId string
    The ID of the listener. Only HTTPS listeners support this parameter.
    Ids List<string>
    A list of Additional Certificate IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    AcceleratorId string
    The ID of the GA instance.
    ListenerId string
    The ID of the listener. Only HTTPS listeners support this parameter.
    Ids []string
    A list of Additional Certificate IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    acceleratorId String
    The ID of the GA instance.
    listenerId String
    The ID of the listener. Only HTTPS listeners support this parameter.
    ids List<String>
    A list of Additional Certificate IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    acceleratorId string
    The ID of the GA instance.
    listenerId string
    The ID of the listener. Only HTTPS listeners support this parameter.
    ids string[]
    A list of Additional Certificate IDs.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    accelerator_id str
    The ID of the GA instance.
    listener_id str
    The ID of the listener. Only HTTPS listeners support this parameter.
    ids Sequence[str]
    A list of Additional Certificate IDs.
    output_file str
    File name where to save data source results (after running pulumi preview).
    acceleratorId String
    The ID of the GA instance.
    listenerId String
    The ID of the listener. Only HTTPS listeners support this parameter.
    ids List<String>
    A list of Additional Certificate IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).

    getAdditionalCertificates Result

    The following output properties are available:

    AcceleratorId string
    Certificates List<Pulumi.AliCloud.Ga.Outputs.GetAdditionalCertificatesCertificate>
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    ListenerId string
    OutputFile string
    AcceleratorId string
    Certificates []GetAdditionalCertificatesCertificate
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    ListenerId string
    OutputFile string
    acceleratorId String
    certificates List<GetAdditionalCertificatesCertificate>
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    listenerId String
    outputFile String
    acceleratorId string
    certificates GetAdditionalCertificatesCertificate[]
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    listenerId string
    outputFile string
    accelerator_id str
    certificates Sequence[GetAdditionalCertificatesCertificate]
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    listener_id str
    output_file str
    acceleratorId String
    certificates List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    listenerId String
    outputFile String

    Supporting Types

    GetAdditionalCertificatesCertificate

    AcceleratorId string
    The ID of the GA instance.
    CertificateId string
    The Certificate ID.
    Domain string
    The domain name specified by the certificate.
    Id string
    The ID of the Additional Certificate. The value formats as <accelerator_id>:<listener_id>:<domain>.
    ListenerId string
    The ID of the listener. Only HTTPS listeners support this parameter.
    AcceleratorId string
    The ID of the GA instance.
    CertificateId string
    The Certificate ID.
    Domain string
    The domain name specified by the certificate.
    Id string
    The ID of the Additional Certificate. The value formats as <accelerator_id>:<listener_id>:<domain>.
    ListenerId string
    The ID of the listener. Only HTTPS listeners support this parameter.
    acceleratorId String
    The ID of the GA instance.
    certificateId String
    The Certificate ID.
    domain String
    The domain name specified by the certificate.
    id String
    The ID of the Additional Certificate. The value formats as <accelerator_id>:<listener_id>:<domain>.
    listenerId String
    The ID of the listener. Only HTTPS listeners support this parameter.
    acceleratorId string
    The ID of the GA instance.
    certificateId string
    The Certificate ID.
    domain string
    The domain name specified by the certificate.
    id string
    The ID of the Additional Certificate. The value formats as <accelerator_id>:<listener_id>:<domain>.
    listenerId string
    The ID of the listener. Only HTTPS listeners support this parameter.
    accelerator_id str
    The ID of the GA instance.
    certificate_id str
    The Certificate ID.
    domain str
    The domain name specified by the certificate.
    id str
    The ID of the Additional Certificate. The value formats as <accelerator_id>:<listener_id>:<domain>.
    listener_id str
    The ID of the listener. Only HTTPS listeners support this parameter.
    acceleratorId String
    The ID of the GA instance.
    certificateId String
    The Certificate ID.
    domain String
    The domain name specified by the certificate.
    id String
    The ID of the Additional Certificate. The value formats as <accelerator_id>:<listener_id>:<domain>.
    listenerId String
    The ID of the listener. Only HTTPS listeners support this parameter.

    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.62.1 published on Monday, Sep 16, 2024 by Pulumi