csn

package
v0.9.181 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Overview

* Copyright 2022 Baidu, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language governing permissions * and limitations under the License.

* Copyright 2022 Baidu, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language governing permissions * and limitations under the License.

Index

Constants

View Source
const (
	DEFAULT_SERVICE_DOMAIN = "http://csn.baidubce.com"
	DEFAULT_MAX_PARALLEL   = 10
	MULTIPART_ALIGN        = 1 << 20        // 1MB
	MIN_MULTIPART_SIZE     = 1 << 20        // 1MB
	DEFAULT_MULTIPART_SIZE = 12 * (1 << 20) // 12MB
	MAX_PART_NUMBER        = 10000
)

Variables

This section is empty.

Functions

func AttachInstance

func AttachInstance(cli bce.Client, csnId string, body *AttachInstanceRequest, clientToken string) error

AttachInstance - 将网络实例加载进云智能网。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnId: 云智能网的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性
  • body:

RETURNS:

  • error: the return error if any occurs

func BindCsnBp

func BindCsnBp(cli bce.Client, csnBpId string, body *BindCsnBpRequest, clientToken string) error

BindCsnBp - 带宽包绑定云智能网。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnBpId: 带宽包的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串
  • body:

RETURNS:

  • error: the return error if any occurs

func CreateAssociation

func CreateAssociation(cli bce.Client, csnRtId string, body *CreateAssociationRequest,
	clientToken string) error

CreateAssociation - 创建路由表的关联关系。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnRtId: 云智能网路由表的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性
  • body:

RETURNS:

  • error: the return error if any occurs

func CreateCsnBpLimit

func CreateCsnBpLimit(cli bce.Client, csnBpId string, body *CreateCsnBpLimitRequest,
	clientToken string) error

CreateCsnBpLimit - 创建带宽包中两个地域间的地域带宽。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnBpId: 带宽包的ID
  • body:

RETURNS:

  • error: the return error if any occurs

func CreatePropagation

func CreatePropagation(cli bce.Client, csnRtId string, body *CreatePropagationRequest,
	clientToken string) error

CreatePropagation - 创建路由表的学习关系。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnRtId: 云智能网路由表的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性
  • body:

RETURNS:

  • error: the return error if any occurs

func CreateRouteRule

func CreateRouteRule(cli bce.Client, csnRtId string, body *CreateRouteRuleRequest,
	clientToken string) error

CreateRouteRule - 添加云智能网路由表的路由条目。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnRtId: 云智能网路由表的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性
  • body:

RETURNS:

  • error: the return error if any occurs

func DeleteAssociation

func DeleteAssociation(cli bce.Client, csnRtId string, attachId string, clientToken string) error

DeleteAssociation - 删除云智能网路由表的关联关系。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnRtId: 路由表的ID
  • attachId: 网络实例在云智能网中的身份ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性

RETURNS:

  • error: the return error if any occurs

func DeleteCsn

func DeleteCsn(cli bce.Client, csnId string, clientToken string) error

DeleteCsn - 删除云智能网。 已经加载了网络实例的云智能网不能直接删除,必须先卸载实例。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnId: 云智能网的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性

RETURNS:

  • error: the return error if any occurs

func DeleteCsnBp

func DeleteCsnBp(cli bce.Client, csnBpId string, clientToken string) error

DeleteCsnBp - 删除带宽包。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnBpId: 带宽包的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串

RETURNS:

  • error: the return error if any occurs

func DeleteCsnBpLimit

func DeleteCsnBpLimit(cli bce.Client, csnBpId string, body *DeleteCsnBpLimitRequest,
	clientToken string) error

DeleteCsnBpLimit - 删除带宽包中两个地域间的地域带宽。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnBpId: 带宽包的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串
  • body:

RETURNS:

  • error: the return error if any occurs

func DeletePropagation

func DeletePropagation(cli bce.Client, csnRtId string, attachId string, clientToken string) error

DeletePropagation - 删除云智能网路由表的学习关系。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnRtId: 路由表的ID
  • attachId: 网络实例在云智能网中的身份ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性

RETURNS:

  • error: the return error if any occurs

func DeleteRouteRule

func DeleteRouteRule(cli bce.Client, csnRtId string, csnRtRuleId string, clientToken string) error

DeleteRouteRule - 删除云智能网路由表的指定路由条目。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnRtId: 路由表的ID
  • csnRtRuleId: 路由条目的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性

RETURNS:

  • error: the return error if any occurs

func DetachInstance

func DetachInstance(cli bce.Client, csnId string, body *DetachInstanceRequest, clientToken string) error

DetachInstance - 从云智能网中移出指定的网络实例。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnId: 云智能网的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性
  • body:

RETURNS:

  • error: the return error if any occurs

func ResizeCsnBp

func ResizeCsnBp(cli bce.Client, csnBpId string, body *ResizeCsnBpRequest, clientToken string) error

ResizeCsnBp - 带宽包的带宽升降级。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnBpId: 带宽包的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串
  • body:

RETURNS:

  • error: the return error if any occurs

func UnbindCsnBp

func UnbindCsnBp(cli bce.Client, csnBpId string, body *UnbindCsnBpRequest, clientToken string) error

