get Certificate
Get information on a certificate. This data source provides the name, type, state, domains, expiry date, and the sha1 fingerprint as configured on your DigitalOcean account. This is useful if the certificate in question is not managed by this provider or you need to utilize any of the certificates data. An error is triggered if the provided certificate name does not exist.
Example Usage
Get the certificate:
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.digitalocean.DigitaloceanFunctions;
import com.pulumi.digitalocean.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 example = DigitaloceanFunctions.getCertificate(GetCertificateArgs.builder()
.name("example")
.build());
}
}
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.
See also
Parameters
name
The name of certificate.
suspend fun getCertificate(argument: suspend GetCertificatePlainArgsBuilder.() -> Unit): GetCertificateResult
Return
A collection of values returned by getCertificate.
See also
Parameters
argument
Builder for com.pulumi.digitalocean.kotlin.inputs.GetCertificatePlainArgs.