saltext.vmware.modules.nsxt_compute_manager#
Execution module for NSX-T compute manager registration and de-registration
- saltext.vmware.modules.nsxt_compute_manager.get(hostname, username, password, verify_ssl=True, cert=None, cert_common_name=None, cursor=None, included_fields=None, origin_type=None, page_size=None, server=None, sort_by=None, sort_ascending=None)[source]#
Lists compute managers registered to NSX Manager
CLI Example:
salt vm_minion nsxt_compute_manager.get hostname=nsxt-manager.local username=admin ...
- hostname
The host name of NSX-T manager
- username
Username to connect to NSX-T manager
- password
Password to connect to NSX-T manager
- verify_ssl
(Optional) Option to enable/disable SSL verification. Enabled by default. If set to False, the certificate validation is skipped.
- cert
(Optional) Path to the SSL certificate file to connect to NSX-T manager. The certificate can be retrieved from browser.
- cert_common_name
(Optional) By default, the hostname parameter and the common name in certificate is compared for host name verification. If the client certificate common name and hostname do not match (in case of self-signed certificates), specify the certificate common name as part of this parameter. This value is then used to compare against certificate common name.
- cursor
(Optional) Opaque cursor to be used for getting next page of records (supplied by current result page)
- included_fields
(Optional) Comma separated list of fields that should be included in query result
- origin_type
(Optional) Compute manager type like vCenter
- page_size
(Optional) Maximum number of results to return in this page
- server
(Optional) IP address or hostname of compute manager
- sort_by
(Optional) Field by which records are sorted
- sort_ascending
(Optional) Boolean value to sort result in ascending order
- saltext.vmware.modules.nsxt_compute_manager.get_by_display_name(hostname, username, password, display_name, verify_ssl=True, cert=None, cert_common_name=None, cursor=None, included_fields=None, origin_type=None, page_size=None, server=None, sort_by=None, sort_ascending=None)[source]#
Lists compute managers registered to NSX Manager by given display_name
CLI Example:
salt vm_minion nsxt_compute_manager.get_by_display_name hostname=nsxt-manager.local username=admin ...
- hostname
The host name of NSX-T manager
- username
Username to connect to NSX-T manager
- password
Password to connect to NSX-T manager
- display_name
Display-name of the compute manager
- verify_ssl
(Optional) Option to enable/disable SSL verification. Enabled by default. If set to False, the certificate validation is skipped.
- cert
(Optional) Path to the SSL certificate file to connect to NSX-T manager. The certificate can be retrieved from browser.
- cert_common_name
(Optional) By default, the hostname parameter and the common name in certificate is compared for host name verification. If the client certificate common name and hostname do not match (in case of self-signed certificates), specify the certificate common name as part of this parameter. This value is then used to compare against certificate common name.
- cursor
(Optional) Opaque cursor to be used for getting next page of records (supplied by current result page)
- included_fields
(Optional) Comma separated list of fields that should be included in query result
- origin_type
(Optional) Compute manager type like vCenter
- page_size
(Optional) Maximum number of results to return in this page
- server
(Optional) IP address or hostname of compute manager
- sort_by
(Optional) Field by which records are sorted
- sort_ascending
(Optional) Boolean value to sort result in ascending order
- saltext.vmware.modules.nsxt_compute_manager.register(hostname, username, password, compute_manager_server, credential, server_origin_type='vCenter', display_name=None, description=None, set_as_oidc_provider=None, verify_ssl=True, cert=None, cert_common_name=None)[source]#
Lists compute managers registered to NSX Manager
CLI Example:
salt vm_minion nsxt_compute_manager.register hostname=nsxt-manager.local username=admin ...
- hostname
The host name of NSX-T manager
- username
Username to connect to NSX-T manager
- password
Password to connect to NSX-T manager
- compute_manager_server
Compute manager server FQDN or IP
- credential
An object which contains credential details to validate compute manager Sample usage in sls file:
credential: credential_type: "UsernamePasswordLoginCredential" username: "user" password: "pass" thumbprint: "36:XX:XX:XX:XX:XX:XX66"
- credential_type
Type of credential provided. For now only UsernamePasswordLoginCredential is supported.
- username
Username of the compute manager
- password
Password of the compute manager
- thumbprint
Thumbprint of the compute manager
- server_origin_type
(Optional) Server origin type of the compute manager. Default is vCenter
- display_name
(Optional) Display name of the compute manager
- description
(Optional) description for the compute manager
- set_as_oidc_provider
(Optional) Specifies whether compute manager has been set as OIDC provider. Default is false If the compute manager is VC and need to set set as OIDC provider for NSX then this flag should be set as true.
- verify_ssl
(Optional) Option to enable/disable SSL verification. Enabled by default. If set to False, the certificate validation is skipped.
- cert
(Optional) Path to the SSL certificate file to connect to NSX-T manager. The certificate can be retrieved from browser.
- cert_common_name
(Optional) By default, the hostname parameter and the common name in certificate is compared for host name verification. If the client certificate common name and hostname do not match (in case of self-signed certificates), specify the certificate common name as part of this parameter. This value is then used to compare against certificate common name.
- saltext.vmware.modules.nsxt_compute_manager.update(hostname, username, password, compute_manager_server, compute_manager_id, credential, compute_manager_revision, server_origin_type='vCenter', verify_ssl=True, cert=None, cert_common_name=None, display_name=None, description=None, set_as_oidc_provider=None)[source]#
Updates compute manager registered to NSX Manager
CLI Example:
salt vm_minion nsxt_compute_manager.update hostname=nsxt-manager.local username=admin ...
- hostname
The host name of NSX-T manager
- username
Username to connect to NSX-T manager
- password
Password to connect to NSX-T manager
- compute_manager_server
Compute manager server FQDN or IP
- compute_manager_id
Unique Id of the compute manager provided by NSX-T
- compute_manager_revision
Latest value of _revision property for compute manager.
- credential
An object which contains credential details to validate compute manager Sample usage in sls file:
credential: credential_type: "UsernamePasswordLoginCredential" username: "user" password: "pass" thumbprint: "36:XX:XX:XX:XX:XX:XX66"
- credential_type
Type of credential provided. For now only UsernamePasswordLoginCredential is supported.
- username
Username of the compute manager
- password
Password of the compute manager
- thumbprint
Thumbprint of the compute manager
- server_origin_type
(Optional) Server origin type of the compute manager. Default is vCenter
- display_name
(Optional) Display name of the compute manager
- description
(Optional) description for the compute manager
- set_as_oidc_provider
(Optional) Specifies whether compute manager has been set as OIDC provider. Default is false If the compute manager is VC and need to set set as OIDC provider for NSX then this flag should be set as true.
- verify_ssl
(Optional) Option to enable/disable SSL verification. Enabled by default. If set to False, the certificate validation is skipped.
- cert
(Optional) Path to the SSL certificate file to connect to NSX-T manager. The certificate can be retrieved from browser.
- cert_common_name
(Optional) By default, the hostname parameter and the common name in certificate is compared for host name verification. If the client certificate common name and hostname do not match (in case of self-signed certificates), specify the certificate common name as part of this parameter. This value is then used to compare against certificate common name.
- saltext.vmware.modules.nsxt_compute_manager.remove(hostname, username, password, compute_manager_id, verify_ssl=True, cert=None, cert_common_name=None)[source]#
De-registers compute manager from NSX-T if exists
CLI Example:
salt vm_minion nsxt_compute_manager.remove hostname=nsxt-manager.local username=admin ...
- hostname
The host name of NSX-T manager
- username
Username to connect to NSX-T manager
- password
Password to connect to NSX-T manager
- compute_manager_id
NSX-T unique id for the compute manager. Needed in case of updating compute manager details
- verify_ssl
(Optional) Option to enable/disable SSL verification. Enabled by default. If set to False, the certificate validation is skipped.
- cert
(Optional) Path to the SSL certificate file to connect to NSX-T manager. The certificate can be retrieved from browser.
- cert_common_name
(Optional) By default, the hostname parameter and the common name in certificate is compared for host name verification. If the client certificate common name and hostname do not match (in case of self-signed certificates), specify the certificate common name as part of this parameter. This value is then used to compare against certificate common name.