UnbindCsnBp - 带宽包解绑云智能网。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnBpId: 带宽包的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串
  • body:

RETURNS:

  • error: the return error if any occurs

func UpdateCsn

func UpdateCsn(cli bce.Client, csnId string, body *UpdateCsnRequest, clientToken string) error

UpdateCsn - 更新云智能网。 更新云智能网的名称和描述。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnId: 云智能网ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性
  • body:

RETURNS:

  • error: the return error if any occurs

func UpdateCsnBp

func UpdateCsnBp(cli bce.Client, csnBpId string, body *UpdateCsnBpRequest, clientToken string) error

UpdateCsnBp - 更新带宽包的名称信息。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnBpId: 带宽包的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串
  • body:

RETURNS:

  • error: the return error if any occurs

func UpdateCsnBpLimit

func UpdateCsnBpLimit(cli bce.Client, csnBpId string, body *UpdateCsnBpLimitRequest,
	clientToken string) error

UpdateCsnBpLimit - 更新带宽包中两个地域间的地域带宽。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnBpId: 带宽包的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串
  • body:

RETURNS:

  • error: the return error if any occurs

func UpdateTgw

func UpdateTgw(cli bce.Client, csnId string, tgwId string, body *UpdateTgwRequest,
	clientToken string) error

UpdateTgw - 更新TGW的名称、描述。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnId: 云智能网的ID
  • tgwId: TGW实例的ID
  • body:

RETURNS:

  • error: the return error if any occurs

Types

type AttachInstanceRequest

type AttachInstanceRequest struct {
	InstanceType      string  `json:"instanceType"`
	InstanceId        string  `json:"instanceId"`
	InstanceRegion    string  `json:"instanceRegion"`
	InstanceAccountId *string `json:"instanceAccountId,omitempty"`
}

type Billing

type Billing struct {
	PaymentTiming string       `json:"paymentTiming"`
	Reservation   *Reservation `json:"reservation,omitempty"`
}

type BindCsnBpRequest

type BindCsnBpRequest struct {
	CsnId string `json:"csnId"`
}

type Client

type Client struct {
	*bce.BceClient

	// Fileds that used in parallel operation for BOS service
	MaxParallel   int64
	MultipartSize int64
}

Client of bcd service is a kind of BceClient, so derived from BceClient

func NewClient

func NewClient(ak, sk, endpoint string) (*Client, error)

NewClient make the bcd service client with default configuration. Use `cli.Config.xxx` to access the config or change it to non-default value.

func (*Client) AttachInstance

func (c *Client) AttachInstance(csnId string, body *AttachInstanceRequest, clientToken string) error

AttachInstance - 将网络实例加载进云智能网。

PARAMS:

  • csnId: 云智能网的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性
  • body: body参数

RETURNS:

  • error: the return error if any occurs

func (*Client) BindCsnBp

func (c *Client) BindCsnBp(csnBpId string, body *BindCsnBpRequest, clientToken string) error

BindCsnBp - 带宽包绑定云智能网。

PARAMS:

  • csnBpId: 带宽包的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串
  • body: body参数

RETURNS:

  • error: the return error if any occurs

func (*Client) CreateAssociation

func (c *Client) CreateAssociation(csnRtId string, body *CreateAssociationRequest,
	clientToken string) error

CreateAssociation - 创建路由表的关联关系。

PARAMS:

  • csnRtId: 云智能网路由表的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性
  • body: body参数

RETURNS:

  • error: the return error if any occurs

func (*Client) CreateCsn

func (c *Client) CreateCsn(body *CreateCsnRequest, clientToken string) (
	*CreateCsnResponse, error)

CreateCsn - 创建云智能网。

PARAMS:

  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性
  • body: body参数

RETURNS:

  • *CreateCsnResponse:
  • error: the return error if any occurs

func (*Client) CreateCsnBp

func (c *Client) CreateCsnBp(body *CreateCsnBpRequest, clientToken string) (
	*CreateCsnBpResponse, error)

CreateCsnBp - 创建云智能网共享带宽包。

PARAMS:

  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串
  • body: body参数

RETURNS:

  • *CreateCsnBpResponse:
  • error: the return error if any occurs

func (*Client) CreateCsnBpLimit

func (c *Client) CreateCsnBpLimit(csnBpId string, body *CreateCsnBpLimitRequest, clientToken string) error

CreateCsnBpLimit - 创建带宽包中两个地域间的地域带宽。

PARAMS:

  • csnBpId: 带宽包的ID
  • body: body参数

RETURNS:

  • error: the return error if any occurs

func (*Client) CreatePropagation

func (c *Client) CreatePropagation(csnRtId string, body *CreatePropagationRequest,
	clientToken string) error

CreatePropagation - 创建路由表的学习关系。

PARAMS:

  • csnRtId: 云智能网路由表的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性
  • body: body参数

RETURNS:

  • error: the return error if any occurs

func (*Client) CreateRouteRule

func (c *Client) CreateRouteRule(csnRtId string, body *CreateRouteRuleRequest,
	clientToken string) error

CreateRouteRule - 添加云智能网路由表的路由条目。

