The approval
capability if enabled in Cisco Virtual Managed Services allows the user with
relevant permissions to approve or reject a service request.
An approver can approve or reject the following request types:
For more
information on permissions required to enable approvals for a user, see
Cisco Virtual Managed
Services (VMS) 3.3 Platform and Service Pack Permissions Addendum.
The approval
metadata must be enabled at the service offer level. This metadata must be
imported using the 'Import' service POST request in the Consume Service API.
To enable
Approval, add the following metadata to the 'offers' section of the Import
service POST request in the Consume Service API.
For more
information on the API, refer to the Swagger documentation that can be accessed
from the
VMS
portal > Account Settings.
"approvals": {
"supportedApprovalOperations": [
"NEW_ORDER","UPDATE_ORDER","DELETE_ORDER"
You can use the
same API to edit the allowed operations (New service, Update Service,
Unsubscribe) for Approvals. After enabling the Approval functionality for a
service offering, any users with APPROVE_SERVICE permission can approve or
reject a service request.
The following is a
ConsumeService API sample that includes the Approvals metadata.
{
"id": "16daba64-f788-4138-8977-6d5def97e16a",
"name": "cloudvpn",
"configuration": {},
"options": [],
"properties": [],
"offers": [
{
"id": "17b1d14c-60ee-4cce-8475-b9e2bb0fa9a8",
"name": "basic",
"approvals": {
"supportedApprovalOperations": [
"NEW_ORDER","UPDATE_ORDER","DELETE_ORDER"
]
}
},
{
"id": "ab0ef666-965a-4c20-b97e-709ab66394f8",
"name": "medium",
"approvals": {
"supportedApprovalOperations": [
"NEW_ORDER","UPDATE_ORDER","DELETE_ORDER"
]
}
},
"offers": [
{
"id": "17b1d14c-60ee-4cce-8475-b9e2bb0fa9a8",
"name": "basic",
"approvals": {
"supportedApprovalOperations": [
"NEW_ORDER","UPDATE_ORDER","DELETE_ORDER"
]