1. Packages
  2. Nutanix
  3. API Docs
  4. UserKeyRevokeV2
Nutanix v0.10.0 published on Monday, Sep 1, 2025 by Piers Karsenbarg

nutanix.UserKeyRevokeV2

Explore with Pulumi AI

nutanix logo
Nutanix v0.10.0 published on Monday, Sep 1, 2025 by Piers Karsenbarg

    Provides Nutanix resource to Revoke the requested key for a user.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pierskarsenbarg/nutanix";
    
    // revoke key
    const revoke_key = new nutanix.UserKeyRevokeV2("revoke-key", {
        extId: "<USER_KEY_UUID>",
        userExtId: "<SERVICE_ACCOUNT_UUID>",
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    # revoke key
    revoke_key = nutanix.UserKeyRevokeV2("revoke-key",
        ext_id="<USER_KEY_UUID>",
        user_ext_id="<SERVICE_ACCOUNT_UUID>")
    
    package main
    
    import (
    	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// revoke key
    		_, err := nutanix.NewUserKeyRevokeV2(ctx, "revoke-key", &nutanix.UserKeyRevokeV2Args{
    			ExtId:     pulumi.String("<USER_KEY_UUID>"),
    			UserExtId: pulumi.String("<SERVICE_ACCOUNT_UUID>"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nutanix = PiersKarsenbarg.Nutanix;
    
    return await Deployment.RunAsync(() => 
    {
        // revoke key
        var revoke_key = new Nutanix.UserKeyRevokeV2("revoke-key", new()
        {
            ExtId = "<USER_KEY_UUID>",
            UserExtId = "<SERVICE_ACCOUNT_UUID>",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.UserKeyRevokeV2;
    import com.pulumi.nutanix.UserKeyRevokeV2Args;
    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) {
            // revoke key
            var revoke_key = new UserKeyRevokeV2("revoke-key", UserKeyRevokeV2Args.builder()
                .extId("<USER_KEY_UUID>")
                .userExtId("<SERVICE_ACCOUNT_UUID>")
                .build());
    
        }
    }
    
    resources:
      # revoke key
      revoke-key:
        type: nutanix:UserKeyRevokeV2
        properties:
          extId: <USER_KEY_UUID>
          userExtId: <SERVICE_ACCOUNT_UUID>
    

    Argument Reference

    The following arguments are supported:

    • user_ext_id: - ( Required ) External Identifier of the User.
    • ext_id: - ( Required ) External identifier of the key.

    Create UserKeyRevokeV2 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new UserKeyRevokeV2(name: string, args: UserKeyRevokeV2Args, opts?: CustomResourceOptions);
    @overload
    def UserKeyRevokeV2(resource_name: str,
                        args: UserKeyRevokeV2Args,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def UserKeyRevokeV2(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        ext_id: Optional[str] = None,
                        user_ext_id: Optional[str] = None)
    func NewUserKeyRevokeV2(ctx *Context, name string, args UserKeyRevokeV2Args, opts ...ResourceOption) (*UserKeyRevokeV2, error)
    public UserKeyRevokeV2(string name, UserKeyRevokeV2Args args, CustomResourceOptions? opts = null)
    public UserKeyRevokeV2(String name, UserKeyRevokeV2Args args)
    public UserKeyRevokeV2(String name, UserKeyRevokeV2Args args, CustomResourceOptions options)
    
    type: nutanix:UserKeyRevokeV2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args UserKeyRevokeV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args UserKeyRevokeV2Args
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args UserKeyRevokeV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UserKeyRevokeV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UserKeyRevokeV2Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var userKeyRevokeV2Resource = new Nutanix.UserKeyRevokeV2("userKeyRevokeV2Resource", new()
    {
        ExtId = "string",
        UserExtId = "string",
    });
    
    example, err := nutanix.NewUserKeyRevokeV2(ctx, "userKeyRevokeV2Resource", &nutanix.UserKeyRevokeV2Args{
    	ExtId:     pulumi.String("string"),
    	UserExtId: pulumi.String("string"),
    })
    
    var userKeyRevokeV2Resource = new UserKeyRevokeV2("userKeyRevokeV2Resource", UserKeyRevokeV2Args.builder()
        .extId("string")
        .userExtId("string")
        .build());
    
    user_key_revoke_v2_resource = nutanix.UserKeyRevokeV2("userKeyRevokeV2Resource",
        ext_id="string",
        user_ext_id="string")
    
    const userKeyRevokeV2Resource = new nutanix.UserKeyRevokeV2("userKeyRevokeV2Resource", {
        extId: "string",
        userExtId: "string",
    });
    
    type: nutanix:UserKeyRevokeV2
    properties:
        extId: string
        userExtId: string
    

    UserKeyRevokeV2 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The UserKeyRevokeV2 resource accepts the following input properties:

    ExtId string
    UserExtId string
    ExtId string
    UserExtId string
    extId String
    userExtId String
    extId string
    userExtId string
    extId String
    userExtId String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the UserKeyRevokeV2 resource produces the following output properties:

    ArgumentsMaps List<PiersKarsenbarg.Nutanix.Outputs.UserKeyRevokeV2ArgumentsMap>
    • The map of argument name to value.
    Code string
    • The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000.
    ErrorGroup string
    • The error group associated with this message of severity ERROR.
    Id string
    The provider-assigned unique ID for this managed resource.
    Locale string
    • Locale for this message. The default locale would be 'en-US'.
    Message string
    • The message string.
    Severity string
    • The message severity.
    ArgumentsMaps []UserKeyRevokeV2ArgumentsMap
    • The map of argument name to value.
    Code string
    • The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000.
    ErrorGroup string
    • The error group associated with this message of severity ERROR.
    Id string
    The provider-assigned unique ID for this managed resource.
    Locale string
    • Locale for this message. The default locale would be 'en-US'.
    Message string
    • The message string.
    Severity string
    • The message severity.
    argumentsMaps List<UserKeyRevokeV2ArgumentsMap>
    • The map of argument name to value.
    code String
    • The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000.
    errorGroup String
    • The error group associated with this message of severity ERROR.
    id String
    The provider-assigned unique ID for this managed resource.
    locale String
    • Locale for this message. The default locale would be 'en-US'.
    message String
    • The message string.
    severity String
    • The message severity.
    argumentsMaps UserKeyRevokeV2ArgumentsMap[]
    • The map of argument name to value.
    code string
    • The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000.
    errorGroup string
    • The error group associated with this message of severity ERROR.
    id string
    The provider-assigned unique ID for this managed resource.
    locale string
    • Locale for this message. The default locale would be 'en-US'.
    message string
    • The message string.
    severity string
    • The message severity.
    arguments_maps Sequence[UserKeyRevokeV2ArgumentsMap]
    • The map of argument name to value.
    code str
    • The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000.
    error_group str
    • The error group associated with this message of severity ERROR.
    id str
    The provider-assigned unique ID for this managed resource.
    locale str
    • Locale for this message. The default locale would be 'en-US'.
    message str
    • The message string.
    severity str
    • The message severity.
    argumentsMaps List<Property Map>
    • The map of argument name to value.
    code String
    • The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000.
    errorGroup String
    • The error group associated with this message of severity ERROR.
    id String
    The provider-assigned unique ID for this managed resource.
    locale String
    • Locale for this message. The default locale would be 'en-US'.
    message String
    • The message string.
    severity String
    • The message severity.

    Look up Existing UserKeyRevokeV2 Resource

    Get an existing UserKeyRevokeV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: UserKeyRevokeV2State, opts?: CustomResourceOptions): UserKeyRevokeV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arguments_maps: Optional[Sequence[UserKeyRevokeV2ArgumentsMapArgs]] = None,
            code: Optional[str] = None,
            error_group: Optional[str] = None,
            ext_id: Optional[str] = None,
            locale: Optional[str] = None,
            message: Optional[str] = None,
            severity: Optional[str] = None,
            user_ext_id: Optional[str] = None) -> UserKeyRevokeV2
    func GetUserKeyRevokeV2(ctx *Context, name string, id IDInput, state *UserKeyRevokeV2State, opts ...ResourceOption) (*UserKeyRevokeV2, error)
    public static UserKeyRevokeV2 Get(string name, Input<string> id, UserKeyRevokeV2State? state, CustomResourceOptions? opts = null)
    public static UserKeyRevokeV2 get(String name, Output<String> id, UserKeyRevokeV2State state, CustomResourceOptions options)
    resources:  _:    type: nutanix:UserKeyRevokeV2    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ArgumentsMaps List<PiersKarsenbarg.Nutanix.Inputs.UserKeyRevokeV2ArgumentsMap>
    • The map of argument name to value.
    Code string
    • The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000.
    ErrorGroup string
    • The error group associated with this message of severity ERROR.
    ExtId string
    Locale string
    • Locale for this message. The default locale would be 'en-US'.
    Message string
    • The message string.
    Severity string
    • The message severity.
    UserExtId string
    ArgumentsMaps []UserKeyRevokeV2ArgumentsMapArgs
    • The map of argument name to value.
    Code string
    • The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000.
    ErrorGroup string
    • The error group associated with this message of severity ERROR.
    ExtId string
    Locale string
    • Locale for this message. The default locale would be 'en-US'.
    Message string
    • The message string.
    Severity string
    • The message severity.
    UserExtId string
    argumentsMaps List<UserKeyRevokeV2ArgumentsMap>
    • The map of argument name to value.
    code String
    • The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000.
    errorGroup String
    • The error group associated with this message of severity ERROR.
    extId String
    locale String
    • Locale for this message. The default locale would be 'en-US'.
    message String
    • The message string.
    severity String
    • The message severity.
    userExtId String
    argumentsMaps UserKeyRevokeV2ArgumentsMap[]
    • The map of argument name to value.
    code string
    • The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000.
    errorGroup string
    • The error group associated with this message of severity ERROR.
    extId string
    locale string
    • Locale for this message. The default locale would be 'en-US'.
    message string
    • The message string.
    severity string
    • The message severity.
    userExtId string
    arguments_maps Sequence[UserKeyRevokeV2ArgumentsMapArgs]
    • The map of argument name to value.
    code str
    • The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000.
    error_group str
    • The error group associated with this message of severity ERROR.
    ext_id str
    locale str
    • Locale for this message. The default locale would be 'en-US'.
    message str
    • The message string.
    severity str
    • The message severity.
    user_ext_id str
    argumentsMaps List<Property Map>
    • The map of argument name to value.
    code String
    • The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000.
    errorGroup String
    • The error group associated with this message of severity ERROR.
    extId String
    locale String
    • Locale for this message. The default locale would be 'en-US'.
    message String
    • The message string.
    severity String
    • The message severity.
    userExtId String

    Supporting Types

    UserKeyRevokeV2ArgumentsMap, UserKeyRevokeV2ArgumentsMapArgs

    Package Details

    Repository
    nutanix pierskarsenbarg/pulumi-nutanix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the nutanix Terraform Provider.
    nutanix logo
    Nutanix v0.10.0 published on Monday, Sep 1, 2025 by Piers Karsenbarg
      AI Agentic Workflows: Register now