ctecs

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EndpointNameCtecs = "ctecs"
	UrlProdCtecs      = "ctecs-global.ctapi.ctyun.cn"
	UrlTestCtecs      = "ctecs-global.ctapi-test.ctyun.cn:21443"
)

Variables

View Source
var EndpointCtecsProd = ctyunsdk.Endpoint{
	EndpointName: EndpointNameCtecs,
	Url:          UrlProdCtecs,
}
View Source
var EndpointCtecsTest = ctyunsdk.Endpoint{
	EndpointName: EndpointNameCtecs,
	Url:          UrlTestCtecs,
}

Functions

This section is empty.

Types

type Apis

type Apis struct {
	RegionListApi                     *RegionListApi
	KeypairAttachApi                  *KeypairAttachApi
	KeypairDetachApi                  *KeypairDetachApi
	KeypairCreateApi                  *KeypairCreateApi
	KeypairDeleteApi                  *KeypairDeleteApi
	KeypairDetailApi                  *KeypairDetailApi
	KeypairImportApi                  *KeypairImportApi
	EcsDescribeInstancesApi           *EcsDescribeInstancesApi
	EcsFlavorListApi                  *EcsFlavorListApi
	EcsCreateInstanceApi              *EcsCreateInstanceApi
	EcsJoinSecurityGroupApi           *EcsJoinSecurityGroupApi
	EcsLeaveSecurityGroupApi          *EcsLeaveSecurityGroupApi
	EcsVolumeListApi                  *EcsVolumeListApi
	EcsInstanceDetailsApi             *EcsInstanceDetailsApi
	EcsUnsubscribeInstanceApi         *EcsUnsubscribeInstanceApi
	EcsUpdateFlavorSpecApi            *EcsUpdateFlavorSpecApi
	EcsQueryAsyncResultApi            *EcsQueryAsyncResultApi
	EcsStartInstanceApi               *EcsStartInstanceApi
	EcsStopInstanceApi                *EcsStopInstanceApi
	EcsInstanceStatusListApi          *EcsInstanceStatusListApi
	EcsResetPasswordApi               *EcsResetPasswordApi
	EcsChangeToCycleApi               *EcsChangeToCycleApi
	EcsTagOnDemandApi                 *EcsTagOnDemandApi
	EcsTerminateCycleApi              *EcsTerminateCycleApi
	EcsBatchUpdateInstancesApi        *EcsBatchUpdateInstancesApi
	JobShowApi                        *JobShowApi
	EcsOrderQueryUuidApi              *EcsOrderQueryUuidApi
	SecurityGroupRuleEgressCreateApi  *SecurityGroupRuleEgressCreateApi
	SecurityGroupRuleIngressCreateApi *SecurityGroupRuleIngressCreateApi
	EcsShelveInstanceApi              *EcsShelveInstanceApi
	EcsGetUserdataMonitorApi          *EcsGetUserdataMonitorApi
	EcsUserdataDetailsApi             *EcsUserdataDetailsApi
	EcsDestroyInstanceApi             *EcsDestroyInstanceApi
}

Apis api的接口

func NewApis

func NewApis(client *ctyunsdk.CtyunClient) *Apis

NewApis 构建

type EcsBatchUpdateInstancesApi

type EcsBatchUpdateInstancesApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EcsBatchUpdateInstancesApi 包周期付费云主机标记到期转按需

func NewEcsBatchUpdateInstancesApi

func NewEcsBatchUpdateInstancesApi(client *ctyunsdk.CtyunClient) *EcsBatchUpdateInstancesApi

func (*EcsBatchUpdateInstancesApi) Do

func (this *EcsBatchUpdateInstancesApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsBatchUpdateInstancesRequest) (*EcsBatchUpdateInstancesResponse, ctyunsdk.CtyunRequestError)

type EcsBatchUpdateInstancesOrderInfoResponse

type EcsBatchUpdateInstancesOrderInfoResponse struct {
	Id          string
	DisplayName string
}

type EcsBatchUpdateInstancesRequest

type EcsBatchUpdateInstancesRequest struct {
	RegionId   string
	UpdateInfo []EcsBatchUpdateInstancesUpdateInfoRequest
}

type EcsBatchUpdateInstancesResponse

type EcsBatchUpdateInstancesResponse struct {
	UpdateInfo []EcsBatchUpdateInstancesOrderInfoResponse
}

type EcsBatchUpdateInstancesUpdateInfoRequest

type EcsBatchUpdateInstancesUpdateInfoRequest struct {
	InstanceId  string
	DisplayName string
}

type EcsChangeToCycleApi

type EcsChangeToCycleApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EcsChangeToCycleApi 按需付费转包周期

func NewEcsChangeToCycleApi

func NewEcsChangeToCycleApi(client *ctyunsdk.CtyunClient) *EcsChangeToCycleApi

func (*EcsChangeToCycleApi) Do

func (this *EcsChangeToCycleApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsChangeToCycleRequest) (*EcsChangeToCycleResponse, ctyunsdk.CtyunRequestError)

type EcsChangeToCycleOrderInfoResponse

type EcsChangeToCycleOrderInfoResponse struct {
	OrderId string
	OrderNo string
}

type EcsChangeToCycleRequest

type EcsChangeToCycleRequest struct {
	ClientToken string
	RegionId    string
	InstanceIds []string
	CycleType   string
	CycleCount  int
}

type EcsChangeToCycleResponse

type EcsChangeToCycleResponse struct {
	OrderInfo []EcsChangeToCycleOrderInfoResponse
}

type EcsCreateInstanceApi

type EcsCreateInstanceApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EcsCreateInstanceApi 创建一台按量付费或包年包月的云主机 https://www.ctyun.cn/document/10026730/10106580

func NewEcsCreateInstanceApi

func NewEcsCreateInstanceApi(client *ctyunsdk.CtyunClient) *EcsCreateInstanceApi

func (*EcsCreateInstanceApi) Do

func (this *EcsCreateInstanceApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsCreateInstanceRequest) (*EcsCreateInstanceResponse, ctyunsdk.CtyunRequestError)

type EcsCreateInstanceNetworkCardListRequest

type EcsCreateInstanceNetworkCardListRequest struct {
	NicName  string // 长度2~32,支持拉丁字母、中文、数字、下划线、连字符,中文或英文字母开头,不能以http:或https:开头
	FixedIp  string // 内网IPv4地址,注:不可使用已占用IP
	IsMaster *bool  // 是否主网卡,取值范围: true(表示主网卡), false(表示扩展网卡) 注:只能含有一个主网卡
	SubnetId string // 子网ID
}

type EcsCreateInstanceRequest

type EcsCreateInstanceRequest struct {
	ClientToken     string                                    // 客户端存根
	RegionId        string                                    // 资源池ID
	AzName          string                                    // 可用区名称
	InstanceName    string                                    // 云主机名称,不可以使用已存在的云主机名称
	DisplayName     string                                    // 云主机显示名称
	FlavorId        string                                    // 云主机规格ID
	ImageType       *int                                      // 镜像类型
	ImageId         string                                    // 镜像ID
	BootDiskType    string                                    // 系统盘类型,取值范围: SATA(普通IO), SAS(高IO), SSD(超高IO), SSD-genric(通用型SSD), FAST-SSD(极速型SSD),您可以查看磁盘类型及性能介绍来了解磁盘类型及其对应性能指标
	BootDiskSize    *int                                      // 系统盘大小单位为GiB,取值范围:[40, 32768]
	VpcId           string                                    // 虚拟私有云ID
	OnDemand        *bool                                     // 购买方式,取值范围: false(按周期), true(按需)
	NetworkCardList []EcsCreateInstanceNetworkCardListRequest // 网卡信息列表
	ExtIp           string                                    // 是否使用弹性公网IP,取值范围: 0(不使用), 1(自动分配), 2(使用已有)
	ProjectId       string                                    // 企业项目id
	SecGroupList    []string                                  // 安全组ID列表
	KeyPairID       string                                    // 密钥对ID
	UserPassword    string                                    // 用户密码
	CycleCount      *int                                      // 订购时长
	CycleType       string                                    // 订购周期类型
	AutoRenewStatus *int                                      // 是否自动续订,取值范围: 0(不续费), 1(自动续费), 注:按月购买,自动续订周期为3个月;按年购买,自动续订周期为1年
	UserData        string                                    // 用户自定义数据,需要以Base64方式编码,Base64编码后的长度限制为1-16384字符
	MonitorService  *bool                                     // 监控参数,支持通过该参数指定云主机在创建后是否开启详细监控,取值范围: false(不开启),true(开启);注:若指定该参数为true或不指定该参数,云主机内默认开启最新详细监控服务。若指定该参数为false,默认公共镜像不开启最新监控服务;私有镜像使用镜像中保留的监控服务。说明:仅部分资源池支持monitorService参数,
	PayVoucherPrice *float64                                  // 代金券,满足以下规则:两位小数,不足两位自动补0,超过两位小数无效;不可为负数;注:字段为0时表示不使用代金券,默认不使用
}

type EcsCreateInstanceResponse

type EcsCreateInstanceResponse struct {
	RegionId         string
	MasterOrderId    string
	MasterResourceId string
	MasterOrderNo    string
}

type EcsDescribeInstancesApi

type EcsDescribeInstancesApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EcsDescribeInstancesApi 查询一台或多台云主机信息 https://www.ctyun.cn/document/10026730/10189239

func NewEcsDescribeInstancesApi

func NewEcsDescribeInstancesApi(client *ctyunsdk.CtyunClient) *EcsDescribeInstancesApi

func (*EcsDescribeInstancesApi) Do

func (this *EcsDescribeInstancesApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsDescribeInstancesRequest) (*EcsDescribeInstancesResponse, ctyunsdk.CtyunRequestError)

type EcsDescribeInstancesRequest

type EcsDescribeInstancesRequest struct {
	RegionId        string
	AzName          string
	ProjectId       string
	PageNo          int
	PageSize        int
	State           string
	Keyword         string
	InstanceName    string
	InstanceIdList  string
	SecurityGroupId string
}

type EcsDescribeInstancesResponse

type EcsDescribeInstancesResponse struct {
	CurrentCount int
	TotalCount   int
	TotalPage    int
	Results      []EcsDescribeInstancesResultsResponse
}

type EcsDescribeInstancesResultsFlavorResponse

type EcsDescribeInstancesResultsFlavorResponse struct {
	FlavorId     string
	FlavorName   string
	FlavorCpu    int
	FlavorRam    int
	GpuType      string
	GpuCount     int
	GpuVendor    string
	VideoMemSize int
}

type EcsDescribeInstancesResultsImageResponse

type EcsDescribeInstancesResultsImageResponse struct {
	ImageId   string
	ImageName string
}

type EcsDescribeInstancesResultsNetworkInfoResponse

type EcsDescribeInstancesResultsNetworkInfoResponse struct {
	SubnetId  string
	IpAddress string
}

type EcsDescribeInstancesResultsResponse

type EcsDescribeInstancesResultsResponse struct {
	AzName         string
	AzDisplayName  string
	AttachedVolume []string
	ExpiredTime    string
	CreatedTime    string
	ProjectId      string
	InstanceId     string
	DisplayName    string
	InstanceName   string
	OsType         int
	InstanceStatus string
	OnDemand       bool
	KeypairName    string
	SecGroupList   []EcsDescribeInstancesResultsSecGroupListResponse
	NetworkInfo    []EcsDescribeInstancesResultsNetworkInfoResponse
	Image          EcsDescribeInstancesResultsImageResponse
	Flavor         EcsDescribeInstancesResultsFlavorResponse
}

