文档首页/ 云专线 DC/ API参考/ API/ 虚拟接口/ 更新虚拟接口 - UpdateVirtualInterface
更新时间:2026-10-21 GMT+08:00
分享

更新虚拟接口 - UpdateVirtualInterface

功能介绍

更新虚拟接口的详细信息。

调用方法

请参见如何调用API。

授权信息

账号具备所有API的调用权限,如果使用账号下的IAM用户调用当前API,该IAM用户需具备调用API所需的权限。

  • 如果使用角色与策略授权,具体权限要求请参见权限和授权项。
  • 如果使用身份策略授权,需具备如下身份策略权限。

    授权项

    访问级别

    资源类型(*为必须)

    条件键

    别名

    依赖的授权项

    dcaas:vif:update

    Write

    vif *

    • g:EnterpriseProjectId

    • g:ResourceTag/<tag-key>

    -

    -

URI

PUT /v3/{project_id}/dcaas/virtual-interfaces/{virtual_interface_id}

表1 路径参数

参数

是否必选

参数类型

描述

project_id

是

String

参数解释:

租户项目ID。获取方法请参见《统一身份认证服务API参考》的『获取账号项目ID』章节,或通过查询项目列表接口获取

约束限制:

不涉及

取值范围:

32 位十六进制字符(0-9, a-f, A-F)

默认取值:

不涉及

virtual_interface_id

是

String

参数解释:

虚拟接口ID。获取方式:可通过创建虚拟接口(CreateVirtualInterface)或查询虚拟接口列表(ListVirtualInterfaces)接口获取

约束限制:

不涉及

取值范围:

UUID 格式,以连字符(-)连接,长度为36个字符

默认取值:

不涉及

请求参数

表2 请求Header参数

参数

是否必选

参数类型

描述

X-Auth-Token

是

String

参数解释:

用户Token。 获取Token,请参考《统一身份认证服务API参考》的「获取用户Token」章节。请求响应成功后在响应消息头中包含的「X-Subject-Token」的值即为Token值。

约束限制:

不涉及

取值范围:

不涉及

默认取值:

不涉及

表3 请求Body参数

参数

是否必选

参数类型

描述

virtual_interface

是

UpdateVirtualInterface object

参数解释:

虚拟接口更新对象

约束限制:

不涉及

表4 UpdateVirtualInterface

参数

是否必选

参数类型

描述

name

否

String

参数解释:

虚拟接口名称。

约束限制:

不涉及。

取值范围:

中文字符、英文字母、数字、连字符(-)、下划线(_)、点(.)组成;长度不超过64个字符。

默认取值:

不涉及。

description

否

String

参数解释:

虚拟接口描述信息

约束限制:

不涉及

取值范围:

