Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 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 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:
- Accelerator
Id string - The ID of the GA instance.
- Listener
Id string - The ID of the listener. Only HTTPS listeners support this parameter.
- Ids List<string>
- A list of Additional Certificate IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Accelerator
Id string - The ID of the GA instance.
- Listener
Id string - The ID of the listener. Only HTTPS listeners support this parameter.
- Ids []string
- A list of Additional Certificate IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- accelerator
Id String - The ID of the GA instance.
- listener
Id String - The ID of the listener. Only HTTPS listeners support this parameter.
- ids List<String>
- A list of Additional Certificate IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- accelerator
Id string - The ID of the GA instance.
- listener
Id string - The ID of the listener. Only HTTPS listeners support this parameter.
- ids string[]
- A list of Additional Certificate IDs.
- output
File 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
).
- accelerator
Id String - The ID of the GA instance.
- listener
Id String - The ID of the listener. Only HTTPS listeners support this parameter.
- ids List<String>
- A list of Additional Certificate IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
).
getAdditionalCertificates Result
The following output properties are available:
- Accelerator
Id string - Certificates
List<Pulumi.
Ali Cloud. Ga. Outputs. Get Additional Certificates Certificate> - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Listener
Id string - Output
File string
- Accelerator
Id string - Certificates
[]Get
Additional Certificates Certificate - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Listener
Id string - Output
File string
- accelerator
Id String - certificates
List<Get
Additional Certificates Certificate> - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- listener
Id String - output
File String
- accelerator
Id string - certificates
Get
Additional Certificates Certificate[] - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- listener
Id string - output
File string
- accelerator_
id str - certificates
Sequence[Get
Additional Certificates Certificate] - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- listener_
id str - output_
file str
- accelerator
Id String - certificates List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- listener
Id String - output
File String
Supporting Types
GetAdditionalCertificatesCertificate
- Accelerator
Id string - The ID of the GA instance.
- Certificate
Id 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>
. - Listener
Id string - The ID of the listener. Only HTTPS listeners support this parameter.
- Accelerator
Id string - The ID of the GA instance.
- Certificate
Id 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>
. - Listener
Id string - The ID of the listener. Only HTTPS listeners support this parameter.
- accelerator
Id String - The ID of the GA instance.
- certificate
Id 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>
. - listener
Id String - The ID of the listener. Only HTTPS listeners support this parameter.
- accelerator
Id string - The ID of the GA instance.
- certificate
Id 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>
. - listener
Id 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.
- accelerator
Id String - The ID of the GA instance.
- certificate
Id 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>
. - listener
Id 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.