type EcsDescribeInstancesResultsSecGroupListResponse

type EcsDescribeInstancesResultsSecGroupListResponse struct {
	SecurityGroupName string
	SecurityGroupId   string
}

type EcsDestroyInstanceApi

type EcsDestroyInstanceApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EcsDestroyInstanceApi

func NewEcsDestroyInstanceApi

func NewEcsDestroyInstanceApi(client *ctyunsdk.CtyunClient) *EcsDestroyInstanceApi

func (*EcsDestroyInstanceApi) Do

func (this *EcsDestroyInstanceApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsDestroyInstanceRequest) (*EcsDestroyInstanceResponse, ctyunsdk.CtyunRequestError)

type EcsDestroyInstanceRealRequest

type EcsDestroyInstanceRealRequest struct {
	ClientToken string `json:"clientToken,omitempty"`
	RegionID    string `json:"regionID,omitempty"`
	InstanceID  string `json:"instanceID,omitempty"`
}

type EcsDestroyInstanceRealResponse

type EcsDestroyInstanceRealResponse struct {
	MasterOrderID string `json:"masterOrderID,omitempty"`
	MasterOrderNO string `json:"masterOrderNO,omitempty"`
	RegionID      string `json:"regionID,omitempty"`
}

type EcsDestroyInstanceRequest

type EcsDestroyInstanceRequest struct {
	ClientToken string
	RegionID    string
	InstanceID  string
}

type EcsDestroyInstanceResponse

type EcsDestroyInstanceResponse struct {
	MasterOrderID string
	MasterOrderNO string
	RegionID      string
}

type EcsFlavorListApi

type EcsFlavorListApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EcsFlavorListApi 查询一个或多个云主机规格资源 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8327&data=87

func NewEcsFlavorListApi

func NewEcsFlavorListApi(client *ctyunsdk.CtyunClient) *EcsFlavorListApi

func (*EcsFlavorListApi) Do

func (this *EcsFlavorListApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsFlavorListRequest) (*EcsFlavorListResponse, ctyunsdk.CtyunRequestError)

type EcsFlavorListFlavorListResponse

type EcsFlavorListFlavorListResponse struct {
	GpuVendor        string
	CpuInfo          string
	BaseBandwidth    float64
	FlavorName       string
	VideoMemSize     int
	FlavorType       string
	FlavorSeries     string
	FlavorRam        int
	NicMultiQueue    int
	Pps              int
	FlavorCpu        int
	Bandwidth        float64
	GpuType          string
	FlavorId         string
	GpuCount         int
	Available        bool
	AzList           []string
	FlavorSeriesName string
}

type EcsFlavorListRequest

type EcsFlavorListRequest struct {
	RegionId     string
	AzName       string
	FlavorType   string
	FlavorName   string
	FlavorCpu    int
	FlavorRam    int
	FlavorArch   string
	FlavorSeries string
	FlavorId     string
}

type EcsFlavorListResponse

type EcsFlavorListResponse struct {
	FlavorList []EcsFlavorListFlavorListResponse
}

type EcsGetUserdataMonitorApi

type EcsGetUserdataMonitorApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EcsGetUserdataMonitorApi

func NewEcsGetUserdataMonitorApi

func NewEcsGetUserdataMonitorApi(client *ctyunsdk.CtyunClient) *EcsGetUserdataMonitorApi

func (*EcsGetUserdataMonitorApi) Do

func (this *EcsGetUserdataMonitorApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsGetUserdataMonitorRequest) (*EcsGetUserdataMonitorResponse, ctyunsdk.CtyunRequestError)

type EcsGetUserdataMonitorRealRequest

type EcsGetUserdataMonitorRealRequest struct {
	RegionID    string `json:"regionID,omitempty"`
	InstanceIDs string `json:"instanceIDs,omitempty"`
}

type EcsGetUserdataMonitorRealResponse

type EcsGetUserdataMonitorRealResponse struct {
	Results []EcsGetUserdataMonitorResultsRealResponse `json:"results,omitempty"`
}

type EcsGetUserdataMonitorRequest

type EcsGetUserdataMonitorRequest struct {
	RegionID    string
	InstanceIDs string
}

type EcsGetUserdataMonitorResponse

type EcsGetUserdataMonitorResponse struct {
	Results []EcsGetUserdataMonitorResultsResponse
}

type EcsGetUserdataMonitorResultsRealResponse

type EcsGetUserdataMonitorResultsRealResponse struct {
	InstanceID     string `json:"instanceID,omitempty"`
	UserData       string `json:"userData,omitempty"`
	MonitorService bool   `json:"monitorService,omitempty"`
}

type EcsGetUserdataMonitorResultsResponse

type EcsGetUserdataMonitorResultsResponse struct {
	InstanceID     string
	UserData       string
	MonitorService bool
}

type EcsInstanceDetailsApi

type EcsInstanceDetailsApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EcsInstanceDetailsApi 查询一台云主机详细信息 https://www.ctyun.cn/document/10026730/10106322

func NewEcsInstanceDetailsApi

func NewEcsInstanceDetailsApi(client *ctyunsdk.CtyunClient) *EcsInstanceDetailsApi

func (*EcsInstanceDetailsApi) Do

func (this *EcsInstanceDetailsApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsInstanceDetailsRequest) (*EcsInstanceDetailsResponse, ctyunsdk.CtyunRequestError)

type EcsInstanceDetailsRequest

type EcsInstanceDetailsRequest struct {
	RegionId   string
	InstanceId string
}

type EcsInstanceDetailsResponse

