Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - Variables
 - type Apis
 - type BandwidthAssociateEipApi
 - type BandwidthAssociateEipRequest
 - type BandwidthAssociateEipResponse
 - type BandwidthChangeNameApi
 - type BandwidthChangeNameRequest
 - type BandwidthChangeNameResponse
 - type BandwidthChangeSpecApi
 - type BandwidthChangeSpecRequest
 - type BandwidthChangeSpecResponse
 - type BandwidthCreateApi
 - type BandwidthCreateRequest
 - type BandwidthCreateResponse
 - type BandwidthDeleteApi
 - type BandwidthDeleteRequest
 - type BandwidthDeleteResponse
 - type BandwidthDescribeApi
 - type BandwidthDescribeEipsResponse
 - type BandwidthDescribeRequest
 - type BandwidthDescribeResponse
 - type BandwidthDisassociateEipApi
 - type BandwidthDisassociateEipRequest
 - type BandwidthDisassociateEipResponse
 - type EipAssociateApi
 - type EipAssociateRequest
 - type EipAssociateResponse
 - type EipChangeNameApi
 - type EipChangeNameRequest
 - type EipChangeNameResponse
 - type EipCreateApi
 - type EipCreateRequest
 - type EipCreateResponse
 - type EipDeleteApi
 - type EipDeleteRequest
 - type EipDeleteResponse
 - type EipDisassociateApi
 - type EipDisassociateRequest
 - type EipDisassociateResponse
 - type EipModifySpecApi
 - type EipModifySpecRequest
 - type EipModifySpecResponse
 - type EipShowApi
 - type EipShowRequest
 - type EipShowResponse
 - type SecurityGroupCreateApi
 - type SecurityGroupCreateRequest
 - type SecurityGroupCreateResponse
 - type SecurityGroupDeleteApi
 - type SecurityGroupDeleteRequest
 - type SecurityGroupDeleteResponse
 - type SecurityGroupDescribeAttributeApi
 - type SecurityGroupDescribeAttributeRequest
 - type SecurityGroupDescribeAttributeResponse
 - type SecurityGroupDescribeAttributeSecurityGroupRuleListResponse
 - type SecurityGroupModifyAttributionApi
 - type SecurityGroupModifyAttributionRequest
 - type SecurityGroupModifyAttributionResponse
 - type SecurityGroupRuleDescribeApi
 - type SecurityGroupRuleDescribeRequest
 - type SecurityGroupRuleDescribeResponse
 - type SecurityGroupRuleEgressModifyApi
 - type SecurityGroupRuleEgressModifyRequest
 - type SecurityGroupRuleEgressModifyResponse
 - type SecurityGroupRuleEgressRevokeApi
 - type SecurityGroupRuleEgressRevokeRequest
 - type SecurityGroupRuleEgressRevokeResponse
 - type SecurityGroupRuleIngressModifyApi
 - type SecurityGroupRuleIngressModifyRequest
 - type SecurityGroupRuleIngressModifyResponse
 - type SecurityGroupRuleIngressRevokeApi
 - type SecurityGroupRuleIngressRevokeRequest
 - type SecurityGroupRuleIngressRevokeResponse
 - type SubnetCreateApi
 - type SubnetCreateRequest
 - type SubnetCreateResponse
 - type SubnetDeleteApi
 - type SubnetDeleteRequest
 - type SubnetDeleteResponse
 - type SubnetListApi
 - type SubnetListRequest
 - type SubnetListResponse
 - type SubnetListSubnetsResponse
 - type SubnetQueryApi
 - type SubnetQueryRequest
 - type SubnetQueryResponse
 - type SubnetUpdateApi
 - type SubnetUpdateRequest
 - type SubnetUpdateResponse
 - type VpcCreateApi
 - type VpcCreateRequest
 - type VpcCreateResponse
 - type VpcDeleteApi
 - type VpcDeleteRequest
 - type VpcDeleteResponse
 - type VpcListApi
 - type VpcListRequest
 - type VpcListResponse
 - type VpcListVpcsResponse
 - type VpcQueryApi
 - type VpcQueryRequest
 - type VpcQueryResponse
 - type VpcUpdateApi
 - type VpcUpdateRequest
 - type VpcUpdateResponse
 
Constants ¶
const ( EndpointNameCtvpc = "ctvpc" UrlProdCtvpc = "ctvpc-global.ctapi.ctyun.cn" UrlTestCtvpc = "ctvpc-global.ctapi-test.ctyun.cn:21443" )
Variables ¶
var EndpointCtvpcProd = ctyunsdk.Endpoint{ EndpointName: EndpointNameCtvpc, Url: UrlProdCtvpc, }
var EndpointCtvpcTest = ctyunsdk.Endpoint{ EndpointName: EndpointNameCtvpc, Url: UrlTestCtvpc, }
Functions ¶
This section is empty.
Types ¶
type Apis ¶
type Apis struct {
	VpcCreateApi                      *VpcCreateApi
	VpcUpdateApi                      *VpcUpdateApi
	VpcDeleteApi                      *VpcDeleteApi
	VpcListApi                        *VpcListApi
	VpcQueryApi                       *VpcQueryApi
	SubnetCreateApi                   *SubnetCreateApi
	SubnetUpdateApi                   *SubnetUpdateApi
	SubnetDeleteApi                   *SubnetDeleteApi
	SubnetListApi                     *SubnetListApi
	SubnetQueryApi                    *SubnetQueryApi
	EipCreateApi                      *EipCreateApi
	EipDeleteApi                      *EipDeleteApi
	EipModifySpecApi                  *EipModifySpecApi
	EipChangeNameApi                  *EipChangeNameApi
	EipAssociateApi                   *EipAssociateApi
	EipDisassociateApi                *EipDisassociateApi
	EipShowApi                        *EipShowApi
	SecurityGroupCreateApi            *SecurityGroupCreateApi
	SecurityGroupModifyAttributionApi *SecurityGroupModifyAttributionApi
	SecurityGroupDeleteApi            *SecurityGroupDeleteApi
	SecurityGroupDescribeAttributeApi *SecurityGroupDescribeAttributeApi
	SecurityGroupRuleEgressRevokeApi  *SecurityGroupRuleEgressRevokeApi
	SecurityGroupRuleEgressModifyApi  *SecurityGroupRuleEgressModifyApi
	SecurityGroupRuleIngressRevokeApi *SecurityGroupRuleIngressRevokeApi
	SecurityGroupRuleIngressModifyApi *SecurityGroupRuleIngressModifyApi
	SecurityGroupRuleDescribeApi      *SecurityGroupRuleDescribeApi
	BandwidthDescribeApi              *BandwidthDescribeApi
	BandwidthCreateApi                *BandwidthCreateApi
	BandwidthChangeNameApi            *BandwidthChangeNameApi
	BandwidthChangeSpecApi            *BandwidthChangeSpecApi
	BandwidthDeleteApi                *BandwidthDeleteApi
	BandwidthAssociateEipApi          *BandwidthAssociateEipApi
	BandwidthDisassociateEipApi       *BandwidthDisassociateEipApi
}
    Apis api的接口
type BandwidthAssociateEipApi ¶
type BandwidthAssociateEipApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    BandwidthAssociateEipApi 添加EIP至共享带宽 https://www.ctyun.cn/document/10026761/10040809
func NewBandwidthAssociateEipApi ¶
func NewBandwidthAssociateEipApi(client *ctyunsdk.CtyunClient) *BandwidthAssociateEipApi
func (*BandwidthAssociateEipApi) Do ¶
func (this *BandwidthAssociateEipApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *BandwidthAssociateEipRequest) (*BandwidthAssociateEipResponse, ctyunsdk.CtyunRequestError)
type BandwidthAssociateEipResponse ¶
type BandwidthAssociateEipResponse struct {
}
    type BandwidthChangeNameApi ¶
type BandwidthChangeNameApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    BandwidthChangeNameApi 修改共享带宽名称描述等 https://www.ctyun.cn/document/10026761/10040814
func NewBandwidthChangeNameApi ¶
func NewBandwidthChangeNameApi(client *ctyunsdk.CtyunClient) *BandwidthChangeNameApi
func (*BandwidthChangeNameApi) Do ¶
func (this *BandwidthChangeNameApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *BandwidthChangeNameRequest) (*BandwidthChangeNameResponse, ctyunsdk.CtyunRequestError)
type BandwidthChangeNameResponse ¶
type BandwidthChangeNameResponse struct {
}
    type BandwidthChangeSpecApi ¶
type BandwidthChangeSpecApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    BandwidthChangeSpecApi 修改共享带宽的带宽峰值 https://www.ctyun.cn/document/10026761/10040813
func NewBandwidthChangeSpecApi ¶
func NewBandwidthChangeSpecApi(client *ctyunsdk.CtyunClient) *BandwidthChangeSpecApi
func (*BandwidthChangeSpecApi) Do ¶
func (this *BandwidthChangeSpecApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *BandwidthChangeSpecRequest) (*BandwidthChangeSpecResponse, ctyunsdk.CtyunRequestError)
type BandwidthCreateApi ¶
type BandwidthCreateApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    BandwidthCreateApi 创建共享带宽 https://www.ctyun.cn/document/10026761/10040771
func NewBandwidthCreateApi ¶
func NewBandwidthCreateApi(client *ctyunsdk.CtyunClient) *BandwidthCreateApi
func (*BandwidthCreateApi) Do ¶
func (this *BandwidthCreateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *BandwidthCreateRequest) (*BandwidthCreateResponse, ctyunsdk.CtyunRequestError)
type BandwidthCreateRequest ¶
type BandwidthCreateResponse ¶
type BandwidthDeleteApi ¶
type BandwidthDeleteApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    BandwidthDeleteApi 删除共享带宽 https://www.ctyun.cn/document/10026761/10040806
func NewBandwidthDeleteApi ¶
func NewBandwidthDeleteApi(client *ctyunsdk.CtyunClient) *BandwidthDeleteApi
func (*BandwidthDeleteApi) Do ¶
func (this *BandwidthDeleteApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *BandwidthDeleteRequest) (*BandwidthDeleteResponse, ctyunsdk.CtyunRequestError)
type BandwidthDeleteRequest ¶
type BandwidthDeleteResponse ¶
type BandwidthDescribeApi ¶
type BandwidthDescribeApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    BandwidthDescribeApi 查询共享带宽详情 https://www.ctyun.cn/document/10026761/10040766
func NewBandwidthDescribeApi ¶
func NewBandwidthDescribeApi(client *ctyunsdk.CtyunClient) *BandwidthDescribeApi
func (*BandwidthDescribeApi) Do ¶
func (this *BandwidthDescribeApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *BandwidthDescribeRequest) (*BandwidthDescribeResponse, ctyunsdk.CtyunRequestError)
type BandwidthDescribeResponse ¶
type BandwidthDescribeResponse struct {
	Id        string
	Status    string
	Bandwidth int
	Name      string
	Eips      []BandwidthDescribeEipsResponse
}
    type BandwidthDisassociateEipApi ¶
type BandwidthDisassociateEipApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    BandwidthDisassociateEipApi 从共享带宽移出EIP https://www.ctyun.cn/document/10026761/10040772
func NewBandwidthDisassociateEipApi ¶
func NewBandwidthDisassociateEipApi(client *ctyunsdk.CtyunClient) *BandwidthDisassociateEipApi
func (*BandwidthDisassociateEipApi) Do ¶
func (this *BandwidthDisassociateEipApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *BandwidthDisassociateEipRequest) (*BandwidthDisassociateEipResponse, ctyunsdk.CtyunRequestError)
type BandwidthDisassociateEipResponse ¶
type BandwidthDisassociateEipResponse struct {
}
    type EipAssociateApi ¶
type EipAssociateApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    EipAssociateApi 绑定弹性 IP https://www.ctyun.cn/document/10026753/10031946
func NewEipAssociateApi ¶
func NewEipAssociateApi(client *ctyunsdk.CtyunClient) *EipAssociateApi
func (*EipAssociateApi) Do ¶
func (this *EipAssociateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EipAssociateRequest) (*EipAssociateResponse, ctyunsdk.CtyunRequestError)
type EipAssociateRequest ¶
type EipAssociateResponse ¶
type EipAssociateResponse struct {
}
    type EipChangeNameApi ¶
type EipChangeNameApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    EipChangeNameApi 修改弹性 IP 名字 https://www.ctyun.cn/document/10026753/10045518
func NewEipChangeNameApi ¶
func NewEipChangeNameApi(client *ctyunsdk.CtyunClient) *EipChangeNameApi
func (*EipChangeNameApi) Do ¶
func (this *EipChangeNameApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EipChangeNameRequest) (*EipChangeNameResponse, ctyunsdk.CtyunRequestError)
type EipChangeNameRequest ¶
type EipChangeNameResponse ¶
type EipChangeNameResponse struct {
}
    type EipCreateApi ¶
type EipCreateApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    EipCreateApi 创建弹性 IP https://www.ctyun.cn/document/10026753/10040759
func NewEipCreateApi ¶
func NewEipCreateApi(client *ctyunsdk.CtyunClient) *EipCreateApi
func (*EipCreateApi) Do ¶
func (this *EipCreateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EipCreateRequest) (*EipCreateResponse, ctyunsdk.CtyunRequestError)
type EipCreateRequest ¶
type EipCreateResponse ¶
type EipDeleteApi ¶
type EipDeleteApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    EipDeleteApi 删除弹性 IP https://www.ctyun.cn/document/10026753/10040760
func NewEipDeleteApi ¶
func NewEipDeleteApi(client *ctyunsdk.CtyunClient) *EipDeleteApi
func (*EipDeleteApi) Do ¶
func (this *EipDeleteApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EipDeleteRequest) (*EipDeleteResponse, ctyunsdk.CtyunRequestError)
type EipDeleteRequest ¶
type EipDeleteResponse ¶
type EipDisassociateApi ¶
type EipDisassociateApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    EipDisassociateApi 解绑弹性 IP https://www.ctyun.cn/document/10026753/10031948
func NewEipDisassociateApi ¶
func NewEipDisassociateApi(client *ctyunsdk.CtyunClient) *EipDisassociateApi
func (*EipDisassociateApi) Do ¶
func (this *EipDisassociateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EipDisassociateRequest) (*EipDisassociateResponse, ctyunsdk.CtyunRequestError)
type EipDisassociateRequest ¶
type EipDisassociateResponse ¶
type EipDisassociateResponse struct {
}
    type EipModifySpecApi ¶
type EipModifySpecApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    EipModifySpecApi 修改弹性 IP 带宽 https://www.ctyun.cn/document/10026753/10040762
func NewEipModifySpecApi ¶
func NewEipModifySpecApi(client *ctyunsdk.CtyunClient) *EipModifySpecApi
func (*EipModifySpecApi) Do ¶
func (this *EipModifySpecApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EipModifySpecRequest) (*EipModifySpecResponse, ctyunsdk.CtyunRequestError)
type EipModifySpecRequest ¶
type EipModifySpecResponse ¶
type EipShowApi ¶
type EipShowApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    EipShowApi 查看弹性 IP 详情 https://www.ctyun.cn/document/10026753/10042983
func NewEipShowApi ¶
func NewEipShowApi(client *ctyunsdk.CtyunClient) *EipShowApi
func (*EipShowApi) Do ¶
func (this *EipShowApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EipShowRequest) (*EipShowResponse, ctyunsdk.CtyunRequestError)
type EipShowRequest ¶
type EipShowResponse ¶
type SecurityGroupCreateApi ¶
type SecurityGroupCreateApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    SecurityGroupCreateApi 创建安全组 https://www.ctyun.cn/document/10026755/10040938
func NewSecurityGroupCreateApi ¶
func NewSecurityGroupCreateApi(client *ctyunsdk.CtyunClient) *SecurityGroupCreateApi
func (*SecurityGroupCreateApi) Do ¶
func (this *SecurityGroupCreateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *SecurityGroupCreateRequest) (*SecurityGroupCreateResponse, ctyunsdk.CtyunRequestError)
type SecurityGroupCreateRequest ¶
type SecurityGroupCreateRequest struct {
	RegionId    string // 资源池id
	VpcId       string // vpcId
	Name        string // 子网名称 取值范围:1-64,支持数字、字母、中文、_(下划线)、-(中划线)
	Description string // 支持拉丁字母、中文、数字, 特殊字符:~!@#$%^&*()_-+= <>?:{},./;'[]·~!@#¥%……&*() —— -+={},
	ClientToken string // 客户端存根,用于保证订单幂等性, 长度 1 - 64
	ProjectId   string // 企业项目 ID,默认为0
}
    type SecurityGroupCreateResponse ¶
type SecurityGroupCreateResponse struct {
	SecurityGroupId string
}
    type SecurityGroupDeleteApi ¶
type SecurityGroupDeleteApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    SecurityGroupDeleteApi 删除安全组 https://www.ctyun.cn/document/10026755/10040966
func NewSecurityGroupDeleteApi ¶
func NewSecurityGroupDeleteApi(client *ctyunsdk.CtyunClient) *SecurityGroupDeleteApi
func (*SecurityGroupDeleteApi) Do ¶
func (this *SecurityGroupDeleteApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *SecurityGroupDeleteRequest) (*SecurityGroupDeleteResponse, ctyunsdk.CtyunRequestError)
type SecurityGroupDeleteResponse ¶
type SecurityGroupDeleteResponse struct {
}
    type SecurityGroupDescribeAttributeApi ¶
type SecurityGroupDescribeAttributeApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    SecurityGroupDescribeAttributeApi 查询用户安全组详情 https://www.ctyun.cn/document/10026755/10040946
func NewSecurityGroupDescribeAttributeApi ¶
func NewSecurityGroupDescribeAttributeApi(client *ctyunsdk.CtyunClient) *SecurityGroupDescribeAttributeApi
func (*SecurityGroupDescribeAttributeApi) Do ¶
func (this *SecurityGroupDescribeAttributeApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *SecurityGroupDescribeAttributeRequest) (*SecurityGroupDescribeAttributeResponse, ctyunsdk.CtyunRequestError)
type SecurityGroupModifyAttributionApi ¶
type SecurityGroupModifyAttributionApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    SecurityGroupModifyAttributionApi 修改安全组 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=6319&data=94
func NewSecurityGroupModifyAttributionApi ¶
func NewSecurityGroupModifyAttributionApi(client *ctyunsdk.CtyunClient) *SecurityGroupModifyAttributionApi
func (*SecurityGroupModifyAttributionApi) Do ¶
func (this *SecurityGroupModifyAttributionApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *SecurityGroupModifyAttributionRequest) (*SecurityGroupModifyAttributionResponse, ctyunsdk.CtyunRequestError)
type SecurityGroupModifyAttributionRequest ¶
type SecurityGroupModifyAttributionRequest struct {
	ClientToken     string // 客户端存根,用于保证订单幂等性, 长度 1 - 64
	RegionId        string // 资源池id
	ProjectId       string // 企业项目 ID,默认为0
	Name            string // 子网名称 取值范围:1-64,支持数字、字母、中文、_(下划线)、-(中划线)
	Description     string // 支持拉丁字母、中文、数字, 特殊字符:~!@#$%^&*()_-+= <>?:{},./;'[]·~!@#¥%……&*() —— -+={},
	Enabled         bool   // 开启安全组 / 关闭安全组
	SecurityGroupId string // 安全组ID
}
    type SecurityGroupModifyAttributionResponse ¶
type SecurityGroupModifyAttributionResponse struct {
}
    type SecurityGroupRuleDescribeApi ¶
type SecurityGroupRuleDescribeApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    SecurityGroupRuleDescribeApi 查询安全组规则 https://www.ctyun.cn/document/10026755/10469983
func NewSecurityGroupRuleDescribeApi ¶
func NewSecurityGroupRuleDescribeApi(client *ctyunsdk.CtyunClient) *SecurityGroupRuleDescribeApi
func (*SecurityGroupRuleDescribeApi) Do ¶
func (this *SecurityGroupRuleDescribeApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *SecurityGroupRuleDescribeRequest) (*SecurityGroupRuleDescribeResponse, ctyunsdk.CtyunRequestError)
type SecurityGroupRuleDescribeResponse ¶
type SecurityGroupRuleDescribeResponse struct {
	Direction       string // 规则方向,出方向则填写egress
	Priority        int    // 优先级,取值范围:[1, 100],取值越小优先级越大
	Ethertype       string // IP类型,取值范围:IPv4、IPv6
	Protocol        string // 网络协议,取值范围:ANY(任意)、TCP、UDP、ICMP(v4)
	Range           string // 安全组开放的传输层协议相关的源端端口范围
	DestCidrIp      string // 远端地址:0.0.0.0/0
	Description     string // 安全组规则描述信息,满足以下规则: ① 长度0-128字符, ② 支持拉丁字母、中文、数字, 特殊字符 !@#¥%……&*()——-+={}《》?:“”【】、;‘',。、 不能以      http: / https: 开头
	Id              string // id
	SecurityGroupId string // 安全组id
	Action          string // 授权策略,取值范围:accept(允许),drop(拒绝)。
}
    type SecurityGroupRuleEgressModifyApi ¶
type SecurityGroupRuleEgressModifyApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    SecurityGroupRuleEgressModifyApi 修改安全组出方向规则 https://www.ctyun.cn/document/10026755/10040980
func NewSecurityGroupRuleEgressModifyApi ¶
func NewSecurityGroupRuleEgressModifyApi(client *ctyunsdk.CtyunClient) *SecurityGroupRuleEgressModifyApi
func (*SecurityGroupRuleEgressModifyApi) Do ¶
func (this *SecurityGroupRuleEgressModifyApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *SecurityGroupRuleEgressModifyRequest) (*SecurityGroupRuleEgressModifyResponse, ctyunsdk.CtyunRequestError)
type SecurityGroupRuleEgressModifyResponse ¶
type SecurityGroupRuleEgressModifyResponse struct {
}
    type SecurityGroupRuleEgressRevokeApi ¶
type SecurityGroupRuleEgressRevokeApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    SecurityGroupRuleEgressRevokeApi 删除安全组出方向规则 https://www.ctyun.cn/document/10026755/10040970
func NewSecurityGroupRuleEgressRevokeApi ¶
func NewSecurityGroupRuleEgressRevokeApi(client *ctyunsdk.CtyunClient) *SecurityGroupRuleEgressRevokeApi
func (*SecurityGroupRuleEgressRevokeApi) Do ¶
func (this *SecurityGroupRuleEgressRevokeApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *SecurityGroupRuleEgressRevokeRequest) (*SecurityGroupRuleEgressRevokeResponse, ctyunsdk.CtyunRequestError)
type SecurityGroupRuleEgressRevokeResponse ¶
type SecurityGroupRuleEgressRevokeResponse struct {
}
    type SecurityGroupRuleIngressModifyApi ¶
type SecurityGroupRuleIngressModifyApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    SecurityGroupRuleIngressModifyApi 修改安全组入方向规则 https://www.ctyun.cn/document/10026755/10040984
func NewSecurityGroupRuleIngressModifyApi ¶
func NewSecurityGroupRuleIngressModifyApi(client *ctyunsdk.CtyunClient) *SecurityGroupRuleIngressModifyApi
func (*SecurityGroupRuleIngressModifyApi) Do ¶
func (this *SecurityGroupRuleIngressModifyApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *SecurityGroupRuleIngressModifyRequest) (*SecurityGroupRuleIngressModifyResponse, ctyunsdk.CtyunRequestError)
type SecurityGroupRuleIngressModifyResponse ¶
type SecurityGroupRuleIngressModifyResponse struct {
}
    type SecurityGroupRuleIngressRevokeApi ¶
type SecurityGroupRuleIngressRevokeApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    SecurityGroupRuleIngressRevokeApi 删除安全组入方向规则 https://www.ctyun.cn/document/10026755/10040977
func NewSecurityGroupRuleIngressRevokeApi ¶
func NewSecurityGroupRuleIngressRevokeApi(client *ctyunsdk.CtyunClient) *SecurityGroupRuleIngressRevokeApi
func (*SecurityGroupRuleIngressRevokeApi) Do ¶
func (this *SecurityGroupRuleIngressRevokeApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *SecurityGroupRuleIngressRevokeRequest) (*SecurityGroupRuleIngressRevokeResponse, ctyunsdk.CtyunRequestError)
type SecurityGroupRuleIngressRevokeResponse ¶
type SecurityGroupRuleIngressRevokeResponse struct {
}
    type SubnetCreateApi ¶
type SubnetCreateApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    SubnetCreateApi 创建子网 https://www.ctyun.cn/document/10026755/10040804
func NewSubnetCreateApi ¶
func NewSubnetCreateApi(client *ctyunsdk.CtyunClient) *SubnetCreateApi
func (*SubnetCreateApi) Do ¶
func (this *SubnetCreateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *SubnetCreateRequest) (*SubnetCreateResponse, ctyunsdk.CtyunRequestError)
type SubnetCreateRequest ¶
type SubnetCreateResponse ¶
type SubnetCreateResponse struct {
	SubnetId string
}
    type SubnetDeleteApi ¶
type SubnetDeleteApi struct {
	// contains filtered or unexported fields
}
    SubnetDeleteApi 删除子网 https://www.ctyun.cn/document/10026755/10040807
func NewSubnetDeleteApi ¶
func NewSubnetDeleteApi(client *ctyunsdk.CtyunClient) *SubnetDeleteApi
func (*SubnetDeleteApi) Do ¶
func (this *SubnetDeleteApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *SubnetDeleteRequest) (*SubnetDeleteResponse, ctyunsdk.CtyunRequestError)
type SubnetDeleteRequest ¶
type SubnetDeleteResponse ¶
type SubnetDeleteResponse struct {
}
    type SubnetListApi ¶
type SubnetListApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    SubnetListApi 查询子网 https://www.ctyun.cn/document/10026755/10040797
func NewSubnetListApi ¶
func NewSubnetListApi(client *ctyunsdk.CtyunClient) *SubnetListApi
func (*SubnetListApi) Do ¶
func (this *SubnetListApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *SubnetListRequest) (*SubnetListResponse, ctyunsdk.CtyunRequestError)
type SubnetListRequest ¶
type SubnetListResponse ¶
type SubnetListResponse struct {
	Subnets      []SubnetListSubnetsResponse
	CurrentCount int
	TotalCount   int
	TotalPage    int
}
    type SubnetListSubnetsResponse ¶
type SubnetListSubnetsResponse struct {
	SubnetId          string
	Name              string
	Description       string
	VpcId             string
	Cidr              string
	AvailableIpCount  int
	GatewayIp         string
	AvailabilityZones []string
	RouteTableId      string
	NetworkAclId      string
	Start             string
	End               string
	Ipv6Enabled       int
	EnableIpv6        bool
	Ipv6Cidr          string
	Ipv6Start         string
	Ipv6End           string
	Ipv6GatewayIp     string
	DnsList           []string
	NtpList           []string
	Type              int
	CreateAt          string
	UpdateAt          string
}
    type SubnetQueryApi ¶
type SubnetQueryApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    SubnetQueryApi 查询子网详情 https://www.ctyun.cn/document/10026755/10040792
func NewSubnetQueryApi ¶
func NewSubnetQueryApi(client *ctyunsdk.CtyunClient) *SubnetQueryApi
func (*SubnetQueryApi) Do ¶
func (this *SubnetQueryApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *SubnetQueryRequest) (*SubnetQueryResponse, ctyunsdk.CtyunRequestError)
type SubnetQueryRequest ¶
type SubnetQueryResponse ¶
type SubnetQueryResponse struct {
	SubnetId          string
	Name              string
	Description       string
	VpcId             string
	AvailabilityZones []string
	RouteTableId      string
	NetworkAclId      string
	Cidr              string
	Gateway           string
	Start             string
	End               string
	Ipv6Enabled       int
	EnableIpv6        bool
	AvailableIpCount  int
	Ipv6Cidr          string
	Ipv6Start         string
	Ipv6End           string
	Ipv6GatewayIp     string
	DnsList           []string
	NtpList           []string
	Type              int
	CreatedAt         time.Time
	UpdatedAt         time.Time
}
    type SubnetUpdateApi ¶
type SubnetUpdateApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    SubnetUpdateApi 修改子网属性 https://www.ctyun.cn/document/10026755/10040815
func NewSubnetUpdateApi ¶
func NewSubnetUpdateApi(client *ctyunsdk.CtyunClient) *SubnetUpdateApi
func (*SubnetUpdateApi) Do ¶
func (this *SubnetUpdateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *SubnetUpdateRequest) (*SubnetUpdateResponse, ctyunsdk.CtyunRequestError)
type SubnetUpdateRequest ¶
type SubnetUpdateResponse ¶
type SubnetUpdateResponse struct {
}
    type VpcCreateApi ¶
type VpcCreateApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    VpcCreateApi 创建VPC https://www.ctyun.cn/document/10026755/10040800
func NewVpcCreateApi ¶
func NewVpcCreateApi(client *ctyunsdk.CtyunClient) *VpcCreateApi
func (*VpcCreateApi) Do ¶
func (this *VpcCreateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *VpcCreateRequest) (*VpcCreateResponse, ctyunsdk.CtyunRequestError)
type VpcCreateRequest ¶
type VpcCreateRequest struct {
	RegionId    string // 资源池id
	ClientToken string // 客户端存根,用于保证订单幂等性, 长度 1 - 64
	Name        string // 虚拟私有云名称
	Cidr        string // VPC的网段。建议您使用 192.168.0.0/16、172.16.0.0/12、10.0.0.0/8 三个 RFC 标准私网网段及其子网作为专有网络的主 IPv4 网段,网段掩码有效范围为 8~28 位
	Description string // 描述
	EnableIpv6  bool   // 是否开启 IPv6 网段。取值:false(默认值):不开启,true: 开启
	ProjectId   string // 企业项目id
}
    type VpcCreateResponse ¶
type VpcCreateResponse struct {
	VpcId string
}
    type VpcDeleteApi ¶
type VpcDeleteApi struct {
	// contains filtered or unexported fields
}
    VpcDeleteApi 删除VPC https://www.ctyun.cn/document/10026755/10040805
func NewVpcDeleteApi ¶
func NewVpcDeleteApi(client *ctyunsdk.CtyunClient) *VpcDeleteApi
func (*VpcDeleteApi) Do ¶
func (this *VpcDeleteApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *VpcDeleteRequest) (*VpcDeleteResponse, ctyunsdk.CtyunRequestError)
type VpcDeleteRequest ¶
type VpcDeleteResponse ¶
type VpcDeleteResponse struct {
}
    type VpcListApi ¶
type VpcListApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    VpcListApi 查询VPC列表 https://www.ctyun.cn/document/10026755/10040788
func NewVpcListApi ¶
func NewVpcListApi(client *ctyunsdk.CtyunClient) *VpcListApi
func (*VpcListApi) Do ¶
func (this *VpcListApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *VpcListRequest) (*VpcListResponse, ctyunsdk.CtyunRequestError)
type VpcListRequest ¶
type VpcListResponse ¶
type VpcListResponse struct {
	Vpcs         []VpcListVpcsResponse
	CurrentCount int
	TotalCount   int
	TotalPage    int
}
    type VpcListVpcsResponse ¶
type VpcQueryApi ¶
type VpcQueryApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    VpcQueryApi 查询VPC https://www.ctyun.cn/document/10026755/10040783
func NewVpcQueryApi ¶
func NewVpcQueryApi(client *ctyunsdk.CtyunClient) *VpcQueryApi
func (*VpcQueryApi) Do ¶
func (this *VpcQueryApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *VpcQueryRequest) (*VpcQueryResponse, ctyunsdk.CtyunRequestError)
type VpcQueryRequest ¶
type VpcQueryResponse ¶
type VpcUpdateApi ¶
type VpcUpdateApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}
    VpcUpdateApi 修改VPC属性 https://www.ctyun.cn/document/10026755/10040810
func NewVpcUpdateApi ¶
func NewVpcUpdateApi(client *ctyunsdk.CtyunClient) *VpcUpdateApi
func (*VpcUpdateApi) Do ¶
func (this *VpcUpdateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *VpcUpdateRequest) (*VpcUpdateResponse, ctyunsdk.CtyunRequestError)
type VpcUpdateRequest ¶
type VpcUpdateResponse ¶
type VpcUpdateResponse struct {
}
    
      
      Source Files
      ¶
    
- apis.go
 - bandwidth_associate_eip.go
 - bandwidth_change_name.go
 - bandwidth_change_spec.go
 - bandwidth_create.go
 - bandwidth_delete.go
 - bandwidth_disassociate_eip.go
 - bandwidth_show.go
 - const.go
 - eip_associate.go
 - eip_change_name.go
 - eip_create.go
 - eip_delete.go
 - eip_disassociate.go
 - eip_modify_spec.go
 - eip_show.go
 - security_group_create.go
 - security_group_delete.go
 - security_group_describe_attribute.go
 - security_group_modify_security_group_attribute.go
 - security_group_rule_describe.go
 - security_group_rule_egress_modify.go
 - security_group_rule_egress_revoke.go
 - security_group_rule_ingress_modify.go
 - security_group_rule_ingress_revoke.go
 - subnet_create.go
 - subnet_delete.go
 - subnet_list.go
 - subnet_query.go
 - subnet_update.go
 - vpc_create.go
 - vpc_delete.go
 - vpc_list.go
 - vpc_query.go
 - vpc_update.go