get Certificate
Use this data source to access information about an existing Nginx Certificate.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.nginx.NginxFunctions;
import com.pulumi.azure.nginx.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 = NginxFunctions.getCertificate(GetCertificateArgs.builder()
.name("existing")
.nginxDeploymentId(exampleAzurermNginxDeployment.id())
.build());
ctx.export("id", example.applyValue(getCertificateResult -> getCertificateResult.id()));
}
}
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 this Nginx Certificate.
nginx Deployment Id
The ID of the Nginx Deployment that this certificate is associated with.
suspend fun getCertificate(argument: suspend GetCertificatePlainArgsBuilder.() -> Unit): GetCertificateResult
Return
A collection of values returned by getCertificate.
See also
Parameters
argument
Builder for com.pulumi.azure.nginx.kotlin.inputs.GetCertificatePlainArgs.