type EcsInstanceDetailsResponse struct {
	ProjectId       string
	AzName          string
	AttachedVolume  []string
	ResourceId      string
	InstanceId      string
	DisplayName     string
	InstanceName    string
	OsType          int
	InstanceStatus  string
	ExpiredTime     string
	AvailableDay    int
	UpdatedTime     string
	CreatedTime     string
	SecGroupList    []EcsInstanceDetailsResultsSecGroupListResponse
	PrivateIp       string
	PrivateIPv6     string
	NetworkCardList []EcsInstanceDetailsResultsNetworkCardListResponse
	VipCount        int
	Image           EcsInstanceDetailsResultsImageResponse
	Flavor          EcsInstanceDetailsResultsFlavorResponse
	OnDemand        bool
	VpcName         string
	VpcId           string
	FixedIpList     []string
	FloatingIp      string
	SubnetIdList    []string
	KeypairName     string
}

type EcsInstanceDetailsResultsFlavorResponse

type EcsInstanceDetailsResultsFlavorResponse struct {
	FlavorId     string
	FlavorName   string
	FlavorCpu    int
	FlavorRam    int
	GpuType      string
	GpuCount     int
	GpuVendor    string
	VideoMemSize int
}

type EcsInstanceDetailsResultsImageResponse

type EcsInstanceDetailsResultsImageResponse struct {
	ImageId   string
	ImageName string
}

type EcsInstanceDetailsResultsNetworkCardListResponse

type EcsInstanceDetailsResultsNetworkCardListResponse struct {
	Ipv4Address   string
	Ipv6Address   []string
	SubnetId      string
	SubnetCidr    string
	IsMaster      bool
	Gateway       string
	NetworkCardId string
	SecurityGroup []string
}

type EcsInstanceDetailsResultsSecGroupListResponse

type EcsInstanceDetailsResultsSecGroupListResponse struct {
	SecurityGroupName string
	SecurityGroupId   string
}

type EcsInstanceStatusListApi

type EcsInstanceStatusListApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EcsInstanceStatusListApi 获取多台云主机状态 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8308&data=87

func NewEcsInstanceStatusListApi

func NewEcsInstanceStatusListApi(client *ctyunsdk.CtyunClient) *EcsInstanceStatusListApi

func (*EcsInstanceStatusListApi) Do

func (this *EcsInstanceStatusListApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsInstanceStatusListRequest) (*EcsInstanceStatusListResponse, ctyunsdk.CtyunRequestError)

type EcsInstanceStatusListRequest

type EcsInstanceStatusListRequest struct {
	RegionId       string
	AzName         string
	InstanceIdList string
	PageNo         int
	PageSize       int
}

type EcsInstanceStatusListResponse

type EcsInstanceStatusListResponse struct {
	CurrentCount int
	TotalCount   int
	TotalPage    int
	StatusList   []EcsInstanceStatusListStatusListResponse
}

type EcsInstanceStatusListStatusListResponse

type EcsInstanceStatusListStatusListResponse struct {
	InstanceId     string
	InstanceStatus string
}

type EcsJoinSecurityGroupApi

type EcsJoinSecurityGroupApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EcsJoinSecurityGroupApi 绑定安全组 https://www.ctyun.cn/document/10026730/10040193

func NewEcsJoinSecurityGroupApi

func NewEcsJoinSecurityGroupApi(client *ctyunsdk.CtyunClient) *EcsJoinSecurityGroupApi

func (*EcsJoinSecurityGroupApi) Do

func (this *EcsJoinSecurityGroupApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsJoinSecurityGroupRequest) (*EcsJoinSecurityGroupResponse, ctyunsdk.CtyunRequestError)

type EcsJoinSecurityGroupRequest

type EcsJoinSecurityGroupRequest struct {
	RegionId           string
	SecurityGroupId    string
	InstanceId         string
	NetworkInterfaceId string
	Action             string
}

type EcsJoinSecurityGroupResponse

type EcsJoinSecurityGroupResponse struct {
}

type EcsLeaveSecurityGroupApi

type EcsLeaveSecurityGroupApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EcsLeaveSecurityGroupApi 绑定安全组 https://www.ctyun.cn/document/10026730/10040193

func NewEcsLeaveSecurityGroupApi

func NewEcsLeaveSecurityGroupApi(client *ctyunsdk.CtyunClient) *EcsLeaveSecurityGroupApi

func (*EcsLeaveSecurityGroupApi) Do

func (this *EcsLeaveSecurityGroupApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsLeaveSecurityGroupRequest) (*EcsLeaveSecurityGroupResponse, ctyunsdk.CtyunRequestError)

type EcsLeaveSecurityGroupRequest

type EcsLeaveSecurityGroupRequest struct {
	RegionId        string
	SecurityGroupId string
	InstanceId      string
}

type EcsLeaveSecurityGroupResponse

type EcsLeaveSecurityGroupResponse struct {
}

type EcsOrderQueryUuidApi

type EcsOrderQueryUuidApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EcsOrderQueryUuidApi 根据订单号查询uuid https://www.ctyun.cn/document/10026730/10069118

func NewEcsOrderQueryUuid

func NewEcsOrderQueryUuid(client *ctyunsdk.CtyunClient) *EcsOrderQueryUuidApi

func (*EcsOrderQueryUuidApi) Do

func (this *EcsOrderQueryUuidApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsOrderQueryUuidRequest) (*EcsOrderQueryUuidResponse, ctyunsdk.CtyunRequestError)

type EcsOrderQueryUuidRealResponse

type EcsOrderQueryUuidRealResponse struct {
	InstanceIDList []string `json:"instanceIDList"`
	OrderStatus    string   `json:"orderStatus"`
}

type EcsOrderQueryUuidRequest

type EcsOrderQueryUuidRequest struct {
	MasterOrderId string
}

type EcsOrderQueryUuidResponse

type EcsOrderQueryUuidResponse struct {
	InstanceIDList []string `json:"instanceIDList"`
	OrderStatus    string   `json:"orderStatus"`
}

type EcsQueryAsyncResultApi

type EcsQueryAsyncResultApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EcsQueryAsyncResultApi 查询一个异步任务的结果 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5543&data=87

func NewEcsQueryAsyncResultApi

func NewEcsQueryAsyncResultApi(client *ctyunsdk.CtyunClient) *EcsQueryAsyncResultApi

func (*EcsQueryAsyncResultApi) Do

func (this *EcsQueryAsyncResultApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsQueryAsyncResultRequest) (*EcsQueryAsyncResultResponse, ctyunsdk.CtyunRequestError)

type EcsQueryAsyncResultRealResponse

type EcsQueryAsyncResultRealResponse struct {
	JobStatus int `json:"jobStatus"`
}

type EcsQueryAsyncResultRequest

type EcsQueryAsyncResultRequest struct {
	RegionId string
	JobId    string
}

type EcsQueryAsyncResultResponse

type EcsQueryAsyncResultResponse struct {
	JobStatus int
}

type EcsResetPasswordApi

type EcsResetPasswordApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EcsResetPasswordApi 更新云主机密码 https://www.ctyun.cn/document/10026730/10106390

func NewEcsResetPasswordApi

func NewEcsResetPasswordApi(client *ctyunsdk.CtyunClient) *EcsResetPasswordApi

func (*EcsResetPasswordApi) Do

func (this *EcsResetPasswordApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsResetPasswordRequest) (*EcsResetPasswordResponse, ctyunsdk.CtyunRequestError)

type EcsResetPasswordRealResponse

type EcsResetPasswordRealResponse struct {
	InstanceID string `json:"instanceID"`
}

type EcsResetPasswordRequest

type EcsResetPasswordRequest struct {
	RegionId    string
	InstanceId  string
	NewPassword string
}

type EcsResetPasswordResponse

type EcsResetPasswordResponse struct {
	InstanceId string
}

type EcsShelveInstanceApi

type EcsShelveInstanceApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EcsShelveInstanceApi 节省关机一台云主机 https://www.ctyun.cn/document/10026730/10597755

func NewEcsShelveInstanceApi

func NewEcsShelveInstanceApi(client *ctyunsdk.CtyunClient) *EcsShelveInstanceApi

func (*EcsShelveInstanceApi) Do

func (this *EcsShelveInstanceApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsShelveInstanceRequest) (*EcsShelveInstanceResponse, ctyunsdk.CtyunRequestError)

type EcsShelveInstanceRealRequest

type EcsShelveInstanceRealRequest struct {
	RegionID   string `json:"regionID,omitempty"`
	InstanceID string `json:"instanceID,omitempty"`
}

type EcsShelveInstanceRealResponse

type EcsShelveInstanceRealResponse struct {
	JobID string `json:"jobID,omitempty"`
}

type EcsShelveInstanceRequest

type EcsShelveInstanceRequest struct {
	RegionID   string
	InstanceID string
}

type EcsShelveInstanceResponse

type EcsShelveInstanceResponse struct {
	JobID string
}

type EcsStartInstanceApi

type EcsStartInstanceApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EcsStartInstanceApi 开启一台云主机 https://www.ctyun.cn/document/10026730/10106397

func NewEcsStartInstanceApi

func NewEcsStartInstanceApi(client *ctyunsdk.CtyunClient) *EcsStartInstanceApi

func (*EcsStartInstanceApi) Do

func (this *EcsStartInstanceApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsStartInstanceRequest) (*EcsStartInstanceResponse, ctyunsdk.CtyunRequestError)

type EcsStartInstanceRealResponse

type EcsStartInstanceRealResponse struct {
	JobID string `json:"jobID"`
}

type EcsStartInstanceRequest

type EcsStartInstanceRequest struct {
	RegionId   string
	InstanceId string
	Force      bool
}

type EcsStartInstanceResponse

type EcsStartInstanceResponse struct {
	JobId string
}

type EcsStopInstanceApi

type EcsStopInstanceApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EcsStopInstanceApi 关闭一台云主机 https://www.ctyun.cn/document/10026730/10106393

func NewEcsStopInstanceApi

func NewEcsStopInstanceApi(client *ctyunsdk.CtyunClient) *EcsStopInstanceApi

func (*EcsStopInstanceApi) Do

func (this *EcsStopInstanceApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsStopInstanceRequest) (*EcsStopInstanceResponse, ctyunsdk.CtyunRequestError)

type EcsStopInstanceRequest

type EcsStopInstanceRequest struct {
	RegionId   string
	InstanceId string
	Force      bool
}

type EcsStopInstanceResponse

type EcsStopInstanceResponse struct {
	JobId string
}

type EcsTagOnDemandApi

type EcsTagOnDemandApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EcsTagOnDemandApi 包周期付费云主机标记到期转按需

func NewEcsTagOnDemandApi

func NewEcsTagOnDemandApi(client *ctyunsdk.CtyunClient) *EcsTagOnDemandApi

func (*EcsTagOnDemandApi) Do

func (this *EcsTagOnDemandApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsTagOnDemandRequest) (*EcsTagOnDemandResponse, ctyunsdk.CtyunRequestError)

type EcsTagOnDemandOrderInfoResponse

type EcsTagOnDemandOrderInfoResponse struct {
	OrderId string
	OrderNo string
}

type EcsTagOnDemandRequest

type EcsTagOnDemandRequest struct {
	ClientToken string
	RegionId    string
	InstanceIds []string
}

type EcsTagOnDemandResponse

type EcsTagOnDemandResponse struct {
	OrderInfo []EcsTagOnDemandOrderInfoResponse
}

type EcsTerminateCycleApi

type EcsTerminateCycleApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EcsTerminateCycleApi 包周期终止

func NewEcsTerminateCycleApi

func NewEcsTerminateCycleApi(client *ctyunsdk.CtyunClient) *EcsTerminateCycleApi

func (*EcsTerminateCycleApi) Do

func (this *EcsTerminateCycleApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsTerminateCycleRequest) (*EcsTerminateCycleResponse, ctyunsdk.CtyunRequestError)

type EcsTerminateCycleOrderInfoResponse

type EcsTerminateCycleOrderInfoResponse struct {
	OrderId string
	OrderNo string
}

type EcsTerminateCycleRequest

type EcsTerminateCycleRequest struct {
	ClientToken string
	RegionId    string
	InstanceIds []string
}

type EcsTerminateCycleResponse

type EcsTerminateCycleResponse struct {
	OrderInfo []EcsTerminateCycleOrderInfoResponse
}

type EcsUnsubscribeInstanceApi

type EcsUnsubscribeInstanceApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EcsUnsubscribeInstanceApi 释放云主机 https://www.ctyun.cn/document/10026730/10106596

func NewEcsUnsubscribeInstanceApi

func NewEcsUnsubscribeInstanceApi(client *ctyunsdk.CtyunClient) *EcsUnsubscribeInstanceApi

func (*EcsUnsubscribeInstanceApi) Do

func (this *EcsUnsubscribeInstanceApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsUnsubscribeInstanceRequest) (*EcsUnsubscribeInstanceResponse, ctyunsdk.CtyunRequestError)

type EcsUnsubscribeInstanceRequest

type EcsUnsubscribeInstanceRequest struct {
	ClientToken string
	RegionId    string
	InstanceId  string
}

type EcsUnsubscribeInstanceResponse

type EcsUnsubscribeInstanceResponse struct {
	MasterOrderNo string
	RegionId      string
	MasterOrderId string
}

type EcsUpdateFlavorSpecApi

type EcsUpdateFlavorSpecApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EcsUpdateFlavorSpecApi 云主机修改规格 https://www.ctyun.cn/document/10026730/10106612

func NewEcsUpdateFlavorSpecApi

func NewEcsUpdateFlavorSpecApi(client *ctyunsdk.CtyunClient) *EcsUpdateFlavorSpecApi

func (*EcsUpdateFlavorSpecApi) Do

func (this *EcsUpdateFlavorSpecApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsUpdateFlavorSpecRequest) (*EcsUpdateFlavorSpecResponse, ctyunsdk.CtyunRequestError)

type EcsUpdateFlavorSpecRequest

type EcsUpdateFlavorSpecRequest struct {
	RegionId    string
	InstanceId  string
	FlavorId    string
	ClientToken string
}

type EcsUpdateFlavorSpecResponse

type EcsUpdateFlavorSpecResponse struct {
	MasterOrderNo string
	RegionId      string
	MasterOrderId string
}

type EcsUserdataDetailsApi

type EcsUserdataDetailsApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EcsUserdataDetailsApi

func NewEcsUserdataDetailsApi

func NewEcsUserdataDetailsApi(client *ctyunsdk.CtyunClient) *EcsUserdataDetailsApi

func (*EcsUserdataDetailsApi) Do

func (this *EcsUserdataDetailsApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsUserdataDetailsRequest) (*EcsUserdataDetailsResponse, ctyunsdk.CtyunRequestError)

type EcsUserdataDetailsRealRequest

type EcsUserdataDetailsRealRequest struct {
	RegionID   string `json:"regionID,omitempty"`
	InstanceID string `json:"instanceID,omitempty"`
}

type EcsUserdataDetailsRealResponse

type EcsUserdataDetailsRealResponse struct {
	Userdata string `json:"userdata,omitempty"`
}

type EcsUserdataDetailsRequest

type EcsUserdataDetailsRequest struct {
	RegionID   string
	InstanceID string
}

type EcsUserdataDetailsResponse

type EcsUserdataDetailsResponse struct {
	Userdata string
}

type EcsVolumeListApi

type EcsVolumeListApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EcsVolumeListApi 查询云主机的云硬盘列表 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8290&data=87

func NewEcsVolumeListApi

func NewEcsVolumeListApi(client *ctyunsdk.CtyunClient) *EcsVolumeListApi

func (*EcsVolumeListApi) Do

func (this *EcsVolumeListApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsVolumeListRequest) (*EcsVolumeListResponse, ctyunsdk.CtyunRequestError)

type EcsVolumeListRequest

type EcsVolumeListRequest struct {
	RegionId   string
	InstanceId string
	PageNo     int
	PageSize   int
}

type EcsVolumeListResponse

type EcsVolumeListResponse struct {
	CurrentCount int
	TotalCount   int
	TotalPage    int
	Results      []EcsVolumeListResultsResponse
}

type EcsVolumeListResultsResponse

type EcsVolumeListResultsResponse struct {
	DiskType     string
	IsEncrypt    bool
	DiskSize     int
	DiskMode     string
	DiskId       string
	DiskDataType string
}

type JobShowApi

type JobShowApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

JobShowApi 通用任务状态查询 https://www.ctyun.cn/document/10026730/10040594

func NewJobShowApi

func NewJobShowApi(client *ctyunsdk.CtyunClient) *JobShowApi

func (*JobShowApi) Do

func (this *JobShowApi) Do(ctx context.Context, credential ctyunsdk.Credential, t *JobShowRequest) (*JobShowResponse, ctyunsdk.CtyunRequestError)

type JobShowRequest

type JobShowRequest struct {
	RegionId string
	JobId    string
}

type JobShowResponse