PARAMS:

  • csnRtId: 云智能网路由表的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性
  • body: body参数

RETURNS:

  • error: the return error if any occurs

func (*Client) DeleteAssociation

func (c *Client) DeleteAssociation(csnRtId string, attachId string, clientToken string) error

DeleteAssociation - 删除云智能网路由表的关联关系。

PARAMS:

  • csnRtId: 路由表的ID
  • attachId: 网络实例在云智能网中的身份ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性

RETURNS:

  • error: the return error if any occurs

func (*Client) DeleteCsn

func (c *Client) DeleteCsn(csnId string, clientToken string) error

DeleteCsn - 删除云智能网。 已经加载了网络实例的云智能网不能直接删除,必须先卸载实例。

PARAMS:

  • csnId: 云智能网的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性

RETURNS:

  • error: the return error if any occurs

func (*Client) DeleteCsnBp

func (c *Client) DeleteCsnBp(csnBpId string, clientToken string) error

DeleteCsnBp - 删除带宽包。

PARAMS:

  • csnBpId: 带宽包的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串

RETURNS:

  • error: the return error if any occurs

func (*Client) DeleteCsnBpLimit

func (c *Client) DeleteCsnBpLimit(csnBpId string, body *DeleteCsnBpLimitRequest,
	clientToken string) error

DeleteCsnBpLimit - 删除带宽包中两个地域间的地域带宽。

PARAMS:

  • csnBpId: 带宽包的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串
  • body: body参数

RETURNS:

  • error: the return error if any occurs

func (*Client) DeletePropagation

func (c *Client) DeletePropagation(csnRtId string, attachId string, clientToken string) error

DeletePropagation - 删除云智能网路由表的学习关系。

PARAMS:

  • csnRtId: 路由表的ID
  • attachId: 网络实例在云智能网中的身份ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性

RETURNS:

  • error: the return error if any occurs

func (*Client) DeleteRouteRule

func (c *Client) DeleteRouteRule(csnRtId string, csnRtRuleId string, clientToken string) error

DeleteRouteRule - 删除云智能网路由表的指定路由条目。

PARAMS:

  • csnRtId: 路由表的ID
  • csnRtRuleId: 路由条目的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性

RETURNS:

  • error: the return error if any occurs

func (*Client) DetachInstance

func (c *Client) DetachInstance(csnId string, body *DetachInstanceRequest, clientToken string) error

DetachInstance - 从云智能网中移出指定的网络实例。

PARAMS:

  • csnId: 云智能网的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性
  • body: body参数

RETURNS:

  • error: the return error if any occurs

func (*Client) GetCsn

func (c *Client) GetCsn(csnId string) (*GetCsnResponse, error)

GetCsn - 查询云智能网详情。

PARAMS:

  • csnId: csnId

RETURNS:

  • *api.GetCsnResponse:
  • error: the return error if any occurs

func (*Client) GetCsnBp

func (c *Client) GetCsnBp(csnBpId string) (*GetCsnBpResponse, error)

GetCsnBp - 查询指定云智能网带宽包详情。

PARAMS:

  • csnBpId: 带宽包的ID

RETURNS:

  • *GetCsnBpResponse:
  • error: the return error if any occurs

func (*Client) ListAssociation

func (c *Client) ListAssociation(csnRtId string) (*ListAssociationResponse, error)

ListAssociation - 查询指定云智能网路由表的关联关系。

PARAMS:

  • csnRtId: 云智能网路由表的ID

RETURNS:

  • *ListAssociationResponse:
  • error: the return error if any occurs

func (*Client) ListCsn

func (c *Client) ListCsn(listCsnArgs *ListCsnArgs) (*ListCsnResponse, error)

ListCsn - 查询云智能网列表。

PARAMS:

  • marker: 批量获取列表的查询的起始位置,是一个由系统生成的字符串
  • maxKeys: 每页包含的最大数量,最大数量不超过1000,缺省值为1000

RETURNS:

  • *ListCsnResponse:
  • error: the return error if any occurs

func (*Client) ListCsnBp

func (c *Client) ListCsnBp(listCsnBpArgs *ListCsnBpArgs) (*ListCsnBpResponse, error)

ListCsnBp - 查询云智能网带宽包列表。

PARAMS:

  • marker: 批量获取列表的查询的起始位置,是一个由系统生成的字符串
  • maxKeys: 每页包含的最大数量,最大数量不超过1000,缺省值为1000

RETURNS:

  • *ListCsnBpResponse:
  • error: the return error if any occurs

func (*Client) ListCsnBpLimit

func (c *Client) ListCsnBpLimit(csnBpId string) (*ListCsnBpLimitResponse, error)

ListCsnBpLimit - 查询带宽包的地域带宽列表。

PARAMS:

  • csnBpId:

RETURNS:

  • *ListCsnBpLimitResponse:
  • error: the return error if any occurs

func (*Client) ListCsnBpLimitByCsnId

func (c *Client) ListCsnBpLimitByCsnId(csnId string) (
	*ListCsnBpLimitByCsnIdResponse, error)

ListCsnBpLimitByCsnId - 查询云智能网的地域带宽列表。

PARAMS:

  • csnId: 云智能网的ID
  • body: body参数

RETURNS:

  • *ListCsnBpLimitByCsnIdResponse:
  • error: the return error if any occurs

func (*Client) ListInstance

func (c *Client) ListInstance(csnId string, listInstanceArgs *ListInstanceArgs) (
	*ListInstanceResponse, error)

ListInstance - 查询指定云智能网下加载的网络实例信息。

PARAMS:

  • csnId: 云智能网的ID
  • marker: 批量获取列表的查询的起始位置,是一个由系统生成的字符串
  • maxKeys: 每页包含的最大数量,最大数量不超过1000,缺省值为1000

RETURNS:

  • *ListInstanceResponse:
  • error: the return error if any occurs

func (*Client) ListPropagation

func (c *Client) ListPropagation(csnRtId string) (*ListPropagationResponse, error)

ListPropagation - 查询指定云智能网路由表的学习关系。

PARAMS:

  • csnRtId: 云智能网路由表的ID

RETURNS:

  • *ListPropagationResponse:
  • error: the return error if any occurs

func (*Client) ListRouteRule

func (c *Client) ListRouteRule(csnRtId string, listRouteRuleArgs *ListRouteRuleArgs) (
	*ListRouteRuleResponse, error)

ListRouteRule - 查询指定云智能网路由表的路由条目。

PARAMS:

  • csnRtId: 云智能网路由表的ID
  • marker: 批量获取列表的查询的起始位置,是一个由系统生成的字符串
  • maxKeys: 每页包含的最大数量,最大数量不超过1000。缺省值为1000

RETURNS:

  • *ListRouteRuleResponse:
  • error: the return error if any occurs

func (*Client) ListRouteTable

func (c *Client) ListRouteTable(csnId string, listRouteTableArgs *ListRouteTableArgs) (
	*ListRouteTableResponse, error)

ListRouteTable - 查询云智能网的路由表列表。

PARAMS:

  • csnId: 云智能网的ID
  • marker: 批量获取列表的查询的起始位置,是一个由系统生成的字符串
  • maxKeys: 每页包含的最大数量,最大数量不超过1000,缺省值为1000

RETURNS:

  • *ListRouteTableResponse:
  • error: the return error if any occurs

func (*Client) ListTgw

func (c *Client) ListTgw(csnId string, listTgwArgs *ListTgwArgs) (
	*ListTgwResponse, error)

ListTgw - 查询云智能网TGW列表。

PARAMS:

  • csnId: 云智能网的ID
  • marker: 批量获取列表的查询的起始位置,是一个由系统生成的字符串
  • maxKeys: 每页包含的最大数量,最大数量不超过1000,缺省值为1000

RETURNS:

  • *ListTgwResponse:
  • error: the return error if any occurs

func (*Client) ListTgwRule

func (c *Client) ListTgwRule(csnId string, tgwId string, listTgwRuleArgs *ListTgwRuleArgs,
) (*ListTgwRuleResponse, error)

ListTgwRule - 查询指定TGW的路由条目。

PARAMS:

  • csnId: 云智能网的ID
  • tgwId: TGW的ID
  • marker: 批量获取列表的查询的起始位置,是一个由系统生成的字符串
  • maxKeys: 每页包含的最大数量,最大数量不超过1000,缺省值为1000

RETURNS:

  • *ListTgwRuleResponse:
  • error: the return error if any occurs

func (*Client) ResizeCsnBp

func (c *Client) ResizeCsnBp(csnBpId string, body *ResizeCsnBpRequest, clientToken string) error

ResizeCsnBp - 带宽包的带宽升降级。

PARAMS:

  • csnBpId: 带宽包的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串
  • body: body参数

RETURNS:

  • error: the return error if any occurs

func (*Client) UnbindCsnBp

func (c *Client) UnbindCsnBp(csnBpId string, body *UnbindCsnBpRequest, clientToken string) error

UnbindCsnBp - 带宽包解绑云智能网。

PARAMS:

  • csnBpId: 带宽包的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串
  • body: body参数

RETURNS:

  • error: the return error if any occurs

func (*Client) UpdateCsn

func (c *Client) UpdateCsn(csnId string, body *UpdateCsnRequest, clientToken string) error

UpdateCsn - 更新云智能网。 更新云智能网的名称和描述。

PARAMS:

  • csnId: 云智能网ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性
  • body: body参数

RETURNS:

  • error: the return error if any occurs

func (*Client) UpdateCsnBp

func (c *Client) UpdateCsnBp(csnBpId string, body *UpdateCsnBpRequest, clientToken string) error

UpdateCsnBp - 更新带宽包的名称信息。

PARAMS:

  • csnBpId: 带宽包的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串
  • body: body参数

RETURNS:

  • error: the return error if any occurs

func (*Client) UpdateCsnBpLimit

func (c *Client) UpdateCsnBpLimit(csnBpId string, body *UpdateCsnBpLimitRequest,
	clientToken string) error

UpdateCsnBpLimit - 更新带宽包中两个地域间的地域带宽。

PARAMS:

  • csnBpId: 带宽包的ID
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串
  • body: body参数

RETURNS:

  • error: the return error if any occurs

func (*Client) UpdateTgw

func (c *Client) UpdateTgw(csnId string, tgwId string, body *UpdateTgwRequest,
	clientToken string) error

UpdateTgw - 更新TGW的名称、描述。

PARAMS:

  • csnId: 云智能网的ID
  • tgwId: TGW实例的ID
  • body: body参数

RETURNS:

  • error: the return error if any occurs

type CreateAssociationRequest

type CreateAssociationRequest struct {
	AttachId    string  `json:"attachId"`
	Description *string `json:"description,omitempty"`
}

type CreateCsnBpLimitRequest

type CreateCsnBpLimitRequest struct {
	LocalRegion string `json:"localRegion"`
	PeerRegion  string `json:"peerRegion"`
	Bandwidth   int32  `json:"bandwidth"`
}

type CreateCsnBpRequest

type CreateCsnBpRequest struct {
	Name          string  `json:"name"`
	InterworkType *string `json:"interworkType,omitempty"`
	Bandwidth     int32   `json:"bandwidth"`
	GeographicA   string  `json:"geographicA"`
	GeographicB   string  `json:"geographicB"`
	Billing       Billing `json:"billing"`
}

type CreateCsnBpResponse

type CreateCsnBpResponse struct {
	CsnBpId string `json:"csnBpId"`
}

func CreateCsnBp

func CreateCsnBp(cli bce.Client, body *CreateCsnBpRequest, clientToken string) (
	*CreateCsnBpResponse, error)

CreateCsnBp - 创建云智能网共享带宽包。

PARAMS:

  • cli: the client agent which can perform sending request
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串
  • body:

RETURNS:

  • *api.CreateCsnBpResponse:
  • error: the return error if any occurs

type CreateCsnRequest

type CreateCsnRequest struct {
	Name        string  `json:"name"`
	Description *string `json:"description,omitempty"`
}

type CreateCsnResponse

type CreateCsnResponse struct {
	CsnId string `json:"csnId"`
}

func CreateCsn

func CreateCsn(cli bce.Client, body *CreateCsnRequest, clientToken string) (
	*CreateCsnResponse, error)

CreateCsn - 创建云智能网。

PARAMS:

  • cli: the client agent which can perform sending request
  • clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性
  • body:

RETURNS:

  • *api.CreateCsnResponse:
  • error: the return error if any occurs

type CreatePropagationRequest

type CreatePropagationRequest struct {
	AttachId    string  `json:"attachId"`
	Description *string `json:"description,omitempty"`
}

type CreateRouteRuleRequest

type CreateRouteRuleRequest struct {
	AttachId    string `json:"attachId"`
	DestAddress string `json:"destAddress"`
	RouteType   string `json:"routeType"`
}

type Csn

type Csn struct {
	CsnId       string `json:"csnId"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Status      string `json:"status"`
	InstanceNum int32  `json:"instanceNum"`
	CsnBpNum    int32  `json:"csnBpNum"`
}

type CsnBp

type CsnBp struct {
	CsnBpId         string `json:"csnBpId"`
	Name            string `json:"name"`
	Bandwidth       int32  `json:"bandwidth"`
	UsedBandwidth   int32  `json:"usedBandwidth"`
	CsnId           string `json:"csnId"`
	InterworkType   string `json:"interworkType"`
	InterworkRegion string `json:"interworkRegion"`
	Status          string `json:"status"`
	PaymentTiming   string `json:"paymentTiming"`
	ExpireTime      string `json:"expireTime"`
	CreatedTime     string `json:"createdTime"`
}

type CsnBpLimit

type CsnBpLimit struct {
	CsnBpId     string `json:"csnBpId"`
	CsnId       string `json:"csnId"`
	LocalRegion string `json:"localRegion"`
	PeerRegion  string `json:"peerRegion"`
	Bandwidth   int32  `json:"bandwidth"`
}

type CsnRouteTable

type CsnRouteTable struct {
	CsnRtId     string `json:"csnRtId"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Type        string `json:"type"`
}

type CsnRtAssociation

type CsnRtAssociation struct {
	AttachId       string `json:"attachId"`
	Description    string `json:"description"`
	InstanceId     string `json:"instanceId"`
	InstanceName   string `json:"instanceName"`
	InstanceRegion string `json:"instanceRegion"`
	InstanceType   string `json:"instanceType"`
	Status         string `json:"status"`
}

type CsnRtPropagation

type CsnRtPropagation struct {
	AttachId       string `json:"attachId"`
	Description    string `json:"description"`
	InstanceId     string `json:"instanceId"`
	InstanceName   string `json:"instanceName"`
	InstanceRegion string `json:"instanceRegion"`
	InstanceType   string `json:"instanceType"`
	Status         string `json:"status"`
}

type CsnRtRule

