azure.keyvault.getCertificateIssuer
Explore with Pulumi AI
Use this data source to access information about an existing Key Vault Certificate Issuer.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var exampleKeyVault = Azure.KeyVault.GetKeyVault.Invoke(new()
{
Name = "mykeyvault",
ResourceGroupName = "some-resource-group",
});
var exampleCertificateIssuer = Azure.KeyVault.GetCertificateIssuer.Invoke(new()
{
Name = "existing",
KeyVaultId = exampleKeyVault.Apply(getKeyVaultResult => getKeyVaultResult.Id),
});
return new Dictionary<string, object?>
{
["id"] = exampleCertificateIssuer.Apply(getCertificateIssuerResult => getCertificateIssuerResult.Id),
};
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/keyvault"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleKeyVault, err := keyvault.LookupKeyVault(ctx, &keyvault.LookupKeyVaultArgs{
Name: "mykeyvault",
ResourceGroupName: "some-resource-group",
}, nil)
if err != nil {
return err
}
exampleCertificateIssuer, err := keyvault.LookupCertificateIssuer(ctx, &keyvault.LookupCertificateIssuerArgs{
Name: "existing",
KeyVaultId: exampleKeyVault.Id,
}, nil)
if err != nil {
return err
}
ctx.Export("id", exampleCertificateIssuer.Id)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.keyvault.KeyvaultFunctions;
import com.pulumi.azure.keyvault.inputs.GetKeyVaultArgs;
import com.pulumi.azure.keyvault.inputs.GetCertificateIssuerArgs;
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 exampleKeyVault = KeyvaultFunctions.getKeyVault(GetKeyVaultArgs.builder()
.name("mykeyvault")
.resourceGroupName("some-resource-group")
.build());
final var exampleCertificateIssuer = KeyvaultFunctions.getCertificateIssuer(GetCertificateIssuerArgs.builder()
.name("existing")
.keyVaultId(exampleKeyVault.applyValue(getKeyVaultResult -> getKeyVaultResult.id()))
.build());
ctx.export("id", exampleCertificateIssuer.applyValue(getCertificateIssuerResult -> getCertificateIssuerResult.id()));
}
}
import pulumi
import pulumi_azure as azure
example_key_vault = azure.keyvault.get_key_vault(name="mykeyvault",
resource_group_name="some-resource-group")
example_certificate_issuer = azure.keyvault.get_certificate_issuer(name="existing",
key_vault_id=example_key_vault.id)
pulumi.export("id", example_certificate_issuer.id)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleKeyVault = azure.keyvault.getKeyVault({
name: "mykeyvault",
resourceGroupName: "some-resource-group",
});
const exampleCertificateIssuer = exampleKeyVault.then(exampleKeyVault => azure.keyvault.getCertificateIssuer({
name: "existing",
keyVaultId: exampleKeyVault.id,
}));
export const id = exampleCertificateIssuer.then(exampleCertificateIssuer => exampleCertificateIssuer.id);
variables:
exampleKeyVault:
fn::invoke:
Function: azure:keyvault:getKeyVault
Arguments:
name: mykeyvault
resourceGroupName: some-resource-group
exampleCertificateIssuer:
fn::invoke:
Function: azure:keyvault:getCertificateIssuer
Arguments:
name: existing
keyVaultId: ${exampleKeyVault.id}
outputs:
id: ${exampleCertificateIssuer.id}
Using getCertificateIssuer
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCertificateIssuer(args: GetCertificateIssuerArgs, opts?: InvokeOptions): Promise<GetCertificateIssuerResult>
function getCertificateIssuerOutput(args: GetCertificateIssuerOutputArgs, opts?: InvokeOptions): Output<GetCertificateIssuerResult>
def get_certificate_issuer(key_vault_id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCertificateIssuerResult
def get_certificate_issuer_output(key_vault_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCertificateIssuerResult]
func LookupCertificateIssuer(ctx *Context, args *LookupCertificateIssuerArgs, opts ...InvokeOption) (*LookupCertificateIssuerResult, error)
func LookupCertificateIssuerOutput(ctx *Context, args *LookupCertificateIssuerOutputArgs, opts ...InvokeOption) LookupCertificateIssuerResultOutput
> Note: This function is named LookupCertificateIssuer
in the Go SDK.
public static class GetCertificateIssuer
{
public static Task<GetCertificateIssuerResult> InvokeAsync(GetCertificateIssuerArgs args, InvokeOptions? opts = null)
public static Output<GetCertificateIssuerResult> Invoke(GetCertificateIssuerInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCertificateIssuerResult> getCertificateIssuer(GetCertificateIssuerArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:keyvault/getCertificateIssuer:getCertificateIssuer
arguments:
# arguments dictionary
The following arguments are supported:
- Key
Vault stringId The ID of the Key Vault in which to locate the Certificate Issuer.
- Name string
The name of the Key Vault Certificate Issuer.
- Key
Vault stringId The ID of the Key Vault in which to locate the Certificate Issuer.
- Name string
The name of the Key Vault Certificate Issuer.
- key
Vault StringId The ID of the Key Vault in which to locate the Certificate Issuer.
- name String
The name of the Key Vault Certificate Issuer.
- key
Vault stringId The ID of the Key Vault in which to locate the Certificate Issuer.
- name string
The name of the Key Vault Certificate Issuer.
- key_
vault_ strid The ID of the Key Vault in which to locate the Certificate Issuer.
- name str
The name of the Key Vault Certificate Issuer.
- key
Vault StringId The ID of the Key Vault in which to locate the Certificate Issuer.
- name String
The name of the Key Vault Certificate Issuer.
getCertificateIssuer Result
The following output properties are available:
- Account
Id string The account number with the third-party Certificate Issuer.
- Admins
List<Get
Certificate Issuer Admin> A list of
admin
blocks as defined below.- Id string
The provider-assigned unique ID for this managed resource.
- Key
Vault stringId - Name string
- Org
Id string The organization ID with the third-party Certificate Issuer.
- Provider
Name string The name of the third-party Certificate Issuer.
- Account
Id string The account number with the third-party Certificate Issuer.
- Admins
[]Get
Certificate Issuer Admin A list of
admin
blocks as defined below.- Id string
The provider-assigned unique ID for this managed resource.
- Key
Vault stringId - Name string
- Org
Id string The organization ID with the third-party Certificate Issuer.
- Provider
Name string The name of the third-party Certificate Issuer.
- account
Id String The account number with the third-party Certificate Issuer.
- admins
List<Get
Certificate Issuer Admin> A list of
admin
blocks as defined below.- id String
The provider-assigned unique ID for this managed resource.
- key
Vault StringId - name String
- org
Id String The organization ID with the third-party Certificate Issuer.
- provider
Name String The name of the third-party Certificate Issuer.
- account
Id string The account number with the third-party Certificate Issuer.
- admins
Get
Certificate Issuer Admin[] A list of
admin
blocks as defined below.- id string
The provider-assigned unique ID for this managed resource.
- key
Vault stringId - name string
- org
Id string The organization ID with the third-party Certificate Issuer.
- provider
Name string The name of the third-party Certificate Issuer.
- account_
id str The account number with the third-party Certificate Issuer.
- admins
Sequence[Get
Certificate Issuer Admin] A list of
admin
blocks as defined below.- id str
The provider-assigned unique ID for this managed resource.
- key_
vault_ strid - name str
- org_
id str The organization ID with the third-party Certificate Issuer.
- provider_
name str The name of the third-party Certificate Issuer.
- account
Id String The account number with the third-party Certificate Issuer.
- admins List<Property Map>
A list of
admin
blocks as defined below.- id String
The provider-assigned unique ID for this managed resource.
- key
Vault StringId - name String
- org
Id String The organization ID with the third-party Certificate Issuer.
- provider
Name String The name of the third-party Certificate Issuer.
Supporting Types
GetCertificateIssuerAdmin
- Email
Address string E-mail address of the admin.
- First
Name string First name of the admin.
- Last
Name string Last name of the admin.
- Phone string
Phone number of the admin.
- Email
Address string E-mail address of the admin.
- First
Name string First name of the admin.
- Last
Name string Last name of the admin.
- Phone string
Phone number of the admin.
- email
Address String E-mail address of the admin.
- first
Name String First name of the admin.
- last
Name String Last name of the admin.
- phone String
Phone number of the admin.
- email
Address string E-mail address of the admin.
- first
Name string First name of the admin.
- last
Name string Last name of the admin.
- phone string
Phone number of the admin.
- email_
address str E-mail address of the admin.
- first_
name str First name of the admin.
- last_
name str Last name of the admin.
- phone str
Phone number of the admin.
- email
Address String E-mail address of the admin.
- first
Name String First name of the admin.
- last
Name String Last name of the admin.
- phone String
Phone number of the admin.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.