type JobShowResponse struct {
	Status     int
	ResourceId string
	Fields     map[string]string
	JobStatus  string
	JobId      string
	ID         string
}

type KeypairAttachApi

type KeypairAttachApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

KeypairAttachApi 绑定SSH密钥对到Linux云主机 https://www.ctyun.cn/document/10026730/10106635

func NewKeypairAttachApi

func NewKeypairAttachApi(client *ctyunsdk.CtyunClient) *KeypairAttachApi

func (*KeypairAttachApi) Do

func (this *KeypairAttachApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *KeypairAttachRequest) (*KeypairAttachResponse, ctyunsdk.CtyunRequestError)

type KeypairAttachRequest

type KeypairAttachRequest struct {
	RegionId    string // 区域id
	KeyPairName string // 密钥对名称
	InstanceId  string // 云主机ID
}

type KeypairAttachResponse

type KeypairAttachResponse struct {
}

type KeypairCreateApi

type KeypairCreateApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

KeypairCreateApi 创建一对SSH密钥对 https://www.ctyun.cn/document/10026730/10106637

func NewKeypairCreateApi

func NewKeypairCreateApi(client *ctyunsdk.CtyunClient) *KeypairCreateApi

func (*KeypairCreateApi) Do

func (this *KeypairCreateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *KeypairCreateRequest) (*KeypairCreateResponse, ctyunsdk.CtyunRequestError)

type KeypairCreateRealResponse

type KeypairCreateRealResponse struct {
	PublicKey   string `json:"publicKey"`
	PrivateKey  string `json:"privateKey"`
	KeyPairName string `json:"keyPairName"`
	FingerPrint string `json:"fingerPrint"`
	KeyPairID   string `json:"keyPairID"`
}

type KeypairCreateRequest

type KeypairCreateRequest struct {
	RegionId    string // 资源池ID
	KeyPairName string // 密钥对名称。只能由数字、字母、-组成,不能以数字和-开头、以-结尾,且长度为2-63字符
	ProjectId   string // 企业项目id
}

type KeypairCreateResponse

type KeypairCreateResponse struct {
	PublicKey   string // 密钥对的公钥
	PrivateKey  string // 密钥对的私钥
	KeyPairName string // 密钥对名称
	FingerPrint string // 密钥对的指纹,采用MD5信息摘要算法
	KeyPairId   string // 密钥对的ID
}

type KeypairDeleteApi

type KeypairDeleteApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

KeypairDeleteApi 删除SSH密钥对 https://www.ctyun.cn/document/10026730/10040173

func NewKeypairDeleteApi

func NewKeypairDeleteApi(client *ctyunsdk.CtyunClient) *KeypairDeleteApi

func (*KeypairDeleteApi) Do

func (this *KeypairDeleteApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *KeypairDeleteRequest) (*KeypairDeleteResponse, ctyunsdk.CtyunRequestError)

type KeypairDeleteRealResponse

type KeypairDeleteRealResponse struct {
	KeyPairName string `json:"keyPairName"`
}

type KeypairDeleteRequest

type KeypairDeleteRequest struct {
	RegionId    string // 资源池ID
	KeyPairName string // 密钥对名称。
}

type KeypairDeleteResponse

type KeypairDeleteResponse struct {
	KeyPairName string // 密钥对名称
}

type KeypairDetachApi

type KeypairDetachApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

KeypairDetachApi 为云主机解绑SSH密钥对 https://www.ctyun.cn/document/10026730/10106639

func NewKeypairDetachApi

func NewKeypairDetachApi(client *ctyunsdk.CtyunClient) *KeypairDetachApi

func (*KeypairDetachApi) Do

func (this *KeypairDetachApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *KeypairDetachRequest) (*KeypairDetachResponse, ctyunsdk.CtyunRequestError)

type KeypairDetachRequest

type KeypairDetachRequest struct {
	RegionId    string // 区域id
	KeyPairName string // 密钥对名称
	InstanceId  string // 云主机ID
}

type KeypairDetachResponse

type KeypairDetachResponse struct {
}

type KeypairDetailApi

type KeypairDetailApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

KeypairDetailApi 查询一个或多个密钥对 https://www.ctyun.cn/document/10026730/10106636

func NewKeypairDetailApi

func NewKeypairDetailApi(client *ctyunsdk.CtyunClient) *KeypairDetailApi

func (*KeypairDetailApi) Do

func (this *KeypairDetailApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *KeypairDetailRequest) (*KeypairDetailResponse, ctyunsdk.CtyunRequestError)

type KeypairDetailRequest

type KeypairDetailRequest struct {
	RegionId     string // 资源池ID
	ProjectId    string // 企业项目id
	KeyPairName  string // 密钥对名称。只能由数字、字母、-组成,不能以数字和-开头、以-结尾,且长度为2-63字符
	QueryContent string
	PageNo       int
	PageSize     int
}

type KeypairDetailResponse

type KeypairDetailResponse struct {
	CurrentCount int // 当前页记录数目
	TotalCount   int // 总记录数
	Results      []KeypairDetailResults
}

type KeypairDetailResults

type KeypairDetailResults struct {
	PublicKey   string
	KeyPairName string
	FingerPrint string
	KeyPairId   string
	ProjectId   string
}

type KeypairImportApi

type KeypairImportApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

KeypairImportApi 导入RSA密钥对公钥 https://www.ctyun.cn/document/10026730/10106638

func NewKeypairImportApi

func NewKeypairImportApi(client *ctyunsdk.CtyunClient) *KeypairImportApi

func (*KeypairImportApi) Do

func (this *KeypairImportApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *KeypairImportRequest) (*KeypairImportResponse, ctyunsdk.CtyunRequestError)

type KeypairImportRequest

