https://api.bitsighttech.com/v1/companies/infrastructure/requests/
See your Company Provided Assets.
Only Admin can see company provided assets.
Parameters
* Required.
See query parameters for details on the q
parameter.
Parameter | Values |
---|---|
attributed_to * [Path] Filter by company. |
[String] Company unique identifier [entity_guid ]. See GET: Portfolio Details. |
reason.slug [Query] Filter by reason. |
[String] See reasons.
|
request_date [Query] Filter by request date, including:
|
[String] |
requested_by [Query] Filter by requester. |
[String] User unique identifier [user_guid ]. See GET: Users. |
status.slug [Query] Filter by request status. |
[String] See request statuses.
|
value [Query] Filter by domain or CIDR. |
[String]
|
Example Request
curl https://api.bitsighttech.com/ratings/v1/companies/infrastructure/requests/ -u api_token:
Example Response
{ "links":{ "next":null, "previous":null }, "count":6, "results":[ […] { "temporary_id":"TDUvt5o2mEe1d5be1c7f2f456670de3d53c7b54f4a", "value":"24.6.0.0/30", "type":"cidr", "status":{ "slug":"error", "name":"Error" }, "attributed_to":{ "guid":"a940bb61-33c4-42c9-9231-c8194c305db3", "name":"Saperix, Inc." }, "requested_by":{ "guid":"11111111-aaaa-1111-aaaa-111111111111", "name":"Arnold Brown" }, "request_date":"2023-04-19", "reason":{ "slug":"cloud", "name":"Dynamically scaled cloud assets" }, "message":"Active CIDR already exists" } ] }
Response Attributes
Field | Description | |||
---|---|---|---|---|
linksObject |
Navigation for multiple pages of results. See pagination. | |||
nextString |
The URL for navigating to the next page of results. | |||
previousString |
The URL for navigating to the previous page of results. | |||
countInteger |
The number of assets. | |||
resultsArray |
Assets and their infrastructure changes. | |||
Object | An asset. | |||
temporary_idString |
A temporary identifier for this asset. | |||
valueString |
The asset’s name. | |||
typeString |
The type of asset. | |||
statusObject |
The request status. | |||
slugString |
The status slug name. | |||
nameString |
The status name. | |||
attributed_toObject |
The company that owns the asset. | |||
guidString [ entity_guid ] |
The unique identifier of the company attributed to the asset. | |||
nameString |
The name of the company attributed to the asset. | |||
requested_byObject |
The user who requested the change. | |||
guidString [ user_guid ] |
This user’s unique identifier. | |||
nameString |
This user’s name. | |||
request_dateString [ YYYY-MM-DD ] |
When the request was submitted. | |||
reasonObject |
The reason why the asset was added. | |||
slugString |
The reason slug name. | |||
nameString |
The reason. | |||
messageString |
The status message. |
Response Codes
See common errors and status codes.
Code | Description |
---|---|
202 – Accepted |
Everything worked as expected. |
- May 10, 2023:
reason
&message
fields. - March 31, 2023: Published.
Feedback
0 comments
Please sign in to leave a comment.