published on Tuesday, Nov 17, 2026 by Piers Karsenbarg
Nutanixpublished on Tuesday, Nov 17, 2026 by Piers Karsenbarg
Initiate change password request for a system user on a supported product.
WriteOnly credentials:
currentPassword,newPasswordare write-only. They are never stored in Terraform state. Re-supply them in configuration on every apply. Do not uselifecycle.ignore_changeson these attributes. See the WriteOnly Credentials guide for upgrade caveats.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pierskarsenbarg/nutanix";
const changeAdminAosPassword = new nutanix.PasswordChangeRequestV2("change_admin_aos_password", {
extId: "557329fc-6f28-44e4-8905-12c54d704ff9",
currentPassword: "M4zGWn^Haxs0za~",
newPassword: "*yk@1+U0syIr",
});
import pulumi
import pulumi_nutanix as nutanix
change_admin_aos_password = nutanix.PasswordChangeRequestV2("change_admin_aos_password",
ext_id="557329fc-6f28-44e4-8905-12c54d704ff9",
current_password="M4zGWn^Haxs0za~",
new_password="*yk@1+U0syIr")
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 {
_, err := nutanix.NewPasswordChangeRequestV2(ctx, "change_admin_aos_password", &nutanix.PasswordChangeRequestV2Args{
ExtId: pulumi.String("557329fc-6f28-44e4-8905-12c54d704ff9"),
CurrentPassword: pulumi.String("M4zGWn^Haxs0za~"),
NewPassword: pulumi.String("*yk@1+U0syIr"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = PiersKarsenbarg.Nutanix;
return await Deployment.RunAsync(() =>
{
var changeAdminAosPassword = new Nutanix.PasswordChangeRequestV2("change_admin_aos_password", new()
{
ExtId = "557329fc-6f28-44e4-8905-12c54d704ff9",
CurrentPassword = "M4zGWn^Haxs0za~",
NewPassword = "*yk@1+U0syIr",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.PasswordChangeRequestV2;
import com.pulumi.nutanix.PasswordChangeRequestV2Args;
import java.util.ArrayList;
import java.util.Arrays;
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) {
var changeAdminAosPassword = new PasswordChangeRequestV2("changeAdminAosPassword", PasswordChangeRequestV2Args.builder()
.extId("557329fc-6f28-44e4-8905-12c54d704ff9")
.currentPassword("M4zGWn^Haxs0za~")
.newPassword("*yk@1+U0syIr")
.build());
}
}
resources:
changeAdminAosPassword:
type: nutanix:PasswordChangeRequestV2
name: change_admin_aos_password
properties:
extId: 557329fc-6f28-44e4-8905-12c54d704ff9
currentPassword: M4zGWn^Haxs0za~
newPassword: '*yk@1+U0syIr'
terraform {
required_providers {
nutanix = {
source = "pulumi/nutanix"
}
}
}
resource "nutanix_password_change_request_v2" "change_admin_aos_password" {
lifecycle {
create_before_destroy = true
}
ext_id = "557329fc-6f28-44e4-8905-12c54d704ff9"
current_password = "M4zGWn^Haxs0za~"
new_password = "*yk@1+U0syIr"
}
Create PasswordChangeRequestV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PasswordChangeRequestV2(name: string, args: PasswordChangeRequestV2Args, opts?: CustomResourceOptions);@overload
def PasswordChangeRequestV2(resource_name: str,
args: PasswordChangeRequestV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def PasswordChangeRequestV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
ext_id: Optional[str] = None,
new_password: Optional[str] = None,
current_password: Optional[str] = None)func NewPasswordChangeRequestV2(ctx *Context, name string, args PasswordChangeRequestV2Args, opts ...ResourceOption) (*PasswordChangeRequestV2, error)public PasswordChangeRequestV2(string name, PasswordChangeRequestV2Args args, CustomResourceOptions? opts = null)
public PasswordChangeRequestV2(String name, PasswordChangeRequestV2Args args)
public PasswordChangeRequestV2(String name, PasswordChangeRequestV2Args args, CustomResourceOptions options)
type: nutanix:PasswordChangeRequestV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "nutanix_password_change_request_v2" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args PasswordChangeRequestV2Args
- 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 PasswordChangeRequestV2Args
- 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 PasswordChangeRequestV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PasswordChangeRequestV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PasswordChangeRequestV2Args
- 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 passwordChangeRequestV2Resource = new Nutanix.PasswordChangeRequestV2("passwordChangeRequestV2Resource", new()
{
ExtId = "string",
NewPassword = "string",
CurrentPassword = "string",
});
example, err := nutanix.NewPasswordChangeRequestV2(ctx, "passwordChangeRequestV2Resource", &nutanix.PasswordChangeRequestV2Args{
ExtId: pulumi.String("string"),
NewPassword: pulumi.String("string"),
CurrentPassword: pulumi.String("string"),
})
resource "nutanix_password_change_request_v2" "passwordChangeRequestV2Resource" {
lifecycle {
create_before_destroy = true
}
ext_id = "string"
new_password = "string"
current_password = "string"
}
var passwordChangeRequestV2Resource = new PasswordChangeRequestV2("passwordChangeRequestV2Resource", PasswordChangeRequestV2Args.builder()
.extId("string")
.newPassword("string")
.currentPassword("string")
.build());
password_change_request_v2_resource = nutanix.PasswordChangeRequestV2("passwordChangeRequestV2Resource",
ext_id="string",
new_password="string",
current_password="string")
const passwordChangeRequestV2Resource = new nutanix.PasswordChangeRequestV2("passwordChangeRequestV2Resource", {
extId: "string",
newPassword: "string",
currentPassword: "string",
});
type: nutanix:PasswordChangeRequestV2
properties:
currentPassword: string
extId: string
newPassword: string
PasswordChangeRequestV2 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 PasswordChangeRequestV2 resource accepts the following input properties:
- Ext
Id string - -(Required) External identifier of the system user password.
- New
Password string NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Required, WriteOnly) New password for a user account.
See detailed information in Nutanix Initiate password update for a system user V4.
- Current
Password string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Optional, WriteOnly) Existing password of a user account.
- Ext
Id string - -(Required) External identifier of the system user password.
- New
Password string NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Required, WriteOnly) New password for a user account.
See detailed information in Nutanix Initiate password update for a system user V4.
- Current
Password string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Optional, WriteOnly) Existing password of a user account.
- ext_
id string - -(Required) External identifier of the system user password.
- new_
password string NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Required, WriteOnly) New password for a user account.
See detailed information in Nutanix Initiate password update for a system user V4.
- current_
password string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Optional, WriteOnly) Existing password of a user account.
- ext
Id String - -(Required) External identifier of the system user password.
- new
Password String NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Required, WriteOnly) New password for a user account.
See detailed information in Nutanix Initiate password update for a system user V4.
- current
Password String - NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Optional, WriteOnly) Existing password of a user account.
- ext
Id string - -(Required) External identifier of the system user password.
- new
Password string NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Required, WriteOnly) New password for a user account.
See detailed information in Nutanix Initiate password update for a system user V4.
- current
Password string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Optional, WriteOnly) Existing password of a user account.
- ext_
id str - -(Required) External identifier of the system user password.
- new_
password str NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Required, WriteOnly) New password for a user account.
See detailed information in Nutanix Initiate password update for a system user V4.
- current_
password str - NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Optional, WriteOnly) Existing password of a user account.
- ext
Id String - -(Required) External identifier of the system user password.
- new
Password String NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Required, WriteOnly) New password for a user account.
See detailed information in Nutanix Initiate password update for a system user V4.
- current
Password String - NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Optional, WriteOnly) Existing password of a user account.
Outputs
All input properties are implicitly available as output properties. Additionally, the PasswordChangeRequestV2 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing PasswordChangeRequestV2 Resource
Get an existing PasswordChangeRequestV2 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?: PasswordChangeRequestV2State, opts?: CustomResourceOptions): PasswordChangeRequestV2@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
current_password: Optional[str] = None,
ext_id: Optional[str] = None,
new_password: Optional[str] = None) -> PasswordChangeRequestV2func GetPasswordChangeRequestV2(ctx *Context, name string, id IDInput, state *PasswordChangeRequestV2State, opts ...ResourceOption) (*PasswordChangeRequestV2, error)public static PasswordChangeRequestV2 Get(string name, Input<string> id, PasswordChangeRequestV2State? state, CustomResourceOptions? opts = null)public static PasswordChangeRequestV2 get(String name, Output<String> id, PasswordChangeRequestV2State state, CustomResourceOptions options)resources: existingPasswordChangeRequestV2: type: nutanix:PasswordChangeRequestV2 get: id: ${id}import {
to = nutanix_password_change_request_v2.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state PasswordChangeRequestV2State
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state PasswordChangeRequestV2State
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state PasswordChangeRequestV2State
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state PasswordChangeRequestV2State
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Current
Password string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Optional, WriteOnly) Existing password of a user account.
- Ext
Id string - -(Required) External identifier of the system user password.
- New
Password string NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Required, WriteOnly) New password for a user account.
See detailed information in Nutanix Initiate password update for a system user V4.
- Current
Password string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Optional, WriteOnly) Existing password of a user account.
- Ext
Id string - -(Required) External identifier of the system user password.
- New
Password string NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Required, WriteOnly) New password for a user account.
See detailed information in Nutanix Initiate password update for a system user V4.
- current_
password string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Optional, WriteOnly) Existing password of a user account.
- ext_
id string - -(Required) External identifier of the system user password.
- new_
password string NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Required, WriteOnly) New password for a user account.
See detailed information in Nutanix Initiate password update for a system user V4.
- current
Password String - NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Optional, WriteOnly) Existing password of a user account.
- ext
Id String - -(Required) External identifier of the system user password.
- new
Password String NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Required, WriteOnly) New password for a user account.
See detailed information in Nutanix Initiate password update for a system user V4.
- current
Password string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Optional, WriteOnly) Existing password of a user account.
- ext
Id string - -(Required) External identifier of the system user password.
- new
Password string NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Required, WriteOnly) New password for a user account.
See detailed information in Nutanix Initiate password update for a system user V4.
- current_
password str - NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Optional, WriteOnly) Existing password of a user account.
- ext_
id str - -(Required) External identifier of the system user password.
- new_
password str NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Required, WriteOnly) New password for a user account.
See detailed information in Nutanix Initiate password update for a system user V4.
- current
Password String - NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Optional, WriteOnly) Existing password of a user account.
- ext
Id String - -(Required) External identifier of the system user password.
- new
Password String NOTE: This field is write-only and its value will not be updated in state as part of read operations. -(Required, WriteOnly) New password for a user account.
See detailed information in Nutanix Initiate password update for a system user V4.
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanixTerraform Provider.
Nutanixpublished on Tuesday, Nov 17, 2026 by Piers Karsenbarg