Retrieves the current set of VMP statuses that will result in a license request rejection.
Request
Endpoint
GET /drm/vmp-reject-statuses
Response
A successful response returns the following parameters:
Name | Data Type | Description |
---|---|---|
vmp_reject_statuses | List of string values | List of VMP statuses that will cause license request rejection. |
error | Integer | Indicates whether an error occurred. |
Sample Request/Response
The code below (Python 3) shows how to retrieve the current VMP status configuration.
This code imports names from the api_auth
module for V4 APIs (see below).
🦉
API Auth for Classic Authentication (V4 APIs)
Open Recipe
Python Example:
import requests
from api_auth import APICredentials, APIParams
class VMPStatus:
def __init__(self):
self.host = "https://services.uplynk.com"
def run(self):
"""Retrieve VMP status configuration."""
self._get_vmp_status_configuration()
def _get_vmp_status_configuration(self):
url = f"{self.host}/api/v3/drm/vmp-reject-statuses"
response = requests.get(
url, params=APIParams(APICredentials()).get_params({})
)
print(response.json())
VMPStatus().run()
Sample Response:
{
"vmp_reject_statuses": [],
"error": 0
}