检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
创建用户并授权使用Live 如果您需要对所拥有的Live进行精细的权限管理,可以使用统一身份认证服务(Identity and Access Management,简称IAM),通过IAM,您可以: 根据企业的业务组织,在您的华为云账号中,给企业中不同职能部门的员工创建IAM用户
X-Subject-Token的值)。 Access-Control-Allow-Internal 否 String 服务鉴权Token,服务开启鉴权,必须携带Access-Control-Allow-Internal访问服务。 Access-Control-Allow-External
X-Subject-Token的值)。 Access-Control-Allow-Internal 否 String 服务鉴权Token,服务开启鉴权,必须携带Access-Control-Allow-Internal访问服务。 Access-Control-Allow-External
X-Subject-Token的值)。 Access-Control-Allow-Internal 否 String 服务鉴权Token,服务开启鉴权,必须携带Access-Control-Allow-Internal访问服务。 Access-Control-Allow-External
部分内容。 { "user": { "id": "c131886aec...", "name": "IAMUser", "description": "IAM User Description",
部分内容。 { "user": { "id": "c131886aec...", "name": "IAMUser", "description": "IAM User Description",
GmCertificateInfo 参数 参数类型 描述 source String 证书来源, 可选, scm: 云证书管理服务,user:默认,用户自有 cert_name String SCM证书名, 可选 cert_id String SCM证书ID, 证书来源为scm时必选 sign_certificate
是否必选 参数类型 描述 source 否 String 证书来源, 可选, scm: 云证书管理服务,user:默认,用户自有 cert_name 否 String SCM证书名, 可选 cert_id 否 String SCM证书ID, 证书来源为scm时必选 sign_certificate
"user": { "name": "username", "password": "password", "domain": { "name": "domainname"
main”、“app_name”和“stream_name”即可查看禁推的直播流信息。 GET /v1/{project_id}/stream/blocks?domain=play.example.com&app_name=live&stream_name=live 父主题: 直播推流
项目ID,获取方法请参考获取项目ID。 表2 Query参数 参数 是否必选 参数类型 描述 domain 是 String 推流域名 app_name 是 String 应用名称 stream_name 是 String 流名称(不为*) 请求参数 表3 请求Header参数 参数 是否必选 参数类型 描述 X-Auth-Token
"user": { "name": "username", "password": "password", "domain": { "name": "domainname"
调用禁推恢复接口,设置请求参数“domain”、“app_name”和“stream_name”即可恢复禁推直播流。 DELETE /v1/{project_id}/stream/blocks? domain=play.example.com&app_name=live&stream_name=live 父主题: 直播推流
application/json X-Sdk-Date: 20240416T095341Z Authorization: SDK-HMAC-SHA256 Access=****************, SignedHeaders=content-type;host;x-sdk-date, Sign
{ "error_code" : "LIVE.100011003", "error_msg" : "Unauthorized access to the interface, please contact the main account administrator to
application/json X-Sdk-Date: 20240416T095341Z Authorization: SDK-HMAC-SHA256 Access=****************, SignedHeaders=content-type;host;x-sdk-date, Sign
"user": { "name": "username", "password": "password", "domain": { "name": "domainname"
、“app_name”、“stream_name”和“resume_time”即可禁推指定的直播流。 POST /v1/{project_id}/stream/blocks { "domain": "play.example.com", "app_name": "live"
{ "error_code" : "LIVE.100011003", "error_msg" : "Unauthorized access to the interface, please contact the main account administrator to
调用视频直播API时,可能返回的状态码如表1所示。 表1 状态码 返回值 说明 200 OK 请求正常。 201 Created 创建类的请求完全成功。 202 Accepted 已经接受请求,但未处理完成。 204 No Content 请求完全成功,同时HTTP响应不包含响应体。 400 Bad Request