1. Packages
  2. Azure Classic
  3. API Docs
  4. keyvault
  5. getCertificateIssuer

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.keyvault.getCertificateIssuer

Explore with Pulumi AI

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

Use this data source to access information about an existing Key Vault Certificate Issuer.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = azure.keyvault.getKeyVault({
    name: "mykeyvault",
    resourceGroupName: "some-resource-group",
});
const exampleGetCertificateIssuer = example.then(example => azure.keyvault.getCertificateIssuer({
    name: "existing",
    keyVaultId: example.id,
}));
export const id = exampleGetCertificateIssuer.then(exampleGetCertificateIssuer => exampleGetCertificateIssuer.id);
Copy
import pulumi
import pulumi_azure as azure

example = azure.keyvault.get_key_vault(name="mykeyvault",
    resource_group_name="some-resource-group")
example_get_certificate_issuer = azure.keyvault.get_certificate_issuer(name="existing",
    key_vault_id=example.id)
pulumi.export("id", example_get_certificate_issuer.id)
Copy
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/keyvault"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := keyvault.LookupKeyVault(ctx, &keyvault.LookupKeyVaultArgs{
			Name:              "mykeyvault",
			ResourceGroupName: "some-resource-group",
		}, nil)
		if err != nil {
			return err
		}
		exampleGetCertificateIssuer, err := keyvault.LookupCertificateIssuer(ctx, &keyvault.LookupCertificateIssuerArgs{
			Name:       "existing",
			KeyVaultId: example.Id,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("id", exampleGetCertificateIssuer.Id)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = Azure.KeyVault.GetKeyVault.Invoke(new()
    {
        Name = "mykeyvault",
        ResourceGroupName = "some-resource-group",
    });

    var exampleGetCertificateIssuer = Azure.KeyVault.GetCertificateIssuer.Invoke(new()
    {
        Name = "existing",
        KeyVaultId = example.Apply(getKeyVaultResult => getKeyVaultResult.Id),
    });

    return new Dictionary<string, object?>
    {
        ["id"] = exampleGetCertificateIssuer.Apply(getCertificateIssuerResult => getCertificateIssuerResult.Id),
    };
});
Copy
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 example = KeyvaultFunctions.getKeyVault(GetKeyVaultArgs.builder()
            .name("mykeyvault")
            .resourceGroupName("some-resource-group")
            .build());

        final var exampleGetCertificateIssuer = KeyvaultFunctions.getCertificateIssuer(GetCertificateIssuerArgs.builder()
            .name("existing")
            .keyVaultId(example.applyValue(getKeyVaultResult -> getKeyVaultResult.id()))
            .build());

        ctx.export("id", exampleGetCertificateIssuer.applyValue(getCertificateIssuerResult -> getCertificateIssuerResult.id()));
    }
}
Copy
variables:
  example:
    fn::invoke:
      function: azure:keyvault:getKeyVault
      arguments:
        name: mykeyvault
        resourceGroupName: some-resource-group
  exampleGetCertificateIssuer:
    fn::invoke:
      function: azure:keyvault:getCertificateIssuer
      arguments:
        name: existing
        keyVaultId: ${example.id}
outputs:
  id: ${exampleGetCertificateIssuer.id}
