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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
object_storage
ObjectStoragePrototype
The payload to connect a Cloud Object Storage instance to an Security and Compliance Center instance.
Example: {"instance_crn":"crn:v1:staging:public:cloud-object-storage:global:a/ff88f007f9ff4622aac4fbc0eda36255:7199ae60-a214-4dd8-9bf7-ce571de49d01::","bucket":"px-scan-results"}
event_notifications
EventNotificationsPrototype
The payload to connect an Event Notification instance with a Security and Compliance Center instance.
Example: {"instance_crn":"crn:v1:staging:public:event-notifications:us-south:a/ff88f007f9ff4622aac4fbc0eda36255:b8b07245-0bbe-4478-b11c-0dce523105fd::","source_name":"scc-sdk-integration","source_description":"This source is used for integration with IBM Cloud Security and Compliance Center."}
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
control_library_name
Required *
str
The name of the control library.
Example: custom control library from SDK
control_library_description
Required *
str
Details of the control library.
Example: This is a custom control library made from the SDK test framework
control_library_type
Required *
str
Details that the control library is a user made(custom) or Security Compliance Center(predefined).
Example: custom
Allowed values: custom
control_library_version
Required *
str
The revision number of the control library.
Example: 0.0.1
controls
Required *
List[ControlPrototype]
The list of rules that the control library attempts to adhere to.
Example: [{"control_description":"This is a description of a control","control_name":"security","control_parent":"","control_category":"test-control","control_requirement":true,"control_docs":{},"control_specifications":[{"component_id":"apprapp","control_specification_description":"This field is used to describe a control specification","environment":"ibm-cloud","assessments":[{"assessment_description":"This rule will check on regulation","assessment_id":"rule-d1bd9f3f-bee1-46c5-9533-da8bba9eed4e"}]}],"status":"disabled"}]
Constraints:
- Max items: 999
account_id
str
The user account ID.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
account_id
str
The user account ID.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
control_library_id
Required *
str
The predefined control library ID.
control_library_name
Required *
str
The name of the control library.
control_library_description
Required *
str
Details of the control library.
control_library_type
Required *
str
Details that the control library is a user made(custom) or Security Compliance Center(predefined).
Allowed values: custom
control_library_version
Required *
str
The revision number of the control library.
controls
Required *
List[ControlPrototype]
The list of rules that the control library attempts to adhere to.
Constraints:
- Max items: 999
bss_account
str
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
control_library_id
Required *
str
The predefined control library ID.
account_id
str
The user account ID.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
control_library_id
Required *
str
The predefined control library ID.
account_id
str
The user account ID.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
profile_name
str
The name of the profile.
Constraints:
- Pattern:
/^.*$/
profile_description
str
A description of what the profile should represent.
Constraints:
- Pattern:
/^.*$/
profile_version
str
The version of the profile.
Constraints:
- Pattern:
/^\\d.\\d.\\d$/
latest
bool
Determines if the profile is up to date with the latest revisions.
version_group_label
str
The unique identifier of the revision.
controls
List[ProfileControlsPrototype]
List of controls associated with the profile.
default_parameters
List[DefaultParameters]
The default values when using the profile.
account_id
str
The user account ID.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
account_id
str
The user account ID.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
profile_id
Required *
str
The profile ID.
Example: 48279384-3d29-4089-8259-8ed354774b4a
profile_name
str
The name of the profile.
Constraints:
- Pattern:
/^.*$/
profile_description
str
A description of what the profile should represent.
Constraints:
- Pattern:
/^.*$/
profile_version
str
The version of the profile.
Constraints:
- Pattern:
/^\\d.\\d.\\d$/
latest
bool
Determines if the profile is up to date with the latest revisions.
version_group_label
str
The unique identifier of the revision.
controls
List[ProfileControlsPrototype]
List of controls associated with the profile.
default_parameters
List[DefaultParameters]
The default values when using the profile.
account_id
str
The user account ID.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
profile_id
Required *
str
The profile ID.
Example: 48279384-3d29-4089-8259-8ed354774b4a
account_id
str
The user account ID.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
profile_id
Required *
str
The profile ID.
Example: 48279384-3d29-4089-8259-8ed354774b4a
account_id
str
The user account ID.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
profile_id
Required *
str
The profile ID.
Example: 48279384-3d29-4089-8259-8ed354774b4a
id
str
The ID of the Profile.
default_parameters
List[DefaultParameters]
list of parameters given by default.
account_id
str
The user account ID.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
profile_id
Required *
str
The profile ID.
Example: 48279384-3d29-4089-8259-8ed354774b4a
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
profile_id
Required *
str
The profile ID.
Example: 48279384-3d29-4089-8259-8ed354774b4a
account_id
str
The user account ID.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
account_id
str
The user account ID.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
version_group_label
str
The profile version group label.
limit
int
The number of items that are retrieved in a collection.
Default: 25
sort
str
The sorted collection of attachments. The available values are `created_on` and `scope_type`.
Allowed values: created_on, scope_type
direction
str
The collection of attachments that is sorted in ascending order. To sort the collection in descending order, use the `DESC` schema.
Allowed values: desc, asc
start
str
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
profile_id
Required *
str
The profile ID.
Example: 48279384-3d29-4089-8259-8ed354774b4a
attachments
List[ProfileAttachmentBase]
The Prototype to create a profile attachment.
Example: [{"name":"Profile Attachment for IBM CIS Foundation SDK test","description":"This is a profile attachment targeting IBM CIS Foundation using a SDK","scope":[{"id":"8baad3b5-2e69-4027-9967-efac19508e1c"}],"schedule":"daily","status":"disabled","attachment_parameters":[{"parameter_value":"['1.2', '1.3']","assessment_id":"rule-e16fcfea-fe21-4d30-a721-423611481fea","assessment_type":"automated","parameter_display_name":"IBM Cloud Internet Services TLS version","parameter_name":"tls_version","parameter_type":"string_list"},{"parameter_value":"22","assessment_id":"rule-f9137be8-2490-4afb-8cd5-a201cb167eb2","assessment_type":"automated","parameter_display_name":"Network ACL rule for allowed IPs to SSH port","parameter_name":"ssh_port","parameter_type":"numeric"},{"parameter_value":"3389","assessment_id":"rule-9653d2c7-6290-4128-a5a3-65487ba40370","assessment_type":"automated","parameter_display_name":"Security group rule RDP allow port number","parameter_name":"rdp_port","parameter_type":"numeric"},{"parameter_value":"22","assessment_id":"rule-7c5f6385-67e4-4edf-bec8-c722558b2dec","assessment_type":"automated","parameter_display_name":"Security group rule SSH allow port number","parameter_name":"ssh_port","parameter_type":"numeric"},{"parameter_value":"3389","assessment_id":"rule-f1e80ee7-88d5-4bf2-b42f-c863bb24601c","assessment_type":"automated","parameter_display_name":"Disallowed IPs for ingress to RDP port","parameter_name":"rdp_port","parameter_type":"numeric"}],"notifications":{"enabled":true,"controls":{"threshold_limit":15,"failed_control_ids":[]}}}]
Constraints:
- Min items: 1
- Max items: 999
account_id
str
The user account ID.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
profile_id
Required *
str
The profile ID.
Example: 48279384-3d29-4089-8259-8ed354774b4a
account_id
str
The user account ID.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
profile_id
Required *
str
The profile ID.
Example: 48279384-3d29-4089-8259-8ed354774b4a
attachment_id
Required *
str
The attachment ID.
account_id
str
The user account ID.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
profile_id
Required *
str
The profile ID.
Example: 48279384-3d29-4089-8259-8ed354774b4a
attachment_id
Required *
str
The attachment ID.
attachments
List[ProfileAttachmentBase]
The Prototype to create a profile attachment.
Constraints:
- Min items: 1
- Max items: 999
account_id
str
The user account ID.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
profile_id
Required *
str
The profile ID.
Example: 48279384-3d29-4089-8259-8ed354774b4a
attachment_id
Required *
str
The attachment ID.
account_id
str
The user account ID.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
profile_id
Required *
str
The profile ID.
Example: 48279384-3d29-4089-8259-8ed354774b4a
attachment_id
Required *
str
The attachment ID.
attachment_parameters
List[Parameter]
The attachment_parameters to set for a Profile Attachment.
Constraints:
- Max items: 99999
account_id
str
The user account ID.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
attachment_id
str
The ID of the profile attachment.
account_id
str
The user account ID.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
name
str
The scope name.
Example: ibm scope
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9_,'\\s\\-\\.]*$/
description
str
The scope description.
Example: The scope that is defined for IBM resources.
Constraints:
- Max length: 512
- Pattern:
/^[a-zA-Z0-9_,'\\s\\-\\.]*$/
environment
str
The scope environment.
Example: ibm-cloud
Constraints:
- Max length: 128
- Pattern:
/^[a-zA-Z0-9_,'\\s\\-\\.]*$/
properties
List[ScopeProperty]
The properties that are supported for scoping by this environment.
Example: [{"name":"scope_id","value":"1234567"},{"name":"scope_type","value":"account"},{"name":"exclusions","value":[{"scope_id":"cg3335893hh1428692d6747cf300yeb5a","scope_type":"account.resource_group"}]}]
Constraints:
- Max items: 300
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
limit
int
The indication of how many resources to return, unless the response is the last page of resources.
Default: 50
start
str
Determine what resource to start the page on or after.
Constraints:
- Max length: 1024
- Pattern:
/^.*$/
name
str
determine name of scope returned in response.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^.*$/
description
str
determine descriptions of scope returned in response.
Constraints:
- Max length: 512
- Pattern:
/^.*$/
environment
str
determine environment of scopes returned in response.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^.*$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
scope_id
Required *
str
The ID of the scope being targeted.
name
str
The scope name.
Example: updated name of scope
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9_,'\\s\\-\\.]*$/
description
str
The scope description.
Example: updated scope description
Constraints:
- Max length: 512
- Pattern:
/^[a-zA-Z0-9_,'\\s\\-\\.]*$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
scope_id
Required *
str
The ID of the scope being targeted.
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
scope_id
Required *
str
The ID of the scope being targeted.
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
scope_id
Required *
str
The ID of the scope being targeted.
subscopes
List[ScopePrototype]
The array of subscopes.
Example: [{"environment":"ibm-cloud","name":"ibm subscope","description":"The subscope that is defined for IBM resources.","properties":[{"name":"scope_id","value":"1234567"},{"name":"scope_type","value":"account"},{"name":"exclusions","value":[{"scope_id":"cg3335893hh1428692d6747cf300yeb5a","scope_type":"account.resource_group"}]}]}]
Constraints:
- Max items: 300
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
scope_id
Required *
str
The ID of the scope being targeted.
limit
int
The indication of how many resources to return, unless the response is the last page of resources.
Default: 50
start
str
Determine what resource to start the page on or after.
Constraints:
- Max length: 1024
- Pattern:
/^.*$/
name
str
determine name of subscope returned in response.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^.*$/
description
str
determine descriptions of subscopes returned in response.
Constraints:
- Max length: 512
- Pattern:
/^.*$/
environment
str
determine environment of subscopes returned in response.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^.*$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
scope_id
Required *
str
The ID of the scope being targeted.
subscope_id
Required *
str
The ID of the scope being targeted.
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
scope_id
Required *
str
The ID of the scope being targeted.
subscope_id
Required *
str
The ID of the scope being targeted.
name
str
The scope name.
Example: updated name of scope
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9_,'\\s\\-\\.]*$/
description
str
The scope description.
Example: updated scope description
Constraints:
- Max length: 512
- Pattern:
/^[a-zA-Z0-9_,'\\s\\-\\.]*$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
scope_id
Required *
str
The ID of the scope being targeted.
subscope_id
Required *
str
The ID of the scope being targeted.
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
account_id
Required *
str
The target account ID.
Example: be200c80cabc456e91139e4152327823
Constraints:
- Min length: 2
- Max length: 256
- Pattern:
/^[0-9A-Fa-f]{32}$|^$/
trusted_profile_id
Required *
str
The trusted profile ID.
Example: Profile-a0a4c149-4fed-47ff-bfb2-680bcfaa64d3
Constraints:
- Min length: 2
- Max length: 256
- Pattern:
/^Profile-[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$|^$/
name
Required *
str
The target name.
Example: Target accountA
Constraints:
- Min length: 2
- Max length: 256
- Pattern:
/^.*$/
credentials
List[Credential]
Customer credential to access for a specific service to scan.
Example: [{"secret_crn":"dummy","resources":[{"service_name":"pm-20"},{"instance_crn":"crn"}]}]
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
target_id
Required *
str
The target ID.
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
target_id
Required *
str
The target ID.
account_id
Required *
str
The target account ID.
Example: be200c80cabc456e91139e4152327823
Constraints:
- Min length: 2
- Max length: 256
- Pattern:
/^[0-9A-Fa-f]{32}$|^$/
trusted_profile_id
Required *
str
The trusted profile ID.
Example: Profile-a0a4c149-4fed-47ff-bfb2-680bcfaa64d3
Constraints:
- Min length: 2
- Max length: 256
- Pattern:
/^Profile-[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$|^$/
name
Required *
str
The target name.
Example: Target accountA
Constraints:
- Min length: 2
- Max length: 256
- Pattern:
/^.*$/
credentials
List[Credential]
Customer credential to access for a specific service to scan.
Example: [{"secret_crn":"dummy","resources":[{"service_name":"pm-20"},{"instance_crn":"crn"}]}]
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
target_id
Required *
str
The target ID.
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
provider_type_id
Required *
str
The provider type ID.
Constraints:
- Min length: 32
- Max length: 36
- Pattern:
/^[a-zA-Z0-9 ,\\-_]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
provider_type_id
Required *
str
The provider type ID.
Constraints:
- Min length: 32
- Max length: 36
- Pattern:
/^[a-zA-Z0-9 ,\\-_]+$/
name
str
The provider type instance name.
Example: workload-protection-instance-1
Constraints:
- Min length: 1
- Max length: 64
- Pattern:
/^[A-Za-z0-9-]+$/
attributes
dict
The attributes for connecting to the provider type instance.
Example: {"wp_crn":"crn:v1:staging:public:sysdig-secure:eu-gb:a/14q5SEnVIbwxzvP4AWPCjr2dJg5BAvPb:d1461d1ae-df1eee12fa81812e0-12-aa259::"}
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
provider_type_id
Required *
str
The provider type ID.
Constraints:
- Min length: 32
- Max length: 36
- Pattern:
/^[a-zA-Z0-9 ,\\-_]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
provider_type_id
Required *
str
The provider type ID.
Constraints:
- Min length: 32
- Max length: 36
- Pattern:
/^[a-zA-Z0-9 ,\\-_]+$/
provider_type_instance_id
Required *
str
The provider type instance ID.
Constraints:
- Min length: 32
- Max length: 36
- Pattern:
/^[a-zA-Z0-9 ,\\-_]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
provider_type_id
Required *
str
The provider type ID.
Constraints:
- Min length: 32
- Max length: 36
- Pattern:
/^[a-zA-Z0-9 ,\\-_]+$/
provider_type_instance_id
Required *
str
The provider type instance ID.
Constraints:
- Min length: 32
- Max length: 36
- Pattern:
/^[a-zA-Z0-9 ,\\-_]+$/
name
str
The provider type instance name.
Example: workload-protection-instance-1
Constraints:
- Min length: 1
- Max length: 64
- Pattern:
/^[A-Za-z0-9-]+$/
attributes
dict
The attributes for connecting to the provider type instance.
Example: {"wp_crn":"crn:v1:staging:public:sysdig-secure:eu-gb:a/14q5SEnVIbwxzvP4AWPCjr2dJg5BAvPb:d1461d1ae-df1eee12fa81812e0-12-aa259::"}
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
provider_type_id
Required *
str
The provider type ID.
Constraints:
- Min length: 32
- Max length: 36
- Pattern:
/^[a-zA-Z0-9 ,\\-_]+$/
provider_type_instance_id
Required *
str
The provider type instance ID.
Constraints:
- Min length: 32
- Max length: 36
- Pattern:
/^[a-zA-Z0-9 ,\\-_]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
sort
str
This field sorts results by using a valid sort field. To learn more, see Sorting.
Example: profile_name
Constraints:
- Min length: 1
- Max length: 32
- Pattern:
/^[\\-]?[a-z0-9_]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
attachment_id
str
The ID of the attachment.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
group_id
str
The report group ID.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
profile_id
str
The ID of the profile.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
type
str
The type of the scan.
Example: scheduled
Allowed values: ondemand, scheduled
start
str
The indication of what resource to start the page on.
Constraints:
- Max length: 512
- Pattern:
/^[a-zA-Z0-9\\-]+$/
limit
int
The indication of many resources to return, unless the response is the last page of resources.
Default: 50
sort
str
This field sorts results by using a valid sort field. To learn more, see Sorting.
Example: profile_name
Constraints:
- Min length: 1
- Max length: 32
- Pattern:
/^[\\-]?[a-z0-9_]+$/
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
Parameters
report_id
Required *
str
The ID of the scan that is associated with a report.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
scope_id
str
The ID of the scope.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
subscope_id
str
The ID of the subscope.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
report_id
Required *
str
The ID of the scan that is associated with a report.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
report_id
Required *
str
The ID of the scan that is associated with a report.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
accept
str
The type of the response: application/csv or application/pdf.
Allowed values: application/csv, application/pdf
exclude_summary
bool
The indication of whether report summary metadata must be excluded.
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
report_id
Required *
str
The ID of the scan that is associated with a report.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
control_id
str
The ID of the control.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
control_name
str
The name of the control.
Constraints:
- Min length: 1
- Max length: 1024
- Pattern:
/^[a-zA-Z0-9\\-]+$/
control_description
str
The description of the control.
Constraints:
- Min length: 1
- Max length: 1024
- Pattern:
/^[a-zA-Z0-9\\s]+$/
control_category
str
A control category value.
Constraints:
- Min length: 1
- Max length: 1024
- Pattern:
/^[a-zA-Z0-9\\-]+$/
status
str
The compliance status value.
Example: compliant
Allowed values: compliant, not_compliant, unable_to_perform, user_evaluation_required, not_applicable
sort
str
This field sorts controls by using a valid sort field. To learn more, see Sorting.
Allowed values: control_name, control_category, status
scope_id
str
The ID of the scope.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
subscope_id
str
The ID of the subscope.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
report_id
Required *
str
The ID of the scan that is associated with a report.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
rule_id
Required *
str
The ID of a rule/assessment.
Example: rule-8d444f8c-fd1d-48de-bcaa-f43732568761
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
report_id
Required *
str
The ID of the scan that is associated with a report.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
assessment_id
str
The ID of the assessment.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
assessment_method
str
The assessment method.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z\\-]+$/
component_id
str
The ID of component.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9.\\-]+$/
target_id
str
The ID of the evaluation target.
Constraints:
- Min length: 1
- Max length: 1024
- Pattern:
/^[a-zA-Z0-9\\-]+$/
target_env
str
The environment of the evaluation target.
Constraints:
- Min length: 1
- Max length: 32
- Pattern:
/^[a-zA-Z0-9\\-]+$/
target_name
str
The name of the evaluation target.
Constraints:
- Min length: 1
- Max length: 1024
- Pattern:
/^[a-zA-Z0-9\\-]+$/
status
str
The evaluation status value.
Example: failure
Allowed values: pass, failure, error, skipped
start
str
The indication of what resource to start the page on.
Constraints:
- Max length: 512
- Pattern:
/^[a-zA-Z0-9\\-]+$/
limit
int
The indication of many resources to return, unless the response is the last page of resources.
Default: 50
sort
str
This field sorts results by using a valid sort field. To learn more, see Sorting.
Example: profile_name
Constraints:
- Min length: 1
- Max length: 32
- Pattern:
/^[\\-]?[a-z0-9_]+$/
scope_id
str
The ID of the scope.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
subscope_id
str
The ID of the subscope.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
report_id
Required *
str
The ID of the scan that is associated with a report.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
id
str
The ID of the resource.
Constraints:
- Min length: 1
- Max length: 1024
- Pattern:
/^[a-zA-Z0-9\\-]+$/
resource_name
str
The name of the resource.
Constraints:
- Min length: 1
- Max length: 1024
- Pattern:
/^[a-zA-Z0-9\\-]+$/
account_id
str
The user account ID.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
component_id
str
The ID of component.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9.\\-]+$/
status
str
The compliance status value.
Example: compliant
Allowed values: compliant, not_compliant, unable_to_perform, user_evaluation_required, not_applicable
sort
str
This field sorts resources by using a valid sort field. To learn more, see Sorting.
Allowed values: account_id, component_id, resource_name, status
start
str
The indication of what resource to start the page on.
Constraints:
- Max length: 512
- Pattern:
/^[a-zA-Z0-9\\-]+$/
limit
int
The indication of many resources to return, unless the response is the last page of resources.
Default: 50
scope_id
str
The ID of the scope.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
subscope_id
str
The ID of the subscope.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
report_id
Required *
str
The ID of the scan that is associated with a report.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
scan_time_duration
int
The duration of the `scan_time` timestamp in number of days.
Default: 0
scope_id
str
The ID of the scope.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
subscope_id
str
The ID of the subscope.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
report_id
Required *
str
The ID of the scan that is associated with a report.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
scope_id
str
The ID of the scope.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
subscope_id
str
The ID of the subscope.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
report_id
Required *
str
The ID of the scan that is associated with a report.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
format
Required *
str
The enum of different report format types.
Example: csv
Allowed values: csv, pdf
scope_id
str
The ID of the scope.
Example: 132009ff-b982-412e-a110-ad8797e10f84
Constraints:
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
subscope_id
str
The ID of the sub-scope.
Example: c7ddcbcc-6a43-4ab3-b6a7-b2d8f65cd54a
Constraints:
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
report_id
Required *
str
The ID of the scan that is associated with a report.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
job_id
Required *
str
The ID of the scan_result.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
report_id
Required *
str
The ID of the scan that is associated with a report.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
job_id
Required *
str
The ID of the scan_result.
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
accept
str
The type of the response: application/csv or application/pdf.
Allowed values: application/csv, application/pdf
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
limit
int
The indication of how many resources to return, unless the response is the last page of resources.
Default: 50
start
str
Determine what resource to start the page on or after.
Constraints:
- Max length: 1024
- Pattern:
/^.*$/
type
str
The list of only user-defined, or system-defined rules.
Example: system_defined
Allowed values: user_defined, system_defined
search
str
The indication of whether to search for rules with a specific string string in the name, description, or labels.
Constraints:
- Max length: 256
- Pattern:
/^.*$/
service_name
str
Searches for rules targeting corresponding service.
Constraints:
- Max length: 64
- Pattern:
/^.*$/
sort
str
Field used to sort rules. Rules can be sorted in ascending or descending order.
Example: updated_on
Allowed values: description, service_display_name, type, updated_on
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
description
Required *
str
The rule description.
Example: Example rule
Constraints:
- Max length: 512
- Pattern:
/^.*$/
target
Required *
RuleTargetPrototype
The rule target.
Example: {"service_name":"cloud-object-storage","resource_kind":"bucket","additional_target_attributes":[{"name":"location","operator":"string_equals","value":"us-east"}]}
required_config
Required *
RequiredConfig
The required configurations for a Rule.
Example: {"description":"The Cloud Object Storage rule.","and":[{"property":"hard_quota","operator":"num_equals","value":"${hard_quota}"}]}
version
str
The rule version number.
Example: 1.0.0
Constraints:
- Min length: 5
- Max length: 10
- Pattern:
/^[0-9][0-9.]*$/
import_
Import
The collection of import parameters.
Example: {"parameters":[{"name":"hard_quota","display_name":"The Cloud Object Storage bucket quota.","description":"The maximum bytes that are allocated to the Cloud Object Storage bucket.","type":"numeric"}]}
labels
List[str]
The list of labels that correspond to a rule.
Example: []
Constraints:
- Max items: 32
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
rule_id
Required *
str
The ID of a rule/assessment.
Example: rule-8d444f8c-fd1d-48de-bcaa-f43732568761
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
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
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
rule_id
Required *
str
The ID of a rule/assessment.
Example: rule-8d444f8c-fd1d-48de-bcaa-f43732568761
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/
if_match
Required *
str
This field compares a supplied `Etag` value with the version that is stored for the requested resource. If the values match, the server allows the request method to continue.
To find the `Etag` value, run a GET request on the resource that you want to modify, and check the response headers.
Constraints:
- Min length: 4
- Max length: 128
- Pattern:
/^W\/\"[^\"]*\"$/
description
Required *
str
The rule description.
Example: Example rule
Constraints:
- Max length: 512
- Pattern:
/^.*$/
target
Required *
RuleTargetPrototype
The rule target.
Example: {"service_name":"cloud-object-storage","service_display_name":"Cloud Object Storage","resource_kind":"bucket","additional_target_attributes":[{"name":"location","operator":"string_equals","value":"us-south"}]}
required_config
Required *
RequiredConfig
The required configurations for a Rule.
Example: {"description":"The Cloud Object Storage rule.","and":[{"property":"hard_quota","operator":"num_equals","value":"${hard_quota}"}]}
version
str
The rule version number.
Example: 1.0.1
Constraints:
- Min length: 5
- Max length: 10
- Pattern:
/^[0-9][0-9.]*$/
import_
Import
The collection of import parameters.
Example: {"parameters":[{"name":"hard_quota","display_name":"The Cloud Object Storage bucket quota.","description":"The maximum bytes that are allocated to the Cloud Object Storage bucket.","type":"numeric"}]}
labels
List[str]
The list of labels that correspond to a rule.
Example: []
Constraints:
- Max items: 32
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
Request
Parameters
instance_id
Required *
str
The ID of the Security and Compliance Center instance.
Example: acd7032c-15a3-484f-bf5b-67d41534d940
Constraints:
- Min length: 36
- Max length: 36
- Pattern:
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/
rule_id
Required *
str
The ID of a rule/assessment.
Example: rule-8d444f8c-fd1d-48de-bcaa-f43732568761
Constraints:
- Min length: 1
- Max length: 128
- Pattern:
/^[a-zA-Z0-9\\-]+$/