Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Accessing a Real-Time Service Through a VPC Channel

Updated on 2024-12-26 GMT+08:00

Context

To access a ModelArts real-time service from an internal VPC node of your account, you can use a VPC channel. By creating an endpoint in your VPC and connecting to the ModelArts VPC endpoint service, you can access the real-time service from your VPC endpoint.

Constraints

When you call an API to access a real-time service, the size of the prediction request body and the prediction time are subject to the following limitations:
  • The size of a request body cannot exceed 12 MB. Otherwise, the request will fail.
  • Due to the limitation of API Gateway, the prediction duration of each request does not exceed 40 seconds.

Procedure

To access a real-time service through a VPC channel, follow these steps:

  1. Obtain the ModelArts VPC endpoint service address.
  2. Buy and connect to a ModelArts endpoint.
  3. Create a private DNS zone.
  4. Access a real-time service through VPC.
  1. Submit a service ticket and provide the account ID to Huawei Cloud technical support to obtain the ModelArts VPC endpoint service address.
  2. Buy and connect to a ModelArts endpoint.

    1. Log in to the VPC management console. In the navigation pane, choose VPC Endpoint > VPC Endpoints.
    2. Click Buy VPC Endpoint in the upper right corner.
      • Region: region where the VPC endpoint is located.

        Resources in different regions cannot communicate with each other. The region must be the same as that of ModelArts.

      • Service Category: Select Find a service by name.
      • VPC Endpoint Service Name: Enter the endpoint service address obtained in step 1. Click Verify on the right. The system automatically sets VPC, Subnet, and Private IP Address.
      • Create a Private Domain Name: Retain the default setting.
    3. Confirm the specifications, and click Next and then Submit. The VPC endpoint list page is displayed.

  3. Create a private DNS zone.

    The newly created real-time service is interconnected with a dedicated gateway. The independent public domain name of ModelArts inference, that is, infer-modelarts-<Region ID>.modelarts-infer.com, is required. The intranet VPC cannot resolve the modelarts-infer.com domain name. You need to add private domain name resolution by referring to this step and 4.
    1. Log in to the DNS console. In the navigation pane on the left, choose Private Zones.
    2. Click Create Private Zone. Set the following parameters:
      • Domain Name: Enter a value in the format infer-modelarts-<Region ID>.modelarts-infer.com. Example: infer-modelarts-cn-south-1.modelarts-infer.com.
      • VPC: Select a VPC you want to associate with the private zone.
    3. Click OK.

  4. Access the real-time service through the VPC.

    1. Use the following API to access a real-time service through VPC:
      https://{Private DNS domain name}/{URL}
      • Private DNS domain name: private domain name you set. You can also click Access VPC on the real-time service list page to view the domain name in the displayed dialog box.
      • URL: The URL for a real-time service is the part after the domain name of API URL in the Usage Guides tab of the service details page.
        Figure 1 Obtaining the URL
    2. Use GUI-based software, cURL command, or Python to access a real-time service. For details, see Accessing a Real-Time Service Through Token-based Authentication.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback