Bulk update security controls

put

/api/v1/applications/bulk

This API will update all application instances in Oracle CASB Cloud Service. Update request type must be set to securitycontrolbulkupdate. Application Name must be specified as AWS.

Request

Supported Media Types
Header Parameters
Body ()
The body for the bulk update will only have security controls to be updated, along with update type and application name.
Root Schema : ApplicationUpdateRequest
Type: object
The body of the update request depends on the kind of update you want to make. CREDENTIALUPDATE, SECURITYCONTROLUPDATE, or SECURITYANDCREDENTIAL are the three options. Depending on your choice of update type, the corresponding fields of security control securityControls and credential credentials must be populated.
Show Source
Nested Schema : ApplicationCredentials
Type: object
Body for creating credentials for AWS. The fields in the Application Credentials are needed for successfully reaching AWS and creating instance.
Show Source
  • AWS specifies an access key and secret key pair to create an instance. The first part of pair is the access key.
  • Can be left blank, if the mode is basic. Only needed in case of cross-account.
  • Can be left blank, if the mode is basic. Only needed in case of cross-account.
  • Can be either BASIC or CROSSACCOUNT. If it's cross-account, then role ARN, and external ID are mandatory parameters.
  • Can be left blank, if the mode is basic. Only needed in case of cross-account.
  • Can be left blank, if the mode is basic. Only needed in case of cross-account.
  • AWS specifies an access key and secret key pair to create an instance. The second part of pair is the secret key.
  • Can be left blank, if the mode is basic. Only needed in case of cross-account.
  • ssoproperties
    Can be left blank, if the mode is basic. Only needed in case of cross-account.
Nested Schema : SecurityControls
Type: object
This body represents the security controls passed to AWS. The Security Control Type is either Stringent, Standard, or Custom.
Show Source
Nested Schema : ssoproperties
Type: array
Can be left blank, if the mode is basic. Only needed in case of cross-account.
Show Source
Nested Schema : Ssoproperties
Type: object
Show Source
Nested Schema : SecurityControlParameters
Type: object
These are the controls which AWS provides to define the security posture of an instance. See individual properties for details on each.
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successfully updated all application instances.
Body ()
Root Schema : ApplicationBulkUpdateResponse
Type: object
The bulk update response will list out all instances for which the updates were applied to, and also the individual status of each of the individual updates.
Show Source
Nested Schema : applicationUpdate
Type: array
The list of updates performed in this bulk update.
Show Source
Nested Schema : ApplicationInstanceUpdateResponse
Type: object
Each instance in a bulk update, will return a response of this kind. It will indicate whether the individual update succeeded or failed.
Show Source

400 Response

Bad request format. Check the response for more information on which fields are inaccurate. Ensure that you have a request which follows the format.
Body ()
Root Schema : Error
Type: object
Show Source

401 Response

Unauthorized bulk update API call. See response for more details.
Body ()
Root Schema : Error
Type: object
Show Source

403 Response

Bulk update Request is forbidden. It is likely the CASB APIs aren???t enabled for the tenant.
Body ()
Root Schema : Error
Type: object
Show Source

404 Response

Resource requested was not found.
Body ()
Root Schema : Error
Type: object
Show Source

500 Response

Internal Server error occured. See response for more details.
Body ()
Root Schema : Error
Type: object
Show Source
Back to Top

Examples

The following examples show how to update all AWS application instances by submitting a PUT request.

Example Request Body: Updating Security Controls for All AWS Application Instances

{
  "applicationName":"AWS",
  "applicationUpdateRequestType":"SECURITYCONTROLBULKUPDATE",
  "securityControls":{
    "securityControlType":"custom",
    "securityControlParameters": {
      "minimumPasswordLength": 14,
      "requireUppercaseCharacters": false,
      "requireLowercaseCharacters": false,
      "requireNumbers": false,
      "requireSymbols": false,
      "allowUsersToChangePassword": false,
      "maxPasswordAge": 45,
      "passwordReusePrevention": 5,
      "hardExpiry": false,
      "mfaChecker": false,
      "s3ServerSideEncryptChecker": false,
      "s3IsMfaEnableForDeleteBucketChecker": false,
      "ec2SecurityGroupChecker": false,
      "ec2NAclPortsChecker": false,
      "ec2NAclAllowAllChecker": false,
      "r53NoHostedZones": false,
      "r53NoHealthChecks": false,
      "ebsNonEncryptedVolumes": false,
      "rdsNonEncryptedDbs": false
    }
  }
}

Example Response Body: Updating Security Controls for All AWS Application Instances

The following example shows the contents of the response body in JSON format:

{
  "applicationName": "AWS",
  "tenantId": "abcdefgh-1234-ijkl-5678-mnopqrstuvwx",
  "applicationUpdate": [
    {
      "instanceId": "12345678-9101-abcd-efgh-ijklmnopqrst",
      "instanceName": "monitor_custom_basic",
      "message": "Successfully updated instance",
      "status": true
    },
    {
      "instanceId": "12345678-9101-abcd-efgh-trsqponmlkji",
      "instanceName": "monitor_stringent_basic",
      "message": "Successfully updated instance",
      "status": true
    }
  ],
  "message": "Successfully updated all instances."
}
Back to Top