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:
PUT
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:
Content-type: application/json
Response Body:
ALBSSLKeyAndCertificate+

Example Response:

{ "_create_time": 1598509603165, "_create_user": "admin", "_last_modified_time": 1598509603171, "_last_modified_user": "admin", "_protection": "NOT_PROTECTED", "_revision": 0, "_system_owned": false, "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-----", "days_until_expire": 365, "expiry_status": "SSL_CERTIFICATE_GOOD", "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, "display_name": "demo-nsx-ssl-key-certificate", "enable_ocsp_stapling": false, "format": "SSL_PEM", "id": "demo-nsx-ssl-key-certificate", "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" } }, "marked_for_delete": false, "name": "demo-nsx-ssl-key-certificate", "overridden": false, "parent_path": "/infra", "path": "/infra/alb-ssl-key-and-certificates/demo-nsx-ssl-key-certificate", "relative_path": "demo-nsx-ssl-key-certificate", "resource_type": "ALBSSLKeyAndCertificate", "status": "SSL_CERTIFICATE_FINISHED", "type": "SSL_CERTIFICATE_TYPE_VIRTUALSERVICE", "unique_id": "2d085c9d-98e4-4141-ad78-59f5669d1739" }

Required Permissions:

crud

Feature:

policy_lb

Additional Errors: