ctvpc

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EndpointNameCtvpc = "ctvpc"
	UrlProdCtvpc      = "ctvpc-global.ctapi.ctyun.cn"
	UrlTestCtvpc      = "ctvpc-global.ctapi-test.ctyun.cn:21443"
)

Variables

View Source
var EndpointCtvpcProd = ctyunsdk.Endpoint{
	EndpointName: EndpointNameCtvpc,
	Url:          UrlProdCtvpc,
}
View Source
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的接口

func NewApis

func NewApis(client *ctyunsdk.CtyunClient) *Apis

NewApis 构建

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 BandwidthAssociateEipRequest

type BandwidthAssociateEipRequest struct {
	RegionId    string
	ClientToken string
	BandwidthId string
	EipIds      []string
}

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 BandwidthChangeNameRequest

type BandwidthChangeNameRequest struct {
	RegionId    string
	ClientToken string
	BandwidthId string
	Name        string
}

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 BandwidthChangeSpecRequest

type BandwidthChangeSpecRequest struct {
	RegionId    string
	ClientToken string
	BandwidthId string
	Bandwidth   int
}

type BandwidthChangeSpecResponse

type BandwidthChangeSpecResponse struct {
	MasterOrderId string
	MasterOrderNo string
	RegionId      string
}

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 BandwidthCreateRequest struct {
	RegionId    string
	ClientToken string
	CycleType   string
	Bandwidth   int64
	CycleCount  int64
	Name        string
	ProjectId   string
}

type BandwidthCreateResponse

type BandwidthCreateResponse struct {
	MasterOrderId        string
	MasterOrderNo        string
	MasterResourceId     string
	MasterResourceStatus string
	RegionId             string
	BandwidthId          string
}

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 BandwidthDeleteRequest struct {
	RegionId    string
	ClientToken string
	BandwidthId string
	ProjectId   string
}

type BandwidthDeleteResponse

type BandwidthDeleteResponse struct {
	MasterOrderId string
	MasterOrderNo string
	RegionId      string
}

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 BandwidthDescribeEipsResponse

type BandwidthDescribeEipsResponse struct {
	Ip    string
	EipId string
}

type BandwidthDescribeRequest

type BandwidthDescribeRequest struct {
	RegionId    string
	ProjectId   string
	BandwidthId string
}

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 BandwidthDisassociateEipRequest

type BandwidthDisassociateEipRequest struct {
	RegionId    string
	ClientToken string
	EipIds      []string
	BandwidthId string
}

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 EipAssociateRequest struct {
	RegionId        string
	ClientToken     string
	EipId           string
	AssociationId   string
	AssociationType int
	ProjectId       string
}

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 EipChangeNameRequest struct {
	ClientToken string
	RegionId    string
	EipId       string
	Name        string
}

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 EipCreateRequest struct {
	ClientToken       string
	RegionId          string
	CycleType         string
	CycleCount        int
	Name              string
	Bandwidth         int
	BandwidthId       string
	DemandBillingType string
	ProjectId         string
}

type EipCreateResponse

type EipCreateResponse struct {
	MasterOrderId        string
	MasterOrderNo        string
	MasterResourceId     string
	MasterResourceStatus string
	RegionId             string
	EipId                string
}

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 EipDeleteRequest struct {
	ClientToken string
	RegionId    string
	EipId       string
}

type EipDeleteResponse

type EipDeleteResponse struct {
	MasterOrderId string
	MasterOrderNo string
	RegionId      string
}

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 EipDisassociateRequest struct {
	RegionId    string
	ClientToken string
	EipId       string
	ProjectId   string
}

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 EipModifySpecRequest struct {
	ClientToken string
	RegionId    string
	EipId       string
	Bandwidth   int
}

type EipModifySpecResponse

type EipModifySpecResponse struct {
	MasterOrderId string
	MasterOrderNo string
	RegionId      string
}

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 EipShowRequest struct {
	RegionId string
	EipId    string
}

type EipShowResponse

type EipShowResponse struct {
	Id               string
	Name             string
	EipAddress       string
	AssociationId    string
	AssociationType  string
	PrivateIpAddress string
	Bandwidth        int
	BandwidthId      string
	BandwidthType    string
	Status           string
	Tags             string
	CreatedAt        string
	UpdatedAt        string
	ExpiredAt        string
}

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 SecurityGroupDeleteRequest

type SecurityGroupDeleteRequest struct {
	ClientToken     string // 客户端存根,用于保证订单幂等性, 长度 1 - 64
	RegionId        string // 资源池id
	ProjectId       string // 企业项目 ID,默认为0
	SecurityGroupId string // 安全组ID
}

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 SecurityGroupDescribeAttributeRequest

type SecurityGroupDescribeAttributeRequest struct {
	RegionId        string // 区域id
	SecurityGroupId string // 安全组ID
	ProjectId       string // 企业项目 ID,默认为0
	Direction       string // 安全组规则授权方向: egress:安全组出方向 ingress:安全组入方向 all:不区分方向 默认是:all
}

type SecurityGroupDescribeAttributeResponse

type SecurityGroupDescribeAttributeResponse struct {
	SecurityGroupName     string
	Id                    string
	VmNum                 int
	Origin                string
	VpcName               string
	VpcId                 string
	CreationTime          string
	Description           string
	SecurityGroupRuleList []SecurityGroupDescribeAttributeSecurityGroupRuleListResponse
}

type SecurityGroupDescribeAttributeSecurityGroupRuleListResponse

type SecurityGroupDescribeAttributeSecurityGroupRuleListResponse struct {
	Direction       string
	Priority        int
	Ethertype       string
	Protocol        string
	Range           string
	DestCidrIp      string
	Description     string
	Origin          string
	CreateTime      string
	Id              string
	Action          string
	SecurityGroupId string
}

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 SecurityGroupRuleDescribeRequest

type SecurityGroupRuleDescribeRequest struct {
	RegionId            string // 区域id
	SecurityGroupId     string // 安全组ID
	SecurityGroupRuleId string // 安全组规则id
}

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 SecurityGroupRuleEgressModifyRequest

type SecurityGroupRuleEgressModifyRequest struct {
	RegionId            string // 资源池ID,请根据查询资源池列表接口返回值进行传参,获取“regionId”参数
	SecurityGroupId     string // 安全组ID
	SecurityGroupRuleId string // 安全规则ID
	ClientToken         string // 客户端存根
	Description         string // 描述
}

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 SecurityGroupRuleEgressRevokeRequest

type SecurityGroupRuleEgressRevokeRequest struct {
	RegionId            string // 资源池ID,请根据查询资源池列表接口返回值进行传参,获取“regionId”参数
	SecurityGroupId     string // 安全组ID
	SecurityGroupRuleId string // 安全规则ID
	ClientToken         string // 客户端存根
}

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 SecurityGroupRuleIngressModifyRequest

type SecurityGroupRuleIngressModifyRequest struct {
	RegionId            string // 资源池ID,请根据查询资源池列表接口返回值进行传参,获取“regionId”参数
	SecurityGroupId     string // 安全组ID
	SecurityGroupRuleId string // 安全规则ID
	ClientToken         string // 客户端存根
	Description         string // 描述
}

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 SecurityGroupRuleIngressRevokeRequest

type SecurityGroupRuleIngressRevokeRequest struct {
	RegionId            string // 资源池ID,请根据查询资源池列表接口返回值进行传参,获取“regionId”参数
	SecurityGroupId     string // 安全组ID
	SecurityGroupRuleId string // 安全规则ID
	ClientToken         string // 客户端存根
}

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 SubnetCreateRequest struct {
	RegionId        string
	ClientToken     string
	Name            string
	VpcId           string
	Cidr            string
	Description     string
	EnableIpv6      bool
	DnsList         []string
	SubnetGatewayIp string
	SubnetType      string
	ProjectId       string
}

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 SubnetDeleteRequest struct {
	RegionId    string
	SubnetId    string
	ProjectId   string
	ClientToken string
}

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 SubnetListRequest struct {
	RegionId   string   // 资源池id
	VpcId      string   // 查询的vpcId
	SubnetIds  []string // 查询的vpcSubnetId
	PageNumber int      // 列表的页码,默认值为 1。
	PageSize   int      // 分页查询时每页的行数,最大值为 50,默认值为 10。
}

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 SubnetQueryRequest struct {
	ClientToken string
	RegionId    string
	ProjectId   string
	SubnetId    string
}

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 SubnetUpdateRequest struct {
	RegionId    string
	SubnetId    string
	Name        string
	Description string
	DnsList     []string
}

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 VpcDeleteRequest struct {
	ClientToken string // 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一
	RegionId    string // 资源池ID
	VpcId       string // VPC的ID
	ProjectId   string // 企业项目 ID,默认为"0"
}

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 VpcListRequest struct {
	RegionId   string   // 资源池id
	VpcIds     []string // 查询的vpcId
	VpcName    string   // vpc名称
	PageNumber int      // 列表的页码,默认值为 1。
	PageSize   int      // 分页查询时每页的行数,最大值为 50,默认值为 10。
	ProjectId  string   // 	企业项目 ID,默认为"0"
}

type VpcListResponse

type VpcListResponse struct {
	Vpcs         []VpcListVpcsResponse
	CurrentCount int
	TotalCount   int
	TotalPage    int
}

type VpcListVpcsResponse

type VpcListVpcsResponse struct {
	VpcId          string
	Name           string
	Description    string
	Cidr           string
	Ipv6Enabled    bool
	EnableIpv6     bool
	Ipv6Cidrs      []string
	SecondaryCidrs []string
	SubnetIDs      []string
	NatGatewayIDs  []string
}

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 VpcQueryRequest struct {
	ClientToken string
	RegionId    string
	ProjectId   string
	VpcId       string
}

type VpcQueryResponse

type VpcQueryResponse struct {
	VpcId          string
	Name           string
	Description    string
	Cidr           string
	Ipv6Enabled    bool
	Ipv6Cidrs      []string
	SubnetIds      []string
	NatGatewayIds  []string
	SecondaryCidrs []string
}

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 VpcUpdateRequest struct {
	VpcId       string // 更新的vpcId
	ClientToken string // 客户端存根,用于保证订单幂等性, 长度 1 - 64
	RegionId    string // 资源池id
	Name        string // 虚拟私有云名称
	Description string // 描述
	ProjectId   string // 企业项目 ID,默认为"0"
}

type VpcUpdateResponse

type VpcUpdateResponse struct {
}

Jump to

Keyboard shortcuts

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