oci-keymanagement 2.130.0 → 2.131.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.d.ts +50 -0
- package/lib/client.js +338 -0
- package/lib/client.js.map +1 -1
- package/lib/model/audit-logging-config.d.ts +38 -0
- package/lib/model/audit-logging-config.js +30 -0
- package/lib/model/audit-logging-config.js.map +1 -0
- package/lib/model/audit-logging.d.ts +30 -0
- package/lib/model/audit-logging.js +30 -0
- package/lib/model/audit-logging.js.map +1 -0
- package/lib/model/create-hsm-cluster-details.d.ts +2 -0
- package/lib/model/create-hsm-cluster-details.js +30 -2
- package/lib/model/create-hsm-cluster-details.js.map +1 -1
- package/lib/model/enable-audit-mgmt-logging.d.ts +61 -0
- package/lib/model/enable-audit-mgmt-logging.js +45 -0
- package/lib/model/enable-audit-mgmt-logging.js.map +1 -0
- package/lib/model/hsm-cluster-audit-logging-info.d.ts +62 -0
- package/lib/model/hsm-cluster-audit-logging-info.js +47 -0
- package/lib/model/hsm-cluster-audit-logging-info.js.map +1 -0
- package/lib/model/hsm-cluster-pending-create-dynamic-group.d.ts +30 -0
- package/lib/model/hsm-cluster-pending-create-dynamic-group.js +30 -0
- package/lib/model/hsm-cluster-pending-create-dynamic-group.js.map +1 -0
- package/lib/model/hsm-cluster-pending-instructions.d.ts +28 -0
- package/lib/model/hsm-cluster-pending-instructions.js +58 -0
- package/lib/model/hsm-cluster-pending-instructions.js.map +1 -0
- package/lib/model/hsm-cluster.d.ts +3 -0
- package/lib/model/hsm-cluster.js +36 -2
- package/lib/model/hsm-cluster.js.map +1 -1
- package/lib/model/index.d.ts +20 -0
- package/lib/model/index.js +22 -2
- package/lib/model/index.js.map +1 -1
- package/lib/model/initiate-audit-logging-details.d.ts +34 -0
- package/lib/model/initiate-audit-logging-details.js +30 -0
- package/lib/model/initiate-audit-logging-details.js.map +1 -0
- package/lib/model/update-audit-logging-destination-details.d.ts +34 -0
- package/lib/model/update-audit-logging-destination-details.js +30 -0
- package/lib/model/update-audit-logging-destination-details.js.map +1 -0
- package/lib/model/update-registered-vault-for-mtls-details.d.ts +26 -0
- package/lib/model/update-registered-vault-for-mtls-details.js +30 -0
- package/lib/model/update-registered-vault-for-mtls-details.js.map +1 -0
- package/lib/model/vault-mtls-update-response.d.ts +43 -0
- package/lib/model/vault-mtls-update-response.js +40 -0
- package/lib/model/vault-mtls-update-response.js.map +1 -0
- package/lib/request/disable-audit-mgmt-logging-request.d.ts +48 -0
- package/lib/request/disable-audit-mgmt-logging-request.js +15 -0
- package/lib/request/disable-audit-mgmt-logging-request.js.map +1 -0
- package/lib/request/enable-audit-mgmt-logging-request.d.ts +48 -0
- package/lib/request/enable-audit-mgmt-logging-request.js +15 -0
- package/lib/request/enable-audit-mgmt-logging-request.js.map +1 -0
- package/lib/request/index.d.ts +10 -0
- package/lib/request/index.js.map +1 -1
- package/lib/request/initiate-audit-logging-request.d.ts +53 -0
- package/lib/request/initiate-audit-logging-request.js +15 -0
- package/lib/request/initiate-audit-logging-request.js.map +1 -0
- package/lib/request/update-audit-logging-destination-request.d.ts +53 -0
- package/lib/request/update-audit-logging-destination-request.js +15 -0
- package/lib/request/update-audit-logging-destination-request.js.map +1 -0
- package/lib/request/update-registered-vault-for-mtls-request.d.ts +43 -0
- package/lib/request/update-registered-vault-for-mtls-request.js +15 -0
- package/lib/request/update-registered-vault-for-mtls-request.js.map +1 -0
- package/lib/response/disable-audit-mgmt-logging-response.d.ts +22 -0
- package/lib/response/disable-audit-mgmt-logging-response.js +15 -0
- package/lib/response/disable-audit-mgmt-logging-response.js.map +1 -0
- package/lib/response/enable-audit-mgmt-logging-response.d.ts +31 -0
- package/lib/response/enable-audit-mgmt-logging-response.js +15 -0
- package/lib/response/enable-audit-mgmt-logging-response.js.map +1 -0
- package/lib/response/index.d.ts +10 -0
- package/lib/response/initiate-audit-logging-response.d.ts +29 -0
- package/lib/response/initiate-audit-logging-response.js +15 -0
- package/lib/response/initiate-audit-logging-response.js.map +1 -0
- package/lib/response/update-audit-logging-destination-response.d.ts +33 -0
- package/lib/response/update-audit-logging-destination-response.js +15 -0
- package/lib/response/update-audit-logging-destination-response.js.map +1 -0
- package/lib/response/update-registered-vault-for-mtls-response.d.ts +29 -0
- package/lib/response/update-registered-vault-for-mtls-response.js +15 -0
- package/lib/response/update-registered-vault-for-mtls-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.d.ts
CHANGED
|
@@ -404,6 +404,16 @@ export declare class KmsHsmClusterClient {
|
|
|
404
404
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/keymanagement/CreateHsmCluster.ts.html |here} to see how to use CreateHsmCluster API.
|
|
405
405
|
*/
|
|
406
406
|
createHsmCluster(createHsmClusterRequest: requests.CreateHsmClusterRequest): Promise<responses.CreateHsmClusterResponse>;
|
|
407
|
+
/**
|
|
408
|
+
* Disables management audit logging for the given HSM Cluster resource. This requires the Crypto Officer (CO) password. This operation is idempotent: if audit logging is already disabled, the call is a no-op and returns success.
|
|
409
|
+
*
|
|
410
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
411
|
+
* @param DisableAuditMgmtLoggingRequest
|
|
412
|
+
* @return DisableAuditMgmtLoggingResponse
|
|
413
|
+
* @throws OciError when an error occurs
|
|
414
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/keymanagement/DisableAuditMgmtLogging.ts.html |here} to see how to use DisableAuditMgmtLogging API.
|
|
415
|
+
*/
|
|
416
|
+
disableAuditMgmtLogging(disableAuditMgmtLoggingRequest: requests.DisableAuditMgmtLoggingRequest): Promise<responses.DisableAuditMgmtLoggingResponse>;
|
|
407
417
|
/**
|
|
408
418
|
* Retrieves the certificate signing request for the designated HSM Cluster resource.
|
|
409
419
|
*
|
|
@@ -414,6 +424,18 @@ export declare class KmsHsmClusterClient {
|
|
|
414
424
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/keymanagement/DownloadCertificateSigningRequest.ts.html |here} to see how to use DownloadCertificateSigningRequest API.
|
|
415
425
|
*/
|
|
416
426
|
downloadCertificateSigningRequest(downloadCertificateSigningRequestRequest: requests.DownloadCertificateSigningRequestRequest): Promise<responses.DownloadCertificateSigningRequestResponse>;
|
|
427
|
+
/**
|
|
428
|
+
* Validates that the Dynamic Group and bucket policy supplied during EnableAuditLogging / CreateHsmCluster are now in place.
|
|
429
|
+
* If the cluster is in WAITING_FOR_CUSTOMER, and validation is successful, status is progressed and a work request is started.
|
|
430
|
+
* If the cluster has already progressed past that gate, the call is idempotent and returns 202 with the current cluster representation.
|
|
431
|
+
*
|
|
432
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
433
|
+
* @param EnableAuditMgmtLoggingRequest
|
|
434
|
+
* @return EnableAuditMgmtLoggingResponse
|
|
435
|
+
* @throws OciError when an error occurs
|
|
436
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/keymanagement/EnableAuditMgmtLogging.ts.html |here} to see how to use EnableAuditMgmtLogging API.
|
|
437
|
+
*/
|
|
438
|
+
enableAuditMgmtLogging(enableAuditMgmtLoggingRequest: requests.EnableAuditMgmtLoggingRequest): Promise<responses.EnableAuditMgmtLoggingResponse>;
|
|
417
439
|
/**
|
|
418
440
|
* Retrieves configuration details for the specified HSM Cluster resource.
|
|
419
441
|
* <p>
|
|
@@ -449,6 +471,15 @@ export declare class KmsHsmClusterClient {
|
|
|
449
471
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/keymanagement/GetPreCoUserCredentials.ts.html |here} to see how to use GetPreCoUserCredentials API.
|
|
450
472
|
*/
|
|
451
473
|
getPreCoUserCredentials(getPreCoUserCredentialsRequest: requests.GetPreCoUserCredentialsRequest): Promise<responses.GetPreCoUserCredentialsResponse>;
|
|
474
|
+
/**
|
|
475
|
+
* Initiates the process of enabling audit logs for a HSM cluster resource by taking in the required parameters.
|
|
476
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
477
|
+
* @param InitiateAuditLoggingRequest
|
|
478
|
+
* @return InitiateAuditLoggingResponse
|
|
479
|
+
* @throws OciError when an error occurs
|
|
480
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/keymanagement/InitiateAuditLogging.ts.html |here} to see how to use InitiateAuditLogging API.
|
|
481
|
+
*/
|
|
482
|
+
initiateAuditLogging(initiateAuditLoggingRequest: requests.InitiateAuditLoggingRequest): Promise<responses.InitiateAuditLoggingResponse>;
|
|
452
483
|
/**
|
|
453
484
|
* Lists all HSM cluster resources contained within the specified compartment.
|
|
454
485
|
* <p>
|
|
@@ -485,6 +516,15 @@ export declare class KmsHsmClusterClient {
|
|
|
485
516
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/keymanagement/ScheduleHsmClusterDeletion.ts.html |here} to see how to use ScheduleHsmClusterDeletion API.
|
|
486
517
|
*/
|
|
487
518
|
scheduleHsmClusterDeletion(scheduleHsmClusterDeletionRequest: requests.ScheduleHsmClusterDeletionRequest): Promise<responses.ScheduleHsmClusterDeletionResponse>;
|
|
519
|
+
/**
|
|
520
|
+
* update bucket details of management audit logs for a HSM cluster resource by hsmClusterId.
|
|
521
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
522
|
+
* @param UpdateAuditLoggingDestinationRequest
|
|
523
|
+
* @return UpdateAuditLoggingDestinationResponse
|
|
524
|
+
* @throws OciError when an error occurs
|
|
525
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/keymanagement/UpdateAuditLoggingDestination.ts.html |here} to see how to use UpdateAuditLoggingDestination API.
|
|
526
|
+
*/
|
|
527
|
+
updateAuditLoggingDestination(updateAuditLoggingDestinationRequest: requests.UpdateAuditLoggingDestinationRequest): Promise<responses.UpdateAuditLoggingDestinationResponse>;
|
|
488
528
|
/**
|
|
489
529
|
* Modifies properties of an HSM cluster resource, including `displayName`, `freeformTags` and `definedTags`.
|
|
490
530
|
* <p>
|
|
@@ -1292,6 +1332,16 @@ export declare class KmsVaultClient {
|
|
|
1292
1332
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/keymanagement/ScheduleVaultDeletion.ts.html |here} to see how to use ScheduleVaultDeletion API.
|
|
1293
1333
|
*/
|
|
1294
1334
|
scheduleVaultDeletion(scheduleVaultDeletionRequest: requests.ScheduleVaultDeletionRequest): Promise<responses.ScheduleVaultDeletionResponse>;
|
|
1335
|
+
/**
|
|
1336
|
+
* Update fleet ids for the registered mTLS vault.
|
|
1337
|
+
*
|
|
1338
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1339
|
+
* @param UpdateRegisteredVaultForMtlsRequest
|
|
1340
|
+
* @return UpdateRegisteredVaultForMtlsResponse
|
|
1341
|
+
* @throws OciError when an error occurs
|
|
1342
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/keymanagement/UpdateRegisteredVaultForMtls.ts.html |here} to see how to use UpdateRegisteredVaultForMtls API.
|
|
1343
|
+
*/
|
|
1344
|
+
updateRegisteredVaultForMtls(updateRegisteredVaultForMtlsRequest: requests.UpdateRegisteredVaultForMtlsRequest): Promise<responses.UpdateRegisteredVaultForMtlsResponse>;
|
|
1295
1345
|
/**
|
|
1296
1346
|
* Updates the properties of a vault. Specifically, you can update the
|
|
1297
1347
|
* `displayName`, `freeformTags`, and `definedTags` properties. Furthermore,
|
package/lib/client.js
CHANGED
|
@@ -1387,6 +1387,68 @@ class KmsHsmClusterClient {
|
|
|
1387
1387
|
}
|
|
1388
1388
|
});
|
|
1389
1389
|
}
|
|
1390
|
+
/**
|
|
1391
|
+
* Disables management audit logging for the given HSM Cluster resource. This requires the Crypto Officer (CO) password. This operation is idempotent: if audit logging is already disabled, the call is a no-op and returns success.
|
|
1392
|
+
*
|
|
1393
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1394
|
+
* @param DisableAuditMgmtLoggingRequest
|
|
1395
|
+
* @return DisableAuditMgmtLoggingResponse
|
|
1396
|
+
* @throws OciError when an error occurs
|
|
1397
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/keymanagement/DisableAuditMgmtLogging.ts.html |here} to see how to use DisableAuditMgmtLogging API.
|
|
1398
|
+
*/
|
|
1399
|
+
disableAuditMgmtLogging(disableAuditMgmtLoggingRequest) {
|
|
1400
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1401
|
+
if (this.logger)
|
|
1402
|
+
this.logger.debug("Calling operation KmsHsmClusterClient#disableAuditMgmtLogging.");
|
|
1403
|
+
const operationName = "disableAuditMgmtLogging";
|
|
1404
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/DisableAuditMgmtLogging";
|
|
1405
|
+
const pathParams = {
|
|
1406
|
+
"{hsmClusterId}": disableAuditMgmtLoggingRequest.hsmClusterId
|
|
1407
|
+
};
|
|
1408
|
+
const queryParams = {};
|
|
1409
|
+
let headerParams = {
|
|
1410
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1411
|
+
"if-match": disableAuditMgmtLoggingRequest.ifMatch,
|
|
1412
|
+
"opc-request-id": disableAuditMgmtLoggingRequest.opcRequestId,
|
|
1413
|
+
"opc-retry-token": disableAuditMgmtLoggingRequest.opcRetryToken
|
|
1414
|
+
};
|
|
1415
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1416
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, disableAuditMgmtLoggingRequest.retryConfiguration, specRetryConfiguration);
|
|
1417
|
+
if (this.logger)
|
|
1418
|
+
retrier.logger = this.logger;
|
|
1419
|
+
const request = yield oci_common_2.composeRequest({
|
|
1420
|
+
baseEndpoint: this._endpoint,
|
|
1421
|
+
defaultHeaders: this._defaultHeaders,
|
|
1422
|
+
path: "/20180608/hsmClusters/{hsmClusterId}/actions/disableAuditMgmtLogging",
|
|
1423
|
+
method: "POST",
|
|
1424
|
+
pathParams: pathParams,
|
|
1425
|
+
headerParams: headerParams,
|
|
1426
|
+
queryParams: queryParams
|
|
1427
|
+
});
|
|
1428
|
+
try {
|
|
1429
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1430
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1431
|
+
responseObject: {},
|
|
1432
|
+
responseHeaders: [
|
|
1433
|
+
{
|
|
1434
|
+
value: response.headers.get("opc-request-id"),
|
|
1435
|
+
key: "opcRequestId",
|
|
1436
|
+
dataType: "string"
|
|
1437
|
+
},
|
|
1438
|
+
{
|
|
1439
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1440
|
+
key: "opcWorkRequestId",
|
|
1441
|
+
dataType: "string"
|
|
1442
|
+
}
|
|
1443
|
+
]
|
|
1444
|
+
});
|
|
1445
|
+
return sdkResponse;
|
|
1446
|
+
}
|
|
1447
|
+
catch (err) {
|
|
1448
|
+
throw err;
|
|
1449
|
+
}
|
|
1450
|
+
});
|
|
1451
|
+
}
|
|
1390
1452
|
/**
|
|
1391
1453
|
* Retrieves the certificate signing request for the designated HSM Cluster resource.
|
|
1392
1454
|
*
|
|
@@ -1453,6 +1515,79 @@ class KmsHsmClusterClient {
|
|
|
1453
1515
|
}
|
|
1454
1516
|
});
|
|
1455
1517
|
}
|
|
1518
|
+
/**
|
|
1519
|
+
* Validates that the Dynamic Group and bucket policy supplied during EnableAuditLogging / CreateHsmCluster are now in place.
|
|
1520
|
+
* If the cluster is in WAITING_FOR_CUSTOMER, and validation is successful, status is progressed and a work request is started.
|
|
1521
|
+
* If the cluster has already progressed past that gate, the call is idempotent and returns 202 with the current cluster representation.
|
|
1522
|
+
*
|
|
1523
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1524
|
+
* @param EnableAuditMgmtLoggingRequest
|
|
1525
|
+
* @return EnableAuditMgmtLoggingResponse
|
|
1526
|
+
* @throws OciError when an error occurs
|
|
1527
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/keymanagement/EnableAuditMgmtLogging.ts.html |here} to see how to use EnableAuditMgmtLogging API.
|
|
1528
|
+
*/
|
|
1529
|
+
enableAuditMgmtLogging(enableAuditMgmtLoggingRequest) {
|
|
1530
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1531
|
+
if (this.logger)
|
|
1532
|
+
this.logger.debug("Calling operation KmsHsmClusterClient#enableAuditMgmtLogging.");
|
|
1533
|
+
const operationName = "enableAuditMgmtLogging";
|
|
1534
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/EnableAuditMgmtLogging";
|
|
1535
|
+
const pathParams = {
|
|
1536
|
+
"{hsmClusterId}": enableAuditMgmtLoggingRequest.hsmClusterId
|
|
1537
|
+
};
|
|
1538
|
+
const queryParams = {};
|
|
1539
|
+
let headerParams = {
|
|
1540
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1541
|
+
"if-match": enableAuditMgmtLoggingRequest.ifMatch,
|
|
1542
|
+
"opc-retry-token": enableAuditMgmtLoggingRequest.opcRetryToken,
|
|
1543
|
+
"opc-request-id": enableAuditMgmtLoggingRequest.opcRequestId
|
|
1544
|
+
};
|
|
1545
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1546
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, enableAuditMgmtLoggingRequest.retryConfiguration, specRetryConfiguration);
|
|
1547
|
+
if (this.logger)
|
|
1548
|
+
retrier.logger = this.logger;
|
|
1549
|
+
const request = yield oci_common_2.composeRequest({
|
|
1550
|
+
baseEndpoint: this._endpoint,
|
|
1551
|
+
defaultHeaders: this._defaultHeaders,
|
|
1552
|
+
path: "/20180608/hsmClusters/{hsmClusterId}/actions/enableAuditMgmtLogging",
|
|
1553
|
+
method: "POST",
|
|
1554
|
+
pathParams: pathParams,
|
|
1555
|
+
headerParams: headerParams,
|
|
1556
|
+
queryParams: queryParams
|
|
1557
|
+
});
|
|
1558
|
+
try {
|
|
1559
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1560
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1561
|
+
responseObject: {},
|
|
1562
|
+
body: yield response.json(),
|
|
1563
|
+
bodyKey: "enableAuditMgmtLogging",
|
|
1564
|
+
bodyModel: model.EnableAuditMgmtLogging,
|
|
1565
|
+
type: "model.EnableAuditMgmtLogging",
|
|
1566
|
+
responseHeaders: [
|
|
1567
|
+
{
|
|
1568
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1569
|
+
key: "opcWorkRequestId",
|
|
1570
|
+
dataType: "string"
|
|
1571
|
+
},
|
|
1572
|
+
{
|
|
1573
|
+
value: response.headers.get("opc-request-id"),
|
|
1574
|
+
key: "opcRequestId",
|
|
1575
|
+
dataType: "string"
|
|
1576
|
+
},
|
|
1577
|
+
{
|
|
1578
|
+
value: response.headers.get("etag"),
|
|
1579
|
+
key: "etag",
|
|
1580
|
+
dataType: "string"
|
|
1581
|
+
}
|
|
1582
|
+
]
|
|
1583
|
+
});
|
|
1584
|
+
return sdkResponse;
|
|
1585
|
+
}
|
|
1586
|
+
catch (err) {
|
|
1587
|
+
throw err;
|
|
1588
|
+
}
|
|
1589
|
+
});
|
|
1590
|
+
}
|
|
1456
1591
|
/**
|
|
1457
1592
|
* Retrieves configuration details for the specified HSM Cluster resource.
|
|
1458
1593
|
* <p>
|
|
@@ -1653,6 +1788,72 @@ class KmsHsmClusterClient {
|
|
|
1653
1788
|
}
|
|
1654
1789
|
});
|
|
1655
1790
|
}
|
|
1791
|
+
/**
|
|
1792
|
+
* Initiates the process of enabling audit logs for a HSM cluster resource by taking in the required parameters.
|
|
1793
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1794
|
+
* @param InitiateAuditLoggingRequest
|
|
1795
|
+
* @return InitiateAuditLoggingResponse
|
|
1796
|
+
* @throws OciError when an error occurs
|
|
1797
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/keymanagement/InitiateAuditLogging.ts.html |here} to see how to use InitiateAuditLogging API.
|
|
1798
|
+
*/
|
|
1799
|
+
initiateAuditLogging(initiateAuditLoggingRequest) {
|
|
1800
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1801
|
+
if (this.logger)
|
|
1802
|
+
this.logger.debug("Calling operation KmsHsmClusterClient#initiateAuditLogging.");
|
|
1803
|
+
const operationName = "initiateAuditLogging";
|
|
1804
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/InitiateAuditLogging";
|
|
1805
|
+
const pathParams = {
|
|
1806
|
+
"{hsmClusterId}": initiateAuditLoggingRequest.hsmClusterId
|
|
1807
|
+
};
|
|
1808
|
+
const queryParams = {};
|
|
1809
|
+
let headerParams = {
|
|
1810
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1811
|
+
"opc-request-id": initiateAuditLoggingRequest.opcRequestId,
|
|
1812
|
+
"if-match": initiateAuditLoggingRequest.ifMatch,
|
|
1813
|
+
"opc-retry-token": initiateAuditLoggingRequest.opcRetryToken
|
|
1814
|
+
};
|
|
1815
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1816
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, initiateAuditLoggingRequest.retryConfiguration, specRetryConfiguration);
|
|
1817
|
+
if (this.logger)
|
|
1818
|
+
retrier.logger = this.logger;
|
|
1819
|
+
const request = yield oci_common_2.composeRequest({
|
|
1820
|
+
baseEndpoint: this._endpoint,
|
|
1821
|
+
defaultHeaders: this._defaultHeaders,
|
|
1822
|
+
path: "/20180608/hsmClusters/{hsmClusterId}/actions/initiateAuditLogging",
|
|
1823
|
+
method: "POST",
|
|
1824
|
+
bodyContent: common.ObjectSerializer.serialize(initiateAuditLoggingRequest.initiateAuditLoggingDetails, "InitiateAuditLoggingDetails", model.InitiateAuditLoggingDetails.getJsonObj),
|
|
1825
|
+
pathParams: pathParams,
|
|
1826
|
+
headerParams: headerParams,
|
|
1827
|
+
queryParams: queryParams
|
|
1828
|
+
});
|
|
1829
|
+
try {
|
|
1830
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1831
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1832
|
+
responseObject: {},
|
|
1833
|
+
body: yield response.json(),
|
|
1834
|
+
bodyKey: "auditLogging",
|
|
1835
|
+
bodyModel: model.AuditLogging,
|
|
1836
|
+
type: "model.AuditLogging",
|
|
1837
|
+
responseHeaders: [
|
|
1838
|
+
{
|
|
1839
|
+
value: response.headers.get("etag"),
|
|
1840
|
+
key: "etag",
|
|
1841
|
+
dataType: "string"
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
value: response.headers.get("opc-request-id"),
|
|
1845
|
+
key: "opcRequestId",
|
|
1846
|
+
dataType: "string"
|
|
1847
|
+
}
|
|
1848
|
+
]
|
|
1849
|
+
});
|
|
1850
|
+
return sdkResponse;
|
|
1851
|
+
}
|
|
1852
|
+
catch (err) {
|
|
1853
|
+
throw err;
|
|
1854
|
+
}
|
|
1855
|
+
});
|
|
1856
|
+
}
|
|
1656
1857
|
/**
|
|
1657
1858
|
* Lists all HSM cluster resources contained within the specified compartment.
|
|
1658
1859
|
* <p>
|
|
@@ -1864,6 +2065,77 @@ class KmsHsmClusterClient {
|
|
|
1864
2065
|
}
|
|
1865
2066
|
});
|
|
1866
2067
|
}
|
|
2068
|
+
/**
|
|
2069
|
+
* update bucket details of management audit logs for a HSM cluster resource by hsmClusterId.
|
|
2070
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2071
|
+
* @param UpdateAuditLoggingDestinationRequest
|
|
2072
|
+
* @return UpdateAuditLoggingDestinationResponse
|
|
2073
|
+
* @throws OciError when an error occurs
|
|
2074
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/keymanagement/UpdateAuditLoggingDestination.ts.html |here} to see how to use UpdateAuditLoggingDestination API.
|
|
2075
|
+
*/
|
|
2076
|
+
updateAuditLoggingDestination(updateAuditLoggingDestinationRequest) {
|
|
2077
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2078
|
+
if (this.logger)
|
|
2079
|
+
this.logger.debug("Calling operation KmsHsmClusterClient#updateAuditLoggingDestination.");
|
|
2080
|
+
const operationName = "updateAuditLoggingDestination";
|
|
2081
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/UpdateAuditLoggingDestination";
|
|
2082
|
+
const pathParams = {
|
|
2083
|
+
"{hsmClusterId}": updateAuditLoggingDestinationRequest.hsmClusterId
|
|
2084
|
+
};
|
|
2085
|
+
const queryParams = {};
|
|
2086
|
+
let headerParams = {
|
|
2087
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2088
|
+
"opc-request-id": updateAuditLoggingDestinationRequest.opcRequestId,
|
|
2089
|
+
"opc-retry-token": updateAuditLoggingDestinationRequest.opcRetryToken,
|
|
2090
|
+
"if-match": updateAuditLoggingDestinationRequest.ifMatch
|
|
2091
|
+
};
|
|
2092
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2093
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateAuditLoggingDestinationRequest.retryConfiguration, specRetryConfiguration);
|
|
2094
|
+
if (this.logger)
|
|
2095
|
+
retrier.logger = this.logger;
|
|
2096
|
+
const request = yield oci_common_2.composeRequest({
|
|
2097
|
+
baseEndpoint: this._endpoint,
|
|
2098
|
+
defaultHeaders: this._defaultHeaders,
|
|
2099
|
+
path: "/20180608/hsmClusters/{hsmClusterId}/actions/updateAuditLoggingDestination",
|
|
2100
|
+
method: "PUT",
|
|
2101
|
+
bodyContent: common.ObjectSerializer.serialize(updateAuditLoggingDestinationRequest.updateAuditLoggingDestinationDetails, "UpdateAuditLoggingDestinationDetails", model.UpdateAuditLoggingDestinationDetails.getJsonObj),
|
|
2102
|
+
pathParams: pathParams,
|
|
2103
|
+
headerParams: headerParams,
|
|
2104
|
+
queryParams: queryParams
|
|
2105
|
+
});
|
|
2106
|
+
try {
|
|
2107
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2108
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
2109
|
+
responseObject: {},
|
|
2110
|
+
body: yield response.json(),
|
|
2111
|
+
bodyKey: "auditLogging",
|
|
2112
|
+
bodyModel: model.AuditLogging,
|
|
2113
|
+
type: "model.AuditLogging",
|
|
2114
|
+
responseHeaders: [
|
|
2115
|
+
{
|
|
2116
|
+
value: response.headers.get("etag"),
|
|
2117
|
+
key: "etag",
|
|
2118
|
+
dataType: "string"
|
|
2119
|
+
},
|
|
2120
|
+
{
|
|
2121
|
+
value: response.headers.get("opc-request-id"),
|
|
2122
|
+
key: "opcRequestId",
|
|
2123
|
+
dataType: "string"
|
|
2124
|
+
},
|
|
2125
|
+
{
|
|
2126
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2127
|
+
key: "opcWorkRequestId",
|
|
2128
|
+
dataType: "string"
|
|
2129
|
+
}
|
|
2130
|
+
]
|
|
2131
|
+
});
|
|
2132
|
+
return sdkResponse;
|
|
2133
|
+
}
|
|
2134
|
+
catch (err) {
|
|
2135
|
+
throw err;
|
|
2136
|
+
}
|
|
2137
|
+
});
|
|
2138
|
+
}
|
|
1867
2139
|
/**
|
|
1868
2140
|
* Modifies properties of an HSM cluster resource, including `displayName`, `freeformTags` and `definedTags`.
|
|
1869
2141
|
* <p>
|
|
@@ -4894,6 +5166,72 @@ class KmsVaultClient {
|
|
|
4894
5166
|
}
|
|
4895
5167
|
});
|
|
4896
5168
|
}
|
|
5169
|
+
/**
|
|
5170
|
+
* Update fleet ids for the registered mTLS vault.
|
|
5171
|
+
*
|
|
5172
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
5173
|
+
* @param UpdateRegisteredVaultForMtlsRequest
|
|
5174
|
+
* @return UpdateRegisteredVaultForMtlsResponse
|
|
5175
|
+
* @throws OciError when an error occurs
|
|
5176
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/keymanagement/UpdateRegisteredVaultForMtls.ts.html |here} to see how to use UpdateRegisteredVaultForMtls API.
|
|
5177
|
+
*/
|
|
5178
|
+
updateRegisteredVaultForMtls(updateRegisteredVaultForMtlsRequest) {
|
|
5179
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5180
|
+
if (this.logger)
|
|
5181
|
+
this.logger.debug("Calling operation KmsVaultClient#updateRegisteredVaultForMtls.");
|
|
5182
|
+
const operationName = "updateRegisteredVaultForMtls";
|
|
5183
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/UpdateRegisteredVaultForMtlsDetails/UpdateRegisteredVaultForMtls";
|
|
5184
|
+
const pathParams = {
|
|
5185
|
+
"{vaultId}": updateRegisteredVaultForMtlsRequest.vaultId
|
|
5186
|
+
};
|
|
5187
|
+
const queryParams = {};
|
|
5188
|
+
let headerParams = {
|
|
5189
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
5190
|
+
"if-match": updateRegisteredVaultForMtlsRequest.ifMatch,
|
|
5191
|
+
"opc-request-id": updateRegisteredVaultForMtlsRequest.opcRequestId
|
|
5192
|
+
};
|
|
5193
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
5194
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateRegisteredVaultForMtlsRequest.retryConfiguration, specRetryConfiguration);
|
|
5195
|
+
if (this.logger)
|
|
5196
|
+
retrier.logger = this.logger;
|
|
5197
|
+
const request = yield oci_common_2.composeRequest({
|
|
5198
|
+
baseEndpoint: this._endpoint,
|
|
5199
|
+
defaultHeaders: this._defaultHeaders,
|
|
5200
|
+
path: "/20180608/vaults/{vaultId}/updateRegisteredVaultForMtls",
|
|
5201
|
+
method: "PUT",
|
|
5202
|
+
bodyContent: common.ObjectSerializer.serialize(updateRegisteredVaultForMtlsRequest.updateRegisteredVaultForMtlsDetails, "UpdateRegisteredVaultForMtlsDetails", model.UpdateRegisteredVaultForMtlsDetails.getJsonObj),
|
|
5203
|
+
pathParams: pathParams,
|
|
5204
|
+
headerParams: headerParams,
|
|
5205
|
+
queryParams: queryParams
|
|
5206
|
+
});
|
|
5207
|
+
try {
|
|
5208
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
5209
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
5210
|
+
responseObject: {},
|
|
5211
|
+
body: yield response.json(),
|
|
5212
|
+
bodyKey: "vaultMtlsUpdateResponse",
|
|
5213
|
+
bodyModel: model.VaultMtlsUpdateResponse,
|
|
5214
|
+
type: "model.VaultMtlsUpdateResponse",
|
|
5215
|
+
responseHeaders: [
|
|
5216
|
+
{
|
|
5217
|
+
value: response.headers.get("etag"),
|
|
5218
|
+
key: "etag",
|
|
5219
|
+
dataType: "string"
|
|
5220
|
+
},
|
|
5221
|
+
{
|
|
5222
|
+
value: response.headers.get("opc-request-id"),
|
|
5223
|
+
key: "opcRequestId",
|
|
5224
|
+
dataType: "string"
|
|
5225
|
+
}
|
|
5226
|
+
]
|
|
5227
|
+
});
|
|
5228
|
+
return sdkResponse;
|
|
5229
|
+
}
|
|
5230
|
+
catch (err) {
|
|
5231
|
+
throw err;
|
|
5232
|
+
}
|
|
5233
|
+
});
|
|
5234
|
+
}
|
|
4897
5235
|
/**
|
|
4898
5236
|
* Updates the properties of a vault. Specifically, you can update the
|
|
4899
5237
|
* `displayName`, `freeformTags`, and `definedTags` properties. Furthermore,
|