1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. ga
  5. getAdditionalCertificates
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.ga.getAdditionalCertificates

Explore with Pulumi AI

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

NOTE: Available since 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);
Copy
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)
Copy
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
	})
}
Copy
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),
    };
});
Copy
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()));
    }
}
Copy
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}
Copy

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>
Copy
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]
Copy
func GetAdditionalCertificates(ctx *Context, args *GetAdditionalCertificatesArgs, opts ...InvokeOption) (*GetAdditionalCertificatesResult, error)
func GetAdditionalCertificatesOutput(ctx *Context, args *GetAdditionalCertificatesOutputArgs, opts ...InvokeOption) GetAdditionalCertificatesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetAdditionalCertificatesResult> getAdditionalCertificates(GetAdditionalCertificatesArgs args, InvokeOptions options)
public static Output<GetAdditionalCertificatesResult> getAdditionalCertificates(GetAdditionalCertificatesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:ga/getAdditionalCertificates:getAdditionalCertificates
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AcceleratorId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the GA instance.
ListenerId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the listener. Only HTTPS listeners support this parameter.
Ids Changes to this property will trigger replacement. List<string>
A list of Additional Certificate IDs.
OutputFile string
File name where to save data source results (after running pulumi preview).
AcceleratorId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the GA instance.
ListenerId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the listener. Only HTTPS listeners support this parameter.
Ids Changes to this property will trigger replacement. []string
A list of Additional Certificate IDs.
OutputFile string
File name where to save data source results (after running pulumi preview).
acceleratorId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the GA instance.
listenerId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the listener. Only HTTPS listeners support this parameter.
ids Changes to this property will trigger replacement. List<String>
A list of Additional Certificate IDs.
outputFile String
File name where to save data source results (after running pulumi preview).
acceleratorId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the GA instance.
listenerId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the listener. Only HTTPS listeners support this parameter.
ids Changes to this property will trigger replacement. string[]
A list of Additional Certificate IDs.
outputFile string
File name where to save data source results (after running pulumi preview).
accelerator_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the GA instance.
listener_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the listener. Only HTTPS listeners support this parameter.
ids Changes to this property will trigger replacement. Sequence[str]
A list of Additional Certificate IDs.
output_file str
File name where to save data source results (after running pulumi preview).
acceleratorId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the GA instance.
listenerId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the listener. Only HTTPS listeners support this parameter.
ids Changes to this property will trigger replacement. 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
The ID of the GA instance.
Certificates List<Pulumi.AliCloud.Ga.Outputs.GetAdditionalCertificatesCertificate>
A list of Ga Additional Certificates. Each element contains the following attributes:
Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
ListenerId string
The ID of the listener. Only HTTPS listeners support this parameter.
OutputFile string
AcceleratorId string
The ID of the GA instance.
Certificates []GetAdditionalCertificatesCertificate
A list of Ga Additional Certificates. Each element contains the following attributes:
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
ListenerId string
The ID of the listener. Only HTTPS listeners support this parameter.
OutputFile string
acceleratorId String
The ID of the GA instance.
certificates List<GetAdditionalCertificatesCertificate>
A list of Ga Additional Certificates. Each element contains the following attributes:
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
listenerId String
The ID of the listener. Only HTTPS listeners support this parameter.
outputFile String
acceleratorId string
The ID of the GA instance.
certificates GetAdditionalCertificatesCertificate[]
A list of Ga Additional Certificates. Each element contains the following attributes:
id string
The provider-assigned unique ID for this managed resource.
ids string[]
listenerId string
The ID of the listener. Only HTTPS listeners support this parameter.
outputFile string
accelerator_id str
The ID of the GA instance.
certificates Sequence[GetAdditionalCertificatesCertificate]
A list of Ga Additional Certificates. Each element contains the following attributes:
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
listener_id str
The ID of the listener. Only HTTPS listeners support this parameter.
output_file str
acceleratorId String
The ID of the GA instance.
certificates List<Property Map>
A list of Ga Additional Certificates. Each element contains the following attributes:
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
listenerId String
The ID of the listener. Only HTTPS listeners support this parameter.
outputFile String

Supporting Types

GetAdditionalCertificatesCertificate

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