Before You Start
SparkRTC, built on Huawei's long-established video technologies and expertise, delivers a high-concurrency and high-definition (HD) experience in real time. It offers dependable security at low latency and is an ideal option for a broad array of real-time communication (RTC) scenarios, such as online education, cloud conferencing, social networking, and entertainment.
This document describes how to use APIs to perform operations such as managing applications and mixed stream recording jobs. For details about all supported operations, see API Overview.
Before calling SparkRTC APIs, ensure that you have fully understood related concepts. For details, see Service Overview.
SparkRTC provides Representational State Transfer (REST) APIs, allowing you to call APIs using HTTPS.
Endpoints
An endpoint is the request address for calling an API. SparkRTC is a global service deployed for all physical regions. Table 1 lists SparkRTC endpoints.
Constraints
API request throttling is configured for SparkRTC to prevent service interruption caused by repeated API calls in a short period.
| API Category | API Name | Request Throttling |
|---|---|---|
| Application management |
| 60 times/minute |
| Recording template management |
| |
| Automatic recording configuration |
| |
| Application callback management |
| |
| Mixed stream recording job management |
| 10 times/second |
| Single stream recording job management |
| |
| Room management |
| 60 times/minute |
| OBS bucket management |
| Twice per second |
| Statistical analysis |
| 30 times/minute |
Concepts
- Account
An account is created upon successful registration with the cloud platform. The account has full access permissions for all of its cloud services and resources. It can be used to reset user passwords and grant user permissions. An account is a payment entity. Accounts should not be used directly to perform routine management. For security purposes, create IAM users and grant them permissions for routine management.
- IAM user
An IAM user is created using an account to use cloud services. Each IAM user has its own identity credentials (password and access keys).
An IAM user can view the account ID and user ID on the My Credentials page of the console. The account, username, and password will be required for API authentication.
- Region
A region is a physical location where cloud resources are deployed. Availability zones (AZs) in the same region can communicate with each other over an intranet, but AZs in different regions cannot. Deploying cloud resources in different regions can better suit certain user requirements or comply with local laws or regulations.
- AZ
An AZ contains one or more physical data centers equipped with independent ventilation, fire, water, and electricity facilities. Compute, networking, storage, and other resources in an AZ are logically divided into multiple clusters. AZs within a region are interconnected using high-speed optical fibers to allow you to build cross-AZ, high-availability systems.
- Project
Projects group and isolate resources (including compute, storage, and networking resources) across physical regions. A default project is provided for each region, and subprojects can be created under each default project. Users can be granted permissions to access all resources in a specific project. For more refined access control, create subprojects under a project and purchase resources in the subprojects. Users can then be assigned permissions to access only specific resources in the subprojects.
Figure 1 Project isolating model
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