Disable site

Prev Next

One Click Multi DRM provides an API to disable created sites.

Requests

PUT https://multi-drm.apigw.ntruss.com/api/v1/sites/{siteId}/off

Request headers

Header name Requirement status Description
x-ncp-apigw-timestamp YES This is the number of milliseconds that have elapsed since January 1, 1970 00:00:00 (UTC)
If the time difference compared to the API Gateway server is 5 minutes or longer, then the request is considered invalid
x-ncp-apigw-timestamp:{Timestamp}
x-ncp-iam-access-key YES Value of access key ID issued in the NAVER Cloud Platform portal
x-ncp-iam-access-key:{Sub Account Access Key}
x-ncp-apigw-signature-v2 YES Signature encrypted with the access key ID value and secret key
x-ncp-apigw-signature-v2:{API Gateway Signature}
Content-Type YES Specifies the request body content type as application/json
Content-Type: application/json
x-ncp-region_code YES Region code (KR)

Response

Field name Requirement status Type Restriction Description
siteName Yes String This must be between 3 and 20 characters in length
Special character (underscore) allowed
Name of the site to be created
siteId Yes String Unique ID of the created site
siteEnabledYn Yes Boolean Site activation status
siteStatus Yes String CREATING,READY,RUNNING,DELETED Condition of the created site
policyId Yes Integer default policyId : 0 Playback and security policy according to DRM type used during DRM application
fairPlayCert Optional Object Fairplay certification for FairPlay Streaming DRM application
fairPlayCert.certFile Optional String Only supports *.der or *.cer file FairPlay Streaming certificate acquired from Apple
Only supports http download URL
fairPlayCert.privateKey Optional String Only supports *.pem files Private key file of the FairPlay Streaming certificate acquired from Apple
Only supports http download URL
fairPlayCert.privateEncryptedString Optional String Private key acquired upon Fairplay Streaming certificate issuance
fairPlayCert.secretKey Optional String Application secret key (ASK) string acquired upon Fairplay Streaming certificate issuance
statistics Yes Object Statistics Object
statistics.siteMontlyActiveUser Yes Integer MAU value created through the site
statistics.siteMontlyActiveLicense Yes Integer MAL value created through the site
statistics.siteMontlyActiveDevice Yes Integer MAD value created through the site
siteCreatedTime Yes Timestamp Site creation time
siteUpdatedTime Yes Timestamp Time the site is updated

Examples

Response example

HTTP/1.1 200 OK
Server: nginx
Date: Fri, 26 Feb 2021 09:53:32 GMT
Content-Type: application/json;charset=utf-8
Connection: keep-alive
Access-Control-Allow-Origin: *
x-ncp-trace-id: 36c9k60om4p3238cpmc9gm4cj4

{
  "success": true,
  "content": {
    "siteId": "drm-20231101082316-dJDGa",
    "siteName": "myDrmTest",
    "siteStatus": "READY",
    "siteEnabledYn": true,
    "policyId": 0,
    "fairPlayCert": {},
    "statistics": {
      "siteMontlyActiveUser": 0,
      "siteMontlyActiveDevice": 0,
      "siteMontlyActiveLicense": 0
    },
    "siteUpdated": 1696817889000
  }
}