Querying Dimension Configurations
Function
Added the API for querying dimension configurations.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the following required identity policy-based permissions. For details about the required permissions, see Permissions Policies and Supported Actions.
|
Action |
Access Level |
Resource Type (*: required) |
Condition Key |
Alias |
Dependencies |
|---|---|---|---|---|---|
|
live:ott:getDimsInfo |
List |
- |
- |
- |
- |
URI
GET /v1/{project_id}/ott/dims-info
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see "Obtaining a Project ID". |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
namespace |
Yes |
String |
Namespace, such as SYS.LIVE, is consistent with the namespace used by the service when reporting metrics. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
No |
String |
User token. This parameter is mandatory when token authentication is used. The token can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
|
Authorization |
No |
String |
Authentication information. This parameter is mandatory for AK/SK authentication. |
|
X-Sdk-Date |
No |
String |
Request time. This parameter is mandatory for AK/SK authentication. |
|
X-Project-Id |
No |
String |
Project ID. This parameter is mandatory for AK/SK authentication. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
query |
query object |
Response to a Cloud Eye query |
|
Parameter |
Type |
Description |
|---|---|---|
|
medialive_mpc |
CesDimsItem object |
Media Live transcoding service |
|
pipeline |
CesDimsItem object |
Channel |
|
audio |
CesDimsItem object |
Audio |
|
medialive_cdn |
CesDimsItem object |
Media Live CDN service |
|
medialive_package |
CesDimsItem object |
Media Live packaging service |
|
medialive_connect |
CesDimsItem object |
Media Live service for sending and receiving streams |
|
medialive_tailor |
CesDimsItem object |
Media Live advertising service |
|
region |
CesDimsItem object |
Service region corresponding to the live broadcast |
|
Parameter |
Type |
Description |
|---|---|---|
|
params |
Array of strings |
Query parameter |
|
display |
display object |
Information displayed |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code |
|
error_msg |
String |
Error message |
Example Requests
GET https://{endpoint}/v1/{project_id}/ott/dims-info?namespace=SYS.LIVE
Example Responses
Status code: 200
Succeeded.
{
"query" : {
"medialive_mpc" : {
"params" : [ "id" ],
"display" : {
"id" : {
"zh-cn" : "Channel",
"en-us" : "Channel"
}
}
},
"pipeline" : {
"params" : [ "id" ],
"display" : {
"id" : {
"zh-cn" : "Channel",
"en-us" : "Pipeline"
}
}
},
"region" : {
"params" : [ "id" ],
"display" : {
"id" : {
"zh-cn" : "Region",
"en-us" : "Region"
}
}
},
"audio" : {
"params" : [ "id" ],
"display" : {
"id" : {
"zh-cn" : "Audio",
"en-us" : "Audio"
}
}
},
"medialive_cdn" : {
"params" : [ "id" ],
"display" : {
"id" : {
"zh-cn" : "Domain name",
"en-us" : "Domain"
}
}
},
"medialive_package" : {
"params" : [ "id" ],
"display" : {
"id" : {
"zh-cn" : "Channel",
"en-us" : "Channel"
}
}
},
"medialive_connect" : {
"params" : [ "id" ],
"display" : {
"id" : {
"zh-cn" : "Stream",
"en-us" : "Flow"
}
}
},
"medialive_tailor" : {
"params" : [ "id" ],
"display" : {
"id" : {
"zh-cn" : "Configuration name",
"en-us" : "Configuration Name"
}
}
}
}
}
Status code: 400
Request parameter verification failed.
{
"error_code" : "LIVE.100011001",
"error_msg" : "Request parameters is invalid"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Succeeded. |
|
400 |
Request parameter verification failed. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot