getCertificate

Get info about a Google Compute SSL Certificate from its name.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.ComputeFunctions;
import com.pulumi.gcp.compute.inputs.GetCertificateArgs;
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 myCert = ComputeFunctions.getCertificate(GetCertificateArgs.builder()
.name("my-cert")
.build());
ctx.export("certificate", myCert.applyValue(getCertificateResult -> getCertificateResult.certificate()));
ctx.export("certificateId", myCert.applyValue(getCertificateResult -> getCertificateResult.certificateId()));
ctx.export("selfLink", myCert.applyValue(getCertificateResult -> getCertificateResult.selfLink()));
}
}

Return

A collection of values returned by getCertificate.

Parameters

argument

A collection of arguments for invoking getCertificate.


suspend fun getCertificate(name: String, project: String? = null): GetCertificateResult

Return

A collection of values returned by getCertificate.

Parameters

name

The name of the certificate.

project

The project in which the resource belongs. If it is not provided, the provider project is used.

See also


Return

A collection of values returned by getCertificate.

Parameters

argument

Builder for com.pulumi.gcp.compute.kotlin.inputs.GetCertificatePlainArgs.

See also