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. Learn more. |
Sample Request/Response
You can use the Python script get_vmp_rejection_status_configuration.py
to retrieve the current VMP status configuration. The script imports credentials from api_auth.py
.
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
}