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
- func AttachInstance(cli bce.Client, csnId string, body *AttachInstanceRequest, clientToken string) error
- func BindCsnBp(cli bce.Client, csnBpId string, body *BindCsnBpRequest, clientToken string) error
- func CreateAssociation(cli bce.Client, csnRtId string, body *CreateAssociationRequest, ...) error
- func CreateCsnBpLimit(cli bce.Client, csnBpId string, body *CreateCsnBpLimitRequest, ...) error
- func CreatePropagation(cli bce.Client, csnRtId string, body *CreatePropagationRequest, ...) error
- func CreateRouteRule(cli bce.Client, csnRtId string, body *CreateRouteRuleRequest, ...) error
- func DeleteAssociation(cli bce.Client, csnRtId string, attachId string, clientToken string) error
- func DeleteCsn(cli bce.Client, csnId string, clientToken string) error
- func DeleteCsnBp(cli bce.Client, csnBpId string, clientToken string) error
- func DeleteCsnBpLimit(cli bce.Client, csnBpId string, body *DeleteCsnBpLimitRequest, ...) error
- func DeletePropagation(cli bce.Client, csnRtId string, attachId string, clientToken string) error
- func DeleteRouteRule(cli bce.Client, csnRtId string, csnRtRuleId string, clientToken string) error
- func DetachInstance(cli bce.Client, csnId string, body *DetachInstanceRequest, clientToken string) error
- func ResizeCsnBp(cli bce.Client, csnBpId string, body *ResizeCsnBpRequest, clientToken string) error
- func UnbindCsnBp(cli bce.Client, csnBpId string, body *UnbindCsnBpRequest, clientToken string) error
- func UpdateCsn(cli bce.Client, csnId string, body *UpdateCsnRequest, clientToken string) error
- func UpdateCsnBp(cli bce.Client, csnBpId string, body *UpdateCsnBpRequest, clientToken string) error
- func UpdateCsnBpLimit(cli bce.Client, csnBpId string, body *UpdateCsnBpLimitRequest, ...) error
- func UpdateTgw(cli bce.Client, csnId string, tgwId string, body *UpdateTgwRequest, ...) error
- type AttachInstanceRequest
- type Billing
- type BindCsnBpRequest
- type Client
- func (c *Client) AttachInstance(csnId string, body *AttachInstanceRequest, clientToken string) error
- func (c *Client) BindCsnBp(csnBpId string, body *BindCsnBpRequest, clientToken string) error
- func (c *Client) CreateAssociation(csnRtId string, body *CreateAssociationRequest, clientToken string) error
- func (c *Client) CreateCsn(body *CreateCsnRequest, clientToken string) (*CreateCsnResponse, error)
- func (c *Client) CreateCsnBp(body *CreateCsnBpRequest, clientToken string) (*CreateCsnBpResponse, error)
- func (c *Client) CreateCsnBpLimit(csnBpId string, body *CreateCsnBpLimitRequest, clientToken string) error
- func (c *Client) CreatePropagation(csnRtId string, body *CreatePropagationRequest, clientToken string) error
- func (c *Client) CreateRouteRule(csnRtId string, body *CreateRouteRuleRequest, clientToken string) error
- func (c *Client) DeleteAssociation(csnRtId string, attachId string, clientToken string) error
- func (c *Client) DeleteCsn(csnId string, clientToken string) error
- func (c *Client) DeleteCsnBp(csnBpId string, clientToken string) error
- func (c *Client) DeleteCsnBpLimit(csnBpId string, body *DeleteCsnBpLimitRequest, clientToken string) error
- func (c *Client) DeletePropagation(csnRtId string, attachId string, clientToken string) error
- func (c *Client) DeleteRouteRule(csnRtId string, csnRtRuleId string, clientToken string) error
- func (c *Client) DetachInstance(csnId string, body *DetachInstanceRequest, clientToken string) error
- func (c *Client) GetCsn(csnId string) (*GetCsnResponse, error)
- func (c *Client) GetCsnBp(csnBpId string) (*GetCsnBpResponse, error)
- func (c *Client) ListAssociation(csnRtId string) (*ListAssociationResponse, error)
- func (c *Client) ListCsn(listCsnArgs *ListCsnArgs) (*ListCsnResponse, error)
- func (c *Client) ListCsnBp(listCsnBpArgs *ListCsnBpArgs) (*ListCsnBpResponse, error)
- func (c *Client) ListCsnBpLimit(csnBpId string) (*ListCsnBpLimitResponse, error)
- func (c *Client) ListCsnBpLimitByCsnId(csnId string) (*ListCsnBpLimitByCsnIdResponse, error)
- func (c *Client) ListInstance(csnId string, listInstanceArgs *ListInstanceArgs) (*ListInstanceResponse, error)
- func (c *Client) ListPropagation(csnRtId string) (*ListPropagationResponse, error)
- func (c *Client) ListRouteRule(csnRtId string, listRouteRuleArgs *ListRouteRuleArgs) (*ListRouteRuleResponse, error)
- func (c *Client) ListRouteTable(csnId string, listRouteTableArgs *ListRouteTableArgs) (*ListRouteTableResponse, error)
- func (c *Client) ListTgw(csnId string, listTgwArgs *ListTgwArgs) (*ListTgwResponse, error)
- func (c *Client) ListTgwRule(csnId string, tgwId string, listTgwRuleArgs *ListTgwRuleArgs) (*ListTgwRuleResponse, error)
- func (c *Client) ResizeCsnBp(csnBpId string, body *ResizeCsnBpRequest, clientToken string) error
- func (c *Client) UnbindCsnBp(csnBpId string, body *UnbindCsnBpRequest, clientToken string) error
- func (c *Client) UpdateCsn(csnId string, body *UpdateCsnRequest, clientToken string) error
- func (c *Client) UpdateCsnBp(csnBpId string, body *UpdateCsnBpRequest, clientToken string) error
- func (c *Client) UpdateCsnBpLimit(csnBpId string, body *UpdateCsnBpLimitRequest, clientToken string) error
- func (c *Client) UpdateTgw(csnId string, tgwId string, body *UpdateTgwRequest, clientToken string) error
- type CreateAssociationRequest
- type CreateCsnBpLimitRequest
- type CreateCsnBpRequest
- type CreateCsnBpResponse
- type CreateCsnRequest
- type CreateCsnResponse
- type CreatePropagationRequest
- type CreateRouteRuleRequest
- type Csn
- type CsnBp
- type CsnBpLimit
- type CsnRouteTable
- type CsnRtAssociation
- type CsnRtPropagation
- type CsnRtRule
- type DeleteCsnBpLimitRequest
- type DetachInstanceRequest
- type GetCsnBpResponse
- type GetCsnResponse
- type Instance
- type ListAssociationResponse
- type ListAssociationResponseAssociations
- type ListCsnArgs
- type ListCsnBpArgs
- type ListCsnBpLimitByCsnIdRequest
- type ListCsnBpLimitByCsnIdResponse
- type ListCsnBpLimitByCsnIdResponseBpLimits
- type ListCsnBpLimitResponse
- type ListCsnBpLimitResponseBpLimits
- type ListCsnBpResponse
- type ListCsnBpResponseCsnBps
- type ListCsnResponse
- type ListCsnResponseCsns
- type ListInstanceArgs
- type ListInstanceResponse
- type ListInstanceResponseInstances
- type ListPropagationResponse
- type ListPropagationResponsePropagations
- type ListRouteRuleArgs
- type ListRouteRuleResponse
- type ListRouteRuleResponseCsnRtRules
- type ListRouteTableArgs
- type ListRouteTableResponse
- type ListRouteTableResponseCsnRts
- type ListTgwArgs
- type ListTgwResponse
- type ListTgwRuleArgs
- type ListTgwRuleResponse
- type ListTgwRuleResponseTgwRtRules
- type Reservation
- type ResizeCsnBpRequest
- type Tgw
- type TgwRtRule
- type UnbindCsnBpRequest
- type UpdateCsnBpLimitRequest
- type UpdateCsnBpRequest
- type UpdateCsnRequest
- type UpdateTgwRequest
Constants ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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
Types ¶
type AttachInstanceRequest ¶
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 ¶
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 ¶
DeleteAssociation - 删除云智能网路由表的关联关系。
PARAMS:
- csnRtId: 路由表的ID
- attachId: 网络实例在云智能网中的身份ID
- clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性
RETURNS:
- error: the return error if any occurs
func (*Client) DeleteCsn ¶
DeleteCsn - 删除云智能网。 已经加载了网络实例的云智能网不能直接删除,必须先卸载实例。
PARAMS:
- csnId: 云智能网的ID
- clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性
RETURNS:
- error: the return error if any occurs
func (*Client) DeleteCsnBp ¶
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 ¶
DeletePropagation - 删除云智能网路由表的学习关系。
PARAMS:
- csnRtId: 路由表的ID
- attachId: 网络实例在云智能网中的身份ID
- clientToken: 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性
RETURNS:
- error: the return error if any occurs
func (*Client) DeleteRouteRule ¶
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
type CreateCsnBpLimitRequest ¶
type CreateCsnBpRequest ¶
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 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 CreateRouteRuleRequest ¶
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 CsnRouteTable ¶
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 DetachInstanceRequest ¶
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"` }
type GetCsnResponse ¶
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 ListCsnBpArgs ¶
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 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 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 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 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 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 ResizeCsnBpRequest ¶
type ResizeCsnBpRequest struct {
Bandwidth int32 `json:"bandwidth"`
}
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 UpdateCsnBpRequest ¶
type UpdateCsnBpRequest struct {
Name string `json:"name"`
}