certifyActivitySpec

Rest API to certify ActivitySpec

Status Transition

Pre-Status

Post-Status

Pre-Status

Post-Status

draft

certified

Request Body

Request body is a JSON object (Content-Type: application/json) includes the following fields.

Field Name

Mandatory(M)

/Optional(O)

/Conditional(C)

Validations

Field Name

Mandatory(M)

/Optional(O)

/Conditional(C)

Validations

InvariantUUID

M

Exist in SDC

UUID

M

Exist in SDC

Sample



Request Headers:

Connection: keep-alive

Accept: application/json

Content-Type: application/json

USER_ID: cs0008

Content-Length: 342

User-Agent: Jakarta Commons-HttpClient/3.1

Host: 192.172.97.237:8080

POST http://192.172.97.237:8080/activityspec-api/v1.0/activity-spec

{

  "name": "Stop_VNF",

  "description": "Activity to Stop VNF",

  "categoryList": [

    "VNF"

  ],

  "inputParameters": [

    {

      "name": "wait_time",

      "type": "string"     

    }

  ],

  "outputParameters": [

    {

      "name": "status",

      "type": "string",

      "value": "stopped"

    }

  ]

}

Response Body

Empty Response body.

HTTP Response Codes

HTTP Response Code

Description

HTTP Response Code

Description

200

Success

TBD

InvariantUUID not found

TBD

UUID not found

TBD 

InvariantUUID & UUID don't match

TBD 

ActivitySpec not in draft status