get Certificate
Use this data source to access information about an existing certificate in a Batch Account.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.batch.BatchFunctions;
import com.pulumi.azure.batch.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 = BatchFunctions.getCertificate(GetCertificateArgs.builder()
.name("SHA1-42C107874FD0E4A9583292A2F1098E8FE4B2EDDA")
.accountName("examplebatchaccount")
.resourceGroupName("example")
.build());
ctx.export("thumbprint", example.applyValue(getCertificateResult -> getCertificateResult.thumbprint()));
}
}
Content copied to clipboard
Return
A collection of values returned by getCertificate.
Parameters
argument
A collection of arguments for invoking getCertificate.
suspend fun getCertificate(accountName: String, name: String, resourceGroupName: String): GetCertificateResult
Return
A collection of values returned by getCertificate.
See also
Parameters
account Name
The name of the Batch account.
name
The name of the Batch certificate.
resource Group Name
The Name of the Resource Group where this Batch account exists.
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.batch.kotlin.inputs.GetCertificatePlainArgs.