Get Instance Activity Details
get
/api/v1/blockchainPlatforms/instances/{id}/activity
Gets the instance activity details.
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): string
Unique platform instance identifier
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : InstanceActivityInfoSummary
Type:
object
Activities for a Blockchain Platform instance
Show Source
-
activities:
array activities
List activities associated with a Blockchain Platform instance
Nested Schema : activities
Type:
array
List activities associated with a Blockchain Platform instance
Show Source
Nested Schema : ActivityInfoSummary
Type:
Show Source
object
-
details:
string
Detailed message from the latest status of the operation
-
initiatedBy:
string
User who initiated the activity
-
instanceId:
string
Platform instance ID
-
instanceName:
string
Name of the platform instance
-
lastUpdatedTime:
string(date-time)
Most recent time when the operation status was tracked
-
operation:
string
Operation name
-
operationId:
string
Operation ID
-
operationStartTime:
string(date-time)
Time when the operation started
-
operationStatus:
string
Operation status
401 Response
Not authorized
404 Response
Invalid parameters
500 Response
Service unavailable
Examples
This endpoint is used to get the details of all the activities of performed on a particular Blockchain Platform instance.
The following example shows how to query and get the details of all the activities performed on a particular Blockchain Platform instance.
curl -X GET \ http://<hostname>:<port>/api/v1/blockchainPlatforms/instances/9956c203-5182-4db1-bcf1-9f34e1df29c8/activity \ -H 'Authorization: Basic b2JwdXNlcjpXZWxjb21lMQ==' \ -H 'Content-Type: application/json'
Example of the Response Body
The following example shows the contents of the response body in JSON format:
{ "activities": [ { "instanceId": "e1f7bcfe-cc7e-4d19-97fb-772b231fcf99", "instanceName": "myNATinstf1", "operation": "Scaleout", "operationId": "IDxp769lEAPEz7Ch2ntj94P0-xeFubY87wh3dQzr88k1Q=", "operationStatus": "successful", "operationStartTime": 1567562162133, "lastUpdatedTime": 1567562238677, "initiatedBy": "obpuser", "details": "Operation successful." }, { "instanceId": "e1f7bcfe-cc7e-4d19-97fb-772b231fcf99", "instanceName": "myinstance", "operation": "Scalein", "operationId": "IDxUl_j7o3Ayqi6wJfNBpBpDrijePWoXgwy9pljmqkZ_k=", "operationStatus": "successful", "operationStartTime": 1567559363488, "lastUpdatedTime": 1567559428821, "initiatedBy": "obpuser", "details": "Operation successful." }, { "instanceId": "e1f7bcfe-cc7e-4d19-97fb-772b231fcf99", "instanceName": "myinstance", "operation": "Create", "operationId": "IDGacTFUlm0wfhjpkYP2inLAhcJrO8D2muFAHMJT9HiOg=", "operationStatus": "successful", "operationStartTime": 1567556931932, "lastUpdatedTime": 1567557797289, "initiatedBy": "obpuser", "details": "Operation successful." } ] }