nsxt_principal_identities – Register a name-certificate combination

New in version 2.7.

Synopsis

  • Associates a principal’s name with a certificate that is used to authenticate.

Parameters

Parameter Choices/Defaults Comments
certificate_name
string / required
Display name of the certificate attached
description
string
Description of this resource
display_name
string / required
Identifier to use when displaying entity in logs or GUI
hostname
string / required
Deployed NSX manager hostname.
id
string
Unique identifier of this resource
is_protected
boolean
    Choices:
  • no
  • yes
Description of this resource
name
string / required
Name of the principal
node_id
string / required
Unique node-id
password
string / required
The password to authenticate with the NSX manager.
resource_type
string
Must be set to the value PrincipalIdentity
role
string / required
Role
state
- / required
    Choices:
  • present
  • absent
State can be either 'present' or 'absent'. 'present' is used to create or update resource. 'absent' is used to delete resource.
tags
Array of Tag
Opaque identifier meaninful to API user
username
string / required
The username to authenticate with the NSX manager.

Examples

- hosts: 127.0.0.1
  connection: local
  become: yes
  vars_files:
    - answerfile.yml
  tasks:
    - name: Register a name-certificate combination
      nsxt_principal_identities:
        hostname: "{{hostname}}"
        username: "{{username}}"
        password: "{{password}}"
        validate_certs: False
        display_name: "Akhilesh_principal_display_name"
        name: "Akhilesh_principal_name"
        node_id: "node-1"
        role: "enterprise_admin"
        certificate_name: "Akhilesh_cert"
        state: "present"

Status

  • This module is not guaranteed to have a backwards compatible interface. [preview]

  • This module is maintained by the Ansible Community. [community]

Authors

  • Kommireddy Akhilesh