List settings
GET /instances/{instance_id}/v3/settings
Retrieve the settings of your service instance.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
compliance.admin.settings-read
Auditing
Calling this method generates the following auditing event.
compliance.admin-settings.read
Request
Response
200 - The settings were successfully retrieved.
event_notifications
EventNotifications
The Event Notifications settings.
object_storage
ObjectStorage
The Cloud Object Storage settings.
401 -
403 -
404 -
Update settings
PATCH /instances/{instance_id}/v3/settings
Update the settings of your service instance.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
compliance.admin.settings-update
Auditing
Calling this method generates the following auditing event.
compliance.admin-settings.update
Request
Request Body
SettingsPrototype
The request body to update your settings.
object_storage
ObjectStoragePrototype
The payload to connect a Cloud Object Storage instance to an Security and Compliance Center instance.
bucket
string
The connected Cloud Object Storage bucket name.
instance_crn
string
The connected Cloud Object Storage instance CRN.
event_notifications
EventNotificationsPrototype
The payload to connect an Event Notification instance with a Security and Compliance Center instance.
instance_crn
string
The CRN of the Event Notification instance to connect.
source_description
string
The description of the source of the Event Notifications.
source_name
string
The name of the source of the Event Notifications.
Response
200 - The settings were successfully updated.
event_notifications
EventNotifications
The Event Notifications settings.
object_storage
ObjectStorage
The Cloud Object Storage settings.
204 -
400 -
401 -
403 -
404 -
Create a test event
POST /instances/{instance_id}/v3/test_event
Send a test event to your Event Notifications instance to ensure that the events that are generated by Security and Compliance Center are being forwarded to Event Notifications. For more information, see Enabling event notifications.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
compliance.admin.test-event-send
Auditing
Calling this method generates the following auditing event.
compliance.admin-test-event.send
Request
Response
202 - The event was successfully sent to your Event Notifications instance.
success
boolean
The indication of whether the event was received by Event Notifications.
401 -
403 -
404 -
Create a custom control library
POST /instances/{instance_id}/v3/control_libraries
Create a custom control library that is specific to your organization's needs.
With Security and Compliance Center, you can create a custom control library that is specific to your organization's needs. You define the controls and specifications before you map previously created assessments. Each control has several specifications and assessments that are mapped to it. A specification is a defined requirement that is specific to a component. An assessment, or several, are mapped to each specification with a detailed evaluation that is done to check whether the specification is compliant. For more information, see Creating custom libraries.
Request
Request Body
ControlLibraryPrototype
The request body to create a custom control library.
control_library_name
Required *
string
The name of the control library.
control_library_description
Required *
string
Details of the control library.
control_library_type
Required *
string
Details that the control library is a user made(custom) or Security Compliance Center(predefined)
control_library_version
Required *
string
The revision number of the control library.
controls
Required *
array
The list of rules that the control library attempts to adhere to.
Path Parameters
Query Parameters
account_id
string
The user account ID.
Response
201 - The control library was created successfully.
control_library_name
string
The name of the control library.
control_library_description
string
Details of the control library.
control_library_type
string
Details that the control library is a user made(custom) or Security Compliance Center(predefined)
control_library_version
string
The revision number of the control library.
controls
array
The list of rules that the control library attempts to adhere to.
id
string
The ID of the control library
account_id
string
The ID of the account associated with the creation of the control library
version_group_label
string
The ETag or version of the Control Library
latest
boolean
Shows if the Control Library is the latest
created_by
string
The ID of the creator of the Control Library
created_on
string
The date-time of the creation
updated_by
string
The ID of the user who made the last update
updated_on
string
The date-time of the update
hierarchy_enabled
boolean
Determines if the control library has any hierarchy
controls_count
integer
The count of controls tied to the control library
control_parents_count
integer
THe count of control parents in the control library
400 -
401 -
403 -
500 -
Get all control libraries
GET /instances/{instance_id}/v3/control_libraries
Retrieve all the control libraries, including predefined, and custom libraries.
With Security and Compliance Center, you can create a custom control library that is specific to your organization's needs. You define the controls and specifications before you map previously created assessments. Each control has several specifications and assessments that are mapped to it. A specification is a defined requirement that is specific to a component. An assessment, or several, are mapped to each specification with a detailed evaluation that is done to check whether the specification is compliant. For more information, see Creating custom libraries.
Request
Path Parameters
Query Parameters
account_id
string
The user account ID.
Response
200 - The control libraries were successfully retrieved.
limit
integer
The requested page limit.
total_count
integer
The total number of resources that are in the collection.
first
PageHRefFirst
A page reference.
next
PageHRefNext
A page reference.
control_libraries
array
The list of control libraries
400 -
401 -
403 -
500 -
Update a custom control library
PUT /instances/{instance_id}/v3/control_libraries/{control_library_id}
Update a custom control library by specifying its ID.
With Security and Compliance Center, you can create a custom control library that is specific to your organization's needs. You define the controls and specifications before you map previously created assessments. Each control has several specifications and assessments that are mapped to it. A specification is a defined requirement that is specific to a component. An assessment, or several, are mapped to each specification with a detailed evaluation that is done to check whether the specification is compliant. For more information, see Creating custom libraries.
Request
Request Body
ControlLibraryPrototype
The request body to update control library.
control_library_name
Required *
string
The name of the control library.
control_library_description
Required *
string
Details of the control library.
control_library_type
Required *
string
Details that the control library is a user made(custom) or Security Compliance Center(predefined)
control_library_version
Required *
string
The revision number of the control library.
controls
Required *
array
The list of rules that the control library attempts to adhere to.
Path Parameters
Query Parameters
bss_account
string
The account id tied to billing.
Response
200 - The control library was updated successfully.
control_library_name
string
The name of the control library.
control_library_description
string
Details of the control library.
control_library_type
string
Details that the control library is a user made(custom) or Security Compliance Center(predefined)
control_library_version
string
The revision number of the control library.
controls
array
The list of rules that the control library attempts to adhere to.
id
string
The ID of the control library
account_id
string
The ID of the account associated with the creation of the control library
version_group_label
string
The ETag or version of the Control Library
latest
boolean
Shows if the Control Library is the latest
created_by
string
The ID of the creator of the Control Library
created_on
string
The date-time of the creation
updated_by
string
The ID of the user who made the last update
updated_on
string
The date-time of the update
hierarchy_enabled
boolean
Determines if the control library has any hierarchy
controls_count
integer
The count of controls tied to the control library
control_parents_count
integer
THe count of control parents in the control library
400 -
401 -
403 -
500 -
Get a control library
GET /instances/{instance_id}/v3/control_libraries/{control_library_id}
View the details of a control library by specifying its ID.
With Security and Compliance Center, you can create a custom control library that is specific to your organization's needs. You define the controls and specifications before you map previously created assessments. Each control has several specifications and assessments that are mapped to it. A specification is a defined requirement that is specific to a component. An assessment, or several, are mapped to each specification with a detailed evaluation that is done to check whether the specification is compliant. For more information, see Creating custom libraries.
Request
Path Parameters
Query Parameters
account_id
string
The user account ID.
Response
200 - The control library was retrieved successfully.
control_library_name
string
The name of the control library.
control_library_description
string
Details of the control library.
control_library_type
string
Details that the control library is a user made(custom) or Security Compliance Center(predefined)
control_library_version
string
The revision number of the control library.
controls
array
The list of rules that the control library attempts to adhere to.
id
string
The ID of the control library
account_id
string
The ID of the account associated with the creation of the control library
version_group_label
string
The ETag or version of the Control Library
latest
boolean
Shows if the Control Library is the latest
created_by
string
The ID of the creator of the Control Library
created_on
string
The date-time of the creation
updated_by
string
The ID of the user who made the last update
updated_on
string
The date-time of the update
hierarchy_enabled
boolean
Determines if the control library has any hierarchy
controls_count
integer
The count of controls tied to the control library
control_parents_count
integer
THe count of control parents in the control library
400 -
401 -
403 -
500 -
Delete a custom control library
DELETE /instances/{instance_id}/v3/control_libraries/{control_library_id}
Delete a custom control library by specifying its ID.
With Security and Compliance Center, you can create a custom control library that is specific to your organization's needs. You define the controls and specifications before you map previously created assessments. Each control has several specifications and assessments that are mapped to it. A specification is a defined requirement that is specific to a component. An assessment, or several, are mapped to each specification with a detailed evaluation that is done to check whether the specification is compliant. For more information, see Creating custom libraries.
Request
Path Parameters
Query Parameters
account_id
string
The user account ID.
Response
200 - The control library was deleted successfully.
control_library_name
string
The name of the control library.
control_library_description
string
Details of the control library.
control_library_type
string
Details that the control library is a user made(custom) or Security Compliance Center(predefined)
control_library_version
string
The revision number of the control library.
controls
array
The list of rules that the control library attempts to adhere to.
id
string
The ID of the control library
account_id
string
The ID of the account associated with the creation of the control library
version_group_label
string
The ETag or version of the Control Library
latest
boolean
Shows if the Control Library is the latest
created_by
string
The ID of the creator of the Control Library
created_on
string
The date-time of the creation
updated_by
string
The ID of the user who made the last update
updated_on
string
The date-time of the update
hierarchy_enabled
boolean
Determines if the control library has any hierarchy
controls_count
integer
The count of controls tied to the control library
control_parents_count
integer
THe count of control parents in the control library
400 -
401 -
403 -
500 -
Create a custom profile
POST /instances/{instance_id}/v3/profiles
Create a user-defined custom profile.
With Security and Compliance Center, you can create a profile that is specific to your usecase, by using an existing library as a starting point. For more information, see Building custom profiles.
Request
Request Body
ProfilePrototype
The request payload to create a profile.
profile_name
string
The name of the profile
profile_description
string
A description of what the profile should represent
profile_version
string
The version of the profile
latest
boolean
Determines if the profile is up to date with the latest revisions
version_group_label
string
The unique identifier of the revision
controls
array
List of controls associated with the profile
default_parameters
array
The default values when using the profile
Path Parameters
Query Parameters
account_id
string
The user account ID.
Response
201 - The profile was created successfully.
id
string
The ID of the profile
profile_name
string
The name of the profile
profile_description
string
A description of what the profile should represent
profile_type
string
The type of profile, either predefined or custom
profile_version
string
The version of the profile
version_group_label
string
The unique identifier of the revision
latest
boolean
Determines if the profile is up to date with the latest revisions
created_by
string
User who created the profile
created_on
string
The date when the profile was created, in date-time format
updated_by
string
User who made the latest changes to the profile
updated_on
string
The date when the profile was last updated, in date-time format
controls_count
integer
The number of controls contained in the profile
attachments_count
integer
The number of attachments associated with the profile
controls
array
The list of controls
default_parameters
array
The default parameters of the profile
400 -
401 -
403 -
500 -
Get all profiles
GET /instances/{instance_id}/v3/profiles
Retrieve all profiles, including predefined and custom profiles.
With Security and Compliance Center, you can take advantage of predefined profiles that are curated based on industry standards. Or you can choose to create one that is specific to your usecase by using an existing library as a starting point. For more information, see Building custom profiles.
Request
Path Parameters
Query Parameters
account_id
string
The user account ID.
Response
200 - The profiles were retrieved successfully.
limit
integer
The requested page limit.
total_count
integer
The total number of resources that are in the collection.
first
PageHRefFirst
A page reference.
next
PageHRefNext
A page reference.
profiles
array
A list of profiles
400 -
401 -
403 -
500 -
Update a custom profile
PUT /instances/{instance_id}/v3/profiles/{profile_id}
Update the details of a user-defined profile.
With Security and Compliance Center, you can create a profile that is specific to your usecase, by using an existing library as a starting point. For more information, see Building custom profiles.
Request
Request Body
ProfilePrototype
The request payload to update a profile.
profile_name
string
The name of the profile
profile_description
string
A description of what the profile should represent
profile_version
string
The version of the profile
latest
boolean
Determines if the profile is up to date with the latest revisions
version_group_label
string
The unique identifier of the revision
controls
array
List of controls associated with the profile
default_parameters
array
The default values when using the profile
Path Parameters
Query Parameters
account_id
string
The user account ID.
Response
200 - The profile was updated successfully.
id
string
The ID of the profile
profile_name
string
The name of the profile
profile_description
string
A description of what the profile should represent
profile_type
string
The type of profile, either predefined or custom
profile_version
string
The version of the profile
version_group_label
string
The unique identifier of the revision
latest
boolean
Determines if the profile is up to date with the latest revisions
created_by
string
User who created the profile
created_on
string
The date when the profile was created, in date-time format
updated_by
string
User who made the latest changes to the profile
updated_on
string
The date when the profile was last updated, in date-time format
controls_count
integer
The number of controls contained in the profile
attachments_count
integer
The number of attachments associated with the profile
controls
array
The list of controls
default_parameters
array
The default parameters of the profile
400 -
401 -
403 -
500 -
Get a profile
GET /instances/{instance_id}/v3/profiles/{profile_id}
Retrieve a profile by specifying the profile ID.
With Security and Compliance Center, you can utilize predefined profiles that are curated based on industry standards. Or you can choose to create one that is specific to your usecase, by using an existing library as a starting point. For more information, see Building custom profiles.
Request
Path Parameters
Query Parameters
account_id
string
The user account ID.
Response
200 - The profile was successfully retrieved.
id
string
The ID of the profile
profile_name
string
The name of the profile
profile_description
string
A description of what the profile should represent
profile_type
string
The type of profile, either predefined or custom
profile_version
string
The version of the profile
version_group_label
string
The unique identifier of the revision
latest
boolean
Determines if the profile is up to date with the latest revisions
created_by
string
User who created the profile
created_on
string
The date when the profile was created, in date-time format
updated_by
string
User who made the latest changes to the profile
updated_on
string
The date when the profile was last updated, in date-time format
controls_count
integer
The number of controls contained in the profile
attachments_count
integer
The number of attachments associated with the profile
controls
array
The list of controls
default_parameters
array
The default parameters of the profile
400 -
401 -
403 -
500 -
Delete a custom profile
DELETE /instances/{instance_id}/v3/profiles/{profile_id}
Delete a custom profile by specifying the profile ID.
With Security and Compliance Center, you can utilize predefined profiles that are curated based on industry standards. Or you can choose to create one that is specific to your usecase, by using an existing library as a starting point. For more information, see Building custom profiles.
Request
Path Parameters
Query Parameters
account_id
string
The user account ID.
Response
200 - The profile was deleted successfully.
id
string
The ID of the profile
profile_name
string
The name of the profile
profile_description
string
A description of what the profile should represent
profile_type
string
The type of profile, either predefined or custom
profile_version
string
The version of the profile
version_group_label
string
The unique identifier of the revision
latest
boolean
Determines if the profile is up to date with the latest revisions
created_by
string
User who created the profile
created_on
string
The date when the profile was created, in date-time format
updated_by
string
User who made the latest changes to the profile
updated_on
string
The date when the profile was last updated, in date-time format
controls_count
integer
The number of controls contained in the profile
attachments_count
integer
The number of attachments associated with the profile
controls
array
The list of controls
default_parameters
array
The default parameters of the profile
400 -
401 -
403 -
405 -
500 -
Update custom profile parameters
PUT /instances/{instance_id}/v3/profiles/{profile_id}/parameters
Update the parameters of a custom profile.
With Security and Compliance Center, you can utilize predefined profiles that are curated based on industry standards. Or you can choose to create one that is specific to your usecase, by using an existing library as a starting point. For more information, see Building custom profiles.
Request
Request Body
ProfileDefaultParametersResponse
The request payload to update a custom profile's parameters.
id
string
The ID of the Profile
default_parameters
array
list of parameters given by default
Path Parameters
Query Parameters
account_id
string
The user account ID.
Response
200 - The parameters were updated successfully.
id
string
The ID of the Profile
default_parameters
array
list of parameters given by default
400 -
401 -
403 -
500 -
List profile parameters for a given profile
GET /instances/{instance_id}/v3/profiles/{profile_id}/parameters
List the parameters used in the Profile
Request
Response
200 - The profiles retrieval was successful.
id
string
The ID of the Profile
default_parameters
array
list of parameters given by default
400 -
401 -
403 -
500 -
Compare profiles
GET /instances/{instance_id}/v3/profiles/{profile_id}/compare
Compare the version of the profile that you're currently using with your attachment to the most recent profile version. By comparing them, you can view what controls were added, removed, or modified. For more information, see Building custom profiles.
Request
Path Parameters
Query Parameters
account_id
string
The user account ID.
Response
200 - The profile was successfully retrieved.
current_predefined_version
CompareProfileResponse
Shows a change in the Profile
latest_predefined_version
CompareProfileResponse
Shows a change in the Profile
controls_changes
ControlChanges
Shows details of the controls that were changed.
default_parameters_changes
DefaultParametersChanges
Shows details of the parameters that were changed.
400 -
401 -
403 -
404 -
500 -
Get all instance attachments
GET /instances/{instance_id}/v3/attachments
Retrieve all instance attachments.
With Security and Compliance Center, you can evaluate your resources on a recurring schedule or you can initiate a scan at any time. To evaluate your resources, you create an attachment. An attachment is the association between the set of resources that you want to evaluate and a profile that contains the specific controls that you want to use. For more information, see Running an evaluation for IBM Cloud.
Request
Path Parameters
Query Parameters
account_id
string
The user account ID.
version_group_label
string
The profile version group label.
limit
integer
The number of items that are retrieved in a collection.
sort
string
The sorted collection of attachments. The available values are `created_on` and `scope_type`.
direction
string
The collection of attachments that is sorted in ascending order. To sort the collection in descending order, use the `DESC` schema.
start
string
The reference to the first item in the results page. Take the value from the `next` field that is in the response from the previous page.
Response
200 - The attachments were retrieved successfully.
limit
integer
The requested page limit.
total_count
integer
The total number of resources that are in the collection.
first
PageHRefFirst
A page reference.
next
PageHRefNext
A page reference.
attachments
array
List of attachments
400 -
401 -
403 -
500 -
Create a profile attachment
POST /instances/{instance_id}/v3/profiles/{profile_id}/attachments
Create an attachment to link to a profile.
With Security and Compliance Center, you can evaluate your resources on a recurring schedule or you can initiate a scan at any time. To evaluate your resources, you create an attachment. An attachment is the association between the set of resources that you want to evaluate and a profile that contains the specific controls that you want to use. For more information, see Running an evaluation for IBM Cloud.
Request
Request Body
ProfileAttachmentPrototype
The request payload to create an attachment.
attachments
array
The Prototype to create a profile attachment
Path Parameters
Query Parameters
account_id
string
The user account ID.
Response
201 - The attachment was created successfully.
profile_id
string
The ID of the profile
attachments
array
List of profile attachments associated with profile
400 -
401 -
403 -
500 -
Get all attachments tied to a profile
GET /instances/{instance_id}/v3/profiles/{profile_id}/attachments
Retrieve all attachments that are linked to a profile.
With Security and Compliance Center, you can evaluate your resources on a recurring schedule or you can initiate a scan at any time. To evaluate your resources, you create an attachment. An attachment is the association between the set of resources that you want to evaluate and a profile that contains the specific controls that you want to use. For more information, see Running an evaluation for IBM Cloud.
Request
Path Parameters
Query Parameters
account_id
string
The user account ID.
Response
200 - The attachments were retrieved successfully.
limit
integer
The requested page limit.
total_count
integer
The total number of resources that are in the collection.
first
PageHRefFirst
A page reference.
next
PageHRefNext
A page reference.
attachments
array
List of attachments
400 -
401 -
403 -
500 -
Get an attachment for a profile
GET /instances/{instance_id}/v3/profiles/{profile_id}/attachments/{attachment_id}
Retrieve an attachment that is linked to a profile by specifying the attachment ID.
With Security and Compliance Center, you can evaluate your resources on a recurring schedule or you can initiate a scan at any time. To evaluate your resources, you create an attachment. An attachment is the association between the set of resources that you want to evaluate and a profile that contains the specific controls that you want to use. For more information, see Running an evaluation for IBM Cloud.
Request
Path Parameters
Query Parameters
account_id
string
The user account ID.
Response
200 - The attachment was retrieved successfully.
attachment_parameters
array
The parameters associated with the profile attachment
description
string
The details to describe the profile attachment
name
string
The name of the Profile Attachment
notifications
AttachmentNotifications
The notification configuration of the attachment.
schedule
string
Details how often a scan from a profile attachment is ran.
scope
array
A list of scopes associated with a profile attachment
status
string
Details the state of a profile attachment
account_id
string
The ID of the account
created_by
string
User who created the profile attachment
created_on
string
The date-time that the profile attachment was created
id
string
The ID of the profile attachment
instance_id
string
The ID of the associated Security and Compliance Center instance
last_scan
LastScan
The last scan performed on a profile attachment
next_scan_time
string
The date-time for next scan
profile_id
string
The ID of the profile
updated_by
string
User who made the latest changes to the profile attachment
updated_on
string
The date when the profile was last updated, in date-time format
400 -
401 -
403 -
500 -
Update an attachment
PUT /instances/{instance_id}/v3/profiles/{profile_id}/attachments/{attachment_id}
Update an attachment that is linked to a profile.
With Security and Compliance Center, you can evaluate your resources on a recurring schedule or you can initiate a scan at any time. To evaluate your resources, you create an attachment. An attachment is the association between the set of resources that you want to evaluate and a profile that contains the specific controls that you want to use. For more information, see Running an evaluation for IBM Cloud.
Request
Request Body
ProfileAttachmentPrototype
The request payload to update an attachment.
attachments
array
The Prototype to create a profile attachment
Path Parameters
Query Parameters
account_id
string
The user account ID.
Response
200 - The attachment was updated successfully.
attachment_parameters
array
The parameters associated with the profile attachment
description
string
The details to describe the profile attachment
name
string
The name of the Profile Attachment
notifications
AttachmentNotifications
The notification configuration of the attachment.
schedule
string
Details how often a scan from a profile attachment is ran.
scope
array
A list of scopes associated with a profile attachment
status
string
Details the state of a profile attachment
account_id
string
The ID of the account
created_by
string
User who created the profile attachment
created_on
string
The date-time that the profile attachment was created
id
string
The ID of the profile attachment
instance_id
string
The ID of the associated Security and Compliance Center instance
last_scan
LastScan
The last scan performed on a profile attachment
next_scan_time
string
The date-time for next scan
profile_id
string
The ID of the profile
updated_by
string
User who made the latest changes to the profile attachment
updated_on
string
The date when the profile was last updated, in date-time format
400 -
401 -
403 -
500 -
Delete an attachment
DELETE /instances/{instance_id}/v3/profiles/{profile_id}/attachments/{attachment_id}
Delete an attachment that is linked to a profile.
With Security and Compliance Center, you can evaluate your resources on a recurring schedule or you can initiate a scan at any time. To evaluate your resources, you create an attachment. An attachment is the association between the set of resources that you want to evaluate and a profile that contains the specific controls that you want to use. For more information, see Running an evaluation for IBM Cloud.
Request
Path Parameters
Query Parameters
account_id
string
The user account ID.
Response
200 - The attachment was deleted successfully.
attachment_parameters
array
The parameters associated with the profile attachment
description
string
The details to describe the profile attachment
name
string
The name of the Profile Attachment
notifications
AttachmentNotifications
The notification configuration of the attachment.
schedule
string
Details how often a scan from a profile attachment is ran.
scope
array
A list of scopes associated with a profile attachment
status
string
Details the state of a profile attachment
account_id
string
The ID of the account
created_by
string
User who created the profile attachment
created_on
string
The date-time that the profile attachment was created
id
string
The ID of the profile attachment
instance_id
string
The ID of the associated Security and Compliance Center instance
last_scan
LastScan
The last scan performed on a profile attachment
next_scan_time
string
The date-time for next scan
profile_id
string
The ID of the profile
updated_by
string
User who made the latest changes to the profile attachment
updated_on
string
The date when the profile was last updated, in date-time format
400 -
401 -
403 -
500 -
Upgrade an attachment
POST /instances/{instance_id}/v3/profiles/{profile_id}/attachments/{attachment_id}/upgrade
Upgrade an attachment to the latest version of a profile.
With Security and Compliance Center, you can evaluate your resources on a recurring schedule or you can initiate a scan at any time. To evaluate your resources, you create an attachment. An attachment is the association between the set of resources that you want to evaluate and a profile that contains the specific controls that you want to use. For more information, see Running an evaluation for IBM Cloud.
Request
Request Body
ProfileAttachmentUpgrade
The request payload to upgrade an attachment.
attachment_parameters
array
The attachment_parameters to set for a Profile Attachment
Path Parameters
Query Parameters
account_id
string
The user account ID.
Response
200 - The attachment was created successfully.
attachment_parameters
array
The parameters associated with the profile attachment
description
string
The details to describe the profile attachment
name
string
The name of the Profile Attachment
notifications
AttachmentNotifications
The notification configuration of the attachment.
schedule
string
Details how often a scan from a profile attachment is ran.
scope
array
A list of scopes associated with a profile attachment
status
string
Details the state of a profile attachment
account_id
string
The ID of the account
created_by
string
User who created the profile attachment
created_on
string
The date-time that the profile attachment was created
id
string
The ID of the profile attachment
instance_id
string
The ID of the associated Security and Compliance Center instance
last_scan
LastScan
The last scan performed on a profile attachment
next_scan_time
string
The date-time for next scan
profile_id
string
The ID of the profile
updated_by
string
User who made the latest changes to the profile attachment
updated_on
string
The date when the profile was last updated, in date-time format
400 -
401 -
403 -
500 -
Create a scan
POST /instances/{instance_id}/v3/scans
Create a scan to evaluate your resources.
With Security and Compliance Center, you can evaluate your resources on a recurring schedule. If your attachment exists, but you don't want to wait for the next scan to see your posture, you can initiate an on-demand scan. For more information, see Running a scan on demand.
Request
Request Body
ScanRequest
The request body to create a scan.
attachment_id
string
The ID of the profile attachment
Path Parameters
Query Parameters
account_id
string
The user account ID.
Response
201 - The scan was created successfully.
id
string
The ID of the scan generated
account_id
string
The ID of the account associated with the scan
attachment_id
string
The ID of the profile attachment associated with the scan
report_id
string
The ID of the report associated with the scan
status
string
Details the state of a scan
last_scan_time
string
The last time a scan was performed
next_scan_time
string
The next time a scan will be triggered
scan_type
string
Shows how a scan gets triggered
occurence
integer
The number of times the scan appeared
400 -
401 -
403 -
500 -
Create a scope
POST /instances/{instance_id}/v3/scopes
Create a scope.
Request
Request Body
ScopePrototype
The request payload to create a scope.
name
string
The scope name.
description
string
The scope description.
environment
string
The scope environment.
properties
array
The properties that are supported for scoping by this environment.
Response
201 - The scope was created successfully.
id
string
The ID of the scope.
name
string
The scope name.
description
string
The scope description.
environment
string
The scope environment. This value details what cloud provider the scope targets
properties
array
The properties that are supported for scoping by this environment.
account_id
string
The ID of the account associated with the scope
instance_id
string
The ID of the instance associated with the scope
created_by
string
The identifier of the account or service ID who created the scope.
created_on
string
The date when the scope was created.
updated_by
string
The ID of the user or service ID who updated the scope.
updated_on
string
The date when the scope was updated.
attachment_count
number
The number of attachments tied to the scope
400 - The request failed due to a missing parameter.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
401 - The access token is either missing or invalid.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
403 - You don't have the required permissions to access this resource.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
404 - The requested resource doesn't exist.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
500 - Internal server error.For assistance, contact the IBM Cloud support team.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
503 - The service is not available.For assistance, contact the IBM Cloud support team.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
Get all scopes
GET /instances/{instance_id}/v3/scopes
Get all scopes.
Request
Path Parameters
Query Parameters
limit
integer
The indication of how many resources to return, unless the response is the last page of resources.
start
string
Determine what resource to start the page on or after.
name
string
determine name of scope returned in response.
description
string
determine descriptions of scope returned in response.
environment
string
determine environment of scopes returned in response.
Response
200 - The scopes were retrieved successfully.
limit
integer
The requested page limit.
total_count
integer
The total number of resources that are in the collection.
first
PageHRefFirst
A page reference.
next
PageHRefNext
A page reference.
scopes
array
The array of scopes.
400 - The request failed due to a missing parameter.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
401 - The access token is either missing or invalid.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
403 - You don't have the required permissions to access this resource.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
404 - The requested resource doesn't exist.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
500 - Internal server error.For assistance, contact the IBM Cloud support team.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
503 - The service is not available.For assistance, contact the IBM Cloud support team.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
Update a scope
PATCH /instances/{instance_id}/v3/scopes/{scope_id}
Update the details of a scope.
Request
Request Body
ScopePatch
The request payload to update a scope.
name
string
The scope name.
description
string
The scope description.
Response
200 - The scope was updated successfully.
id
string
The ID of the scope.
name
string
The scope name.
description
string
The scope description.
environment
string
The scope environment. This value details what cloud provider the scope targets
properties
array
The properties that are supported for scoping by this environment.
account_id
string
The ID of the account associated with the scope
instance_id
string
The ID of the instance associated with the scope
created_by
string
The identifier of the account or service ID who created the scope.
created_on
string
The date when the scope was created.
updated_by
string
The ID of the user or service ID who updated the scope.
updated_on
string
The date when the scope was updated.
attachment_count
number
The number of attachments tied to the scope
400 - The request failed due to a missing parameter.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
401 - The access token is either missing or invalid.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
403 - You don't have the required permissions to access this resource.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
404 - The requested resource doesn't exist.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
500 - Internal server error.For assistance, contact the IBM Cloud support team.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
503 - The service is not available.For assistance, contact the IBM Cloud support team.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
Get a scope
GET /instances/{instance_id}/v3/scopes/{scope_id}
Get a scope by specifying the scope ID.
Request
Response
200 - The scope was successfully retrieved.
id
string
The ID of the scope.
name
string
The scope name.
description
string
The scope description.
environment
string
The scope environment. This value details what cloud provider the scope targets
properties
array
The properties that are supported for scoping by this environment.
account_id
string
The ID of the account associated with the scope
instance_id
string
The ID of the instance associated with the scope
created_by
string
The identifier of the account or service ID who created the scope.
created_on
string
The date when the scope was created.
updated_by
string
The ID of the user or service ID who updated the scope.
updated_on
string
The date when the scope was updated.
attachment_count
number
The number of attachments tied to the scope
400 - The request failed due to a missing parameter.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
401 - The access token is either missing or invalid.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
403 - You don't have the required permissions to access this resource.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
404 - The requested resource doesn't exist.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
500 - Internal server error.For assistance, contact the IBM Cloud support team.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
503 - The service is not available.For assistance, contact the IBM Cloud support team.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
Delete a scope
DELETE /instances/{instance_id}/v3/scopes/{scope_id}
Delete a scope by specifying the scope ID.
Request
Response
204 - The scope was deleted successfully.
400 - The request failed due to a missing parameter.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
401 - The access token is either missing or invalid.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
403 - You don't have the required permissions to access this resource.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
404 - The requested resource doesn't exist.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
500 - Internal server error.For assistance, contact the IBM Cloud support team.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
503 - The service is not available.For assistance, contact the IBM Cloud support team.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
Create a subscope
POST /instances/{instance_id}/v3/scopes/{scope_id}/subscopes
Create a subscope.
Request
Request Body
SubScopePrototype
The request payload to create a subscope.
subscopes
array
The array of subscopes.
Response
201 - The subscope was created successfully.
subscopes
array
The array of subscopes.
400 - The request failed due to a missing parameter.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
401 - The access token is either missing or invalid.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
403 - You don't have the required permissions to access this resource.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
404 - The requested resource doesn't exist.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
500 - Internal server error.For assistance, contact the IBM Cloud support team.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
503 - The service is not available.For assistance, contact the IBM Cloud support team.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
Get all subscopes
GET /instances/{instance_id}/v3/scopes/{scope_id}/subscopes
Get all subscopes.
Request
Path Parameters
Query Parameters
limit
integer
The indication of how many resources to return, unless the response is the last page of resources.
start
string
Determine what resource to start the page on or after.
name
string
determine name of subscope returned in response.
description
string
determine descriptions of subscopes returned in response.
environment
string
determine environment of subscopes returned in response.
Response
200 - The subscopes were retrieved successfully.
limit
integer
The requested page limit.
total_count
integer
The total number of resources that are in the collection.
first
PageHRefFirst
A page reference.
next
PageHRefNext
A page reference.
subscopes
array
The array of subscopes.
400 - The request failed due to a missing parameter.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
401 - The access token is either missing or invalid.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
403 - You don't have the required permissions to access this resource.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
404 - The requested resource doesn't exist.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
500 - Internal server error.For assistance, contact the IBM Cloud support team.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
503 - The service is not available.For assistance, contact the IBM Cloud support team.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
Get a subscope
GET /instances/{instance_id}/v3/scopes/{scope_id}/subscopes/{subscope_id}
Get the subscope details.
Request
Response
200 - The subscope was updated successfully.
id
string
The Subscope ID.
name
string
The name of the Subscope
description
string
Text to describe the Subscope
environment
string
The virtual space where applications can be deployed and managed.
properties
array
Additional attributes that are supported for scoping by this environment.
Update a subscope
PATCH /instances/{instance_id}/v3/scopes/{scope_id}/subscopes/{subscope_id}
Update the subscope details.
Request
Request Body
SubScopePatch
The request payload to update a subscope.
name
string
The scope name.
description
string
The scope description.
Response
200 - The subscope was updated successfully.
id
string
The Subscope ID.
name
string
The name of the Subscope
description
string
Text to describe the Subscope
environment
string
The virtual space where applications can be deployed and managed.
properties
array
Additional attributes that are supported for scoping by this environment.
400 - The request failed due to a missing parameter.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
401 - The access token is either missing or invalid.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
403 - You don't have the required permissions to access this resource.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
404 - The requested resource doesn't exist.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
500 - Internal server error.For assistance, contact the IBM Cloud support team.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
503 - The service is not available.For assistance, contact the IBM Cloud support team.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
Delete a subscope
DELETE /instances/{instance_id}/v3/scopes/{scope_id}/subscopes/{subscope_id}
Delete the subscope by specifying the subscope ID.
Request
Response
204 - The subscope was deleted successfully.
400 - The request failed due to a missing parameter.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
401 - The access token is either missing or invalid.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
403 - You don't have the required permissions to access this resource.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
404 - The requested resource doesn't exist.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
500 - Internal server error.For assistance, contact the IBM Cloud support team.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
503 - The service is not available.For assistance, contact the IBM Cloud support team.
status_code
integer
The HTTP status code of the response.
trace
string
The unique ID that can be used to correlate this error with logs, or other diagnostics in the system.
errors
array
A list of one or more errors that were encountered when the request was processing.
Create a target
POST /instances/{instance_id}/v3/targets
Creates a target to scan against
Request
Request Body
TargetPrototype
account_id
Required *
string
The target account ID.
trusted_profile_id
Required *
string
The trusted profile ID.
name
Required *
string
The target name.
credentials
array
Customer credential to access for a specific service to scan.
Response
201 - The target was successfully created.
id
string
The UUID of the target.
account_id
string
The target account ID.
trusted_profile_id
string
The trusted profile ID.
name
string
The target name.
credentials
array
List of credentials
created_by
string
The user ID who created the target.
created_on
string
The time when the target was created.
updated_by
string
The user ID who updated the target.
updated_on
string
The time when the target was updated.
400 -
401 -
403 -
500 -
Get a list of targets with pagination
GET /instances/{instance_id}/v3/targets
Returns a list of targets
Request
Response
200 - The target list response.
limit
integer
The requested page limit.
total_count
integer
The total number of resources that are in the collection.
first
PageHRefFirst
A page reference.
next
PageHRefNext
A page reference.
targets
array
The details of the target account.
400 -
401 -
403 -
500 -
Get a target by ID
GET /instances/{instance_id}/v3/targets/{target_id}
Retrieves a target by its ID association.
Request
Response
200 - The target detail response.
id
string
The UUID of the target.
account_id
string
The target account ID.
trusted_profile_id
string
The trusted profile ID.
name
string
The target name.
credentials
array
List of credentials
created_by
string
The user ID who created the target.
created_on
string
The time when the target was created.
updated_by
string
The user ID who updated the target.
updated_on
string
The time when the target was updated.
400 -
401 -
403 -
500 -
replace a target by ID
PUT /instances/{instance_id}/v3/targets/{target_id}
Updates a target by its ID
Request
Request Body
TargetPrototype
account_id
Required *
string
The target account ID.
trusted_profile_id
Required *
string
The trusted profile ID.
name
Required *
string
The target name.
credentials
array
Customer credential to access for a specific service to scan.
Response
200 - The target is updated successfully.
id
string
The UUID of the target.
account_id
string
The target account ID.
trusted_profile_id
string
The trusted profile ID.
name
string
The target name.
credentials
array
List of credentials
created_by
string
The user ID who created the target.
created_on
string
The time when the target was created.
updated_by
string
The user ID who updated the target.
updated_on
string
The time when the target was updated.
400 -
401 -
403 -
500 -
Delete a target by ID
DELETE /instances/{instance_id}/v3/targets/{target_id}
Deletes a target by the ID.
Request
Response
204 -
400 -
401 -
403 -
500 -
List provider types
GET /instances/{instance_id}/v3/provider_types
List all the registered provider types or integrations such as Workload Protection available to connect to Security and Compliance Center. For more information about connecting Workload Protection with the Security and Compliance Center, see Connecting Workload Protection.
Request
Response
200 - The providers types were successfully retrieved.
provider_types
array
The array of provder type.
401 -
500 -
Get a provider type
GET /instances/{instance_id}/v3/provider_types/{provider_type_id}
Retrieve a provider type by specifying its ID. For more information about integrations, see Connecting Workload Protection.
Request
Response
200 - The provider type was retrieved successfully.
id
string
The unique identifier of the provider type.
type
string
The type of the provider type.
name
string
The name of the provider type.
description
string
The provider type description.
s2s_enabled
boolean
A boolean that indicates whether the provider type is s2s-enabled.
instance_limit
integer
The maximum number of instances that can be created for the provider type.
mode
string
The mode that is used to get results from provider (`PUSH` or `PULL`).
data_type
string
The format of the results that a provider supports.
icon
string
The icon of a provider in .svg format that is encoded as a base64 string.
label
LabelType
The label that is associated with the provider type.
attributes
AttributesValueType
The attributes that are required when you're creating an instance of a provider type. The attributes field can have multiple keys in its value. Each of those keys has a value object that includes the type, and display name as keys. For example, `{type:"", display_name:""}`. NOTE; If the provider type is s2s-enabled, which means that if the `s2s_enabled` field is set to `true`, then a CRN field of type text is required in the attributes value object.
created_at
string
Time at which resource was created.
updated_at
string
Time at which resource was updated.
401 -
404 -
500 -
Create a provider type instance
POST /instances/{instance_id}/v3/provider_types/{provider_type_id}/provider_type_instances
Create an instance of a provider type. For more information about integrations, see Connecting Workload Protection.
Request
Request Body
ProviderTypeInstancePrototype
The request body to create a provider type instance.
name
string
The provider type instance name.
attributes
ProviderTypeInstanceAttributes
The attributes for connecting to the provider type instance.
Response
201 - The provider type instance was created successfully.
id
string
The unique identifier of the provider type instance.
type
string
The type of the provider type.
name
string
The name of the provider type instance.
attributes
ProviderTypeInstanceAttributes
The attributes for connecting to the provider type instance.
created_at
string
Time at which resource was created.
updated_at
string
Time at which resource was updated.
400 -
401 -
404 -
500 -
List instances of a specific provider type
GET /instances/{instance_id}/v3/provider_types/{provider_type_id}/provider_type_instances
Retrieve all instances of a provider type. For more information about integrations, see Connecting Workload Protection.
Request
Response
200 - The list of provider type instances was successfully retrieved.
provider_type_instances
array
The array of instances for all provider types
401 -
404 -
500 -
Get a provider type instance
GET /instances/{instance_id}/v3/provider_types/{provider_type_id}/provider_type_instances/{provider_type_instance_id}
Retrieve a provider type instance by specifying the provider type ID, and Security and Compliance Center instance ID. For more information about integrations, see Connecting Workload Protection.
Request
Response
200 - The provider type instance was successfully retrieved.
id
string
The unique identifier of the provider type instance.
type
string
The type of the provider type.
name
string
The name of the provider type instance.
attributes
ProviderTypeInstanceAttributes
The attributes for connecting to the provider type instance.
created_at
string
Time at which resource was created.
updated_at
string
Time at which resource was updated.
401 -
404 -
500 -
Update a provider type instance
PATCH /instances/{instance_id}/v3/provider_types/{provider_type_id}/provider_type_instances/{provider_type_instance_id}
Update a provider type instance. For more information about integrations, see Connecting Workload Protection.
Request
Request Body
ProviderTypeInstancePrototype
Provider type instance object to be patched
name
string
The provider type instance name.
attributes
ProviderTypeInstanceAttributes
The attributes for connecting to the provider type instance.
Response
200 - Successfully patched provider type instance
id
string
The unique identifier of the provider type instance.
type
string
The type of the provider type.
name
string
The name of the provider type instance.
attributes
ProviderTypeInstanceAttributes
The attributes for connecting to the provider type instance.
created_at
string
Time at which resource was created.
updated_at
string
Time at which resource was updated.
401 -
404 -
500 -
Delete a provider type instance
DELETE /instances/{instance_id}/v3/provider_types/{provider_type_id}/provider_type_instances/{provider_type_instance_id}
Remove a provider type instance. For more information about integrations, see Connecting Workload Protection.
Request
Response
204 - Successfully removed specific instance of a provider type
401 -
404 -
500 -
List latest reports
GET /instances/{instance_id}/v3/reports/latest
Retrieve the latest reports, which are grouped by profile ID, scope ID, and attachment ID. For more information, see Viewing results.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
- ``
Auditing
Calling this method generates the following auditing event.
- ``
Request
Path Parameters
Query Parameters
sort
string
This field sorts results by using a valid sort field. To learn more, see Sorting.
Response
200 - The reports were successfully retrieved.
home_account_id
string
The ID of the home account.
controls_summary
ComplianceStats
The compliance stats.
evaluations_summary
EvalStats
The evaluation stats.
score
ComplianceScore
The compliance score.
reports
array
The list of reports.
400 -
401 -
403 -
429 -
503 -
List reports
GET /instances/{instance_id}/v3/reports
Retrieve a page of reports that are filtered by the specified parameters. For more information, see Viewing results.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
- ``
Auditing
Calling this method generates the following auditing event.
- ``
Request
Path Parameters
Query Parameters
attachment_id
string
The ID of the attachment.
group_id
string
The report group ID.
profile_id
string
The ID of the profile.
type
string
The type of the scan.
start
string
The indication of what resource to start the page on.
limit
integer
The indication of many resources to return, unless the response is the last page of resources.
sort
string
This field sorts results by using a valid sort field. To learn more, see Sorting.
Response
200 - The reports were successfully retrieved.
limit
integer
The requested page limit.
total_count
integer
The total number of resources that are in the collection.
first
PageHRefFirst
A page reference.
next
PageHRefNext
A page reference.
home_account_id
string
The ID of the home account.
reports
array
The list of reports that are on the page.
400 -
401 -
403 -
429 -
503 -
Get a report
GET /instances/{instance_id}/v3/reports/{report_id}
Retrieve a specified report and filter the report details by the specified scope ID and/or subscope ID. For more information, see Viewing results.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
- ``
Auditing
Calling this method generates the following auditing event.
- ``
Request
Response
200 - The report was successfully retrieved.
id
string
The ID of the report.
type
string
The type of the scan.
group_id
string
The group ID that is associated with the report. The group ID combines profile, scope, and attachment IDs.
created_on
string
The date when the report was created.
scan_time
string
The date when the scan was run.
cos_object
string
The Cloud Object Storage object that is associated with the report.
instance_id
string
The ID of the Security and Compliance Center instance.
account
Account
The account that is associated with a report.
profile
ProfileInfo
The profile information.
scope
ScopeID
The scope ID that is associated with a report. Attributes for this object will be blank if the report has multiple scopes tied to the report
attachment
Attachment
The attachment that is associated with a report.
controls_summary
ComplianceStatsWithNonCompliant
The compliance stats.
evaluations_summary
EvalStats
The evaluation stats.
tags
Tags
The collection of different types of tags.
scopes
array
The scopes used in the report
400 -
401 -
403 -
404 -
429 -
503 -
Get a report summary
GET /instances/{instance_id}/v3/reports/{report_id}/summary
Retrieve the complete summarized information for a report. For more information, see Viewing results.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
- ``
Auditing
Calling this method generates the following auditing event.
- ``
Request
Response
200 - The information was successfully retrieved.
report_id
string
The ID of the report.
isntance_id
string
Instance ID.
account
Account
The account that is associated with a report.
score
ComplianceScore
The compliance score.
evaluations
EvalStats
The evaluation stats.
controls
ComplianceStats
The compliance stats.
resources
ResourceSummary
The resource summary.
400 -
401 -
403 -
404 -
429 -
503 -
Get report evaluation details
GET /instances/{instance_id}/v3/reports/{report_id}/download
Download a .csv file to inspect the evaluation details of a specified report. For more information, see Viewing results.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
- ``
Auditing
Calling this method generates the following auditing event.
- ``
Request
Response
200 - The details were successfully retrieved.
400 -
401 -
403 -
404 -
429 -
503 -
Get report controls
GET /instances/{instance_id}/v3/reports/{report_id}/controls
Retrieve a sorted and filtered list of controls for the specified report. For more information, see Viewing results.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
- ``
Auditing
Calling this method generates the following auditing event.
- ``
Request
Path Parameters
Query Parameters
control_id
string
The ID of the control.
control_name
string
The name of the control.
control_description
string
The description of the control.
control_category
string
A control category value.
status
The compliance status value.
sort
string
This field sorts controls by using a valid sort field. To learn more, see Sorting.
scope_id
string
The ID of the scope.
subscope_id
string
The ID of the subscope.
Response
200 - The list was successfully retrieved.
report_id
string
The ID of the report.
home_account_id
string
The ID of the home account.
controls
array
The list of controls that are in the report.
400 -
401 -
403 -
404 -
429 -
503 -
Get a report rule
GET /instances/{instance_id}/v3/reports/{report_id}/rules/{rule_id}
Retrieve the rule by specifying the report ID and rule ID. For more information, see Viewing results.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
- ``
Auditing
Calling this method generates the following auditing event.
- ``
Request
Response
200 - The rule was successfully retrieved.
id
string
The rule ID.
type
string
The rule type.
description
string
The rule description.
version
string
The rule version.
account_id
string
The rule account ID.
created_on
string
The date when the rule was created.
created_by
string
The ID of the user who created the rule.
updated_on
string
The date when the rule was updated.
updated_by
string
The ID of the user who updated the rule.
labels
array
The rule labels.
400 -
401 -
403 -
404 -
429 -
503 -
List report evaluations
GET /instances/{instance_id}/v3/reports/{report_id}/evaluations
Get a paginated list of evaluations for the specified report. For more information, see Viewing results.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
- ``
Auditing
Calling this method generates the following auditing event.
- ``
Request
Path Parameters
Query Parameters
assessment_id
string
The ID of the assessment.
assessment_method
string
The assessment method.
component_id
string
The ID of component.
target_id
string
The ID of the evaluation target.
target_env
string
The environment of the evaluation target.
target_name
string
The name of the evaluation target.
status
The evaluation status value.
start
string
The indication of what resource to start the page on.
limit
integer
The indication of many resources to return, unless the response is the last page of resources.
sort
string
This field sorts results by using a valid sort field. To learn more, see Sorting.
scope_id
string
The ID of the scope.
subscope_id
string
The ID of the subscope.
Response
200 - The list was successfully retrieved.
limit
integer
The requested page limit.
total_count
integer
The total number of resources that are in the collection.
first
PageHRefFirst
A page reference.
next
PageHRefNext
A page reference.
report_id
string
The ID of the report.
home_account_id
string
The ID of the home account.
evaluations
array
The list of evaluations that are on the page.
400 -
401 -
403 -
404 -
429 -
503 -
List report resources
GET /instances/{instance_id}/v3/reports/{report_id}/resources
Get a paginated list of resources for the specified report. For more information, see Viewing results.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
- ``
Auditing
Calling this method generates the following auditing event.
- ``
Request
Path Parameters
Query Parameters
id
string
The ID of the resource.
resource_name
string
The name of the resource.
account_id
string
The user account ID.
component_id
string
The ID of component.
status
The compliance status value.
sort
string
This field sorts resources by using a valid sort field. To learn more, see Sorting.
start
string
The indication of what resource to start the page on.
limit
integer
The indication of many resources to return, unless the response is the last page of resources.
scope_id
string
The ID of the scope.
subscope_id
string
The ID of the subscope.
Response
200 - The list was successfully retrieved.
limit
integer
The requested page limit.
total_count
integer
The total number of resources that are in the collection.
first
PageHRefFirst
A page reference.
next
PageHRefNext
A page reference.
report_id
string
The ID of the report.
home_account_id
string
The ID of the home account.
resources
array
The list of resource evaluation summaries that are on the page.
400 -
401 -
403 -
404 -
429 -
503 -
Get report violations drift
GET /instances/{instance_id}/v3/reports/{report_id}/violations_drift
Get a list of report violation data points for the specified report and time frame. For more information, see Viewing results.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
- ``
Auditing
Calling this method generates the following auditing event.
- ``
Request
Response
200 - The list was successfully retrieved.
home_account_id
string
The ID of the home account.
report_group_id
string
The ID of the report group.
data_points
array
The list of report violations data points.
400 -
401 -
403 -
404 -
429 -
503 -
List scan reports
GET /instances/{instance_id}/v3/reports/{report_id}/scan_reports
Get a list of scan reports and view the status of report generation in progress. For more information, see Viewing results.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
- ``
Auditing
Calling this method generates the following auditing event.
- ``
Request
Path Parameters
Query Parameters
scope_id
string
The ID of the scope.
subscope_id
string
The ID of the subscope.
Response
200 - The list of scan reports was successfully retrieved.
limit
integer
The requested page limit.
total_count
integer
The total number of resources that are in the collection.
first
PageHRefFirst
A page reference.
next
PageHRefNext
A page reference.
scope_id
string
The id of the requested scope.
subscope_id
string
The id of the requested subscope.
scan_reports
array
The list of scan reports.
400 -
401 -
403 -
404 -
429 -
503 -
Create a scan report
POST /instances/{instance_id}/v3/reports/{report_id}/scan_reports
Create a scan report for a specific scope or sub-scope. For more information, see Defining custom rules.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
compliance.posture-management-reports.create
Auditing
Calling this method generates the following auditing event.
compliance.posture-management-reports.create
Request
Request Body
ScanReportPrototype
The scan report request body.
scope_id
string
The ID of the scope
subscope_id
string
The ID of the sub-scope
format
Required *
string
The enum of different report format types.
Response
202 - The scan report was created successfully.
id
string
The scan report ID.
400 -
401 -
403 -
404 -
429 -
503 -
Get a scan report
GET /instances/{instance_id}/v3/reports/{report_id}/scan_reports/{job_id}
Retrieve the scan report by specifying the ID. For more information, see Viewing results.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
- ``
Auditing
Calling this method generates the following auditing event.
- ``
Request
Response
200 - The scan report was successfully retrieved.
id
string
The ID of the scan report.
scan_id
string
The ID of the scan.
instance_id
string
The ID of the Security and Compliance Center instance.
scope_id
string
The ID of the scope.
subscope_id
string
The ID of the sub-scope.
status
string
The enum of different scan report status.
created_on
string
The date when the report was created.
format
string
The file type of the report.
href
string
The URL of the scan report.
400 -
401 -
403 -
404 -
429 -
503 -
Get a scan report details
GET /instances/{instance_id}/v3/reports/{report_id}/scan_reports/{job_id}/download
Download the scan report with evaluation details for the specified ID. For more information, see Viewing results.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
- ``
Auditing
Calling this method generates the following auditing event.
- ``
Request
Response
200 - The scan report was successfully downloaded.
400 -
401 -
403 -
404 -
429 -
503 -
Get all rules
GET /instances/{instance_id}/v3/rules
Retrieve all the rules that you use to target the exact configuration properties that you need to ensure are compliant. For more information, see Defining custom rules.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
compliance.configuration-governance.rules-read
Auditing
Calling this method generates the following auditing event.
compliance.configuration-governance-rules.list
Request
Path Parameters
Query Parameters
limit
integer
The indication of how many resources to return, unless the response is the last page of resources.
start
string
Determine what resource to start the page on or after.
type
string
The list of only user-defined, or system-defined rules.
search
string
The indication of whether to search for rules with a specific string string in the name, description, or labels.
service_name
string
Searches for rules targeting corresponding service.
sort
string
Field used to sort rules. Rules can be sorted in ascending or descending order.
Response
200 - The rules were retrieved successfully.
limit
integer
The requested page limit.
total_count
integer
The total number of resources that are in the collection.
first
PageHRefFirst
A page reference.
next
PageHRefNext
A page reference.
rules
array
The collection of rules that correspond to an account instance. Maximum of 100/500 custom rules per stand-alone/enterprise account.
401 -
403 -
404 -
Create a custom rule
POST /instances/{instance_id}/v3/rules
Create a custom rule to to target the exact configuration properties that you need to evaluate your resources for compliance. For more information, see Defining custom rules.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
compliance.configuration-governance.rules-create
Auditing
Calling this method generates the following auditing event.
compliance.configuration-governance-rules.create
Request
Request Body
RulePrototype
The request body to create a custom rule.
description
Required *
string
The rule description.
version
string
The rule version number.
import
Import
The collection of import parameters.
parameters
array
The list of import parameters.
target
Required *
RuleTargetPrototype
The rule target.
service_name
Required *
string
The target service name.
resource_kind
Required *
string
The target resource kind.
additional_target_attributes
array
The additional target attributes used to filter to a subset of resources.
required_config
Required *
RequiredConfig
The required configurations for a Rule
labels
array
The list of labels that correspond to a rule.
Response
201 - The rule was created successfully.
created_on
string
The date when the rule was created.
created_by
string
The user who created the rule.
updated_on
string
The date when the rule was modified.
updated_by
string
The user who modified the rule.
id
string
The rule ID.
account_id
string
The account ID.
description
string
The details of a rule's response.
type
string
The rule type (allowable values are `user_defined` or `system_defined`).
version
string
The version number of a rule.
import
Import
The collection of import parameters.
target
RuleTarget
The rule target.
required_config
RequiredConfig
The required configurations for a Rule
labels
array
The list of labels.
401 -
403 -
404 -
Get a custom rule
GET /instances/{instance_id}/v3/rules/{rule_id}
Retrieve a rule that you created to evaluate your resources. For more information, see Defining custom rules.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
compliance.configuration-governance.rules-read
Auditing
Calling this method generates the following auditing event.
compliance.configuration-governance-rules.read
Request
Response
200 - The rule was retrieved successfully.
created_on
string
The date when the rule was created.
created_by
string
The user who created the rule.
updated_on
string
The date when the rule was modified.
updated_by
string
The user who modified the rule.
id
string
The rule ID.
account_id
string
The account ID.
description
string
The details of a rule's response.
type
string
The rule type (allowable values are `user_defined` or `system_defined`).
version
string
The version number of a rule.
import
Import
The collection of import parameters.
target
RuleTarget
The rule target.
required_config
RequiredConfig
The required configurations for a Rule
labels
array
The list of labels.
401 -
403 -
404 -
Update a custom rule
PUT /instances/{instance_id}/v3/rules/{rule_id}
Update a custom rule that you use to target the exact configuration properties that you need to evaluate your resources for compliance. For more information, see Defining custom rules.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
compliance.configuration-governance.rules-update
Auditing
Calling this method generates the following auditing event.
compliance.configuration-governance-rules.update
Request
Request Body
RulePrototype
The request body to update a custom rule.
description
Required *
string
The rule description.
version
string
The rule version number.
import
Import
The collection of import parameters.
parameters
array
The list of import parameters.
target
Required *
RuleTargetPrototype
The rule target.
service_name
Required *
string
The target service name.
resource_kind
Required *
string
The target resource kind.
additional_target_attributes
array
The additional target attributes used to filter to a subset of resources.
required_config
Required *
RequiredConfig
The required configurations for a Rule
labels
array
The list of labels that correspond to a rule.
Path Parameters
Query Parameters
Response
200 - The rule was updated successfully.
created_on
string
The date when the rule was created.
created_by
string
The user who created the rule.
updated_on
string
The date when the rule was modified.
updated_by
string
The user who modified the rule.
id
string
The rule ID.
account_id
string
The account ID.
description
string
The details of a rule's response.
type
string
The rule type (allowable values are `user_defined` or `system_defined`).
version
string
The version number of a rule.
import
Import
The collection of import parameters.
target
RuleTarget
The rule target.
required_config
RequiredConfig
The required configurations for a Rule
labels
array
The list of labels.
401 -
403 -
404 -
Delete a custom rule
DELETE /instances/{instance_id}/v3/rules/{rule_id}
Delete a custom rule that you no longer require to evaluate your resources. For more information, see Defining custom rules.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
compliance.configuration-governance.rules-delete
Auditing
Calling this method generates the following auditing event.
compliance.configuration-governance-rules.delete