oci-vulnerabilityscanning 2.17.0 → 2.20.0
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 +115 -75
- package/lib/client.js +341 -75
- package/lib/client.js.map +1 -1
- package/lib/model/container-scan-recipe.d.ts +4 -0
- package/lib/model/container-scan-recipe.js.map +1 -1
- package/lib/model/container-scan-result-problem.d.ts +8 -0
- package/lib/model/container-scan-result-problem.js.map +1 -1
- package/lib/model/container-scan-result-summary.d.ts +4 -0
- package/lib/model/container-scan-result-summary.js.map +1 -1
- package/lib/model/container-scan-result.d.ts +8 -0
- package/lib/model/container-scan-result.js.map +1 -1
- package/lib/model/container-scan-target-summary.d.ts +1 -0
- package/lib/model/container-scan-target-summary.js +30 -2
- package/lib/model/container-scan-target-summary.js.map +1 -1
- package/lib/model/create-container-scan-recipe-details.d.ts +4 -0
- package/lib/model/create-container-scan-recipe-details.js.map +1 -1
- package/lib/model/impacted-resources-count.d.ts +29 -0
- package/lib/model/impacted-resources-count.js +29 -0
- package/lib/model/impacted-resources-count.js.map +1 -0
- package/lib/model/index.d.ts +16 -0
- package/lib/model/index.js +18 -2
- package/lib/model/index.js.map +1 -1
- package/lib/model/update-container-scan-recipe-details.d.ts +4 -0
- package/lib/model/update-container-scan-recipe-details.js.map +1 -1
- package/lib/model/vulnerability-impacted-container-summary-collection.d.ts +26 -0
- package/lib/model/vulnerability-impacted-container-summary-collection.js +61 -0
- package/lib/model/vulnerability-impacted-container-summary-collection.js.map +1 -0
- package/lib/model/vulnerability-impacted-container-summary.d.ts +45 -0
- package/lib/model/vulnerability-impacted-container-summary.js +29 -0
- package/lib/model/vulnerability-impacted-container-summary.js.map +1 -0
- package/lib/model/vulnerability-impacted-host-summary-collection.d.ts +26 -0
- package/lib/model/vulnerability-impacted-host-summary-collection.js +61 -0
- package/lib/model/vulnerability-impacted-host-summary-collection.js.map +1 -0
- package/lib/model/vulnerability-impacted-host-summary.d.ts +33 -0
- package/lib/model/vulnerability-impacted-host-summary.js +29 -0
- package/lib/model/vulnerability-impacted-host-summary.js.map +1 -0
- package/lib/model/vulnerability-summary-collection.d.ts +26 -0
- package/lib/model/vulnerability-summary-collection.js +61 -0
- package/lib/model/vulnerability-summary-collection.js.map +1 -0
- package/lib/model/vulnerability-summary.d.ts +63 -0
- package/lib/model/vulnerability-summary.js +57 -0
- package/lib/model/vulnerability-summary.js.map +1 -0
- package/lib/model/vulnerability.d.ts +68 -0
- package/lib/model/vulnerability.js +61 -0
- package/lib/model/vulnerability.js.map +1 -0
- package/lib/request/change-container-scan-recipe-compartment-request.d.ts +1 -1
- package/lib/request/change-container-scan-result-compartment-request.d.ts +1 -1
- package/lib/request/change-container-scan-target-compartment-request.d.ts +1 -1
- package/lib/request/change-host-agent-scan-result-compartment-request.d.ts +1 -1
- package/lib/request/change-host-cis-benchmark-scan-result-compartment-request.d.ts +1 -1
- package/lib/request/change-host-endpoint-protection-scan-result-compartment-request.d.ts +1 -1
- package/lib/request/change-host-port-scan-result-compartment-request.d.ts +1 -1
- package/lib/request/change-host-scan-recipe-compartment-request.d.ts +1 -1
- package/lib/request/change-host-scan-target-compartment-request.d.ts +1 -1
- package/lib/request/create-container-scan-recipe-request.d.ts +1 -1
- package/lib/request/create-container-scan-target-request.d.ts +1 -1
- package/lib/request/create-host-scan-recipe-request.d.ts +1 -1
- package/lib/request/create-host-scan-target-request.d.ts +1 -1
- package/lib/request/delete-container-scan-recipe-request.d.ts +1 -1
- package/lib/request/delete-container-scan-result-request.d.ts +1 -1
- package/lib/request/delete-container-scan-target-request.d.ts +1 -1
- package/lib/request/delete-host-agent-scan-result-request.d.ts +1 -1
- package/lib/request/delete-host-cis-benchmark-scan-result-request.d.ts +1 -1
- package/lib/request/delete-host-endpoint-protection-scan-result-request.d.ts +1 -1
- package/lib/request/delete-host-port-scan-result-request.d.ts +1 -1
- package/lib/request/delete-host-scan-recipe-request.d.ts +1 -1
- package/lib/request/delete-host-scan-target-request.d.ts +1 -1
- package/lib/request/export-host-agent-scan-result-csv-request.d.ts +1 -1
- package/lib/request/export-host-vulnerability-csv-request.d.ts +1 -1
- package/lib/request/get-container-scan-recipe-request.d.ts +1 -1
- package/lib/request/get-container-scan-result-request.d.ts +1 -1
- package/lib/request/get-container-scan-target-request.d.ts +1 -1
- package/lib/request/get-host-agent-scan-result-request.d.ts +1 -1
- package/lib/request/get-host-cis-benchmark-scan-result-request.d.ts +1 -1
- package/lib/request/get-host-endpoint-protection-scan-result-request.d.ts +1 -1
- package/lib/request/get-host-port-scan-result-request.d.ts +1 -1
- package/lib/request/get-host-scan-recipe-request.d.ts +1 -1
- package/lib/request/get-host-scan-target-request.d.ts +1 -1
- package/lib/request/get-host-vulnerability-request.d.ts +1 -1
- package/lib/request/get-vulnerability-request.d.ts +26 -0
- package/lib/request/get-vulnerability-request.js +15 -0
- package/lib/request/get-vulnerability-request.js.map +1 -0
- package/lib/request/get-work-request-request.d.ts +1 -1
- package/lib/request/index.d.ts +8 -0
- package/lib/request/index.js +24 -0
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-container-scan-recipes-request.d.ts +1 -1
- package/lib/request/list-container-scan-results-request.d.ts +1 -1
- package/lib/request/list-container-scan-targets-request.d.ts +1 -1
- package/lib/request/list-host-agent-scan-results-request.d.ts +1 -1
- package/lib/request/list-host-cis-benchmark-scan-results-request.d.ts +1 -1
- package/lib/request/list-host-endpoint-protection-scan-results-request.d.ts +1 -1
- package/lib/request/list-host-port-scan-results-request.d.ts +1 -1
- package/lib/request/list-host-scan-recipes-request.d.ts +1 -1
- package/lib/request/list-host-scan-targets-request.d.ts +1 -1
- package/lib/request/list-host-vulnerabilities-request.d.ts +1 -1
- package/lib/request/list-host-vulnerability-impacted-hosts-request.d.ts +1 -1
- package/lib/request/list-vulnerabilities-request.d.ts +72 -0
- package/lib/request/list-vulnerabilities-request.js +29 -0
- package/lib/request/list-vulnerabilities-request.js.map +1 -0
- package/lib/request/list-vulnerability-impacted-containers-request.d.ts +51 -0
- package/lib/request/list-vulnerability-impacted-containers-request.js +25 -0
- package/lib/request/list-vulnerability-impacted-containers-request.js.map +1 -0
- package/lib/request/list-vulnerability-impacted-hosts-request.d.ts +44 -0
- package/lib/request/list-vulnerability-impacted-hosts-request.js +15 -0
- package/lib/request/list-vulnerability-impacted-hosts-request.js.map +1 -0
- package/lib/request/list-work-request-errors-request.d.ts +1 -1
- package/lib/request/list-work-request-logs-request.d.ts +1 -1
- package/lib/request/list-work-requests-request.d.ts +1 -1
- package/lib/request/update-container-scan-recipe-request.d.ts +1 -1
- package/lib/request/update-container-scan-target-request.d.ts +1 -1
- package/lib/request/update-host-scan-recipe-request.d.ts +1 -1
- package/lib/request/update-host-scan-target-request.d.ts +1 -1
- package/lib/response/get-vulnerability-response.d.ts +30 -0
- package/lib/response/get-vulnerability-response.js +15 -0
- package/lib/response/get-vulnerability-response.js.map +1 -0
- package/lib/response/index.d.ts +8 -0
- package/lib/response/list-vulnerabilities-response.d.ts +32 -0
- package/lib/response/list-vulnerabilities-response.js +15 -0
- package/lib/response/list-vulnerabilities-response.js.map +1 -0
- package/lib/response/list-vulnerability-impacted-containers-response.d.ts +32 -0
- package/lib/response/list-vulnerability-impacted-containers-response.js +15 -0
- package/lib/response/list-vulnerability-impacted-containers-response.js.map +1 -0
- package/lib/response/list-vulnerability-impacted-hosts-response.d.ts +32 -0
- package/lib/response/list-vulnerability-impacted-hosts-response.js +15 -0
- package/lib/response/list-vulnerability-impacted-hosts-response.js.map +1 -0
- package/lib/vulnerabilityscanning-waiter.d.ts +8 -0
- package/lib/vulnerabilityscanning-waiter.js +12 -0
- package/lib/vulnerabilityscanning-waiter.js.map +1 -1
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -151,7 +151,7 @@ class VulnerabilityScanningClient {
|
|
|
151
151
|
* @param ChangeContainerScanRecipeCompartmentRequest
|
|
152
152
|
* @return ChangeContainerScanRecipeCompartmentResponse
|
|
153
153
|
* @throws OciError when an error occurs
|
|
154
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
154
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ChangeContainerScanRecipeCompartment.ts.html |here} to see how to use ChangeContainerScanRecipeCompartment API.
|
|
155
155
|
*/
|
|
156
156
|
changeContainerScanRecipeCompartment(changeContainerScanRecipeCompartmentRequest) {
|
|
157
157
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -207,7 +207,7 @@ class VulnerabilityScanningClient {
|
|
|
207
207
|
* @param ChangeContainerScanResultCompartmentRequest
|
|
208
208
|
* @return ChangeContainerScanResultCompartmentResponse
|
|
209
209
|
* @throws OciError when an error occurs
|
|
210
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
210
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ChangeContainerScanResultCompartment.ts.html |here} to see how to use ChangeContainerScanResultCompartment API.
|
|
211
211
|
*/
|
|
212
212
|
changeContainerScanResultCompartment(changeContainerScanResultCompartmentRequest) {
|
|
213
213
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -263,7 +263,7 @@ class VulnerabilityScanningClient {
|
|
|
263
263
|
* @param ChangeContainerScanTargetCompartmentRequest
|
|
264
264
|
* @return ChangeContainerScanTargetCompartmentResponse
|
|
265
265
|
* @throws OciError when an error occurs
|
|
266
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
266
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ChangeContainerScanTargetCompartment.ts.html |here} to see how to use ChangeContainerScanTargetCompartment API.
|
|
267
267
|
*/
|
|
268
268
|
changeContainerScanTargetCompartment(changeContainerScanTargetCompartmentRequest) {
|
|
269
269
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -319,7 +319,7 @@ class VulnerabilityScanningClient {
|
|
|
319
319
|
* @param ChangeHostAgentScanResultCompartmentRequest
|
|
320
320
|
* @return ChangeHostAgentScanResultCompartmentResponse
|
|
321
321
|
* @throws OciError when an error occurs
|
|
322
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
322
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ChangeHostAgentScanResultCompartment.ts.html |here} to see how to use ChangeHostAgentScanResultCompartment API.
|
|
323
323
|
*/
|
|
324
324
|
changeHostAgentScanResultCompartment(changeHostAgentScanResultCompartmentRequest) {
|
|
325
325
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -375,7 +375,7 @@ class VulnerabilityScanningClient {
|
|
|
375
375
|
* @param ChangeHostCisBenchmarkScanResultCompartmentRequest
|
|
376
376
|
* @return ChangeHostCisBenchmarkScanResultCompartmentResponse
|
|
377
377
|
* @throws OciError when an error occurs
|
|
378
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
378
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ChangeHostCisBenchmarkScanResultCompartment.ts.html |here} to see how to use ChangeHostCisBenchmarkScanResultCompartment API.
|
|
379
379
|
*/
|
|
380
380
|
changeHostCisBenchmarkScanResultCompartment(changeHostCisBenchmarkScanResultCompartmentRequest) {
|
|
381
381
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -431,7 +431,7 @@ class VulnerabilityScanningClient {
|
|
|
431
431
|
* @param ChangeHostEndpointProtectionScanResultCompartmentRequest
|
|
432
432
|
* @return ChangeHostEndpointProtectionScanResultCompartmentResponse
|
|
433
433
|
* @throws OciError when an error occurs
|
|
434
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
434
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ChangeHostEndpointProtectionScanResultCompartment.ts.html |here} to see how to use ChangeHostEndpointProtectionScanResultCompartment API.
|
|
435
435
|
*/
|
|
436
436
|
changeHostEndpointProtectionScanResultCompartment(changeHostEndpointProtectionScanResultCompartmentRequest) {
|
|
437
437
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -487,7 +487,7 @@ class VulnerabilityScanningClient {
|
|
|
487
487
|
* @param ChangeHostPortScanResultCompartmentRequest
|
|
488
488
|
* @return ChangeHostPortScanResultCompartmentResponse
|
|
489
489
|
* @throws OciError when an error occurs
|
|
490
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
490
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ChangeHostPortScanResultCompartment.ts.html |here} to see how to use ChangeHostPortScanResultCompartment API.
|
|
491
491
|
*/
|
|
492
492
|
changeHostPortScanResultCompartment(changeHostPortScanResultCompartmentRequest) {
|
|
493
493
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -543,7 +543,7 @@ class VulnerabilityScanningClient {
|
|
|
543
543
|
* @param ChangeHostScanRecipeCompartmentRequest
|
|
544
544
|
* @return ChangeHostScanRecipeCompartmentResponse
|
|
545
545
|
* @throws OciError when an error occurs
|
|
546
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
546
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ChangeHostScanRecipeCompartment.ts.html |here} to see how to use ChangeHostScanRecipeCompartment API.
|
|
547
547
|
*/
|
|
548
548
|
changeHostScanRecipeCompartment(changeHostScanRecipeCompartmentRequest) {
|
|
549
549
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -599,7 +599,7 @@ class VulnerabilityScanningClient {
|
|
|
599
599
|
* @param ChangeHostScanTargetCompartmentRequest
|
|
600
600
|
* @return ChangeHostScanTargetCompartmentResponse
|
|
601
601
|
* @throws OciError when an error occurs
|
|
602
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
602
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ChangeHostScanTargetCompartment.ts.html |here} to see how to use ChangeHostScanTargetCompartment API.
|
|
603
603
|
*/
|
|
604
604
|
changeHostScanTargetCompartment(changeHostScanTargetCompartmentRequest) {
|
|
605
605
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -649,13 +649,13 @@ class VulnerabilityScanningClient {
|
|
|
649
649
|
});
|
|
650
650
|
}
|
|
651
651
|
/**
|
|
652
|
-
* Creates a new ContainerScanRecipe
|
|
652
|
+
* Creates a new ContainerScanRecipe. A recipe determines the types of security issues that you want scanned.
|
|
653
653
|
*
|
|
654
654
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
655
655
|
* @param CreateContainerScanRecipeRequest
|
|
656
656
|
* @return CreateContainerScanRecipeResponse
|
|
657
657
|
* @throws OciError when an error occurs
|
|
658
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
658
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/CreateContainerScanRecipe.ts.html |here} to see how to use CreateContainerScanRecipe API.
|
|
659
659
|
*/
|
|
660
660
|
createContainerScanRecipe(createContainerScanRecipeRequest) {
|
|
661
661
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -716,13 +716,13 @@ class VulnerabilityScanningClient {
|
|
|
716
716
|
});
|
|
717
717
|
}
|
|
718
718
|
/**
|
|
719
|
-
* Creates a new ContainerScanTarget
|
|
719
|
+
* Creates a new ContainerScanTarget. A container scan target specifies a group of one or more Docker image repositories in Oracle Cloud Infrastructure Registry (OCIR) that you want routinely scanned for security vulnerabilities.
|
|
720
720
|
*
|
|
721
721
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
722
722
|
* @param CreateContainerScanTargetRequest
|
|
723
723
|
* @return CreateContainerScanTargetResponse
|
|
724
724
|
* @throws OciError when an error occurs
|
|
725
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
725
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/CreateContainerScanTarget.ts.html |here} to see how to use CreateContainerScanTarget API.
|
|
726
726
|
*/
|
|
727
727
|
createContainerScanTarget(createContainerScanTargetRequest) {
|
|
728
728
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -789,7 +789,7 @@ class VulnerabilityScanningClient {
|
|
|
789
789
|
* @param CreateHostScanRecipeRequest
|
|
790
790
|
* @return CreateHostScanRecipeResponse
|
|
791
791
|
* @throws OciError when an error occurs
|
|
792
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
792
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/CreateHostScanRecipe.ts.html |here} to see how to use CreateHostScanRecipe API.
|
|
793
793
|
*/
|
|
794
794
|
createHostScanRecipe(createHostScanRecipeRequest) {
|
|
795
795
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -856,7 +856,7 @@ class VulnerabilityScanningClient {
|
|
|
856
856
|
* @param CreateHostScanTargetRequest
|
|
857
857
|
* @return CreateHostScanTargetResponse
|
|
858
858
|
* @throws OciError when an error occurs
|
|
859
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
859
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/CreateHostScanTarget.ts.html |here} to see how to use CreateHostScanTarget API.
|
|
860
860
|
*/
|
|
861
861
|
createHostScanTarget(createHostScanTargetRequest) {
|
|
862
862
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -917,13 +917,13 @@ class VulnerabilityScanningClient {
|
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
919
|
/**
|
|
920
|
-
* Deletes the ContainerScanRecipe identified by the
|
|
920
|
+
* Deletes the ContainerScanRecipe identified by the recipe ID.
|
|
921
921
|
*
|
|
922
922
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
923
923
|
* @param DeleteContainerScanRecipeRequest
|
|
924
924
|
* @return DeleteContainerScanRecipeResponse
|
|
925
925
|
* @throws OciError when an error occurs
|
|
926
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
926
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/DeleteContainerScanRecipe.ts.html |here} to see how to use DeleteContainerScanRecipe API.
|
|
927
927
|
*/
|
|
928
928
|
deleteContainerScanRecipe(deleteContainerScanRecipeRequest) {
|
|
929
929
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -976,13 +976,13 @@ class VulnerabilityScanningClient {
|
|
|
976
976
|
});
|
|
977
977
|
}
|
|
978
978
|
/**
|
|
979
|
-
* Deletes the ContainerScanResult identified by the
|
|
979
|
+
* Deletes the ContainerScanResult identified by the container scan ID.
|
|
980
980
|
*
|
|
981
981
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
982
982
|
* @param DeleteContainerScanResultRequest
|
|
983
983
|
* @return DeleteContainerScanResultResponse
|
|
984
984
|
* @throws OciError when an error occurs
|
|
985
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
985
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/DeleteContainerScanResult.ts.html |here} to see how to use DeleteContainerScanResult API.
|
|
986
986
|
*/
|
|
987
987
|
deleteContainerScanResult(deleteContainerScanResultRequest) {
|
|
988
988
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1035,13 +1035,13 @@ class VulnerabilityScanningClient {
|
|
|
1035
1035
|
});
|
|
1036
1036
|
}
|
|
1037
1037
|
/**
|
|
1038
|
-
* Deletes the ContainerScanTarget identified by the
|
|
1038
|
+
* Deletes the ContainerScanTarget identified by the target ID.
|
|
1039
1039
|
*
|
|
1040
1040
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1041
1041
|
* @param DeleteContainerScanTargetRequest
|
|
1042
1042
|
* @return DeleteContainerScanTargetResponse
|
|
1043
1043
|
* @throws OciError when an error occurs
|
|
1044
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1044
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/DeleteContainerScanTarget.ts.html |here} to see how to use DeleteContainerScanTarget API.
|
|
1045
1045
|
*/
|
|
1046
1046
|
deleteContainerScanTarget(deleteContainerScanTargetRequest) {
|
|
1047
1047
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1094,13 +1094,13 @@ class VulnerabilityScanningClient {
|
|
|
1094
1094
|
});
|
|
1095
1095
|
}
|
|
1096
1096
|
/**
|
|
1097
|
-
*
|
|
1097
|
+
* Deletes the HostAgentScanResult identified by the host agent scan ID.
|
|
1098
1098
|
*
|
|
1099
1099
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1100
1100
|
* @param DeleteHostAgentScanResultRequest
|
|
1101
1101
|
* @return DeleteHostAgentScanResultResponse
|
|
1102
1102
|
* @throws OciError when an error occurs
|
|
1103
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1103
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/DeleteHostAgentScanResult.ts.html |here} to see how to use DeleteHostAgentScanResult API.
|
|
1104
1104
|
*/
|
|
1105
1105
|
deleteHostAgentScanResult(deleteHostAgentScanResultRequest) {
|
|
1106
1106
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1153,13 +1153,13 @@ class VulnerabilityScanningClient {
|
|
|
1153
1153
|
});
|
|
1154
1154
|
}
|
|
1155
1155
|
/**
|
|
1156
|
-
* Deletes the HostCisBenchmarkScanResult identified by the
|
|
1156
|
+
* Deletes the HostCisBenchmarkScanResult identified by the benchmark scan result ID.
|
|
1157
1157
|
*
|
|
1158
1158
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1159
1159
|
* @param DeleteHostCisBenchmarkScanResultRequest
|
|
1160
1160
|
* @return DeleteHostCisBenchmarkScanResultResponse
|
|
1161
1161
|
* @throws OciError when an error occurs
|
|
1162
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1162
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/DeleteHostCisBenchmarkScanResult.ts.html |here} to see how to use DeleteHostCisBenchmarkScanResult API.
|
|
1163
1163
|
*/
|
|
1164
1164
|
deleteHostCisBenchmarkScanResult(deleteHostCisBenchmarkScanResultRequest) {
|
|
1165
1165
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1218,7 +1218,7 @@ class VulnerabilityScanningClient {
|
|
|
1218
1218
|
* @param DeleteHostEndpointProtectionScanResultRequest
|
|
1219
1219
|
* @return DeleteHostEndpointProtectionScanResultResponse
|
|
1220
1220
|
* @throws OciError when an error occurs
|
|
1221
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1221
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/DeleteHostEndpointProtectionScanResult.ts.html |here} to see how to use DeleteHostEndpointProtectionScanResult API.
|
|
1222
1222
|
*/
|
|
1223
1223
|
deleteHostEndpointProtectionScanResult(deleteHostEndpointProtectionScanResultRequest) {
|
|
1224
1224
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1271,13 +1271,13 @@ class VulnerabilityScanningClient {
|
|
|
1271
1271
|
});
|
|
1272
1272
|
}
|
|
1273
1273
|
/**
|
|
1274
|
-
*
|
|
1274
|
+
* Deletes the HostPortScanResult identified by the host port scan ID.
|
|
1275
1275
|
*
|
|
1276
1276
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1277
1277
|
* @param DeleteHostPortScanResultRequest
|
|
1278
1278
|
* @return DeleteHostPortScanResultResponse
|
|
1279
1279
|
* @throws OciError when an error occurs
|
|
1280
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1280
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/DeleteHostPortScanResult.ts.html |here} to see how to use DeleteHostPortScanResult API.
|
|
1281
1281
|
*/
|
|
1282
1282
|
deleteHostPortScanResult(deleteHostPortScanResultRequest) {
|
|
1283
1283
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1330,13 +1330,13 @@ class VulnerabilityScanningClient {
|
|
|
1330
1330
|
});
|
|
1331
1331
|
}
|
|
1332
1332
|
/**
|
|
1333
|
-
*
|
|
1333
|
+
* Deletes the HostScanRecipe identified by the recipe ID.
|
|
1334
1334
|
*
|
|
1335
1335
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1336
1336
|
* @param DeleteHostScanRecipeRequest
|
|
1337
1337
|
* @return DeleteHostScanRecipeResponse
|
|
1338
1338
|
* @throws OciError when an error occurs
|
|
1339
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1339
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/DeleteHostScanRecipe.ts.html |here} to see how to use DeleteHostScanRecipe API.
|
|
1340
1340
|
*/
|
|
1341
1341
|
deleteHostScanRecipe(deleteHostScanRecipeRequest) {
|
|
1342
1342
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1389,13 +1389,13 @@ class VulnerabilityScanningClient {
|
|
|
1389
1389
|
});
|
|
1390
1390
|
}
|
|
1391
1391
|
/**
|
|
1392
|
-
*
|
|
1392
|
+
* Deletes the HostScanTarget identified by the target ID.
|
|
1393
1393
|
*
|
|
1394
1394
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1395
1395
|
* @param DeleteHostScanTargetRequest
|
|
1396
1396
|
* @return DeleteHostScanTargetResponse
|
|
1397
1397
|
* @throws OciError when an error occurs
|
|
1398
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1398
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/DeleteHostScanTarget.ts.html |here} to see how to use DeleteHostScanTarget API.
|
|
1399
1399
|
*/
|
|
1400
1400
|
deleteHostScanTarget(deleteHostScanTargetRequest) {
|
|
1401
1401
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1454,7 +1454,7 @@ class VulnerabilityScanningClient {
|
|
|
1454
1454
|
* @param ExportHostAgentScanResultCsvRequest
|
|
1455
1455
|
* @return ExportHostAgentScanResultCsvResponse
|
|
1456
1456
|
* @throws OciError when an error occurs
|
|
1457
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1457
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ExportHostAgentScanResultCsv.ts.html |here} to see how to use ExportHostAgentScanResultCsv API.
|
|
1458
1458
|
*/
|
|
1459
1459
|
exportHostAgentScanResultCsv(exportHostAgentScanResultCsvRequest) {
|
|
1460
1460
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1509,7 +1509,7 @@ class VulnerabilityScanningClient {
|
|
|
1509
1509
|
* @param ExportHostVulnerabilityCsvRequest
|
|
1510
1510
|
* @return ExportHostVulnerabilityCsvResponse
|
|
1511
1511
|
* @throws OciError when an error occurs
|
|
1512
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1512
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ExportHostVulnerabilityCsv.ts.html |here} to see how to use ExportHostVulnerabilityCsv API.
|
|
1513
1513
|
*/
|
|
1514
1514
|
exportHostVulnerabilityCsv(exportHostVulnerabilityCsvRequest) {
|
|
1515
1515
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1558,13 +1558,13 @@ class VulnerabilityScanningClient {
|
|
|
1558
1558
|
});
|
|
1559
1559
|
}
|
|
1560
1560
|
/**
|
|
1561
|
-
*
|
|
1561
|
+
* Retrieves a ContainerScanRecipe identified by the recipe ID. A recipe determines the types of security issues that you want scanned.
|
|
1562
1562
|
*
|
|
1563
1563
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1564
1564
|
* @param GetContainerScanRecipeRequest
|
|
1565
1565
|
* @return GetContainerScanRecipeResponse
|
|
1566
1566
|
* @throws OciError when an error occurs
|
|
1567
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1567
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/GetContainerScanRecipe.ts.html |here} to see how to use GetContainerScanRecipe API.
|
|
1568
1568
|
*/
|
|
1569
1569
|
getContainerScanRecipe(getContainerScanRecipeRequest) {
|
|
1570
1570
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1620,13 +1620,13 @@ class VulnerabilityScanningClient {
|
|
|
1620
1620
|
});
|
|
1621
1621
|
}
|
|
1622
1622
|
/**
|
|
1623
|
-
*
|
|
1623
|
+
* Retrieves a ContainerScanResult identified by the container scan ID. The result includes a list of problems found in a specific image in a Docker repository.
|
|
1624
1624
|
*
|
|
1625
1625
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1626
1626
|
* @param GetContainerScanResultRequest
|
|
1627
1627
|
* @return GetContainerScanResultResponse
|
|
1628
1628
|
* @throws OciError when an error occurs
|
|
1629
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1629
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/GetContainerScanResult.ts.html |here} to see how to use GetContainerScanResult API.
|
|
1630
1630
|
*/
|
|
1631
1631
|
getContainerScanResult(getContainerScanResultRequest) {
|
|
1632
1632
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1682,13 +1682,13 @@ class VulnerabilityScanningClient {
|
|
|
1682
1682
|
});
|
|
1683
1683
|
}
|
|
1684
1684
|
/**
|
|
1685
|
-
* Gets a ContainerScanTarget by
|
|
1685
|
+
* Gets a ContainerScanTarget identified by the target ID. A container scan target specifies a group of one or more Docker image repositories in Oracle Cloud Infrastructure Registry (OCIR) that you want routinely scanned for security vulnerabilities.
|
|
1686
1686
|
*
|
|
1687
1687
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1688
1688
|
* @param GetContainerScanTargetRequest
|
|
1689
1689
|
* @return GetContainerScanTargetResponse
|
|
1690
1690
|
* @throws OciError when an error occurs
|
|
1691
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1691
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/GetContainerScanTarget.ts.html |here} to see how to use GetContainerScanTarget API.
|
|
1692
1692
|
*/
|
|
1693
1693
|
getContainerScanTarget(getContainerScanTargetRequest) {
|
|
1694
1694
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1744,13 +1744,13 @@ class VulnerabilityScanningClient {
|
|
|
1744
1744
|
});
|
|
1745
1745
|
}
|
|
1746
1746
|
/**
|
|
1747
|
-
* Retrieves a HostAgentScanResult identified by the host agent scan ID. The result includes a list of
|
|
1747
|
+
* Retrieves a HostAgentScanResult identified by the host agent scan ID. The result includes a list of CVEs detected in a specific compute instance.
|
|
1748
1748
|
*
|
|
1749
1749
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1750
1750
|
* @param GetHostAgentScanResultRequest
|
|
1751
1751
|
* @return GetHostAgentScanResultResponse
|
|
1752
1752
|
* @throws OciError when an error occurs
|
|
1753
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1753
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/GetHostAgentScanResult.ts.html |here} to see how to use GetHostAgentScanResult API.
|
|
1754
1754
|
*/
|
|
1755
1755
|
getHostAgentScanResult(getHostAgentScanResultRequest) {
|
|
1756
1756
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1806,13 +1806,13 @@ class VulnerabilityScanningClient {
|
|
|
1806
1806
|
});
|
|
1807
1807
|
}
|
|
1808
1808
|
/**
|
|
1809
|
-
*
|
|
1809
|
+
* Retrieves a HostCisBenchmarkScanResult identified by the benchmark scan result ID. A CIS (Center for Internet Security) benchmark scan result includes a list of benchmarks that were tested on a specific compute instance, and whether each test passed or failed.
|
|
1810
1810
|
*
|
|
1811
1811
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1812
1812
|
* @param GetHostCisBenchmarkScanResultRequest
|
|
1813
1813
|
* @return GetHostCisBenchmarkScanResultResponse
|
|
1814
1814
|
* @throws OciError when an error occurs
|
|
1815
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1815
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/GetHostCisBenchmarkScanResult.ts.html |here} to see how to use GetHostCisBenchmarkScanResult API.
|
|
1816
1816
|
*/
|
|
1817
1817
|
getHostCisBenchmarkScanResult(getHostCisBenchmarkScanResultRequest) {
|
|
1818
1818
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1874,7 +1874,7 @@ class VulnerabilityScanningClient {
|
|
|
1874
1874
|
* @param GetHostEndpointProtectionScanResultRequest
|
|
1875
1875
|
* @return GetHostEndpointProtectionScanResultResponse
|
|
1876
1876
|
* @throws OciError when an error occurs
|
|
1877
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1877
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/GetHostEndpointProtectionScanResult.ts.html |here} to see how to use GetHostEndpointProtectionScanResult API.
|
|
1878
1878
|
*/
|
|
1879
1879
|
getHostEndpointProtectionScanResult(getHostEndpointProtectionScanResultRequest) {
|
|
1880
1880
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1936,7 +1936,7 @@ class VulnerabilityScanningClient {
|
|
|
1936
1936
|
* @param GetHostPortScanResultRequest
|
|
1937
1937
|
* @return GetHostPortScanResultResponse
|
|
1938
1938
|
* @throws OciError when an error occurs
|
|
1939
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1939
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/GetHostPortScanResult.ts.html |here} to see how to use GetHostPortScanResult API.
|
|
1940
1940
|
*/
|
|
1941
1941
|
getHostPortScanResult(getHostPortScanResultRequest) {
|
|
1942
1942
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1998,7 +1998,7 @@ class VulnerabilityScanningClient {
|
|
|
1998
1998
|
* @param GetHostScanRecipeRequest
|
|
1999
1999
|
* @return GetHostScanRecipeResponse
|
|
2000
2000
|
* @throws OciError when an error occurs
|
|
2001
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2001
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/GetHostScanRecipe.ts.html |here} to see how to use GetHostScanRecipe API.
|
|
2002
2002
|
*/
|
|
2003
2003
|
getHostScanRecipe(getHostScanRecipeRequest) {
|
|
2004
2004
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2060,7 +2060,7 @@ class VulnerabilityScanningClient {
|
|
|
2060
2060
|
* @param GetHostScanTargetRequest
|
|
2061
2061
|
* @return GetHostScanTargetResponse
|
|
2062
2062
|
* @throws OciError when an error occurs
|
|
2063
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2063
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/GetHostScanTarget.ts.html |here} to see how to use GetHostScanTarget API.
|
|
2064
2064
|
*/
|
|
2065
2065
|
getHostScanTarget(getHostScanTargetRequest) {
|
|
2066
2066
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2122,7 +2122,7 @@ class VulnerabilityScanningClient {
|
|
|
2122
2122
|
* @param GetHostVulnerabilityRequest
|
|
2123
2123
|
* @return GetHostVulnerabilityResponse
|
|
2124
2124
|
* @throws OciError when an error occurs
|
|
2125
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2125
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/GetHostVulnerability.ts.html |here} to see how to use GetHostVulnerability API.
|
|
2126
2126
|
*/
|
|
2127
2127
|
getHostVulnerability(getHostVulnerabilityRequest) {
|
|
2128
2128
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2177,6 +2177,68 @@ class VulnerabilityScanningClient {
|
|
|
2177
2177
|
}
|
|
2178
2178
|
});
|
|
2179
2179
|
}
|
|
2180
|
+
/**
|
|
2181
|
+
* Retrieves a Vulnerability identified by the vulnerability ID. A vulnerability describes a security issue that was detected in scans of one or more compute instances, container scan repositories. Common Vulnerabilities and Exposures (CVE) numbers identify security vulnerabilities for operating systems and other software, including Critical Patch Updates and Security Alert advisories.
|
|
2182
|
+
*
|
|
2183
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2184
|
+
* @param GetVulnerabilityRequest
|
|
2185
|
+
* @return GetVulnerabilityResponse
|
|
2186
|
+
* @throws OciError when an error occurs
|
|
2187
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/GetVulnerability.ts.html |here} to see how to use GetVulnerability API.
|
|
2188
|
+
*/
|
|
2189
|
+
getVulnerability(getVulnerabilityRequest) {
|
|
2190
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2191
|
+
if (this.logger)
|
|
2192
|
+
this.logger.debug("Calling operation VulnerabilityScanningClient#getVulnerability.");
|
|
2193
|
+
const pathParams = {
|
|
2194
|
+
"{vulnerabilityId}": getVulnerabilityRequest.vulnerabilityId
|
|
2195
|
+
};
|
|
2196
|
+
const queryParams = {};
|
|
2197
|
+
let headerParams = {
|
|
2198
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2199
|
+
"opc-request-id": getVulnerabilityRequest.opcRequestId
|
|
2200
|
+
};
|
|
2201
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2202
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getVulnerabilityRequest.retryConfiguration, specRetryConfiguration);
|
|
2203
|
+
if (this.logger)
|
|
2204
|
+
retrier.logger = this.logger;
|
|
2205
|
+
const request = yield oci_common_1.composeRequest({
|
|
2206
|
+
baseEndpoint: this._endpoint,
|
|
2207
|
+
defaultHeaders: this._defaultHeaders,
|
|
2208
|
+
path: "/vulnerabilities/{vulnerabilityId}",
|
|
2209
|
+
method: "GET",
|
|
2210
|
+
pathParams: pathParams,
|
|
2211
|
+
headerParams: headerParams,
|
|
2212
|
+
queryParams: queryParams
|
|
2213
|
+
});
|
|
2214
|
+
try {
|
|
2215
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
2216
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2217
|
+
responseObject: {},
|
|
2218
|
+
body: yield response.json(),
|
|
2219
|
+
bodyKey: "vulnerability",
|
|
2220
|
+
bodyModel: model.Vulnerability,
|
|
2221
|
+
type: "model.Vulnerability",
|
|
2222
|
+
responseHeaders: [
|
|
2223
|
+
{
|
|
2224
|
+
value: response.headers.get("etag"),
|
|
2225
|
+
key: "etag",
|
|
2226
|
+
dataType: "string"
|
|
2227
|
+
},
|
|
2228
|
+
{
|
|
2229
|
+
value: response.headers.get("opc-request-id"),
|
|
2230
|
+
key: "opcRequestId",
|
|
2231
|
+
dataType: "string"
|
|
2232
|
+
}
|
|
2233
|
+
]
|
|
2234
|
+
});
|
|
2235
|
+
return sdkResponse;
|
|
2236
|
+
}
|
|
2237
|
+
catch (err) {
|
|
2238
|
+
throw err;
|
|
2239
|
+
}
|
|
2240
|
+
});
|
|
2241
|
+
}
|
|
2180
2242
|
/**
|
|
2181
2243
|
* Gets the status of the work request with the given ID.
|
|
2182
2244
|
*
|
|
@@ -2184,7 +2246,7 @@ class VulnerabilityScanningClient {
|
|
|
2184
2246
|
* @param GetWorkRequestRequest
|
|
2185
2247
|
* @return GetWorkRequestResponse
|
|
2186
2248
|
* @throws OciError when an error occurs
|
|
2187
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2249
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
2188
2250
|
*/
|
|
2189
2251
|
getWorkRequest(getWorkRequestRequest) {
|
|
2190
2252
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2240,13 +2302,13 @@ class VulnerabilityScanningClient {
|
|
|
2240
2302
|
});
|
|
2241
2303
|
}
|
|
2242
2304
|
/**
|
|
2243
|
-
*
|
|
2305
|
+
* Retrieves a list of ContainerScanRecipeSummary objects in a compartment. A recipe determines the types of security issues that you want scanned.
|
|
2244
2306
|
*
|
|
2245
2307
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2246
2308
|
* @param ListContainerScanRecipesRequest
|
|
2247
2309
|
* @return ListContainerScanRecipesResponse
|
|
2248
2310
|
* @throws OciError when an error occurs
|
|
2249
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2311
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ListContainerScanRecipes.ts.html |here} to see how to use ListContainerScanRecipes API.
|
|
2250
2312
|
*/
|
|
2251
2313
|
listContainerScanRecipes(listContainerScanRecipesRequest) {
|
|
2252
2314
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2308,13 +2370,13 @@ class VulnerabilityScanningClient {
|
|
|
2308
2370
|
});
|
|
2309
2371
|
}
|
|
2310
2372
|
/**
|
|
2311
|
-
*
|
|
2373
|
+
* Retrieves a list of ContainerScanResultSummary objects in a compartment. You can filter and sort the results by problem severity and time. A container scan result includes a list of problems detected in a specific image in a Docker repository.
|
|
2312
2374
|
*
|
|
2313
2375
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2314
2376
|
* @param ListContainerScanResultsRequest
|
|
2315
2377
|
* @return ListContainerScanResultsResponse
|
|
2316
2378
|
* @throws OciError when an error occurs
|
|
2317
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2379
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ListContainerScanResults.ts.html |here} to see how to use ListContainerScanResults API.
|
|
2318
2380
|
*/
|
|
2319
2381
|
listContainerScanResults(listContainerScanResultsRequest) {
|
|
2320
2382
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2380,13 +2442,13 @@ class VulnerabilityScanningClient {
|
|
|
2380
2442
|
});
|
|
2381
2443
|
}
|
|
2382
2444
|
/**
|
|
2383
|
-
*
|
|
2445
|
+
* Retrieves a list of ContainerScanTargetSummary objects in a compartment. A container scan target specifies a group of one or more Docker image repositories in Oracle Cloud Infrastructure Registry (OCIR) that you want routinely scanned for security vulnerabilities.
|
|
2384
2446
|
*
|
|
2385
2447
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2386
2448
|
* @param ListContainerScanTargetsRequest
|
|
2387
2449
|
* @return ListContainerScanTargetsResponse
|
|
2388
2450
|
* @throws OciError when an error occurs
|
|
2389
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2451
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ListContainerScanTargets.ts.html |here} to see how to use ListContainerScanTargets API.
|
|
2390
2452
|
*/
|
|
2391
2453
|
listContainerScanTargets(listContainerScanTargetsRequest) {
|
|
2392
2454
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2448,13 +2510,13 @@ class VulnerabilityScanningClient {
|
|
|
2448
2510
|
});
|
|
2449
2511
|
}
|
|
2450
2512
|
/**
|
|
2451
|
-
* Retrieves a list of HostAgentScanResultSummary objects in a compartment. You can filter and sort the results by problem severity and time. An agent scan result includes a list of
|
|
2513
|
+
* Retrieves a list of HostAgentScanResultSummary objects in a compartment. You can filter and sort the results by problem severity and time. An agent scan result includes a list of CVEs detected in a specific compute instance.
|
|
2452
2514
|
*
|
|
2453
2515
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2454
2516
|
* @param ListHostAgentScanResultsRequest
|
|
2455
2517
|
* @return ListHostAgentScanResultsResponse
|
|
2456
2518
|
* @throws OciError when an error occurs
|
|
2457
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2519
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ListHostAgentScanResults.ts.html |here} to see how to use ListHostAgentScanResults API.
|
|
2458
2520
|
*/
|
|
2459
2521
|
listHostAgentScanResults(listHostAgentScanResultsRequest) {
|
|
2460
2522
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2520,13 +2582,13 @@ class VulnerabilityScanningClient {
|
|
|
2520
2582
|
});
|
|
2521
2583
|
}
|
|
2522
2584
|
/**
|
|
2523
|
-
*
|
|
2585
|
+
* Retrieves a list of HostCisBenchmarkScanResultSummary objects in a compartment. You can filter and sort the results by problem severity and time. A CIS (Center for Internet Security) benchmark scan result includes the number of failed benchmark tests on a specific compute instance.
|
|
2524
2586
|
*
|
|
2525
2587
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2526
2588
|
* @param ListHostCisBenchmarkScanResultsRequest
|
|
2527
2589
|
* @return ListHostCisBenchmarkScanResultsResponse
|
|
2528
2590
|
* @throws OciError when an error occurs
|
|
2529
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2591
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ListHostCisBenchmarkScanResults.ts.html |here} to see how to use ListHostCisBenchmarkScanResults API.
|
|
2530
2592
|
*/
|
|
2531
2593
|
listHostCisBenchmarkScanResults(listHostCisBenchmarkScanResultsRequest) {
|
|
2532
2594
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2597,7 +2659,7 @@ class VulnerabilityScanningClient {
|
|
|
2597
2659
|
* @param ListHostEndpointProtectionScanResultsRequest
|
|
2598
2660
|
* @return ListHostEndpointProtectionScanResultsResponse
|
|
2599
2661
|
* @throws OciError when an error occurs
|
|
2600
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2662
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ListHostEndpointProtectionScanResults.ts.html |here} to see how to use ListHostEndpointProtectionScanResults API.
|
|
2601
2663
|
*/
|
|
2602
2664
|
listHostEndpointProtectionScanResults(listHostEndpointProtectionScanResultsRequest) {
|
|
2603
2665
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2668,7 +2730,7 @@ class VulnerabilityScanningClient {
|
|
|
2668
2730
|
* @param ListHostPortScanResultsRequest
|
|
2669
2731
|
* @return ListHostPortScanResultsResponse
|
|
2670
2732
|
* @throws OciError when an error occurs
|
|
2671
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2733
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ListHostPortScanResults.ts.html |here} to see how to use ListHostPortScanResults API.
|
|
2672
2734
|
*/
|
|
2673
2735
|
listHostPortScanResults(listHostPortScanResultsRequest) {
|
|
2674
2736
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2739,7 +2801,7 @@ class VulnerabilityScanningClient {
|
|
|
2739
2801
|
* @param ListHostScanRecipesRequest
|
|
2740
2802
|
* @return ListHostScanRecipesResponse
|
|
2741
2803
|
* @throws OciError when an error occurs
|
|
2742
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2804
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ListHostScanRecipes.ts.html |here} to see how to use ListHostScanRecipes API.
|
|
2743
2805
|
*/
|
|
2744
2806
|
listHostScanRecipes(listHostScanRecipesRequest) {
|
|
2745
2807
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2807,7 +2869,7 @@ class VulnerabilityScanningClient {
|
|
|
2807
2869
|
* @param ListHostScanTargetsRequest
|
|
2808
2870
|
* @return ListHostScanTargetsResponse
|
|
2809
2871
|
* @throws OciError when an error occurs
|
|
2810
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2872
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ListHostScanTargets.ts.html |here} to see how to use ListHostScanTargets API.
|
|
2811
2873
|
*/
|
|
2812
2874
|
listHostScanTargets(listHostScanTargetsRequest) {
|
|
2813
2875
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2875,7 +2937,7 @@ class VulnerabilityScanningClient {
|
|
|
2875
2937
|
* @param ListHostVulnerabilitiesRequest
|
|
2876
2938
|
* @return ListHostVulnerabilitiesResponse
|
|
2877
2939
|
* @throws OciError when an error occurs
|
|
2878
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2940
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ListHostVulnerabilities.ts.html |here} to see how to use ListHostVulnerabilities API.
|
|
2879
2941
|
*/
|
|
2880
2942
|
listHostVulnerabilities(listHostVulnerabilitiesRequest) {
|
|
2881
2943
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2945,7 +3007,7 @@ class VulnerabilityScanningClient {
|
|
|
2945
3007
|
* @param ListHostVulnerabilityImpactedHostsRequest
|
|
2946
3008
|
* @return ListHostVulnerabilityImpactedHostsResponse
|
|
2947
3009
|
* @throws OciError when an error occurs
|
|
2948
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3010
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ListHostVulnerabilityImpactedHosts.ts.html |here} to see how to use ListHostVulnerabilityImpactedHosts API.
|
|
2949
3011
|
*/
|
|
2950
3012
|
listHostVulnerabilityImpactedHosts(listHostVulnerabilityImpactedHostsRequest) {
|
|
2951
3013
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3005,6 +3067,210 @@ class VulnerabilityScanningClient {
|
|
|
3005
3067
|
}
|
|
3006
3068
|
});
|
|
3007
3069
|
}
|
|
3070
|
+
/**
|
|
3071
|
+
* Retrieves a list of VulnerabilitySummary objects in a compartment. You can filter and sort the vulnerabilities by problem severity and time and type. A vulnerability describes a security issue that was detected in scans of one or more compute instances, container images.
|
|
3072
|
+
*
|
|
3073
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3074
|
+
* @param ListVulnerabilitiesRequest
|
|
3075
|
+
* @return ListVulnerabilitiesResponse
|
|
3076
|
+
* @throws OciError when an error occurs
|
|
3077
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ListVulnerabilities.ts.html |here} to see how to use ListVulnerabilities API.
|
|
3078
|
+
*/
|
|
3079
|
+
listVulnerabilities(listVulnerabilitiesRequest) {
|
|
3080
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3081
|
+
if (this.logger)
|
|
3082
|
+
this.logger.debug("Calling operation VulnerabilityScanningClient#listVulnerabilities.");
|
|
3083
|
+
const pathParams = {};
|
|
3084
|
+
const queryParams = {
|
|
3085
|
+
"compartmentId": listVulnerabilitiesRequest.compartmentId,
|
|
3086
|
+
"limit": listVulnerabilitiesRequest.limit,
|
|
3087
|
+
"page": listVulnerabilitiesRequest.page,
|
|
3088
|
+
"severity": listVulnerabilitiesRequest.severity,
|
|
3089
|
+
"name": listVulnerabilitiesRequest.name,
|
|
3090
|
+
"vulnerabilityReference": listVulnerabilitiesRequest.vulnerabilityReference,
|
|
3091
|
+
"vulnerabilityType": listVulnerabilitiesRequest.vulnerabilityType,
|
|
3092
|
+
"sortOrder": listVulnerabilitiesRequest.sortOrder,
|
|
3093
|
+
"sortBy": listVulnerabilitiesRequest.sortBy
|
|
3094
|
+
};
|
|
3095
|
+
let headerParams = {
|
|
3096
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3097
|
+
"opc-request-id": listVulnerabilitiesRequest.opcRequestId
|
|
3098
|
+
};
|
|
3099
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3100
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listVulnerabilitiesRequest.retryConfiguration, specRetryConfiguration);
|
|
3101
|
+
if (this.logger)
|
|
3102
|
+
retrier.logger = this.logger;
|
|
3103
|
+
const request = yield oci_common_1.composeRequest({
|
|
3104
|
+
baseEndpoint: this._endpoint,
|
|
3105
|
+
defaultHeaders: this._defaultHeaders,
|
|
3106
|
+
path: "/vulnerabilities",
|
|
3107
|
+
method: "GET",
|
|
3108
|
+
pathParams: pathParams,
|
|
3109
|
+
headerParams: headerParams,
|
|
3110
|
+
queryParams: queryParams
|
|
3111
|
+
});
|
|
3112
|
+
try {
|
|
3113
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
3114
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3115
|
+
responseObject: {},
|
|
3116
|
+
body: yield response.json(),
|
|
3117
|
+
bodyKey: "vulnerabilitySummaryCollection",
|
|
3118
|
+
bodyModel: model.VulnerabilitySummaryCollection,
|
|
3119
|
+
type: "model.VulnerabilitySummaryCollection",
|
|
3120
|
+
responseHeaders: [
|
|
3121
|
+
{
|
|
3122
|
+
value: response.headers.get("opc-request-id"),
|
|
3123
|
+
key: "opcRequestId",
|
|
3124
|
+
dataType: "string"
|
|
3125
|
+
},
|
|
3126
|
+
{
|
|
3127
|
+
value: response.headers.get("opc-next-page"),
|
|
3128
|
+
key: "opcNextPage",
|
|
3129
|
+
dataType: "string"
|
|
3130
|
+
}
|
|
3131
|
+
]
|
|
3132
|
+
});
|
|
3133
|
+
return sdkResponse;
|
|
3134
|
+
}
|
|
3135
|
+
catch (err) {
|
|
3136
|
+
throw err;
|
|
3137
|
+
}
|
|
3138
|
+
});
|
|
3139
|
+
}
|
|
3140
|
+
/**
|
|
3141
|
+
* Retrieves a list of VulnerabilityImpactedContainerSummary objects for a specific vulnerability ID. An impacted container image summary identifies container images on which the specified vulnerability was detected.
|
|
3142
|
+
*
|
|
3143
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3144
|
+
* @param ListVulnerabilityImpactedContainersRequest
|
|
3145
|
+
* @return ListVulnerabilityImpactedContainersResponse
|
|
3146
|
+
* @throws OciError when an error occurs
|
|
3147
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ListVulnerabilityImpactedContainers.ts.html |here} to see how to use ListVulnerabilityImpactedContainers API.
|
|
3148
|
+
*/
|
|
3149
|
+
listVulnerabilityImpactedContainers(listVulnerabilityImpactedContainersRequest) {
|
|
3150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3151
|
+
if (this.logger)
|
|
3152
|
+
this.logger.debug("Calling operation VulnerabilityScanningClient#listVulnerabilityImpactedContainers.");
|
|
3153
|
+
const pathParams = {
|
|
3154
|
+
"{vulnerabilityId}": listVulnerabilityImpactedContainersRequest.vulnerabilityId
|
|
3155
|
+
};
|
|
3156
|
+
const queryParams = {
|
|
3157
|
+
"sortOrder": listVulnerabilityImpactedContainersRequest.sortOrder,
|
|
3158
|
+
"limit": listVulnerabilityImpactedContainersRequest.limit,
|
|
3159
|
+
"page": listVulnerabilityImpactedContainersRequest.page,
|
|
3160
|
+
"sortBy": listVulnerabilityImpactedContainersRequest.sortBy
|
|
3161
|
+
};
|
|
3162
|
+
let headerParams = {
|
|
3163
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3164
|
+
"opc-request-id": listVulnerabilityImpactedContainersRequest.opcRequestId
|
|
3165
|
+
};
|
|
3166
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3167
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listVulnerabilityImpactedContainersRequest.retryConfiguration, specRetryConfiguration);
|
|
3168
|
+
if (this.logger)
|
|
3169
|
+
retrier.logger = this.logger;
|
|
3170
|
+
const request = yield oci_common_1.composeRequest({
|
|
3171
|
+
baseEndpoint: this._endpoint,
|
|
3172
|
+
defaultHeaders: this._defaultHeaders,
|
|
3173
|
+
path: "/vulnerabilities/{vulnerabilityId}/impactedContainers",
|
|
3174
|
+
method: "GET",
|
|
3175
|
+
pathParams: pathParams,
|
|
3176
|
+
headerParams: headerParams,
|
|
3177
|
+
queryParams: queryParams
|
|
3178
|
+
});
|
|
3179
|
+
try {
|
|
3180
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
3181
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3182
|
+
responseObject: {},
|
|
3183
|
+
body: yield response.json(),
|
|
3184
|
+
bodyKey: "vulnerabilityImpactedContainerSummaryCollection",
|
|
3185
|
+
bodyModel: model.VulnerabilityImpactedContainerSummaryCollection,
|
|
3186
|
+
type: "model.VulnerabilityImpactedContainerSummaryCollection",
|
|
3187
|
+
responseHeaders: [
|
|
3188
|
+
{
|
|
3189
|
+
value: response.headers.get("opc-request-id"),
|
|
3190
|
+
key: "opcRequestId",
|
|
3191
|
+
dataType: "string"
|
|
3192
|
+
},
|
|
3193
|
+
{
|
|
3194
|
+
value: response.headers.get("opc-next-page"),
|
|
3195
|
+
key: "opcNextPage",
|
|
3196
|
+
dataType: "string"
|
|
3197
|
+
}
|
|
3198
|
+
]
|
|
3199
|
+
});
|
|
3200
|
+
return sdkResponse;
|
|
3201
|
+
}
|
|
3202
|
+
catch (err) {
|
|
3203
|
+
throw err;
|
|
3204
|
+
}
|
|
3205
|
+
});
|
|
3206
|
+
}
|
|
3207
|
+
/**
|
|
3208
|
+
* Retrieves a list of VulnerabilityImpactedHostSummary objects for a specific host vulnerability ID. An impacted host summary identifies a compute instance on which the specified vulnerability was detected.
|
|
3209
|
+
*
|
|
3210
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3211
|
+
* @param ListVulnerabilityImpactedHostsRequest
|
|
3212
|
+
* @return ListVulnerabilityImpactedHostsResponse
|
|
3213
|
+
* @throws OciError when an error occurs
|
|
3214
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ListVulnerabilityImpactedHosts.ts.html |here} to see how to use ListVulnerabilityImpactedHosts API.
|
|
3215
|
+
*/
|
|
3216
|
+
listVulnerabilityImpactedHosts(listVulnerabilityImpactedHostsRequest) {
|
|
3217
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3218
|
+
if (this.logger)
|
|
3219
|
+
this.logger.debug("Calling operation VulnerabilityScanningClient#listVulnerabilityImpactedHosts.");
|
|
3220
|
+
const pathParams = {
|
|
3221
|
+
"{vulnerabilityId}": listVulnerabilityImpactedHostsRequest.vulnerabilityId
|
|
3222
|
+
};
|
|
3223
|
+
const queryParams = {
|
|
3224
|
+
"sortOrder": listVulnerabilityImpactedHostsRequest.sortOrder,
|
|
3225
|
+
"sortBy": listVulnerabilityImpactedHostsRequest.sortBy,
|
|
3226
|
+
"limit": listVulnerabilityImpactedHostsRequest.limit,
|
|
3227
|
+
"page": listVulnerabilityImpactedHostsRequest.page
|
|
3228
|
+
};
|
|
3229
|
+
let headerParams = {
|
|
3230
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3231
|
+
"opc-request-id": listVulnerabilityImpactedHostsRequest.opcRequestId
|
|
3232
|
+
};
|
|
3233
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3234
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listVulnerabilityImpactedHostsRequest.retryConfiguration, specRetryConfiguration);
|
|
3235
|
+
if (this.logger)
|
|
3236
|
+
retrier.logger = this.logger;
|
|
3237
|
+
const request = yield oci_common_1.composeRequest({
|
|
3238
|
+
baseEndpoint: this._endpoint,
|
|
3239
|
+
defaultHeaders: this._defaultHeaders,
|
|
3240
|
+
path: "/vulnerabilities/{vulnerabilityId}/impactedHosts",
|
|
3241
|
+
method: "GET",
|
|
3242
|
+
pathParams: pathParams,
|
|
3243
|
+
headerParams: headerParams,
|
|
3244
|
+
queryParams: queryParams
|
|
3245
|
+
});
|
|
3246
|
+
try {
|
|
3247
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
3248
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3249
|
+
responseObject: {},
|
|
3250
|
+
body: yield response.json(),
|
|
3251
|
+
bodyKey: "vulnerabilityImpactedHostSummaryCollection",
|
|
3252
|
+
bodyModel: model.VulnerabilityImpactedHostSummaryCollection,
|
|
3253
|
+
type: "model.VulnerabilityImpactedHostSummaryCollection",
|
|
3254
|
+
responseHeaders: [
|
|
3255
|
+
{
|
|
3256
|
+
value: response.headers.get("opc-request-id"),
|
|
3257
|
+
key: "opcRequestId",
|
|
3258
|
+
dataType: "string"
|
|
3259
|
+
},
|
|
3260
|
+
{
|
|
3261
|
+
value: response.headers.get("opc-next-page"),
|
|
3262
|
+
key: "opcNextPage",
|
|
3263
|
+
dataType: "string"
|
|
3264
|
+
}
|
|
3265
|
+
]
|
|
3266
|
+
});
|
|
3267
|
+
return sdkResponse;
|
|
3268
|
+
}
|
|
3269
|
+
catch (err) {
|
|
3270
|
+
throw err;
|
|
3271
|
+
}
|
|
3272
|
+
});
|
|
3273
|
+
}
|
|
3008
3274
|
/**
|
|
3009
3275
|
* Return a (paginated) list of errors for a given work request.
|
|
3010
3276
|
*
|
|
@@ -3012,7 +3278,7 @@ class VulnerabilityScanningClient {
|
|
|
3012
3278
|
* @param ListWorkRequestErrorsRequest
|
|
3013
3279
|
* @return ListWorkRequestErrorsResponse
|
|
3014
3280
|
* @throws OciError when an error occurs
|
|
3015
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3281
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
3016
3282
|
*/
|
|
3017
3283
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
3018
3284
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3077,7 +3343,7 @@ class VulnerabilityScanningClient {
|
|
|
3077
3343
|
* @param ListWorkRequestLogsRequest
|
|
3078
3344
|
* @return ListWorkRequestLogsResponse
|
|
3079
3345
|
* @throws OciError when an error occurs
|
|
3080
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3346
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
3081
3347
|
*/
|
|
3082
3348
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
3083
3349
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3142,7 +3408,7 @@ class VulnerabilityScanningClient {
|
|
|
3142
3408
|
* @param ListWorkRequestsRequest
|
|
3143
3409
|
* @return ListWorkRequestsResponse
|
|
3144
3410
|
* @throws OciError when an error occurs
|
|
3145
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3411
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
3146
3412
|
*/
|
|
3147
3413
|
listWorkRequests(listWorkRequestsRequest) {
|
|
3148
3414
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3200,13 +3466,13 @@ class VulnerabilityScanningClient {
|
|
|
3200
3466
|
});
|
|
3201
3467
|
}
|
|
3202
3468
|
/**
|
|
3203
|
-
* Updates the ContainerScanRecipe identified by the
|
|
3469
|
+
* Updates the ContainerScanRecipe identified by the recipe ID. A recipe determines the types of security issues that you want scanned.
|
|
3204
3470
|
*
|
|
3205
3471
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3206
3472
|
* @param UpdateContainerScanRecipeRequest
|
|
3207
3473
|
* @return UpdateContainerScanRecipeResponse
|
|
3208
3474
|
* @throws OciError when an error occurs
|
|
3209
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3475
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/UpdateContainerScanRecipe.ts.html |here} to see how to use UpdateContainerScanRecipe API.
|
|
3210
3476
|
*/
|
|
3211
3477
|
updateContainerScanRecipe(updateContainerScanRecipeRequest) {
|
|
3212
3478
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3260,13 +3526,13 @@ class VulnerabilityScanningClient {
|
|
|
3260
3526
|
});
|
|
3261
3527
|
}
|
|
3262
3528
|
/**
|
|
3263
|
-
* Updates the ContainerScanTarget identified by the
|
|
3529
|
+
* Updates the ContainerScanTarget identified by the target ID. A container scan target specifies a group of one or more Docker image repositories in Oracle Cloud Infrastructure Registry (OCIR) that you want routinely scanned for security vulnerabilities.
|
|
3264
3530
|
*
|
|
3265
3531
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3266
3532
|
* @param UpdateContainerScanTargetRequest
|
|
3267
3533
|
* @return UpdateContainerScanTargetResponse
|
|
3268
3534
|
* @throws OciError when an error occurs
|
|
3269
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3535
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/UpdateContainerScanTarget.ts.html |here} to see how to use UpdateContainerScanTarget API.
|
|
3270
3536
|
*/
|
|
3271
3537
|
updateContainerScanTarget(updateContainerScanTargetRequest) {
|
|
3272
3538
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3326,7 +3592,7 @@ class VulnerabilityScanningClient {
|
|
|
3326
3592
|
* @param UpdateHostScanRecipeRequest
|
|
3327
3593
|
* @return UpdateHostScanRecipeResponse
|
|
3328
3594
|
* @throws OciError when an error occurs
|
|
3329
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3595
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/UpdateHostScanRecipe.ts.html |here} to see how to use UpdateHostScanRecipe API.
|
|
3330
3596
|
*/
|
|
3331
3597
|
updateHostScanRecipe(updateHostScanRecipeRequest) {
|
|
3332
3598
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3386,7 +3652,7 @@ class VulnerabilityScanningClient {
|
|
|
3386
3652
|
* @param UpdateHostScanTargetRequest
|
|
3387
3653
|
* @return UpdateHostScanTargetResponse
|
|
3388
3654
|
* @throws OciError when an error occurs
|
|
3389
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3655
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/vulnerabilityscanning/UpdateHostScanTarget.ts.html |here} to see how to use UpdateHostScanTarget API.
|
|
3390
3656
|
*/
|
|
3391
3657
|
updateHostScanTarget(updateHostScanTargetRequest) {
|
|
3392
3658
|
return __awaiter(this, void 0, void 0, function* () {
|