Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.27.0 published on Monday, Aug 8, 2022 by Pulumi

getAdditionalCertificates

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

NOTE: Available in v1.150.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var ids = Output.Create(AliCloud.Ga.GetAdditionalCertificates.InvokeAsync(new AliCloud.Ga.GetAdditionalCertificatesArgs
        {
            AcceleratorId = "example_value",
            ListenerId = "example_value",
            Ids = 
            {
                "example_value-1",
                "example_value-2",
            },
        }));
        this.GaAdditionalCertificateId1 = ids.Apply(ids => ids.Certificates?[0]?.Id);
    }

    [Output("gaAdditionalCertificateId1")]
    public Output<string> GaAdditionalCertificateId1 { get; set; }
}
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
	})
}
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()));
    }
}
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)
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);
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
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
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
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
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
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

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
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.