Subscribing to the Media Transcoding Service as a Tenant
Function
A tenant subscribes to the media transcoding service.
Calling Method
For details, see Calling APIs.
URI
PUT /v1/{project_id}/tenant/access
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see Obtaining the Project ID](tag:hc,hk). |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
No |
String |
User token. It 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. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
is_open |
No |
Boolean |
Whether the service has been subscribed to
|
agreement_version |
No |
Integer |
Service agreement version. |
Response Parameters
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code |
error_msg |
String |
Error description |
Example Requests
{ "is_open" : false, "agreement_version" : 1 }
Example Responses
None
Status Codes
Status Code |
Description |
---|---|
200 |
If the request is successful, 200 OK No Content is returned. |
400 |
The information is returned when the request 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