Copy

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>
Copy
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]
Copy
func LookupCertificateIssuer(ctx *Context, args *LookupCertificateIssuerArgs, opts ...InvokeOption) (*LookupCertificateIssuerResult, error)
func LookupCertificateIssuerOutput(ctx *Context, args *LookupCertificateIssuerOutputArgs, opts ...InvokeOption) LookupCertificateIssuerResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetCertificateIssuerResult> getCertificateIssuer(GetCertificateIssuerArgs args, InvokeOptions options)
public static Output<GetCertificateIssuerResult> getCertificateIssuer(GetCertificateIssuerArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure:keyvault/getCertificateIssuer:getCertificateIssuer
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

KeyVaultId This property is required. string
The ID of the Key Vault in which to locate the Certificate Issuer.
Name This property is required. string
The name of the Key Vault Certificate Issuer.
KeyVaultId This property is required. string
The ID of the Key Vault in which to locate the Certificate Issuer.
Name This property is required. string
The name of the Key Vault Certificate Issuer.
keyVaultId This property is required. String
The ID of the Key Vault in which to locate the Certificate Issuer.
name This property is required. String
The name of the Key Vault Certificate Issuer.
keyVaultId This property is required. string
The ID of the Key Vault in which to locate the Certificate Issuer.
name This property is required. string
The name of the Key Vault Certificate Issuer.
key_vault_id This property is required. str
The ID of the Key Vault in which to locate the Certificate Issuer.
name This property is required. str
The name of the Key Vault Certificate Issuer.
keyVaultId This property is required. String
The ID of the Key Vault in which to locate the Certificate Issuer.
name This property is required. String
The name of the Key Vault Certificate Issuer.

getCertificateIssuer Result

The following output properties are available:

AccountId string
The account number with the third-party Certificate Issuer.
Admins List<GetCertificateIssuerAdmin>
A list of admin blocks as defined below.
Id string
The provider-assigned unique ID for this managed resource.
KeyVaultId string
Name string
OrgId string
The organization ID with the third-party Certificate Issuer.
ProviderName string
The name of the third-party Certificate Issuer.
AccountId string
The account number with the third-party Certificate Issuer.
Admins []GetCertificateIssuerAdmin
A list of admin blocks as defined below.
Id string
The provider-assigned unique ID for this managed resource.
KeyVaultId string
Name string
OrgId string
The organization ID with the third-party Certificate Issuer.
ProviderName string
The name of the third-party Certificate Issuer.
accountId String
The account number with the third-party Certificate Issuer.
admins List<GetCertificateIssuerAdmin>
A list of admin blocks as defined below.
id String
The provider-assigned unique ID for this managed resource.
keyVaultId String
name String
orgId String
The organization ID with the third-party Certificate Issuer.
providerName String
The name of the third-party Certificate Issuer.
accountId string
The account number with the third-party Certificate Issuer.
admins GetCertificateIssuerAdmin[]
A list of admin blocks as defined below.
id string
The provider-assigned unique ID for this managed resource.
keyVaultId string
name string
orgId string
The organization ID with the third-party Certificate Issuer.
providerName string
The name of the third-party Certificate Issuer.
account_id str
The account number with the third-party Certificate Issuer.
admins Sequence[GetCertificateIssuerAdmin]
A list of admin blocks as defined below.
id str
The provider-assigned unique ID for this managed resource.
key_vault_id str
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.
accountId 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.
keyVaultId String
name String
orgId String
The organization ID with the third-party Certificate Issuer.
providerName String
The name of the third-party Certificate Issuer.

Supporting Types

GetCertificateIssuerAdmin

EmailAddress This property is required. string
E-mail address of the admin.
FirstName This property is required. string
First name of the admin.
LastName This property is required. string
Last name of the admin.
Phone This property is required. string
Phone number of the admin.
EmailAddress This property is required. string
E-mail address of the admin.
FirstName This property is required. string
First name of the admin.
LastName This property is required. string
Last name of the admin.
Phone This property is required. string
Phone number of the admin.
emailAddress This property is required. String
E-mail address of the admin.
firstName This property is required. String
First name of the admin.
lastName This property is required. String
Last name of the admin.
phone This property is required. String
Phone number of the admin.
emailAddress This property is required. string
E-mail address of the admin.
firstName This property is required. string
First name of the admin.
lastName This property is required. string
Last name of the admin.
phone This property is required. string
Phone number of the admin.
email_address This property is required. str
E-mail address of the admin.
first_name This property is required. str
First name of the admin.
last_name This property is required. str
Last name of the admin.
phone This property is required. str
Phone number of the admin.
emailAddress This property is required. String
E-mail address of the admin.
firstName This property is required. String
First name of the admin.
lastName This property is required. String
Last name of the admin.
phone This property is required. 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.

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi