vcfops_credential¶
VCF Operations — stored credentials and credential kinds.
Credentials are the named secret records that adapter instances bind to when they connect to a target (a vCenter, an NSX manager, etc.). Credential kinds describe the fields each credential type requires (username, password, port, etc.).
- saltext.vcf.clients.vcfops_credential.create(opts, credential_spec, profile=None)[source]¶
Create a credential record.
credential_spec example:
{ "name": "vcenter-prod", "adapterKindKey": "VMWARE", "credentialKindKey": "PRINCIPALCREDENTIAL", "fields": [ {"name": "USER", "value": "administrator@vsphere.local"}, {"name": "PASSWORD", "value": "..."} ] }