get Server Certificates
suspend fun getServerCertificates(argument: GetServerCertificatesPlainArgs): GetServerCertificatesResult
This data source provides the server certificate list.
Example Usage
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.GetServerCertificatesArgs;
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.getServerCertificates();
ctx.export("firstSlbServerCertificateId", sampleDs.applyValue(getServerCertificatesResult -> getServerCertificatesResult.certificates()[0].id()));
}
}
Content copied to clipboard
Return
A collection of values returned by getServerCertificates.
Parameters
argument
A collection of arguments for invoking getServerCertificates.
suspend fun getServerCertificates(ids: List<String>? = null, nameRegex: String? = null, outputFile: String? = null, resourceGroupId: String? = null, tags: Map<String, Any>? = null): GetServerCertificatesResult
Return
A collection of values returned by getServerCertificates.
See also
Parameters
ids
A list of server certificates IDs to filter results.
name Regex
A regex string to filter results by server certificate name.
output File
File name where to save data source results (after running pulumi preview
).
resource Group Id
The Id of resource group which the slb server certificates belongs.
tags
A mapping of tags to assign to the resource.
suspend fun getServerCertificates(argument: suspend GetServerCertificatesPlainArgsBuilder.() -> Unit): GetServerCertificatesResult
Return
A collection of values returned by getServerCertificates.
See also
Parameters
argument
Builder for com.pulumi.alicloud.slb.kotlin.inputs.GetServerCertificatesPlainArgs.