type CsnRtRule struct {
	RuleId        string `json:"ruleId"`
	RouteType     string `json:"routeType"`
	CsnId         string `json:"csnId"`
	CsnRtId       string `json:"csnRtId"`
	Description   string `json:"description"`
	FromAttachId  string `json:"fromAttachId"`
	Status        string `json:"status"`
	SourceAddress string `json:"sourceAddress"`
	DestAddress   string `json:"destAddress"`
	NextHopId     string `json:"nextHopId"`
	NextHopName   string `json:"nextHopName"`
	NextHopRegion string `json:"nextHopRegion"`
	NextHopType   string `json:"nextHopType"`
	AsPath        string `json:"asPath"`
	Community     string `json:"community"`
	BlackHole     bool   `json:"blackHole"`
}

type DeleteCsnBpLimitRequest

type DeleteCsnBpLimitRequest struct {
	LocalRegion string `json:"localRegion"`
	PeerRegion  string `json:"peerRegion"`
}

type DetachInstanceRequest

type DetachInstanceRequest struct {
	InstanceType      string  `json:"instanceType"`
	InstanceId        string  `json:"instanceId"`
	InstanceRegion    string  `json:"instanceRegion"`
	InstanceAccountId *string `json:"instanceAccountId,omitempty"`
}

type GetCsnBpResponse

type GetCsnBpResponse struct {
	CsnBpId         string `json:"csnBpId"`
	Name            string `json:"name"`
	Bandwidth       int32  `json:"bandwidth"`
	UsedBandwidth   int32  `json:"usedBandwidth"`
	CsnId           string `json:"csnId"`
	InterworkType   string `json:"interworkType"`
	InterworkRegion string `json:"interworkRegion"`
	Status          string `json:"status"`
	PaymentTiming   string `json:"paymentTiming"`
	ExpireTime      string `json:"expireTime"`
	CreatedTime     string `json:"createdTime"`
}

func GetCsnBp

func GetCsnBp(cli bce.Client, csnBpId string) (*GetCsnBpResponse, error)

GetCsnBp - 查询指定云智能网带宽包详情。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnBpId: 带宽包的ID

RETURNS:

  • *api.GetCsnBpResponse:
  • error: the return error if any occurs

type GetCsnResponse

type GetCsnResponse struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	CsnId       string `json:"csnId"`
	Status      string `json:"status"`
	InstanceNum int32  `json:"instanceNum"`
	CsnBpNum    int32  `json:"csnBpNum"`
}

func GetCsn

func GetCsn(cli bce.Client, csnId string) (*GetCsnResponse, error)

GetCsn - 查询云智能网详情。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnId: csnId

RETURNS:

  • *api.GetCsnResponse:
  • error: the return error if any occurs

type Instance

type Instance struct {
	AttachId          string `json:"attachId"`
	InstanceType      string `json:"instanceType"`
	InstanceId        string `json:"instanceId"`
	InstanceName      string `json:"instanceName"`
	InstanceRegion    string `json:"instanceRegion"`
	InstanceAccountId string `json:"instanceAccountId"`
	Status            string `json:"status"`
}

type ListAssociationResponse

type ListAssociationResponse struct {
	Associations []CsnRtAssociation `json:"associations"`
}

func ListAssociation

func ListAssociation(cli bce.Client, csnRtId string) (*ListAssociationResponse, error)

ListAssociation - 查询指定云智能网路由表的关联关系。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnRtId: 云智能网路由表的ID

RETURNS:

  • *api.ListAssociationResponse:
  • error: the return error if any occurs

type ListAssociationResponseAssociations

type ListAssociationResponseAssociations struct {
}

type ListCsnArgs

type ListCsnArgs struct {
	Marker  string `json:"marker"`
	MaxKeys int    `json:"maxKeys"`
}

type ListCsnBpArgs

type ListCsnBpArgs struct {
	Marker  string `json:"marker"`
	MaxKeys int    `json:"maxKeys"`
}

type ListCsnBpLimitByCsnIdRequest

type ListCsnBpLimitByCsnIdRequest struct {
	LocalRegion string `json:"localRegion"`
	PeerRegion  string `json:"peerRegion"`
}

type ListCsnBpLimitByCsnIdResponse

type ListCsnBpLimitByCsnIdResponse struct {
	BpLimits []CsnBpLimit `json:"bpLimits"`
}

func ListCsnBpLimitByCsnId

func ListCsnBpLimitByCsnId(cli bce.Client, csnId string) (
	*ListCsnBpLimitByCsnIdResponse, error)

ListCsnBpLimitByCsnId - 查询云智能网的地域带宽列表。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnId: 云智能网的ID
  • body:

RETURNS:

  • *api.ListCsnBpLimitByCsnIdResponse:
  • error: the return error if any occurs

type ListCsnBpLimitByCsnIdResponseBpLimits

type ListCsnBpLimitByCsnIdResponseBpLimits struct {
}

type ListCsnBpLimitResponse

type ListCsnBpLimitResponse struct {
	BpLimits []CsnBpLimit `json:"bpLimits"`
}

func ListCsnBpLimit

func ListCsnBpLimit(cli bce.Client, csnBpId string) (*ListCsnBpLimitResponse, error)

ListCsnBpLimit - 查询带宽包的地域带宽列表。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnBpId:

RETURNS:

  • *api.ListCsnBpLimitResponse:
  • error: the return error if any occurs

type ListCsnBpLimitResponseBpLimits