不支持尖括号(<>)和反引号(`)的任意字符;长度不超过2048个字符

默认取值:

不涉及

bandwidth

否

Integer

参数解释:

虚拟接口带宽配置,单位为Mbit/s。

约束限制:

不涉及。

取值范围:

2~物理连接的带宽值

默认取值:

不涉及。

priority

否

String

参数解释:

虚拟接口的优先级,支持normal和low。目前仅BGP模式接口支持。

约束限制:

不涉及。

取值范围:

normal:优先;low:普通

默认取值:

不涉及。

remote_ep_group

否

Array of strings

参数解释:

远端子网列表,记录租户侧的cidrs。数组中每个字符串为 CIDR 格式,如 10.0.0.0/24。

约束限制:

不涉及。

取值范围:

不涉及

默认取值:

不涉及

service_ep_group

否

Array of strings

参数解释:

用于公网专线,用户访问公网服务地址列表。数组中每个字符串为 CIDR 格式,如 10.0.0.0/24。

约束限制:

不涉及。

取值范围:

不涉及

默认取值:

不涉及

enable_bfd

否

Boolean

参数解释:

是否使能bfd功能。

约束限制:

不涉及

取值范围:

  • true:使能bfd功能

  • false:不使能bfd功能

默认取值:

不涉及

enable_nqa

否

Boolean

参数解释:

是否使能nqa功能。

约束限制:

不涉及

取值范围:

  • true:使能nqa功能

  • false:不使能nqa功能

默认取值:

不涉及

status

否

String

参数解释:

对其他租户创建的虚拟接口进行确认。

约束限制:

不涉及

取值范围:

  • ACCEPTED:接受请求

  • REJECTED:拒绝请求

默认取值:

不涉及

响应参数

状态码:200

表5 响应Body参数

参数

参数类型

描述

request_id

String

参数解释:

操作请求ID

取值范围:

不涉及

virtual_interface

VirtualInterface object

参数解释:

虚拟接口对象

取值范围:

不涉及

表6 VirtualInterface

参数

参数类型

描述

id

String

参数解释:

虚拟接口的ID

取值范围:

长度不超过36个字符

name

String

参数解释:

虚拟接口的名称

取值范围:

长度不超过64个字符

admin_state_up

Boolean

参数解释:

管理状态

取值范围:

true:管理状态为开启;false:管理状态为关闭

bandwidth

Integer

参数解释:

虚拟接口接入带宽,单位为Mbit/s。

取值范围:

2~物理连接的带宽值

create_time

String

参数解释:

虚拟接口创建时间。采用UTC时间格式

取值范围:

不涉及

update_time

String

参数解释:

虚拟接口修改时间。采用UTC时间格式

取值范围:

不涉及

description

String

参数解释:

虚拟接口的描述

取值范围:

长度不超过2048个字符

direct_connect_id

String

参数解释:

物理专线的ID

取值范围:

长度不超过36个字符

service_type

String

参数解释:

接入网关的类型。

取值范围:

VGW:虚拟网关,GDGW:全域接入网关,LGW:本地网关

status

String

参数解释:

操作状态。

取值范围:

  • ACTIVE:正常

  • DOWN:不可用

  • BUILD:开通中

  • ERROR:异常

  • PENDING_CREATE:创建中

  • PENDING_UPDATE:修改中

  • PENDING_DELETE:删除中

  • AUTHORIZATION:认证中

  • REJECTED:拒绝

tenant_id

String

参数解释:

租户ID

取值范围:

不涉及

type

String

参数解释:

虚拟接口的类型

取值范围:

private:私有接口(面向租户)

vgw_id

String

参数解释:

虚拟网关的ID

取值范围:

长度为36个字符

vlan

Integer

参数解释:

同用户网关对接的VLAN

取值范围:

0~3999

route_limit

Integer

参数解释:

VIF远端子网路由配置规格

取值范围:

1~200

enable_nqa

Boolean

参数解释:

是否使能nqa功能

取值范围:

  • true:使能nqa功能

  • false:不使能nqa功能

enable_bfd

Boolean

参数解释:

是否使能bfd功能

取值范围:

  • true:使能bfd功能

  • false:不使能bfd功能

lag_id

String

参数解释:

VIF关联的链路聚合组ID

取值范围:

长度为36个字符

device_id

String

参数解释:

归属的设备ID

取值范围:

不涉及

enterprise_project_id

String

参数解释:

实例所属企业项目ID。

取值范围:

最大长度36字节,带"-"连字符的UUID格式,或者是字符串"0","0"表示默认企业项目。

tags

Array of Tag objects

参数解释:

标签信息。Tag对象包含标签键(key)和标签值(value)。

取值范围:

不涉及

local_gateway_v4_ip

String

参数解释:

云侧网关IPv4接口地址,该字段现已经移到vifpeer参数列表中,未来将会废弃。

取值范围:

不涉及

remote_gateway_v4_ip

String

参数解释:

客户侧网关IPv4接口地址,该字段现已经移到vifpeer参数列表中,未来将会废弃。

取值范围:

不涉及

ies_id

String

参数解释:

归属的CloudPond站点的ID

取值范围:

不涉及

reason

String

参数解释:

如果资源的状态是Error的情况下,该参数会显示相关错误信息。

取值范围:

不涉及

rate_limit

Boolean

参数解释:

标识虚拟接口是否开启限速

取值范围:

true:开启限速;false:不开启限速

address_family

String

参数解释:

接口的地址簇类型,ipv4,ipv6。该字段现已迁移到vifpeer参数列表中,未来将会废弃。

取值范围:

ipv4:IPv4 地址族;ipv6:IPv6 地址族

local_gateway_v6_ip

String

参数解释:

云侧网关IPv6接口地址,该字段现已迁移到vifpeer参数列表中,未来将会废弃。

取值范围:

不涉及

remote_gateway_v6_ip

String

参数解释:

客户侧网关IPv6接口地址,该字段现已迁移到vifpeer参数列表中,未来将会废弃。

取值范围:

不涉及

lgw_id

String

参数解释:

本地网关的ID,用于CloudPond场景。

取值范围:

不涉及

gateway_id

String

参数解释:

虚拟接口关联的网关的ID

取值范围:

不涉及

remote_ep_group

Array of strings

参数解释:

远端子网列表,记录租户侧的cidrs。该字段现已迁移到vifpeer参数列表中,未来将会废弃。。数组中每个字符串为 CIDR 格式,如 10.0.0.0/24。

取值范围:

不涉及

service_ep_group

Array of strings

参数解释:

该字段用于公网专线接口,表示租户可以访问云上公网服务地址列表。该字段现已迁移到vifpeer参数列表中,未来将会废弃。数组中每个字符串为 CIDR 格式,如 10.0.0.0/24。

取值范围:

不涉及

bgp_route_limit

Integer

参数解释:

BGP的路由配置规格

取值范围:

不涉及

priority

String

参数解释:

虚拟接口的优先级,支持两种优先级状态normal和low。

接口优先级相同时表示负载关系,接口优先级不同时表示主备关系,出云流量优先转到优先级更高的normal接口。

目前仅BGP模式接口支持。

取值范围:

normal:优先;low:普通

vif_peers

Array of VifPeer objects

参数解释:

vif的Peer的相关信息。VifPeer 对象包含路由模式、BGP 配置、网关地址等。

取值范围:

不涉及

extend_attribute

VifExtendAttribute object

参数解释:

虚拟接口BFD/NQA等可靠性检测的扩展信息

表7 Tag

参数

参数类型

描述

key

String

参数解释:

标签键

取值范围:

取值可以包含任意语种字母、数字、空格,以及_.:=+-@特殊字符,但首尾不能含有空格,不能以_sys_开头;长度为1~128个字符

value

String

参数解释:

标签值

取值范围:

可以包含任意语种字母、数字、空格,以及_.:/=+-@特殊字符;长度不超过255个字符

表8 VifPeer

参数

参数类型

描述

id

String

参数解释:

虚拟接口对等体的ID

取值范围:

长度为36个字符

tenant_id

String

参数解释:

归属租户ID

取值范围:

不涉及

name

String

参数解释:

虚拟接口对等体名称

取值范围:

长度不超过64个字符

description

String

参数解释:

虚拟接口对等体描述信息。

取值范围:

长度不超过2048个字符。

address_family

String

参数解释:

接口的地址簇类型,ipv4,ipv6

取值范围:

不涉及

local_gateway_ip

String

参数解释:

虚拟接口对等体云侧接口地址

取值范围:

不涉及

remote_gateway_ip

String

参数解释:

虚拟接口对等体客户侧接口地址

取值范围:

不涉及

route_mode

String

参数解释:

路由模式

取值范围:

static:静态路由;bgp:BGP 路由

bgp_asn

Integer

参数解释:

BGP邻居的AS号

取值范围:

1~4294967295

bgp_md5

String

参数解释:

BGP邻居的MD5密码

取值范围:

不涉及

remote_ep_group

Array of strings

参数解释:

远端子网列表,记录租户侧的cidrs。数组中每个字符串为 CIDR 格式,如 10.0.0.0/24。

取值范围:

不涉及

service_ep_group

Array of strings

参数解释:

该字段用于公网专线接口,表示租户可以访问云上公网服务地址列表。数组中每个字符串为 CIDR 格式,如 10.0.0.0/24。

取值范围:

不涉及

device_id

String

参数解释:

归属的设备ID

取值范围:

不涉及

bgp_route_limit

Integer

参数解释:

BGP的路由配置规格

取值范围:

不涉及

bgp_status

String

参数解释:

接口BGP协议状态,如果是静态路由接口则状态为 null

取值范围:

不涉及

status

String

参数解释:

虚拟接口对等体状态。

取值范围:

  • ACTIVE:正常

  • ERROR:异常

vif_id

String

参数解释:

虚拟接口对等体对应的虚拟接口ID

取值范围:

长度为36个字符

receive_route_num

Integer

参数解释:

接收的BGP的路由数目。路由模式为static时,该字段无意义,值为-1。

早期接入云的部分用户可能无法获取该字段信息,如有需要请联系客服迁移专线端口。

取值范围:

不涉及

enable_nqa

Boolean

参数解释:

是否使能nqa功能

取值范围:

  • true:使能nqa功能

  • false:不使能nqa功能

enable_bfd

Boolean

参数解释:

是否使能bfd功能

取值范围:

  • true:使能bfd功能

  • false:不使能bfd功能

表9 VifExtendAttribute

参数

参数类型

描述

ha_type

String

参数解释:

虚拟接口的可用性检测类型。

取值范围:

  • nqa:网络质量分析

  • bfd:双向转发检测

ha_mode

String

参数解释:

虚拟接口可用性检测的配置模式。

取值范围:

  • auto_single:自动单跳bfd

  • auto_multi:自动多跳bfd

  • static_single:静态单跳bfd

  • static_multi:静态多跳bfd

  • enhance_nqa:增强型nqa

detect_multiplier

Integer

参数解释:

检测的重试次数

取值范围:

不涉及

min_rx_interval

Integer

参数解释:

检测的接收时长间隔,单位为毫秒。

  • 当ha_type为nqa时,实际生效的时间间隔为按秒为单位将输入的数值向上取整,例如输入1500毫秒,实际时间间隔为2秒;

  • 当ha_type为bfd时,实际生效的时间间隔为按毫秒为单位的输入数值。最小值为200毫秒,最大值为1000毫秒。

取值范围:

不涉及

min_tx_interval

Integer

参数解释:

检测的发送时长间隔,单位为毫秒。

  • 当ha_type为nqa时,实际生效的时间间隔为按秒为单位将输入的数值向上取整,例如输入1500毫秒,实际时间间隔为2秒;

  • 当ha_type为bfd时,实际生效的时间间隔为按毫秒为单位的输入数值。最小值为200毫秒,最大值为1000毫秒。

取值范围:

不涉及

remote_disclaim

Integer

参数解释:

检测的远端的标识,用于静态BFD

取值范围:

不涉及

local_disclaim

Integer

参数解释:

检测的本端的标识,用于静态BFD

取值范围:

不涉及

ipv6_remote_disclaim

Integer

参数解释:

检测的远端的标识,用于静态IPv6 BFD

取值范围:

不涉及

ipv6_local_disclaim

Integer

参数解释:

检测的本端的标识,用于静态IPv6 BFD

取值范围:

不涉及

请求示例

更新虚拟接口的名称和描述,将带宽修改为2。

PUT https://{dc_endpoint}/v3/0605768a3300d5762f82c01180692873/dcaas/virtual-interfaces/0d0fdf63-f2c4-491c-8866-d504796189be

{
  "virtual_interface" : {
    "name" : "vif-0819",
    "description" : "mytest",
    "bandwidth" : 2
  }
}

响应示例

状态码:200

{
  "virtual_interface" : {
    "id" : "0d0fdf63-f2c4-491c-8866-d504796189be",
    "name" : "vif-0819",
    "description" : "mytest",
    "tenant_id" : "0605768a3300d5762f82c01180692873",
    "direct_connect_id" : "4673e339-8412-4ee1-b73e-2ba9cdfa54c1",
    "vgw_id" : "8a47064a-f34c-4f94-b7fe-cac456c9b37b",
    "type" : "private",
    "service_type" : "VGW",
    "vlan" : 332,
    "bandwidth" : 2,
    "status" : "ACTIVE",
    "create_time" : "2022-08-19T11:28:06.000Z",
    "update_time" : "2022-08-19T11:28:06.000Z",
    "admin_state_up" : true,
    "enable_bfd" : false,
    "route_limit" : 50,
    "enable_nqa" : false,
    "local_gateway_v4_ip" : "1.1.1.1/30",
    "remote_gateway_v4_ip" : "1.1.1.2/30",
    "ies_id" : null,
    "reason" : null,
    "rate_limit" : false,
    "address_family" : "ipv4",
    "local_gateway_v6_ip" : null,
    "remote_gateway_v6_ip" : null,
    "lgw_id" : null,
    "lag_id" : null,
    "gateway_id" : null,
    "remote_ep_group" : [ "1.1.2.0/30" ],
    "service_ep_group" : [ ],
    "bgp_route_limit" : 100,
    "priority" : "normal",
    "vif_peers" : [ {
      "id" : "c768eb52-12a8-4859-9b43-81194643040c",
      "tenant_id" : "0605768a3300d5762f82c01180692873",
      "name" : "vif-0819",
      "description" : "",
      "address_family" : "ipv4",
      "local_gateway_ip" : "1.1.1.1/30",
      "remote_gateway_ip" : "1.1.1.2/30",
      "route_mode" : "static",
      "bgp_asn" : null,
      "bgp_md5" : null,
      "device_id" : "18.9.215.131",
      "bgp_route_limit" : 100,
      "bgp_status" : null,
      "status" : "ACTIVE",
      "vif_id" : "0d0fdf63-f2c4-491c-8866-d504796189be",
      "receive_route_num" : -1,
      "remote_ep_group" : [ "1.1.2.0/30" ],
      "service_ep_group" : null,
      "enable_bfd" : false,
      "enable_nqa" : false
    } ],
    "enterprise_project_id" : "0"
  },
  "request_id" : "5633df7af874576d819a481c76673236"
}

SDK代码示例

SDK代码示例如下。

Java

更新虚拟接口的名称和描述,将带宽修改为2。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package com.huaweicloud.sdk.test;

import com.huaweicloud.sdk.core.auth.ICredential;
import com.huaweicloud.sdk.core.auth.BasicCredentials;
import com.huaweicloud.sdk.core.exception.ConnectionException;
import com.huaweicloud.sdk.core.exception.RequestTimeoutException;
import com.huaweicloud.sdk.core.exception.ServiceResponseException;
import com.huaweicloud.sdk.dc.v3.region.DcRegion;
import com.huaweicloud.sdk.dc.v3.*;
import com.huaweicloud.sdk.dc.v3.model.*;


public class UpdateVirtualInterfaceSolution {

    public static void main(String[] args) {
        // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure security.
        // In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment
        String ak = System.getenv("CLOUD_SDK_AK");
        String sk = System.getenv("CLOUD_SDK_SK");
        String projectId = "{project_id}";

        ICredential auth = new BasicCredentials()
                .withProjectId(projectId)
                .withAk(ak)
                .withSk(sk);

        DcClient client = DcClient.newBuilder()
                .withCredential(auth)
                .withRegion(DcRegion.valueOf("<YOUR REGION>"))
                .build();
        UpdateVirtualInterfaceRequest request = new UpdateVirtualInterfaceRequest();
        request.withVirtualInterfaceId("{virtual_interface_id}");
        UpdateVirtualInterfaceRequestBody body = new UpdateVirtualInterfaceRequestBody();
        UpdateVirtualInterface virtualInterfacebody = new UpdateVirtualInterface();
        virtualInterfacebody.withName("vif-0819")
            .withDescription("mytest")
            .withBandwidth(2);
        body.withVirtualInterface(virtualInterfacebody);
        request.withBody(body);
        try {
            UpdateVirtualInterfaceResponse response = client.updateVirtualInterface(request);
            System.out.println(response.toString());
        } catch (ConnectionException e) {
            e.printStackTrace();
        } catch (RequestTimeoutException e) {
            e.printStackTrace();
        } catch (ServiceResponseException e) {
            e.printStackTrace();
            System.out.println(e.getHttpStatusCode());
            System.out.println(e.getRequestId());
            System.out.println(e.getErrorCode());
            System.out.println(e.getErrorMsg());
        }
    }
}

Python

更新虚拟接口的名称和描述,将带宽修改为2。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# coding: utf-8

import os
from huaweicloudsdkcore.auth.credentials import BasicCredentials
from huaweicloudsdkdc.v3.region.dc_region import DcRegion
from huaweicloudsdkcore.exceptions import exceptions
from huaweicloudsdkdc.v3 import *

if __name__ == "__main__":
    # The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure security.
    # In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment
    ak = os.environ["CLOUD_SDK_AK"]
    sk = os.environ["CLOUD_SDK_SK"]
    projectId = "{project_id}"

    credentials = BasicCredentials(ak, sk, projectId)

    client = DcClient.new_builder() \
        .with_credentials(credentials) \
        .with_region(DcRegion.value_of("<YOUR REGION>")) \
        .build()

    try:
        request = UpdateVirtualInterfaceRequest()
        request.virtual_interface_id = "{virtual_interface_id}"
        virtualInterfacebody = UpdateVirtualInterface(
            name="vif-0819",
            description="mytest",
            bandwidth=2
        )
        request.body = UpdateVirtualInterfaceRequestBody(
            virtual_interface=virtualInterfacebody
        )
        response = client.update_virtual_interface(request)
        print(response)
    except exceptions.ClientRequestException as e:
        print(e.status_code)
        print(e.request_id)
        print(e.error_code)
        print(e.error_msg)

Go

更新虚拟接口的名称和描述,将带宽修改为2。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package main

import (
	"fmt"
	"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/auth/basic"
    dc "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dc/v3"
	"github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dc/v3/model"
    region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dc/v3/region"
)

func main() {
    // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure security.
    // In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment
    ak := os.Getenv("CLOUD_SDK_AK")
    sk := os.Getenv("CLOUD_SDK_SK")
    projectId := "{project_id}"

    auth, err := basic.NewCredentialsBuilder().
        WithAk(ak).
        WithSk(sk).
        WithProjectId(projectId).
        SafeBuild()

    if err != nil {
        fmt.Println(err)
        return
    }

    hcClient, err := dc.DcClientBuilder().
         WithRegion(region.ValueOf("<YOUR REGION>")).
         WithCredential(auth).
         SafeBuild()


    if err != nil {
        fmt.Println(err)
        return
    }

    client := dc.NewDcClient(hcClient)

    request := &model.UpdateVirtualInterfaceRequest{}
	request.VirtualInterfaceId = "{virtual_interface_id}"
	nameVirtualInterface:= "vif-0819"
	descriptionVirtualInterface:= "mytest"
	bandwidthVirtualInterface:= int32(2)
	virtualInterfacebody := &model.UpdateVirtualInterface{
		Name: &nameVirtualInterface,
		Description: &descriptionVirtualInterface,
		Bandwidth: &bandwidthVirtualInterface,
	}
	request.Body = &model.UpdateVirtualInterfaceRequestBody{
		VirtualInterface: virtualInterfacebody,
	}
	response, err := client.UpdateVirtualInterface(request)
	if err == nil {
        fmt.Printf("%+v\n", response)
    } else {
        fmt.Println(err)
    }
}

更多

更多编程语言的SDK代码示例,请参见API Explorer的代码示例页签,可生成自动对应的SDK代码示例。

状态码

状态码

描述

200

OK

错误码

请参见错误码。

相关文档