type KeypairImportRequest struct {
	RegionId    string // 资源池ID
	KeyPairName string // 密钥对名称。只能由数字、字母、-组成,不能以数字和-开头、以-结尾,且长度为2-63字符
	PublicKey   string // 公钥
	ProjectId   string // 企业项目id
}

type KeypairImportResponse

type KeypairImportResponse struct {
	PublicKey   string // 密钥对的公钥
	KeyPairName string // 密钥对名称
	FingerPrint string // 密钥对的指纹,采用MD5信息摘要算法
	KeyPairId   string // 密钥对的ID
}

type RegionListApi

type RegionListApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

RegionListApi 资源池列表查询 https://www.ctyun.cn/document/10026730/10040588

func NewRegionListApi

func NewRegionListApi(client *ctyunsdk.CtyunClient) *RegionListApi

func (*RegionListApi) Do

func (this *RegionListApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *RegionListRequest) (*RegionListResponse, ctyunsdk.CtyunRequestError)

type RegionListRegionListResponse

type RegionListRegionListResponse struct {
	RegionParent string
	RegionId     string
	RegionType   string
	RegionName   string
	IsMultiZones bool
	ZoneList     []string
}

type RegionListRequest

type RegionListRequest struct {
	RegionName string
}

type RegionListResponse

type RegionListResponse struct {
	RegionList []RegionListRegionListResponse
}

type SecurityGroupRuleEgressCreateApi

type SecurityGroupRuleEgressCreateApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

SecurityGroupRuleEgressCreateApi 创建安全组出向规则 https://www.ctyun.cn/document/10026730/10040197

func NewSecurityGroupRuleEgressCreateApi

func NewSecurityGroupRuleEgressCreateApi(client *ctyunsdk.CtyunClient) *SecurityGroupRuleEgressCreateApi

func (*SecurityGroupRuleEgressCreateApi) Do

func (this *SecurityGroupRuleEgressCreateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *SecurityGroupRuleEgressCreateRequest) (*SecurityGroupRuleEgressCreateResponse, ctyunsdk.CtyunRequestError)

type SecurityGroupRuleEgressCreateRequest

type SecurityGroupRuleEgressCreateRequest struct {
	RegionId           string                                                   // 区域id
	SecurityGroupId    string                                                   // 安全组ID。
	ClientToken        string                                                   // 客户端存根
	SecurityGroupRules []SecurityGroupRuleEgressCreateSecurityGroupRulesRequest // 规则信息
}

type SecurityGroupRuleEgressCreateResponse

type SecurityGroupRuleEgressCreateResponse struct {
	SgRuleIds []string
}

type SecurityGroupRuleEgressCreateSecurityGroupRulesRequest

type SecurityGroupRuleEgressCreateSecurityGroupRulesRequest struct {
	Direction   string // 规则方向,出方向则填写egress
	Action      string // 授权策略,取值范围:accept(允许),drop(拒绝)。
	Priority    int    // 优先级,取值范围:[1, 100],取值越小优先级越大
	Protocol    string // 网络协议,取值范围:ANY(任意)、TCP、UDP、ICMP(v4)
	Ethertype   string // IP类型,取值范围:IPv4、IPv6
	DestCidrIp  string // 远端地址:0.0.0.0/0
	Description string // 安全组规则描述信息,满足以下规则: ① 长度0-128字符, ② 支持拉丁字母、中文、数字, 特殊字符 !@#¥%……&*()——-+={}《》?:“”【】、;‘',。、 不能以      http: / https: 开头
	Range       string // 安全组开放的传输层协议相关的源端端口范围
}

type SecurityGroupRuleIngressCreateApi

type SecurityGroupRuleIngressCreateApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

SecurityGroupRuleIngressCreateApi 创建安全组入向规则 https://www.ctyun.cn/document/10026730/10040198

func NewSecurityGroupRuleIngressCreateApi

func NewSecurityGroupRuleIngressCreateApi(client *ctyunsdk.CtyunClient) *SecurityGroupRuleIngressCreateApi

func (*SecurityGroupRuleIngressCreateApi) Do

func (this *SecurityGroupRuleIngressCreateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *SecurityGroupRuleIngressCreateRequest) (*SecurityGroupRuleIngressCreateResponse, ctyunsdk.CtyunRequestError)

type SecurityGroupRuleIngressCreateRequest

type SecurityGroupRuleIngressCreateRequest struct {
	RegionId           string                                                    // 区域id
	SecurityGroupId    string                                                    // 安全组ID。
	ClientToken        string                                                    // 客户端存根
	SecurityGroupRules []SecurityGroupRuleIngressCreateSecurityGroupRulesRequest // 规则信息
}

type SecurityGroupRuleIngressCreateResponse

type SecurityGroupRuleIngressCreateResponse struct {
	SgRuleIds []string
}

type SecurityGroupRuleIngressCreateSecurityGroupRulesRequest

type SecurityGroupRuleIngressCreateSecurityGroupRulesRequest struct {
	Direction   string // 规则方向,出方向则填写ingress
	Action      string // 授权策略,取值范围:accept(允许),drop(拒绝)。
	Priority    int    // 优先级,取值范围:[1, 100],取值越小优先级越大
	Protocol    string // 网络协议,取值范围:ANY(任意)、TCP、UDP、ICMP(v4)
	Ethertype   string // IP类型,取值范围:IPv4、IPv6
	DestCidrIp  string // 远端地址:0.0.0.0/0
	Description string // 安全组规则描述信息,满足以下规则: ① 长度0-128字符, ② 支持拉丁字母、中文、数字, 特殊字符 !@#¥%……&*()——-+={}《》?:“”【】、;‘',。、 不能以      http: / https: 开头
	Range       string // 安全组开放的传输层协议相关的源端端口范围
}

Jump to

Keyboard shortcuts

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