type ListCsnBpLimitResponseBpLimits struct {
}

type ListCsnBpResponse

type ListCsnBpResponse struct {
	CsnBps      []CsnBp `json:"csnBps"`
	Marker      *string `json:"marker,omitempty"`
	IsTruncated bool    `json:"isTruncated"`
	NextMarker  *string `json:"nextMarker,omitempty"`
	MaxKeys     int32   `json:"maxKeys"`
}

func ListCsnBp

func ListCsnBp(cli bce.Client, listCsnBpArgs *ListCsnBpArgs) (*ListCsnBpResponse, error)

ListCsnBp - 查询云智能网带宽包列表。

PARAMS:

  • cli: the client agent which can perform sending request
  • marker: 批量获取列表的查询的起始位置,是一个由系统生成的字符串
  • maxKeys: 每页包含的最大数量,最大数量不超过1000,缺省值为1000

RETURNS:

  • *api.ListCsnBpResponse:
  • error: the return error if any occurs

type ListCsnBpResponseCsnBps

type ListCsnBpResponseCsnBps struct {
}

type ListCsnResponse

type ListCsnResponse struct {
	Csns        []Csn   `json:"csns"`
	Marker      *string `json:"marker,omitempty"`
	IsTruncated bool    `json:"isTruncated"`
	NextMarker  *string `json:"nextMarker,omitempty"`
	MaxKeys     int32   `json:"maxKeys"`
}

func ListCsn

func ListCsn(cli bce.Client, listCsnArgs *ListCsnArgs) (*ListCsnResponse, error)

ListCsn - 查询云智能网列表。

PARAMS:

  • cli: the client agent which can perform sending request
  • marker: 批量获取列表的查询的起始位置,是一个由系统生成的字符串
  • maxKeys: 每页包含的最大数量,最大数量不超过1000,缺省值为1000

RETURNS:

  • *api.ListCsnResponse:
  • error: the return error if any occurs

type ListCsnResponseCsns

type ListCsnResponseCsns struct {
}

type ListInstanceArgs

type ListInstanceArgs struct {
	Marker  string `json:"marker"`
	MaxKeys int    `json:"maxKeys"`
}

type ListInstanceResponse

type ListInstanceResponse struct {
	Instances   []Instance `json:"instances"`
	Marker      *string    `json:"marker,omitempty"`
	IsTruncated bool       `json:"isTruncated"`
	NextMarker  *string    `json:"nextMarker,omitempty"`
	MaxKeys     int32      `json:"maxKeys"`
}

func ListInstance

func ListInstance(cli bce.Client, csnId string, listInstanceArgs *ListInstanceArgs) (
	*ListInstanceResponse, error)

ListInstance - 查询指定云智能网下加载的网络实例信息。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnId: 云智能网的ID
  • marker: 批量获取列表的查询的起始位置,是一个由系统生成的字符串
  • maxKeys: 每页包含的最大数量,最大数量不超过1000,缺省值为1000

RETURNS:

  • *api.ListInstanceResponse:
  • error: the return error if any occurs

type ListInstanceResponseInstances

type ListInstanceResponseInstances struct {
}

type ListPropagationResponse

type ListPropagationResponse struct {
	Propagations []CsnRtPropagation `json:"propagations"`
}

func ListPropagation

func ListPropagation(cli bce.Client, csnRtId string) (*ListPropagationResponse, error)

ListPropagation - 查询指定云智能网路由表的学习关系。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnRtId: 云智能网路由表的ID

RETURNS:

  • *api.ListPropagationResponse:
  • error: the return error if any occurs

type ListPropagationResponsePropagations

type ListPropagationResponsePropagations struct {
}

type ListRouteRuleArgs

type ListRouteRuleArgs struct {
	Marker  string `json:"marker"`
	MaxKeys int    `json:"maxKeys"`
}

type ListRouteRuleResponse

type ListRouteRuleResponse struct {
	CsnRtRules  []CsnRtRule `json:"csnRtRules"`
	Marker      *string     `json:"marker,omitempty"`
	IsTruncated bool        `json:"isTruncated"`
	NextMarker  *string     `json:"nextMarker,omitempty"`
	MaxKeys     int32       `json:"maxKeys"`
}

func ListRouteRule

func ListRouteRule(cli bce.Client, csnRtId string, listRouteRuleArgs *ListRouteRuleArgs) (
	*ListRouteRuleResponse, error)

ListRouteRule - 查询指定云智能网路由表的路由条目。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnRtId: 云智能网路由表的ID
  • marker: 批量获取列表的查询的起始位置,是一个由系统生成的字符串
  • maxKeys: 每页包含的最大数量,最大数量不超过1000。缺省值为1000

RETURNS:

  • *api.ListRouteRuleResponse:
  • error: the return error if any occurs

type ListRouteRuleResponseCsnRtRules

type ListRouteRuleResponseCsnRtRules struct {
}

type ListRouteTableArgs

type ListRouteTableArgs struct {
	Marker  string `json:"marker"`
	MaxKeys int    `json:"maxKeys"`
}

type ListRouteTableResponse

