Media Acceleration Live Broadcast

QueryForbidLivestreamRecord

갱신 시간: 2024-05-27 15:47:37

Query the live stream that has been blocked.

  • 단일 사용자 통화 빈도: 10/5min
  • 해당 상품(제품): Media Acceleration Live Broadcast
API 인증에 관한 자세한 내용은 다음을 참조하십시오:API 인증 개요

요청 파라미터

Body 파라미터

파라미터 이름설명
*channel
channel
url
url,Complete push stream or pull stream url

응답 파라미터

Body 파라미터

파라미터 이름설명
code
result code,00 means success
message
result message
resultDetail
Set of task results
channel
channel
url
url
startTime
start time, format:1532413615
endTime
end time,format:1532413615
ip
ip of forbidden user

에러 코드

에러 코드(code)설명(message)HTTP 상태 코드설명
0"success"200success
1"username is lack"200user is unactive
6"user[%s] apiCustomer not exist or not allowed push!"200account not exist or not allowed
28"Username[%s] and Channel[%s] does not match."200The user has no permission to operate the domain name
403"parse request body error"200parse request body error
411"channel is require"200channel is require
417"query failed"200system error

예제

JSON
JSON
요청 예제
복사 복사 완료
#!/bin/bash
username="username"
apiKey="apiKey"
date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"`
password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64`
curl -i --url "https://api.cdnetworks.com/cm/stream/forbidQuery" \
-X "POST" \
-u "$username:$password" \
-H "Date: $date" \
-H 'Accept: application/json' \
-d '{
    "channel":"www.example.com",
    "url":"https://vodtest.lxdns.com/test/1.txt"
}'
응답 예제
복사 복사 완료
HTTP/1.1 202 OK
Date: Sun, 11 Feb 2018 08:22:10 GMT
Content-Type: application/json
Content-Length: 86
Connection: keep-alive
x-cnc-request-id: 39c70980-6df2-4fba-813b-8fcedd4e6337
{
    "code": "00",
    "message": "success",
    "resultDetail": [{
        "chanel": "vodtest.lxdns.com",
        "endTime": 1532413615,
        "ip": "",
        "startTime": 0,
        "url": "https://vodtest.lxdns.com/test/1.txt"
    }]
}
이 문서의 내용이 도움이 되었습니까?
아니오
정상적으로 제출되었습니다.피드백을 주셔서 감사합니다.앞으로도 개선을 위해 노력하겠습니다.