Policy > Networking > Network Services > Advanced Load Balancing > Alb SSL Key And Certificates

Create or update a ALBsslkeyandcertificate

If a ALBsslkeyandcertificate with the alb-sslkeyandcertificate-id is not already present,
create a new ALBsslkeyandcertificate. If it already exists, update the
ALBsslkeyandcertificate. This is a full replace.
This API is only available when using VMware NSX-T.

Request:

Method:
PATCH
URI Path(s):
/policy/api/v1/infra/alb-ssl-key-and-certificates/<alb-sslkeyandcertificate-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
ALBSSLKeyAndCertificate+

Example Request:

{ "_revision": 0, "certificate": { "certificate": "-----BEGIN CERTIFICATE-----\nMIICjDCCAfWgAwIBAgIJAKkX1I191s88MA0GCSqGSIb3DQEBCwUAMF8xCzAJBgNV\nBAYTAlVTMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBX\naWRnaXRzIFB0eSBMdGQxGDAWBgNVBAMMD3JzYXNlcnZlcmltcG9ydDAeFw0xNjEx\nMjIwMjI0MTVaFw0zMDA4MDEwMjI0MTVaMF8xCzAJBgNVBAYTAlVTMRMwEQYDVQQI\nDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQx\nGDAWBgNVBAMMD3JzYXNlcnZlcmltcG9ydDCBnzANBgkqhkiG9w0BAQEFAAOBjQAw\ngYkCgYEAt+R2M4CxAOYK7Chd0JNWNZ9GoDq8Wg+G+6ekXf6HWKyZ5sUwRCZkuMUX\n2eNYtqZmF4kM2Oha0p/YDnd7VF77MF2+6G+1LVGaSpSiISQQQfc5/EWUQi53Grk3\nW5MhMYRhIPpsNVmExI7oDYAE68lTXT3cLxp3d9FzqWy8Hr+GICsCAwEAAaNQME4w\nHQYDVR0OBBYEFLRoTXgpr8xZ78rbgQiTaEUtiiDpMB8GA1UdIwQYMBaAFLRoTXgp\nr8xZ78rbgQiTaEUtiiDpMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQELBQADgYEA\nSA7/1GiysobFZPR5D4NuCxH4b2JaeQNzKbzp0x8zMrkrpnyi3W2vbbphuTODBaXZ\n870SscDK9t1ZbYF3cVShfsYoPgMTUgmUd06AiBo7jK8w4h3PphDg1PCxMXrbRWJw\nV9tDYJIOUUKSfoDxbV3rHy6QNngnD89t6opPIGsqkis:\n-----END CERTIFICATE-----", "not_after": "2030-08-01 02:24:15", "subject": { "common_name": "rsaserverimport", "country": "US", "distinguished_name": "C:US, ST:Some-State, O:Internet Widgits Pty Ltd, CN:rsaserverimport", "organization": "Internet Widgits Pty Ltd", "state": "Some-State" } }, "certificate_base64": false, "format": "SSL_PEM", "key": "-----BEGIN PRIVATE KEY-----\nMIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBALfkdjOAsQDmCuwo\nXdCTVjWfRqA6vFoPhvunpF3+h1ismebFMEQmZLjFF9njWLamZheJDNjoWtKf2A53\ne1Re+zBdvuhvtS1RmkqUoiEkEEH3OfxFlEIudxq5N1uTITGEYSD6bDVZhMSO6A2A\nBOvJU1093C8ad3fRc6lsvB6/hiArAgMBAAECgYAuAkYkmqUukV/YOD1IqyRdpC0a\nd7eaXNor6oSwU7dvUzfqShnKY0S+CenuxPf0MuvGJa8GMhRPMFjxPamosV7tDVH6\n1jZ2Zl4wo0siMk9x0/1uCeRuaj6ok4q2I5kuInyhoEMssJScek0DYtgD+toCjPY5\n2uAEjWPfiHLlTh2xwQJBAOErTTdf4A7Mhgtnebi9THosxrsiNgJpVRG50AHx6TlF\n2LbhgF4JSSM0vAMRfWazEmjvfYepLF9WODfGGJtkLosCQQDRElDaqyFgZWW2jlx0\nxnl4gRnixjnYEolm7YIZ3j3SkLP2Fzyg6K0B+tQ2+AonhFbmlf/qfP5AKeL8j8Pl\niqjhAkAFEjiW+q3NJ4YNU7NGGd1TExcWt9qHi1/DGnA42v3psE0FMWb2tzbSeCmT\n2Bz+5yGPA3XMTF8XdpWli+yZ81OpAkAo5pFkxffImO2WEjGqMq3O0krTH35vc+jn\ndu1tzBmCGQbrzM3ymLJH4d8kRdAOvQgXIh8nq3495TPfvuxO+pphAkA05TNWagth\nepSEtvECW8IGWemk+BZH6xB26jqx7EZbapJi/qmJlGaoaJvZvTtTnfgNb4U0X/FX\nYWEO+ECVfyNL\n-----END PRIVATE KEY-----\n", "key_base64": false, "key_params": { "algorithm": "SSL_KEY_ALGORITHM_RSA", "rsa_params": { "exponent": 65537, "key_size": "SSL_KEY_1024_BITS" } }, "name": "demo-nsx-ssl-key-certificate", "status": "SSL_CERTIFICATE_PENDING", "type": "SSL_CERTIFICATE_TYPE_VIRTUALSERVICE" }

Successful Response:

Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a

Example Response:

200 OK

Required Permissions:

crud

Feature:

policy_lb

Additional Errors: