get Certificate
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()));
}
}
Content copied to clipboard
Return
A collection of values returned by getCertificate.
Parameters
argument
A collection of arguments for invoking getCertificate.
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
suspend fun getCertificate(argument: suspend GetCertificatePlainArgsBuilder.() -> Unit): GetCertificateResult
Return
A collection of values returned by getCertificate.
Parameters
argument
Builder for com.pulumi.gcp.compute.kotlin.inputs.GetCertificatePlainArgs.