type ListRouteTableResponse struct {
	CsnRts      []CsnRouteTable `json:"csnRts"`
	Marker      *string         `json:"marker,omitempty"`
	IsTruncated bool            `json:"isTruncated"`
	NextMarker  *string         `json:"nextMarker,omitempty"`
	MaxKeys     int32           `json:"maxKeys"`
}

func ListRouteTable

func ListRouteTable(cli bce.Client, csnId string, listRouteTableArgs *ListRouteTableArgs) (
	*ListRouteTableResponse, error)

ListRouteTable - 查询云智能网的路由表列表。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnId: 云智能网的ID
  • marker: 批量获取列表的查询的起始位置,是一个由系统生成的字符串
  • maxKeys: 每页包含的最大数量,最大数量不超过1000,缺省值为1000

RETURNS:

  • *api.ListRouteTableResponse:
  • error: the return error if any occurs

type ListRouteTableResponseCsnRts

type ListRouteTableResponseCsnRts struct {
}

type ListTgwArgs

type ListTgwArgs struct {
	Marker  string `json:"marker"`
	MaxKeys int    `json:"maxKeys"`
}

type ListTgwResponse

type ListTgwResponse struct {
	Tgws        []Tgw   `json:"tgws"`
	Marker      *string `json:"marker,omitempty"`
	IsTruncated bool    `json:"isTruncated"`
	NextMarker  *string `json:"nextMarker,omitempty"`
	MaxKeys     int32   `json:"maxKeys"`
}

func ListTgw

func ListTgw(cli bce.Client, csnId string, listTgwArgs *ListTgwArgs) (*ListTgwResponse, error)

ListTgw - 查询云智能网TGW列表。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnId: 云智能网的ID
  • marker: 批量获取列表的查询的起始位置,是一个由系统生成的字符串
  • maxKeys: 每页包含的最大数量,最大数量不超过1000,缺省值为1000

RETURNS:

  • *api.ListTgwResponse:
  • error: the return error if any occurs

type ListTgwRuleArgs

type ListTgwRuleArgs struct {
	Marker  string `json:"marker"`
	MaxKeys int    `json:"maxKeys"`
}

type ListTgwRuleResponse

type ListTgwRuleResponse struct {
	TgwRtRules  []TgwRtRule `json:"tgwRtRules"`
	Marker      *string     `json:"marker,omitempty"`
	IsTruncated bool        `json:"isTruncated"`
	NextMarker  *string     `json:"nextMarker,omitempty"`
	MaxKeys     int32       `json:"maxKeys"`
}

func ListTgwRule

func ListTgwRule(cli bce.Client, csnId string, tgwId string, listTgwRuleArgs *ListTgwRuleArgs,
) (*ListTgwRuleResponse, error)

ListTgwRule - 查询指定TGW的路由条目。

PARAMS:

  • cli: the client agent which can perform sending request
  • csnId: 云智能网的ID
  • tgwId: TGW的ID
  • marker: 批量获取列表的查询的起始位置,是一个由系统生成的字符串
  • maxKeys: 每页包含的最大数量,最大数量不超过1000,缺省值为1000
  • body:

RETURNS:

  • *api.ListTgwRuleResponse:
  • error: the return error if any occurs

type ListTgwRuleResponseTgwRtRules

type ListTgwRuleResponseTgwRtRules struct {
}

type Reservation

type Reservation struct {
	ReservationLength   int32  `json:"reservationLength"`
	ReservationTimeUnit string `json:"reservationTimeUnit"`
}

type ResizeCsnBpRequest

type ResizeCsnBpRequest struct {
	Bandwidth int32 `json:"bandwidth"`
}

type Tgw

type Tgw struct {
	TgwId       string `json:"tgwId"`
	CsnId       string `json:"csnId"`
	Name        string `json:"name"`
	Region      string `json:"region"`
	Description string `json:"description"`
}

type TgwRtRule

type TgwRtRule struct {
	RuleId        string `json:"ruleId"`
	RouteType     string `json:"routeType"`
	CsnId         string `json:"csnId"`
	CsnRtId       string `json:"csnRtId"`
	FromAttachId  string `json:"fromAttachId"`
	Status        string `json:"status"`
	DestAddress   string `json:"destAddress"`
	NextHopId     string `json:"nextHopId"`
	NextHopName   string `json:"nextHopName"`
	NextHopRegion string `json:"nextHopRegion"`
	NextHopType   string `json:"nextHopType"`
	AsPath        string `json:"asPath"`
	Community     string `json:"community"`
	BlackHole     bool   `json:"blackHole"`
}

type UnbindCsnBpRequest

type UnbindCsnBpRequest struct {
	CsnId string `json:"csnId"`
}

type UpdateCsnBpLimitRequest

type UpdateCsnBpLimitRequest struct {
	LocalRegion string `json:"localRegion"`
	PeerRegion  string `json:"peerRegion"`
	Bandwidth   int32  `json:"bandwidth"`
}

type UpdateCsnBpRequest

type UpdateCsnBpRequest struct {
	Name string `json:"name"`
}

type UpdateCsnRequest

type UpdateCsnRequest struct {
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
}

type UpdateTgwRequest

type UpdateTgwRequest struct {
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL