Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This API is used by the SO Monitoring UI for the Casablanca SO Monitoring Use Case.



Table of Contents


Get a Service List based on the given Request Id

Interface Definition

Description

URI

https://{host}:{port}/v0/search

Operation Type

POST

Content-Type

application/json


Request Header

Header Name

Required?

Description

Accept

N

Determines the format of the body of the response. Valid value is “application/json”

Authorization

Y

Supplies Basic Authentication credentials for the request. If the Authorization header is missing, then an HTTP 400 Invalid Request response is returned. If the string supplied is invalid, then an HTTP 401 Unauthorized response is returned.

Content-Type

Y

Determines the format of the request content. Only application/json is supported.

Content-Length

N

Number of bytes in the body of the request. Note that content length is limited to 1 MB.

Request Parameter

Attribute

Required?

Cardinality

Content

Values

Description

Map<String, String[]>

Y

1

Map Object


The content of search criteria filters

Response Body

Attribute

Required?

Cardinality

Content

Values

Description

Response

Y

1..N

javax.ws.rs.core.Response


A response represent a list of SoInfraRequest


SoInfraRequest Object

Attribute

Required?

Cardinality

Content

Values

Description

reqeustId

Y

1

String


A request id, it is used to query the corresponding top-level process Instance Id

serviceInstanceId

Y

1

String


A Service Instance Id

ServiceInstanceName

Y

1

String


A Service Instanced Name

networkIdY1String
A network id
requestStatusY1String
A request Status
serviceTypeY1String
A service type
startTimeY1String
A request start time
endTimeY1String
A request end time


Get process instance Id Detail for the given request id

Interface Definition

Description

URI

https://{host}:{port}/process-instance-id/{requestId}

Operation Type

Get

Content-Type

application/json

Request Header

Header Name

Required?

Description

Accept

N

Determines the format of the body of the response. Valid value is “application/json”

Authorization

Y

Supplies Basic Authentication credentials for the request. If the Authorization header is missing, then an HTTP 400 Invalid Request response is returned. If the string supplied is invalid, then an HTTP 401 Unauthorized response is returned.

Content-Type

Y

Determines the format of the request content. Only application/json is supported.

Content-Length

N

Number of bytes in the body of the request. Note that content length is limited to 1 MB.

Request Parameter

Attribute

Required?

Cardinality

Content

Values

Description

requestId

Y

1

String Object


The content of the Request Id. Based on this, query the corresponding top-level process instance id

Response Body

Attribute

Required?

Cardinality

Content

Values

Description

Response

Y

1..N

javax.ws.rs.core.Response


A response represent a list of ProcessInstanceIdDetail

ProcessInstanceIdDetail Object

Attribute

Required?

Cardinality

Content

Values

Description

processInstanceId

Y

1

String


A Process Instance Id


Get a Single process Instance detail for the given Process Instance Id

Interface Definition

Description

URI

https://{host}:{port}/process-instance-id/{processInstanceId}

Operation Type

Get

Content-Type

application/json

Request Header

Header Name

Required?

Description

Accept

N

Determines the format of the body of the response. Valid value is “application/json”

Authorization

Y

Supplies Basic Authentication credentials for the request. If the Authorization header is missing, then an HTTP 400 Invalid Request response is returned. If the string supplied is invalid, then an HTTP 401 Unauthorized response is returned.

Content-Type

Y

Determines the format of the request content. Only application/json is supported.

Content-Length

N

Number of bytes in the body of the request. Note that content length is limited to 1 MB.

Request Parameter

Attribute

Required?

Cardinality

Content

Values

Description

processInstanceId

Y

1

String Object


The content of the process instance Id

Response Body

Attribute

Required?

Cardinality

Content

Values

Description

Response

Y

1

javax.ws.rs.core.Response


A response represent of ProcessInstanceDetail

ProcessInstanceDetail Object

Attribute

Required?

Cardinality

Content

Values

Description

id

Y

1

String


A Process Instance Id

processDefinitionId

Y

1

String


A Process Definition Id, which is used for diagram rendering

ProcessDefinitionName

Y

1

String


A Process Definition Name

superProcessInstanceIdY1String
A parent Process Instance Id. When this is null, the process instance is top-level.

Get a Process Definition XML for the given Process Definition Id

Interface Definition

Description

URI

https://{host}:{port}/process-definition/{processDefinitionId}

Operation Type

Get

Content-Type

application/json

Request Header

Header Name

Required?

Description

Accept

N

Determines the format of the body of the response. Valid value is “application/json”

Authorization

Y

Supplies Basic Authentication credentials for the request. If the Authorization header is missing, then an HTTP 400 Invalid Request response is returned. If the string supplied is invalid, then an HTTP 401 Unauthorized response is returned.

Content-Type

Y

Determines the format of the request content. Only application/json is supported.

Content-Length

N

Number of bytes in the body of the request. Note that content length is limited to 1 MB.

Request Parameter

Attribute

Required?

Cardinality

Content

Values

Description

processDefinitionId

Y

1

String Object


The content of the process definition Id

Response Body

Attribute

Required?

Cardinality

Content

Values

Description

Response

Y

1

javax.ws.rs.core.Response


A response represent of ProcessDefinitionDetail

ProcessDefinitionDetail Object

Attribute

Required?

Cardinality

Content

Values

Description

processDefinitionId

Y

1

String


A Process Definition Id

processDefinitionXml

Y

1

String


A processDefinition BPMN 2 XML String

Get a list of Activity Instance Detail for the given Process Instance Id

Interface Definition

Description

URI

https://{host}:{port}/activity-instance/{processInstanceId}

Operation Type

Get

Content-Type

application/json

Request Header

Header Name

Required?

Description

Accept

N

Determines the format of the body of the response. Valid value is “application/json”

Authorization

Y

Supplies Basic Authentication credentials for the request. If the Authorization header is missing, then an HTTP 400 Invalid Request response is returned. If the string supplied is invalid, then an HTTP 401 Unauthorized response is returned.

Content-Type

Y

Determines the format of the request content. Only application/json is supported.

Content-Length

N

Number of bytes in the body of the request. Note that content length is limited to 1 MB.

Request Parameter

Attribute

Required?

Cardinality

Content

Values

Description

processDefinitionId

Y

1

String Object


The content of the process definition Id

Response Body

Attribute

Required?

Cardinality

Content

Values

Description

Response

Y

1..N

javax.ws.rs.core.Response


A response represent of a list of ActivityInstanceDetail

ActivityInstanceDetail Object

Attribute

Required?

Cardinality

Content

Values

Description

activityId

Y

1

String


An Activity Id

processDefinitionXml

Y

1

String


A processDefinition BPMN 2 XML String

HTTP Response Code

HTTP Code

Response Phrase

Description

201

Created

An optimization solution is found.

202

Accepted

An optimization request is accepted.

400

Bad request

Bad request.

401

Unauthorized

Request body is not compliant with the API definition.

404

Not found

The server cannot find the requested URI.

405

Method not found

The requested method is not supported by a server.

500

Internal server error

The server encountered an internal server error or timed out.

520Solver errorRequested number of solutions cannot be found.

Request Example



OOF/PCI Request Example Expand source

Synchronous Response Example



OOF/PCI Response Example


  • No labels