GetAccessPolicy

Use this data source to access information about the permissions from the Management Key Vault Templates.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var contributor = Output.Create(Azure.KeyVault.GetAccessPolicy.InvokeAsync(new Azure.KeyVault.GetAccessPolicyArgs
        {
            Name = "Key Management",
        }));
        this.AccessPolicyKeyPermissions = contributor.Apply(contributor => contributor.KeyPermissions);
    }

    [Output("accessPolicyKeyPermissions")]
    public Output<string> AccessPolicyKeyPermissions { get; set; }
}
package main

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

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        contributor, err := keyvault.LookupAccessPolicy(ctx, &keyvault.LookupAccessPolicyArgs{
            Name: "Key Management",
        }, nil)
        if err != nil {
            return err
        }
        ctx.Export("accessPolicyKeyPermissions", contributor.KeyPermissions)
        return nil
    })
}
import pulumi
import pulumi_azure as azure

contributor = azure.keyvault.get_access_policy(name="Key Management")
pulumi.export("accessPolicyKeyPermissions", contributor.key_permissions)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const contributor = azure.keyvault.getAccessPolicy({
    name: "Key Management",
});
export const accessPolicyKeyPermissions = contributor.then(contributor => contributor.keyPermissions);

Using GetAccessPolicy

function getAccessPolicy(args: GetAccessPolicyArgs, opts?: InvokeOptions): Promise<GetAccessPolicyResult>
function  get_access_policy(name=None, opts=None)
func LookupAccessPolicy(ctx *Context, args *LookupAccessPolicyArgs, opts ...InvokeOption) (*LookupAccessPolicyResult, error)

Note: This function is named LookupAccessPolicy in the Go SDK.

public static class GetAccessPolicy {
    public static Task<GetAccessPolicyResult> InvokeAsync(GetAccessPolicyArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

Specifies the name of the Management Template. Possible values are: Key Management, Secret Management, Certificate Management, Key & Secret Management, Key & Certificate Management, Secret & Certificate Management, Key, Secret, & Certificate Management

Name string

Specifies the name of the Management Template. Possible values are: Key Management, Secret Management, Certificate Management, Key & Secret Management, Key & Certificate Management, Secret & Certificate Management, Key, Secret, & Certificate Management

name string

Specifies the name of the Management Template. Possible values are: Key Management, Secret Management, Certificate Management, Key & Secret Management, Key & Certificate Management, Secret & Certificate Management, Key, Secret, & Certificate Management

name str

Specifies the name of the Management Template. Possible values are: Key Management, Secret Management, Certificate Management, Key & Secret Management, Key & Certificate Management, Secret & Certificate Management, Key, Secret, & Certificate Management

GetAccessPolicy Result

The following output properties are available:

CertificatePermissions List<string>

the certificate permissions for the access policy

Id string

The provider-assigned unique ID for this managed resource.

KeyPermissions List<string>

the key permissions for the access policy

Name string
SecretPermissions List<string>

the secret permissions for the access policy

CertificatePermissions []string

the certificate permissions for the access policy

Id string

The provider-assigned unique ID for this managed resource.

KeyPermissions []string

the key permissions for the access policy

Name string
SecretPermissions []string

the secret permissions for the access policy

certificatePermissions string[]

the certificate permissions for the access policy

id string

The provider-assigned unique ID for this managed resource.

keyPermissions string[]

the key permissions for the access policy

name string
secretPermissions string[]

the secret permissions for the access policy

certificate_permissions List[str]

the certificate permissions for the access policy

id str

The provider-assigned unique ID for this managed resource.

key_permissions List[str]

the key permissions for the access policy

name str
secret_permissions List[str]

the secret permissions for the access policy

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.