### Example: Starting the local proxy and debugging Source: https://docs.byteplus.com/en/docs/byteplus-cdn/cli-ref-nest-start-cn This example demonstrates the output after running 'npx nest start'. It shows the debugger setup, connection status, environment variable loading, script building and uploading, and the local HTTP proxy address. ```shell $ npx nest start ==> Setting up debugger... ==> [info]: connection setup successfully! ==> [info]: loading envrionment variables... ✔ ==> [info]: building script "default"... ==> [info]: uploading script 'default': **********/output/index.js... ✔ ==> Local http proxy running on http://127.0.0.1:18080 ``` -------------------------------- ### Example: Starting nest start and output Source: https://docs.byteplus.com/en/docs/byteplus-cdn/cli-ref-nest-start-en Illustrates the output when 'npx nest start' is executed, showing the debugger setup, connection status, environment variable loading, script building and uploading, and the local HTTP proxy address. ```shell $ npx nest start ==> Setting up debugger... ==> [info]: connection setup successfully! ==> [info]: loading envrionment variables... ✔ ==> [info]: building script "default"... ==> [info]: uploading script 'default': **********/output/index.js... ✔ ==> Local http proxy running on http://127.0.0.1:18080 ``` -------------------------------- ### PHP Installation Confirmation Source: https://docs.byteplus.com/en/docs/ecs/Building-an-LNMP-environment-CentOS-7 Example output confirming PHP 7.0 installation. ```text PHP 7.0.33 (cli) (built: Jun 7 2022 14:11:00) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies ``` -------------------------------- ### Quickstart Example: Table Creation and Data Insertion Source: https://docs.byteplus.com/en/docs/bytehouse/clickhouse-rust-http-driver Demonstrates creating a database and table, inserting sample user data, and then selecting all users. This example requires the `User` struct to be defined elsewhere. ```rust pub async fn quickstart_example() -> Result<()> { let client = create_client(); // Drop table if exists and create a new one client .query("DROP DATABASE IF EXISTS bhrusttest") .execute() .await?; client .query("CREATE DATABASE IF NOT EXISTS bhrusttest") .execute() .await?; client .query( "\n CREATE TABLE bhrusttest.users (\n id UInt32,\n name String,\n age UInt8,\n active Bool\n ) ENGINE = CnchMergeTree()\n ORDER BY id\n " ) .execute() .await?; println!("Table created successfully"); // Insert some sample data let mut insert = client.insert("bhrusttest.users")?; let users = vec![ User { id: 1, name: "Alice".to_string(), age: 25, active: true, }, User { id: 2, name: "Bob".to_string(), age: 30, active: true, }, User { id: 3, name: "Charlie".to_string(), age: 35, active: false, }, ]; for User in users { insert.write(&User).await?; } insert.end().await?; println!("Data inserted successfully"); // Select all users let all_users = client .query("SELECT ?fields FROM bhrusttest.users") .with_option("virtual_warehouse", virtual_warehouse_id) .fetch_all::() .await?; println!("\nAll users:"); for User in all_users { println!("{:?}", User); } Ok(()) } ``` -------------------------------- ### Clone SSO Login Example Repository Source: https://docs.byteplus.com/en/docs/redis/implement_centralized_session_SSO Clone the example code repository to your ECS instance to begin the SSO login system setup. Ensure you have Git installed. ```bash git clone https://github.com/byteplus-sdk-samples/cache_for_redis_examples/tree/main/sso_login ``` -------------------------------- ### Quickstart Example Source: https://docs.byteplus.com/en/docs/ModelArk/1330626 A basic example demonstrating how to initialize the OpenAI client with the ModelArk base URL and make a chat completion request. ```APIDOC ## Quickstart example ```python from openai import OpenAI import os client = OpenAI( #The base URL for model invocation . base_url="https://ark.ap-southeast.bytepluses.com/api/v3", # Configure your API key in environment variables api_key=os.environ.get("ARK_API_KEY"), ) completion = client.chat.completions.create( #Replace with Model ID . model="seed-2-0-lite-260228", messages = [ {"role": "user", "content": "Hello"}, ], ) print(completion.choices[0].message.content) ``` ``` -------------------------------- ### Node.js Handler with Initializer Source: https://docs.byteplus.com/en/docs/faas/Node_js_runtime_Development_methods This example demonstrates a Node.js handler function that includes an initializer. The initializer is executed once when the instance starts to perform global setup, helping to avoid cold starts. ```javascript // vefaas-nodejs14-default exports.handler = async function handler (event, context) { return { statusCode: 200, headers: {'Content-Type': 'application/json'}, body: JSON.stringify({ 'vefaas-nodejs14-default': 'hello world'}) }; }; // vefaas will try to do initializer when start up the instance, to avoid cold start from user perspective. // initializer will only be executed for one time when there is no exception. // otherwise initializer will be executed again before every invoke, till successfully inited. exports.initializer = async function (context) { console.log('initializer begin'); // replace the following line, with the real init logic await new Promise(resolve => setTimeout(resolve,3 * 1000)); console.log('initializer end'); }; ``` -------------------------------- ### AgentKit Init Wrapper Mode Examples Source: https://docs.byteplus.com/en/docs/agentkit/agentkit_init Examples showing how to package existing agent files, specify project names, and generate streaming wrappers. ```bash # Example 1: Package an existing agent file (automatic detection of agent variables) agentkit init --from-agent ./my_agent.py # Example 2: Package and specify project name agentkit init weather_bot --from-agent ./weather_agent.py # Example 3: Use shorthand and specify the agent variable name agentkit init -f ./my_agent.py --agent-var my_custom_agent # Example 4: Generate a streaming output wrapper agentkit init chat_bot \ --from-agent ./chat_agent.py \ --wrapper-type stream # Example 5: Package in a specified directory agentkit init deployed_agent \ --from-agent ../agents/production_agent.py \ --agent-var prod_agent \ --wrapper-type basic \ --directory ./deployment ``` -------------------------------- ### Complete Agent Entry Point Example Source: https://docs.byteplus.com/en/docs/agentkit/Annotation_usage_guide A full example demonstrating how to set up an AgentkitSimpleApp, an Agent, and a Runner, then use the @app.entrypoint to handle incoming prompts and return agent responses. ```python from agentkit.apps import AgentkitSimpleApp from veadk import Agent, Runner from veadk.tools.demo_tools import get_city_weather app = AgentkitSimpleApp() agent = Agent(tools=[get_city_weather]) runner = Runner(agent=agent) @app.entrypoint async def run(payload: dict, headers: dict) -> str: """Agent main entry function""" # 1. Extract input parameter prompt = payload.get("prompt", "") user_id = headers.get("user_id", "anonymous") session_id = headers.get("session_id", "default") # 2. Call agent to run response = await runner.run( messages=prompt, user_id=user_id, session_id=session_id ) # 3. Response return response ``` -------------------------------- ### AgentKit Init Template Mode Examples Source: https://docs.byteplus.com/en/docs/agentkit/agentkit_init Examples demonstrating interactive creation, direct template usage, and customization of agent properties. ```bash # Example 1: Interactive creation, guiding you to select a template agentkit init my-first-agent # Example 2: Directly create using the 'basic' template agentkit init weather-report-agent --template basic # Example 3: Create in a specific directory agentkit init my_agent --template basic_stream --directory ./my_agents # Example 4: Use shorthand notation agentkit init weather -t basic # Example 5: Customize agent properties agentkit init custom-agent \ --template basic \ --agent-name "Advanced assistant" \ --description "An agent with network access and code execution capabilities" \ --tools "web_search,run_code" # Example 6: Create a streaming-output agent agentkit init stream_agent \ --template basic_stream \ --agent-name "Streaming conversation assistant" \ --model-name "doubao-seed-1-6-250615" ``` -------------------------------- ### Install Cloud Assistant Agent Request Example Source: https://docs.byteplus.com/en/docs/ecs/InstallCloudAssistant_-_Install_Cloud_assistant_Agent This is a sample GET request to install the Cloud Assistant Agent. Ensure to replace placeholder values with actual instance IDs and API details. ```text GET /?Version=2020-04-01&Action=InstallCloudAssistant&=InstanceIds.1=i-ervasv***** HTTP/1.1 Host: ecs.cn-beijing.byteplusapi.com.cn Region: cn-beijing ServiceName: ecs ``` -------------------------------- ### Start Transit Router Flow Log API Request Example Source: https://docs.byteplus.com/en/docs/transitrouter/StartTransitRouterFlowLog This example demonstrates how to construct a GET request to the StartTransitRouterFlowLog API to enable flow log collection for a specified Transit Router Flow Log ID. ```http GET /?Action=StartTransitRouterFlowLog&Version=2020-04-01&TransitRouterFlowLogId=tr-fl-13jjg43etfv**** HTTP/1.1 Host: transitrouter.cn-beijing.byteplusapi.com.cn X-Date: 20250731T105150Z Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20250731/cn-beijing/transitrouter/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f ``` -------------------------------- ### View Installation Script Help Source: https://docs.byteplus.com/en/docs/vmp/Deploying-the-VM-Agent Use the --help parameter with the installation script to view all predefined fields and their meanings. ```bash ./install.sh install --help ``` -------------------------------- ### StartInstances HTTP Request Source: https://docs.byteplus.com/en/docs/ecs/StartInstances This is an example of an HTTP GET request to start ECS instances. Ensure you replace placeholder values with your actual instance IDs and API credentials. ```HTTP GET /?Action=StartInstances&Version=2020-04-01&InstanceIds.1=i-ybo349sxoncm9t****&InstanceIds.2=i-ybo349sxolcm9t**** HTTP/1.1 Host: ecs.cn-beijing.byteplusapi.com.cn Region: cn-beijing Service: ecs ``` -------------------------------- ### Main Function Setup Source: https://docs.byteplus.com/en/docs/tos/List-multi-version-objects-go-sdk Sets up the main function with necessary environment variables and client initialization for TOS operations. This includes defining access keys, endpoint, region, and bucket name. ```go func main() { var ( accessKey = os.Getenv("TOS_ACCESS_KEY") secretKey = os.Getenv("TOS_SECRET_KEY") endpoint = "your endpoint" region = "your region" bucketName = "*** Provide your bucket name ***" ctx = context.Background() ) client, err := tos.NewClientV2(endpoint, tos.WithRegion(region), tos.WithCredentials(tos.NewStaticCredentials(accessKey, secretKey))) checkErr(err) truncated := true marker := "" versionIdMarker := "" for truncated { output, err := client.ListObjectVersionsV2(ctx, &tos.ListObjectVersionsV2Input{ Bucket: bucketName, ListObjectVersionsInput: tos.ListObjectVersionsInput{ MaxKeys: 1000, KeyMarker: marker, VersionIDMarker: versionIdMarker, }, }) checkErr(err) for _, obj := range output.Versions { fmt.Println("Obj Key:", obj.Key) fmt.Println("Obj Version ID:", obj.VersionID) fmt.Println("Obj Last Modified:", obj.LastModified) fmt.Println("Obj Is Latest Version:", obj.IsLatest) } for _, deleteMarker := range output.DeleteMarkers { fmt.Println("Delete Maker Key:", deleteMarker.Key) fmt.Println("Delete Maker Version ID:", deleteMarker.VersionID) fmt.Println("Delete Maker Last Modified:", deleteMarker.LastModified) fmt.Println("Delete Maker Is Latest Version:", deleteMarker.IsLatest) } truncated = output.IsTruncated marker = output.NextKeyMarker versionIdMarker = output.NextVersionIDMarker } } ``` -------------------------------- ### GET Request Example for DescribeInstances Source: https://docs.byteplus.com/en/docs/ecs/Request-structure This example demonstrates a GET request to the DescribeInstances API operation. All parameters must be URL-encoded for GET requests. ```Plain Text GET /?Action=DescribeInstances&Version=2020-04-01&InstanceIds.1=i-3ti9101aju3vj0****** HTTP/1.1 Host: ecs.cn-beijing.byteplusapi.com.cn Region: cn-beijing Service: ecs ``` -------------------------------- ### DescribeLoadBalancers GET Request Example Source: https://docs.byteplus.com/en/docs/clb/GWLB-Request-method This example shows the structure of a GET request for the DescribeLoadBalancers API. Ensure all parameters are URL-encoded when using the GET method. ```plaintext GET /?Action=DescribeLoadBalancers&Version=2024-01-01&<接口请求参数>​ Host: gwlb.cn-beijing.byteplusapi.com.cn HTTP/1.1​ Region: cn-beijing​ Service: gwlb​ ``` -------------------------------- ### Quickstart Example with ModelArk API Source: https://docs.byteplus.com/en/docs/ModelArk/1330626 A basic example demonstrating how to initialize the OpenAI client with ModelArk's base URL and API key, and make a chat completion request. ```python from openai import OpenAI import os client = OpenAI( #The base URL for model invocation . base_url="https://ark.ap-southeast.bytepluses.com/api/v3", # Configure your API key in environment variables api_key=os.environ.get("ARK_API_KEY"), ) completion = client.chat.completions.create( #Replace with Model ID . model="seed-2-0-lite-260228", messages = [ {"role": "user", "content": "Hello"}, ], ) print(completion.choices[0].message.content) ``` -------------------------------- ### Example GET Request Structure Source: https://docs.byteplus.com/en/docs/bandwidthpackage/Request-structure This is an example of a GET request structure for calling BytePlus APIs. Ensure all parameters are URL encoded when using the GET method. ```http GET /?Action=CreateBandwidthPackage& Host: vpc.ap-southeast-1.byteplusapi.com HTTP/1.1 Region: ap-southeast-1 Service: vpc ``` -------------------------------- ### Example: Creating and using a database Source: https://docs.byteplus.com/en/docs/bytehouse/ce-use-statement This example demonstrates how to first create a database if it doesn't exist and then set it as the current database for the session using the USE statement. ```sql -- 1. Create a database CREATE DATABASE IF NOT EXISTS sample_db ON CLUSTER sample_cluster; -- 2. Use a database USE sample_db; ``` -------------------------------- ### AgentKit Launch Command Examples Source: https://docs.byteplus.com/en/docs/agentkit/agentkit_launch Examples demonstrating how to use the agentkit launch command, including a basic launch and a launch with a specified configuration file. ```python # Example 1: Launch with one click agentkit launch ``` ```python # Example 2: Launch in the production environment agentkit launch --config-file ./prod.yaml ``` -------------------------------- ### Example GET Request Structure for AllocateEipAddress Source: https://docs.byteplus.com/en/docs/eip/Request-structure This example shows the basic structure of a GET request to the AllocateEipAddress API. Ensure all request parameters are URL-encoded when using the GET method. ```plaintext GET /?Action=AllocateEipAddress&​ Host: vpc.ap-southeast-1.byteplusapi.com HTTP/1.1​ Region: ap-southeast-1​ Service: vpc​ ``` -------------------------------- ### Example GET Request with versionId Source: https://docs.byteplus.com/en/docs/tos/0026-00000030 This example demonstrates a GET request that includes the versionId parameter, which is not supported for layered buckets. ```HTTP GET /objectName?versionId=12345 HTTP/1.1 Host: . Date: GMT Date Authorization: authorization string Content-length: length ``` -------------------------------- ### Enter Project Directory Source: https://docs.byteplus.com/en/docs/ecs/Building-GitLab Navigate into the cloned project directory to start working with the repository. ```bash cd ``` -------------------------------- ### Entry Point Examples Source: https://docs.byteplus.com/en/docs/agentkit/common_configuration Examples of entry point configurations for different project types (Python, Go, custom scripts). ```yaml # Python project entry_point: app.py ``` ```yaml entry_point: server.py ``` ```yaml # Go project entry_point: main.go ``` ```yaml entry_point: cmd/server/main.go ``` ```yaml # Custom startup script entry_point: start.sh ``` -------------------------------- ### Example HTTPS GET Request Source: https://docs.byteplus.com/en/docs/tls/components-of-an-API-request An example of an HTTPS GET request, demonstrating how to specify the endpoint, action, and query parameters. ```http GET https://tls-cn-beijing.bytepluses.com/DescribeProjects?PageNumber=1&PageSize=10 ``` -------------------------------- ### DescribeInstances GET Request Example Source: https://docs.byteplus.com/en/docs/ecs/Request-structure Example of a GET request to the DescribeInstances API operation, demonstrating how parameters are included in the URL. ```APIDOC ## GET / ### Description This is an example of a GET request to the DescribeInstances API operation. ### Method GET ### Endpoint /?Action=DescribeInstances&Version=2020-04-01&InstanceIds.1=i-3ti9101aju3vj0****** ### Headers Host: ecs.cn-beijing.byteplusapi.com.cn Region: cn-beijing Service: ecs ``` -------------------------------- ### Create Database and Table for DESCRIBE Example Source: https://docs.byteplus.com/en/docs/bytehouse/ce-describe-statement These SQL statements set up a sample database and table necessary for demonstrating the DESCRIBE statement. Ensure the cluster name matches your environment. ```sql CREATE DATABASE IF NOT EXISTS sample_db ON CLUSTER sample_cluster; DROP TABLE IF EXISTS sample_db.describe_table ON CLUSTER sample_cluster; CREATE TABLE sample_db.describe_table ON CLUSTER sample_cluster ( id UInt64, text String DEFAULT 'unknown' CODEC(ZSTD), user Tuple (name String, age UInt8) ) ENGINE = MergeTree() ORDER BY id; ``` -------------------------------- ### Clone Project and Install Dependencies Source: https://docs.byteplus.com/en/docs/byteplus-vos/docs-running-the-demo-web Clone the videoone-example repository and install its dependencies using pnpm. Ensure you are in the project root directory before running these commands. ```bash git clone https://github.com/byteplus-sdk/videoone-example.git ``` ```bash pnpm install --registry=https://registry.npmmirror.com ``` -------------------------------- ### Get the policy of the specified bucket Source: https://docs.byteplus.com/en/docs/tos/GetBucketPolicy This code example demonstrates how to retrieve the policy of a specified bucket using the `get_bucket_policy` interface in the Rust SDK. It includes setup for the client, input parameters, and handling of success and error responses. ```APIDOC ## GetBucketPolicy (Rust SDK) ### Description Retrieves the JSON policy for a specified bucket. ### Method `get_bucket_policy` ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```rust use std::env; use ve_tos_rust_sdk::asynchronous::tos; use ve_tos_rust_sdk::bucket::GetBucketPolicyInput; // ... (client initialization code as shown in the full example) let bucket_name = "my-specified-bucket"; // Replace with the actual bucket name let input = GetBucketPolicyInput::new(bucket_name); let output = client.get_bucket_policy(&input).await; ``` ### Response #### Success Response (200) - **request_id** (string) - The ID of the request. - **policy** (string) - The JSON policy content of the bucket. #### Response Example ```json { "request_id": "some-request-id", "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [...]}" } ``` #### Error Response - **404 NoSuchBucketPolicy**: If the bucket policy does not exist. - **TosClientError**: For client-side errors. - **TosServerError**: For server-side errors. ``` -------------------------------- ### Get Vikingdb Task Request Example Source: https://docs.byteplus.com/en/docs/VikingDB/Get_Task_V2 This example demonstrates how to construct a request to the Get Vikingdb Task API, specifying the TaskId. ```plaintext action = "GetVikingdbTask", body = { "TaskId": "0ae385ed-47ec-5661-a82c-965dab9d3b99" } ``` -------------------------------- ### StartExecution Go Example Source: https://docs.byteplus.com/en/docs/byteplus-vod/docs-server-sdk-v2 This Go code snippet demonstrates how to initialize the VOD client, configure enhancement parameters, and call the `StartExecution` API to initiate a video enhancement task. ```APIDOC ## StartExecution ### Description Initiates a video processing execution, such as enhancement, for a given video. ### Method `svc.StartExecution(startExecutionInput)` ### Parameters - **startExecutionInput** (*vod20250701.StartExecutionInput) - Required - The input parameters for starting an execution. - **Input** (*vod20250701.InputForStartExecutionInput) - Required - Specifies the input video. - **Type** (*string) - Required - The type of input, e.g., "Vid". - **Vid** (*string) - Required - The ID of the video. - **Operation** (*vod20250701.OperationForStartExecutionInput) - Required - Defines the operation to perform. - **Type** (*string) - Required - The type of operation, e.g., "Task". - **Task** (*vod20250701.TaskForStartExecutionInput) - Required - Details of the task. - **Type** (*string) - Required - The type of task, e.g., "Enhance". - **Enhance** (*vod20250701.EnhanceForStartExecutionInput) - Required - Parameters for enhancement. - **Type** (*string) - Required - The type of enhancement, e.g., "Moe". - **MoeEnhance** (*vod20250701.MoeEnhanceForStartExecutionInput) - Required - Parameters for Moe enhancement. - **Config** (*string) - Required - The enhancement configuration name, e.g., "short_series". - **Target** (*vod20250701.TargetForStartExecutionInput) - Required - Target specifications for enhancement. - **Res** (*string) - Required - Target resolution, e.g., "1080p". - **Fps** (*float64) - Required - Target frames per second. - **Bitrate** (*int32) - Required - Target bitrate in Kbps. - **VideoStrategy** (*vod20250701.VideoStrategyForStartExecutionInput) - Required - Video enhancement strategy. - **RepairStyle** (*int32) - Required - The repair style (0: Fast, 1: Standard, 2: Pro). - **Control** (*vod20250701.ControlForStartExecutionInput) - Optional - Runtime control parameters. - **ClientToken** (*string) - Optional - A unique token for idempotency. ### Response #### Success Response (200) - **RunId** (*string) - The ID of the initiated execution run. ### Request Example ```go // Initialize session and client ak, sk, region := "Your AK", "Your SK", "ap-southeast-1" config := byteplus.NewConfig().WithRegion(region).WithCredentials(credentials.NewStaticCredentials(ak, sk, "")) sess, err := session.NewSession(config) if err != nil { panic(err) } svc := vod20250701.New(sess) // Build input, target, video strategy, moe enhance, enhance params, task, operation, and control inputInfo := &vod20250701.InputForStartExecutionInput{Type: byteplus.String("Vid"), Vid: byteplus.String("v0ccfeg7007acsg***fog65ubr7niqng")} target := &vod20250701.TargetForStartExecutionInput{Res: byteplus.String("1080p"), Fps: byteplus.Float64(30.0), Bitrate: byteplus.Int32(4000)} videoStrategy := &vod20250701.VideoStrategyForStartExecutionInput{RepairStyle: byteplus.Int32(1)} moeEnhance := &vod20250701.MoeEnhanceForStartExecutionInput{Config: byteplus.String("short_series"), Target: target, VideoStrategy: videoStrategy} enhanceParams := &vod20250701.EnhanceForStartExecutionInput{Type: byteplus.String("Moe"), MoeEnhance: moeEnhance} task := &vod20250701.TaskForStartExecutionInput{Type: byteplus.String("Enhance"), Enhance: enhanceParams} operation := &vod20250701.OperationForStartExecutionInput{Type: byteplus.String("Task"), Task: task} control := &vod20250701.ControlForStartExecutionInput{ClientToken: byteplus.String("unique_client_token_go_123")} startExecutionInput := &vod20250701.StartExecutionInput{Input: inputInfo, Operation: operation, Control: control} // Call the API output, err := svc.StartExecution(startExecutionInput) if err != nil { fmt.Printf("Error calling StartExecution: %v\n", err) return } fmt.Printf("Task submitted successfully. RunId: %s\n", *output.RunId) ``` ### Response Example ```json { "RunId": "your_run_id" } ``` ``` -------------------------------- ### Install TypeScript and Setup Project Source: https://docs.byteplus.com/en/docs/RDS_for_PG/building_an_intelligent_interactive_qa_system_based_on_pg Installs the tsx package for running TypeScript files and runs a setup script, likely for project dependencies. ```shell pnpm run setup pnpm install tsx ``` -------------------------------- ### Create Example Tables Source: https://docs.byteplus.com/en/docs/bytehouse/update-statement Creates the 'customer' and 'new_customer' tables for demonstrating UPDATE JOIN operations. These tables are set up with specific partition and unique keys. ```sql CREATE TABLE customer(customer_id Int32, customer_name String, customer_age Int32, addr String) ENGINE = CnchMergeTree() PARTITION BY hash(customer_name) % 10 ORDER BY customer_id UNIQUE KEY customer_id; CREATE TABLE new_customer(customer_id Int32, customer_name String, customer_age Int32, addr String) ENGINE = CnchMergeTree() PARTITION BY hash(customer_name) % 10 ORDER BY customer_id UNIQUE KEY customer_id; ``` -------------------------------- ### Example GET Request for CreateVpnGateway Source: https://docs.byteplus.com/en/docs/vpn/Request-structure-1 This example demonstrates the structure of a GET request to call the CreateVpnGateway action, including host, service name, and region. ```HTTP GET /?Action=CreateVpnGateway& HTTP/1.1 Host: vpn.ap-southeast-1.byteplusapi.com ServiceName: vpn Region: ap-southeast-1 ``` -------------------------------- ### Example GET Request for Symbolic Link Source: https://docs.byteplus.com/en/docs/tos/0017-00000703 This example demonstrates a GET request to a symbolic link. Ensure the target file exists before making such requests. ```Go GET /link-nothing HTTP/1.1 Host: . Date: Mon, 18 Mar 2019 08:25:17 GMT Authorization: SignatureValue ```