Crypto ca import for mytrustpoint pkcs12

This section provides details on DMEization of crypto ca import CLI.

Crypto ca import for mytrustpoing pkcs12
POST http://10.126.67.45/api/mo/sys/action.json
{
"actionLSubj": {
"attributes": {
"dn": "sys/action/lsubj-[sys/userext]"
}
"children": [{
"aaaUserEpCryptoCaImportLTask": {
"attributes": {
"adminSt": "start",
"dn": "sys/action/lsubj-[sys/userext]/aaaUserEpCryptoCaImportLTask",
"trustpoint": "test",
"fileFormat": "pkcs12",
"sourceFilePath": "/bootflash/server.pfx",
"passphrase": "cisco123",
"freq": "one-shot"
}
}
}]
}
}

The CLI command below is the equivalent of the payload example displayed in the pane on the right.

crypto ca import <trustpoint-label> pkcs12 bootflash:<file> <passphrase>

Note: The property information for this example was added in Release 10.2(1)F.

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html