Documentation ¶
Index ¶
- type AssociateElasticIpRequest
- func NewAssociateElasticIpRequest(regionId string, instanceId string, elasticIpId string) *AssociateElasticIpRequest
- func NewAssociateElasticIpRequestWithAllParams(regionId string, instanceId string, elasticIpId string) *AssociateElasticIpRequest
- func NewAssociateElasticIpRequestWithoutParam() *AssociateElasticIpRequest
- type AssociateElasticIpResponse
- type AssociateElasticIpResult
- type AttachDiskRequest
- func (r AttachDiskRequest) GetRegionId() string
- func (r *AttachDiskRequest) SetAutoDelete(autoDelete bool)
- func (r *AttachDiskRequest) SetDeviceName(deviceName string)
- func (r *AttachDiskRequest) SetDiskId(diskId string)
- func (r *AttachDiskRequest) SetInstanceId(instanceId string)
- func (r *AttachDiskRequest) SetRegionId(regionId string)
- type AttachDiskResponse
- type AttachDiskResult
- type AttachNetworkInterfaceRequest
- func NewAttachNetworkInterfaceRequest(regionId string, instanceId string, networkInterfaceId string) *AttachNetworkInterfaceRequest
- func NewAttachNetworkInterfaceRequestWithAllParams(regionId string, instanceId string, networkInterfaceId string, ...) *AttachNetworkInterfaceRequest
- func NewAttachNetworkInterfaceRequestWithoutParam() *AttachNetworkInterfaceRequest
- func (r AttachNetworkInterfaceRequest) GetRegionId() string
- func (r *AttachNetworkInterfaceRequest) SetAutoDelete(autoDelete bool)
- func (r *AttachNetworkInterfaceRequest) SetInstanceId(instanceId string)
- func (r *AttachNetworkInterfaceRequest) SetNetworkInterfaceId(networkInterfaceId string)
- func (r *AttachNetworkInterfaceRequest) SetRegionId(regionId string)
- type AttachNetworkInterfaceResponse
- type AttachNetworkInterfaceResult
- type CopyImagesRequest
- type CopyImagesResponse
- type CopyImagesResult
- type CreateImageRequest
- func (r CreateImageRequest) GetRegionId() string
- func (r *CreateImageRequest) SetDataDisks(dataDisks []vm.InstanceDiskAttachmentSpec)
- func (r *CreateImageRequest) SetDescription(description string)
- func (r *CreateImageRequest) SetInstanceId(instanceId string)
- func (r *CreateImageRequest) SetName(name string)
- func (r *CreateImageRequest) SetRegionId(regionId string)
- type CreateImageResponse
- type CreateImageResult
- type CreateInstanceTemplateRequest
- func NewCreateInstanceTemplateRequest(regionId string, instanceTemplateData *vm.InstanceTemplateSpec, name string) *CreateInstanceTemplateRequest
- func NewCreateInstanceTemplateRequestWithAllParams(regionId string, instanceTemplateData *vm.InstanceTemplateSpec, name string, ...) *CreateInstanceTemplateRequest
- func NewCreateInstanceTemplateRequestWithoutParam() *CreateInstanceTemplateRequest
- func (r CreateInstanceTemplateRequest) GetRegionId() string
- func (r *CreateInstanceTemplateRequest) SetDescription(description string)
- func (r *CreateInstanceTemplateRequest) SetInstanceTemplateData(instanceTemplateData *vm.InstanceTemplateSpec)
- func (r *CreateInstanceTemplateRequest) SetName(name string)
- func (r *CreateInstanceTemplateRequest) SetRegionId(regionId string)
- type CreateInstanceTemplateResponse
- type CreateInstanceTemplateResult
- type CreateInstancesRequest
- func NewCreateInstancesRequest(regionId string, instanceSpec *vm.InstanceSpec) *CreateInstancesRequest
- func NewCreateInstancesRequestWithAllParams(regionId string, instanceSpec *vm.InstanceSpec, maxCount *int, ...) *CreateInstancesRequest
- func NewCreateInstancesRequestWithoutParam() *CreateInstancesRequest
- func (r CreateInstancesRequest) GetRegionId() string
- func (r *CreateInstancesRequest) SetClientToken(clientToken string)
- func (r *CreateInstancesRequest) SetInstanceSpec(instanceSpec *vm.InstanceSpec)
- func (r *CreateInstancesRequest) SetMaxCount(maxCount int)
- func (r *CreateInstancesRequest) SetRegionId(regionId string)
- type CreateInstancesResponse
- type CreateInstancesResult
- type CreateKeypairRequest
- type CreateKeypairResponse
- type CreateKeypairResult
- type DeleteImageRequest
- type DeleteImageResponse
- type DeleteImageResult
- type DeleteInstanceRequest
- type DeleteInstanceResponse
- type DeleteInstanceResult
- type DeleteInstanceTemplateRequest
- func NewDeleteInstanceTemplateRequest(regionId string, instanceTemplateId string) *DeleteInstanceTemplateRequest
- func NewDeleteInstanceTemplateRequestWithAllParams(regionId string, instanceTemplateId string) *DeleteInstanceTemplateRequest
- func NewDeleteInstanceTemplateRequestWithoutParam() *DeleteInstanceTemplateRequest
- type DeleteInstanceTemplateResponse
- type DeleteInstanceTemplateResult
- type DeleteKeypairRequest
- type DeleteKeypairResponse
- type DeleteKeypairResult
- type DescribeBriefInstancesRequest
- func NewDescribeBriefInstancesRequest(regionId string) *DescribeBriefInstancesRequest
- func NewDescribeBriefInstancesRequestWithAllParams(regionId string, pageNumber *int, pageSize *int, tags []vm.TagFilter, ...) *DescribeBriefInstancesRequest
- func NewDescribeBriefInstancesRequestWithoutParam() *DescribeBriefInstancesRequest
- func (r DescribeBriefInstancesRequest) GetRegionId() string
- func (r *DescribeBriefInstancesRequest) SetFilters(filters []common.Filter)
- func (r *DescribeBriefInstancesRequest) SetPageNumber(pageNumber int)
- func (r *DescribeBriefInstancesRequest) SetPageSize(pageSize int)
- func (r *DescribeBriefInstancesRequest) SetRegionId(regionId string)
- func (r *DescribeBriefInstancesRequest) SetTags(tags []vm.TagFilter)
- type DescribeBriefInstancesResponse
- type DescribeBriefInstancesResult
- type DescribeImageConstraintsBatchRequest
- func NewDescribeImageConstraintsBatchRequest(regionId string) *DescribeImageConstraintsBatchRequest
- func NewDescribeImageConstraintsBatchRequestWithAllParams(regionId string, ids []string) *DescribeImageConstraintsBatchRequest
- func NewDescribeImageConstraintsBatchRequestWithoutParam() *DescribeImageConstraintsBatchRequest
- type DescribeImageConstraintsBatchResponse
- type DescribeImageConstraintsBatchResult
- type DescribeImageConstraintsRequest
- func NewDescribeImageConstraintsRequest(regionId string, imageId string) *DescribeImageConstraintsRequest
- func NewDescribeImageConstraintsRequestWithAllParams(regionId string, imageId string) *DescribeImageConstraintsRequest
- func NewDescribeImageConstraintsRequestWithoutParam() *DescribeImageConstraintsRequest
- type DescribeImageConstraintsResponse
- type DescribeImageConstraintsResult
- type DescribeImageMembersRequest
- type DescribeImageMembersResponse
- type DescribeImageMembersResult
- type DescribeImageRequest
- type DescribeImageResponse
- type DescribeImageResult
- type DescribeImagesRequest
- func (r DescribeImagesRequest) GetRegionId() string
- func (r *DescribeImagesRequest) SetIds(ids []string)
- func (r *DescribeImagesRequest) SetImageSource(imageSource string)
- func (r *DescribeImagesRequest) SetLaunchPermission(launchPermission string)
- func (r *DescribeImagesRequest) SetOffline(offline bool)
- func (r *DescribeImagesRequest) SetPageNumber(pageNumber int)
- func (r *DescribeImagesRequest) SetPageSize(pageSize int)
- func (r *DescribeImagesRequest) SetPlatform(platform string)
- func (r *DescribeImagesRequest) SetRegionId(regionId string)
- func (r *DescribeImagesRequest) SetRootDeviceType(rootDeviceType string)
- func (r *DescribeImagesRequest) SetServiceCode(serviceCode string)
- func (r *DescribeImagesRequest) SetStatus(status string)
- type DescribeImagesResponse
- type DescribeImagesResult
- type DescribeInstancePrivateIpAddressRequest
- func NewDescribeInstancePrivateIpAddressRequest(regionId string) *DescribeInstancePrivateIpAddressRequest
- func NewDescribeInstancePrivateIpAddressRequestWithAllParams(regionId string, pageNumber *int, pageSize *int, filters []common.Filter) *DescribeInstancePrivateIpAddressRequest
- func NewDescribeInstancePrivateIpAddressRequestWithoutParam() *DescribeInstancePrivateIpAddressRequest
- func (r DescribeInstancePrivateIpAddressRequest) GetRegionId() string
- func (r *DescribeInstancePrivateIpAddressRequest) SetFilters(filters []common.Filter)
- func (r *DescribeInstancePrivateIpAddressRequest) SetPageNumber(pageNumber int)
- func (r *DescribeInstancePrivateIpAddressRequest) SetPageSize(pageSize int)
- func (r *DescribeInstancePrivateIpAddressRequest) SetRegionId(regionId string)
- type DescribeInstancePrivateIpAddressResponse
- type DescribeInstancePrivateIpAddressResult
- type DescribeInstanceRequest
- type DescribeInstanceResponse
- type DescribeInstanceResult
- type DescribeInstanceStatusRequest
- func NewDescribeInstanceStatusRequest(regionId string) *DescribeInstanceStatusRequest
- func NewDescribeInstanceStatusRequestWithAllParams(regionId string, pageNumber *int, pageSize *int, filters []common.Filter) *DescribeInstanceStatusRequest
- func NewDescribeInstanceStatusRequestWithoutParam() *DescribeInstanceStatusRequest
- func (r DescribeInstanceStatusRequest) GetRegionId() string
- func (r *DescribeInstanceStatusRequest) SetFilters(filters []common.Filter)
- func (r *DescribeInstanceStatusRequest) SetPageNumber(pageNumber int)
- func (r *DescribeInstanceStatusRequest) SetPageSize(pageSize int)
- func (r *DescribeInstanceStatusRequest) SetRegionId(regionId string)
- type DescribeInstanceStatusResponse
- type DescribeInstanceStatusResult
- type DescribeInstanceTemplateRequest
- func NewDescribeInstanceTemplateRequest(regionId string, instanceTemplateId string) *DescribeInstanceTemplateRequest
- func NewDescribeInstanceTemplateRequestWithAllParams(regionId string, instanceTemplateId string) *DescribeInstanceTemplateRequest
- func NewDescribeInstanceTemplateRequestWithoutParam() *DescribeInstanceTemplateRequest
- type DescribeInstanceTemplateResponse
- type DescribeInstanceTemplateResult
- type DescribeInstanceTemplatesRequest
- func NewDescribeInstanceTemplatesRequest(regionId string) *DescribeInstanceTemplatesRequest
- func NewDescribeInstanceTemplatesRequestWithAllParams(regionId string, pageNumber *int, pageSize *int, filters []common.Filter) *DescribeInstanceTemplatesRequest
- func NewDescribeInstanceTemplatesRequestWithoutParam() *DescribeInstanceTemplatesRequest
- func (r DescribeInstanceTemplatesRequest) GetRegionId() string
- func (r *DescribeInstanceTemplatesRequest) SetFilters(filters []common.Filter)
- func (r *DescribeInstanceTemplatesRequest) SetPageNumber(pageNumber int)
- func (r *DescribeInstanceTemplatesRequest) SetPageSize(pageSize int)
- func (r *DescribeInstanceTemplatesRequest) SetRegionId(regionId string)
- type DescribeInstanceTemplatesResponse
- type DescribeInstanceTemplatesResult
- type DescribeInstanceTypesRequest
- func NewDescribeInstanceTypesRequest(regionId string) *DescribeInstanceTypesRequest
- func NewDescribeInstanceTypesRequestWithAllParams(regionId string, serviceName *string, filters []common.Filter) *DescribeInstanceTypesRequest
- func NewDescribeInstanceTypesRequestWithoutParam() *DescribeInstanceTypesRequest
- type DescribeInstanceTypesResponse
- type DescribeInstanceTypesResult
- type DescribeInstanceVncUrlRequest
- func NewDescribeInstanceVncUrlRequest(regionId string, instanceId string) *DescribeInstanceVncUrlRequest
- func NewDescribeInstanceVncUrlRequestWithAllParams(regionId string, instanceId string) *DescribeInstanceVncUrlRequest
- func NewDescribeInstanceVncUrlRequestWithoutParam() *DescribeInstanceVncUrlRequest
- type DescribeInstanceVncUrlResponse
- type DescribeInstanceVncUrlResult
- type DescribeInstancesRequest
- func (r DescribeInstancesRequest) GetRegionId() string
- func (r *DescribeInstancesRequest) SetFilters(filters []common.Filter)
- func (r *DescribeInstancesRequest) SetPageNumber(pageNumber int)
- func (r *DescribeInstancesRequest) SetPageSize(pageSize int)
- func (r *DescribeInstancesRequest) SetRegionId(regionId string)
- type DescribeInstancesResponse
- type DescribeInstancesResult
- type DescribeKeypairsRequest
- func (r DescribeKeypairsRequest) GetRegionId() string
- func (r *DescribeKeypairsRequest) SetFilters(filters []common.Filter)
- func (r *DescribeKeypairsRequest) SetPageNumber(pageNumber int)
- func (r *DescribeKeypairsRequest) SetPageSize(pageSize int)
- func (r *DescribeKeypairsRequest) SetRegionId(regionId string)
- type DescribeKeypairsResponse
- type DescribeKeypairsResult
- type DescribeQuotasRequest
- type DescribeQuotasResponse
- type DescribeQuotasResult
- type DetachDiskRequest
- type DetachDiskResponse
- type DetachDiskResult
- type DetachNetworkInterfaceRequest
- func NewDetachNetworkInterfaceRequest(regionId string, instanceId string, networkInterfaceId string) *DetachNetworkInterfaceRequest
- func NewDetachNetworkInterfaceRequestWithAllParams(regionId string, instanceId string, networkInterfaceId string) *DetachNetworkInterfaceRequest
- func NewDetachNetworkInterfaceRequestWithoutParam() *DetachNetworkInterfaceRequest
- type DetachNetworkInterfaceResponse
- type DetachNetworkInterfaceResult
- type DisassociateElasticIpRequest
- func NewDisassociateElasticIpRequest(regionId string, instanceId string, elasticIpId string) *DisassociateElasticIpRequest
- func NewDisassociateElasticIpRequestWithAllParams(regionId string, instanceId string, elasticIpId string) *DisassociateElasticIpRequest
- func NewDisassociateElasticIpRequestWithoutParam() *DisassociateElasticIpRequest
- type DisassociateElasticIpResponse
- type DisassociateElasticIpResult
- type ExportImageRequest
- func NewExportImageRequest(regionId string, imageId string, roleName string, ossUrl string) *ExportImageRequest
- func NewExportImageRequestWithAllParams(regionId string, imageId string, roleName string, ossUrl string, ...) *ExportImageRequest
- func NewExportImageRequestWithoutParam() *ExportImageRequest
- func (r ExportImageRequest) GetRegionId() string
- func (r *ExportImageRequest) SetClientToken(clientToken string)
- func (r *ExportImageRequest) SetImageId(imageId string)
- func (r *ExportImageRequest) SetOssPrefix(ossPrefix string)
- func (r *ExportImageRequest) SetOssUrl(ossUrl string)
- func (r *ExportImageRequest) SetRegionId(regionId string)
- func (r *ExportImageRequest) SetRoleName(roleName string)
- type ExportImageResponse
- type ExportImageResult
- type ImageTasksRequest
- func (r ImageTasksRequest) GetRegionId() string
- func (r *ImageTasksRequest) SetEndTime(endTime string)
- func (r *ImageTasksRequest) SetPageNumber(pageNumber int)
- func (r *ImageTasksRequest) SetPageSize(pageSize int)
- func (r *ImageTasksRequest) SetRegionId(regionId string)
- func (r *ImageTasksRequest) SetStartTime(startTime string)
- func (r *ImageTasksRequest) SetTaskAction(taskAction string)
- func (r *ImageTasksRequest) SetTaskIds(taskIds []int)
- func (r *ImageTasksRequest) SetTaskStatus(taskStatus string)
- type ImageTasksResponse
- type ImageTasksResult
- type ImportImageRequest
- func NewImportImageRequest(regionId string, architecture string, osType string, platform string, ...) *ImportImageRequest
- func NewImportImageRequestWithAllParams(regionId string, architecture string, osType string, platform string, ...) *ImportImageRequest
- func NewImportImageRequestWithoutParam() *ImportImageRequest
- func (r ImportImageRequest) GetRegionId() string
- func (r *ImportImageRequest) SetArchitecture(architecture string)
- func (r *ImportImageRequest) SetClientToken(clientToken string)
- func (r *ImportImageRequest) SetDescription(description string)
- func (r *ImportImageRequest) SetDiskFormat(diskFormat string)
- func (r *ImportImageRequest) SetForceImport(forceImport bool)
- func (r *ImportImageRequest) SetImageName(imageName string)
- func (r *ImportImageRequest) SetImageUrl(imageUrl string)
- func (r *ImportImageRequest) SetOsType(osType string)
- func (r *ImportImageRequest) SetOsVersion(osVersion string)
- func (r *ImportImageRequest) SetPlatform(platform string)
- func (r *ImportImageRequest) SetRegionId(regionId string)
- func (r *ImportImageRequest) SetSystemDiskSizeGB(systemDiskSizeGB int)
- type ImportImageResponse
- type ImportImageResult
- type ImportKeypairRequest
- type ImportKeypairResponse
- type ImportKeypairResult
- type ModifyImageAttributeRequest
- func NewModifyImageAttributeRequest(regionId string, imageId string) *ModifyImageAttributeRequest
- func NewModifyImageAttributeRequestWithAllParams(regionId string, imageId string, name *string, description *string) *ModifyImageAttributeRequest
- func NewModifyImageAttributeRequestWithoutParam() *ModifyImageAttributeRequest
- func (r ModifyImageAttributeRequest) GetRegionId() string
- func (r *ModifyImageAttributeRequest) SetDescription(description string)
- func (r *ModifyImageAttributeRequest) SetImageId(imageId string)
- func (r *ModifyImageAttributeRequest) SetName(name string)
- func (r *ModifyImageAttributeRequest) SetRegionId(regionId string)
- type ModifyImageAttributeResponse
- type ModifyImageAttributeResult
- type ModifyInstanceAttributeRequest
- func NewModifyInstanceAttributeRequest(regionId string, instanceId string) *ModifyInstanceAttributeRequest
- func NewModifyInstanceAttributeRequestWithAllParams(regionId string, instanceId string, name *string, description *string) *ModifyInstanceAttributeRequest
- func NewModifyInstanceAttributeRequestWithoutParam() *ModifyInstanceAttributeRequest
- func (r ModifyInstanceAttributeRequest) GetRegionId() string
- func (r *ModifyInstanceAttributeRequest) SetDescription(description string)
- func (r *ModifyInstanceAttributeRequest) SetInstanceId(instanceId string)
- func (r *ModifyInstanceAttributeRequest) SetName(name string)
- func (r *ModifyInstanceAttributeRequest) SetRegionId(regionId string)
- type ModifyInstanceAttributeResponse
- type ModifyInstanceAttributeResult
- type ModifyInstanceDiskAttributeRequest
- func NewModifyInstanceDiskAttributeRequest(regionId string, instanceId string) *ModifyInstanceDiskAttributeRequest
- func NewModifyInstanceDiskAttributeRequestWithAllParams(regionId string, instanceId string, dataDisks []vm.InstanceDiskAttribute) *ModifyInstanceDiskAttributeRequest
- func NewModifyInstanceDiskAttributeRequestWithoutParam() *ModifyInstanceDiskAttributeRequest
- func (r ModifyInstanceDiskAttributeRequest) GetRegionId() string
- func (r *ModifyInstanceDiskAttributeRequest) SetDataDisks(dataDisks []vm.InstanceDiskAttribute)
- func (r *ModifyInstanceDiskAttributeRequest) SetInstanceId(instanceId string)
- func (r *ModifyInstanceDiskAttributeRequest) SetRegionId(regionId string)
- type ModifyInstanceDiskAttributeResponse
- type ModifyInstanceDiskAttributeResult
- type ModifyInstanceNetworkAttributeRequest
- func NewModifyInstanceNetworkAttributeRequest(regionId string, instanceId string) *ModifyInstanceNetworkAttributeRequest
- func NewModifyInstanceNetworkAttributeRequestWithAllParams(regionId string, instanceId string, networks []vm.InstanceNetworkAttribute) *ModifyInstanceNetworkAttributeRequest
- func NewModifyInstanceNetworkAttributeRequestWithoutParam() *ModifyInstanceNetworkAttributeRequest
- func (r ModifyInstanceNetworkAttributeRequest) GetRegionId() string
- func (r *ModifyInstanceNetworkAttributeRequest) SetInstanceId(instanceId string)
- func (r *ModifyInstanceNetworkAttributeRequest) SetNetworks(networks []vm.InstanceNetworkAttribute)
- func (r *ModifyInstanceNetworkAttributeRequest) SetRegionId(regionId string)
- type ModifyInstanceNetworkAttributeResponse
- type ModifyInstanceNetworkAttributeResult
- type ModifyInstancePasswordRequest
- func NewModifyInstancePasswordRequest(regionId string, instanceId string, password string) *ModifyInstancePasswordRequest
- func NewModifyInstancePasswordRequestWithAllParams(regionId string, instanceId string, password string) *ModifyInstancePasswordRequest
- func NewModifyInstancePasswordRequestWithoutParam() *ModifyInstancePasswordRequest
- type ModifyInstancePasswordResponse
- type ModifyInstancePasswordResult
- type RebootInstanceRequest
- type RebootInstanceResponse
- type RebootInstanceResult
- type RebuildInstanceRequest
- func NewRebuildInstanceRequest(regionId string, instanceId string, password string) *RebuildInstanceRequest
- func NewRebuildInstanceRequestWithAllParams(regionId string, instanceId string, password string, imageId *string, ...) *RebuildInstanceRequest
- func NewRebuildInstanceRequestWithoutParam() *RebuildInstanceRequest
- func (r RebuildInstanceRequest) GetRegionId() string
- func (r *RebuildInstanceRequest) SetImageId(imageId string)
- func (r *RebuildInstanceRequest) SetInstanceId(instanceId string)
- func (r *RebuildInstanceRequest) SetKeyNames(keyNames []string)
- func (r *RebuildInstanceRequest) SetPassword(password string)
- func (r *RebuildInstanceRequest) SetRegionId(regionId string)
- type RebuildInstanceResponse
- type RebuildInstanceResult
- type ReleaseImageRequest
- type ReleaseImageResponse
- type ReleaseImageResult
- type ResizeInstanceRequest
- func NewResizeInstanceRequest(regionId string, instanceId string, instanceType string) *ResizeInstanceRequest
- func NewResizeInstanceRequestWithAllParams(regionId string, instanceId string, instanceType string, force *bool) *ResizeInstanceRequest
- func NewResizeInstanceRequestWithoutParam() *ResizeInstanceRequest
- type ResizeInstanceResponse
- type ResizeInstanceResult
- type ShareImageRequest
- type ShareImageResponse
- type ShareImageResult
- type StartInstanceRequest
- type StartInstanceResponse
- type StartInstanceResult
- type StopInstanceRequest
- type StopInstanceResponse
- type StopInstanceResult
- type UnReleaseImageRequest
- type UnReleaseImageResponse
- type UnReleaseImageResult
- type UnShareImageRequest
- type UnShareImageResponse
- type UnShareImageResult
- type UpdateInstanceTemplateRequest
- func NewUpdateInstanceTemplateRequest(regionId string, instanceTemplateId string) *UpdateInstanceTemplateRequest
- func NewUpdateInstanceTemplateRequestWithAllParams(regionId string, instanceTemplateId string, description *string, name *string) *UpdateInstanceTemplateRequest
- func NewUpdateInstanceTemplateRequestWithoutParam() *UpdateInstanceTemplateRequest
- func (r UpdateInstanceTemplateRequest) GetRegionId() string
- func (r *UpdateInstanceTemplateRequest) SetDescription(description string)
- func (r *UpdateInstanceTemplateRequest) SetInstanceTemplateId(instanceTemplateId string)
- func (r *UpdateInstanceTemplateRequest) SetName(name string)
- func (r *UpdateInstanceTemplateRequest) SetRegionId(regionId string)
- type UpdateInstanceTemplateResponse
- type UpdateInstanceTemplateResult
- type VerifyInstanceTemplateRequest
- func NewVerifyInstanceTemplateRequest(regionId string, instanceTemplateId string) *VerifyInstanceTemplateRequest
- func NewVerifyInstanceTemplateRequestWithAllParams(regionId string, instanceTemplateId string) *VerifyInstanceTemplateRequest
- func NewVerifyInstanceTemplateRequestWithoutParam() *VerifyInstanceTemplateRequest
- type VerifyInstanceTemplateResponse
- type VerifyInstanceTemplateResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssociateElasticIpRequest ¶
type AssociateElasticIpRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 云主机ID */ InstanceId string `json:"instanceId"` /* 弹性公网IP的ID */ ElasticIpId string `json:"elasticIpId"` }
func NewAssociateElasticIpRequest ¶
func NewAssociateElasticIpRequest( regionId string, instanceId string, elasticIpId string, ) *AssociateElasticIpRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * param elasticIpId: 弹性公网IP的ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewAssociateElasticIpRequestWithAllParams ¶ added in v1.0.4
func NewAssociateElasticIpRequestWithAllParams( regionId string, instanceId string, elasticIpId string, ) *AssociateElasticIpRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * param elasticIpId: 弹性公网IP的ID (Required)
func NewAssociateElasticIpRequestWithoutParam ¶ added in v1.0.4
func NewAssociateElasticIpRequestWithoutParam() *AssociateElasticIpRequest
This constructor has better compatible ability when API parameters changed
func (AssociateElasticIpRequest) GetRegionId ¶
func (r AssociateElasticIpRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*AssociateElasticIpRequest) SetElasticIpId ¶
func (r *AssociateElasticIpRequest) SetElasticIpId(elasticIpId string)
param elasticIpId: 弹性公网IP的ID(Required)
func (*AssociateElasticIpRequest) SetInstanceId ¶
func (r *AssociateElasticIpRequest) SetInstanceId(instanceId string)
param instanceId: 云主机ID(Required)
func (*AssociateElasticIpRequest) SetRegionId ¶
func (r *AssociateElasticIpRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type AssociateElasticIpResponse ¶
type AssociateElasticIpResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result AssociateElasticIpResult `json:"result"` }
type AssociateElasticIpResult ¶
type AssociateElasticIpResult struct { }
type AttachDiskRequest ¶
type AttachDiskRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 云主机ID */ InstanceId string `json:"instanceId"` /* 云硬盘ID */ DiskId string `json:"diskId"` /* 设备名[vda,vdb,vdc,vdd,vde,vdf,vdg,vdh,vdi,vmj,vdk,vdl,vdm],挂载系统盘时必传,且需传vda (Optional) */ DeviceName *string `json:"deviceName"` /* 随云主机删除自动删除此云硬盘,默认为False。仅按配置计费云硬盘支持修改此参数,包年包月云硬盘不可修改。 (Optional) */ AutoDelete *bool `json:"autoDelete"` }
func NewAttachDiskRequest ¶
func NewAttachDiskRequest( regionId string, instanceId string, diskId string, ) *AttachDiskRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * param diskId: 云硬盘ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewAttachDiskRequestWithAllParams ¶ added in v1.0.4
func NewAttachDiskRequestWithAllParams( regionId string, instanceId string, diskId string, deviceName *string, autoDelete *bool, ) *AttachDiskRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * param diskId: 云硬盘ID (Required) * param deviceName: 设备名[vda,vdb,vdc,vdd,vde,vdf,vdg,vdh,vdi,vmj,vdk,vdl,vdm],挂载系统盘时必传,且需传vda (Optional) * param autoDelete: 随云主机删除自动删除此云硬盘,默认为False。仅按配置计费云硬盘支持修改此参数,包年包月云硬盘不可修改。 (Optional)
func NewAttachDiskRequestWithoutParam ¶ added in v1.0.4
func NewAttachDiskRequestWithoutParam() *AttachDiskRequest
This constructor has better compatible ability when API parameters changed
func (AttachDiskRequest) GetRegionId ¶
func (r AttachDiskRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*AttachDiskRequest) SetAutoDelete ¶
func (r *AttachDiskRequest) SetAutoDelete(autoDelete bool)
param autoDelete: 随云主机删除自动删除此云硬盘,默认为False。仅按配置计费云硬盘支持修改此参数,包年包月云硬盘不可修改。(Optional)
func (*AttachDiskRequest) SetDeviceName ¶
func (r *AttachDiskRequest) SetDeviceName(deviceName string)
param deviceName: 设备名[vda,vdb,vdc,vdd,vde,vdf,vdg,vdh,vdi,vmj,vdk,vdl,vdm],挂载系统盘时必传,且需传vda(Optional)
func (*AttachDiskRequest) SetDiskId ¶
func (r *AttachDiskRequest) SetDiskId(diskId string)
param diskId: 云硬盘ID(Required)
func (*AttachDiskRequest) SetInstanceId ¶
func (r *AttachDiskRequest) SetInstanceId(instanceId string)
param instanceId: 云主机ID(Required)
func (*AttachDiskRequest) SetRegionId ¶
func (r *AttachDiskRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type AttachDiskResponse ¶
type AttachDiskResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result AttachDiskResult `json:"result"` }
type AttachDiskResult ¶
type AttachDiskResult struct { }
type AttachNetworkInterfaceRequest ¶ added in v1.0.5
type AttachNetworkInterfaceRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 云主机ID */ InstanceId string `json:"instanceId"` /* 弹性网卡ID */ NetworkInterfaceId string `json:"networkInterfaceId"` /* 随云主机删除而自动删除,默认为False (Optional) */ AutoDelete *bool `json:"autoDelete"` }
func NewAttachNetworkInterfaceRequest ¶ added in v1.0.5
func NewAttachNetworkInterfaceRequest( regionId string, instanceId string, networkInterfaceId string, ) *AttachNetworkInterfaceRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * param networkInterfaceId: 弹性网卡ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewAttachNetworkInterfaceRequestWithAllParams ¶ added in v1.0.5
func NewAttachNetworkInterfaceRequestWithAllParams( regionId string, instanceId string, networkInterfaceId string, autoDelete *bool, ) *AttachNetworkInterfaceRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * param networkInterfaceId: 弹性网卡ID (Required) * param autoDelete: 随云主机删除而自动删除,默认为False (Optional)
func NewAttachNetworkInterfaceRequestWithoutParam ¶ added in v1.0.5
func NewAttachNetworkInterfaceRequestWithoutParam() *AttachNetworkInterfaceRequest
This constructor has better compatible ability when API parameters changed
func (AttachNetworkInterfaceRequest) GetRegionId ¶ added in v1.0.5
func (r AttachNetworkInterfaceRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*AttachNetworkInterfaceRequest) SetAutoDelete ¶ added in v1.0.5
func (r *AttachNetworkInterfaceRequest) SetAutoDelete(autoDelete bool)
param autoDelete: 随云主机删除而自动删除,默认为False(Optional)
func (*AttachNetworkInterfaceRequest) SetInstanceId ¶ added in v1.0.5
func (r *AttachNetworkInterfaceRequest) SetInstanceId(instanceId string)
param instanceId: 云主机ID(Required)
func (*AttachNetworkInterfaceRequest) SetNetworkInterfaceId ¶ added in v1.0.5
func (r *AttachNetworkInterfaceRequest) SetNetworkInterfaceId(networkInterfaceId string)
param networkInterfaceId: 弹性网卡ID(Required)
func (*AttachNetworkInterfaceRequest) SetRegionId ¶ added in v1.0.5
func (r *AttachNetworkInterfaceRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type AttachNetworkInterfaceResponse ¶ added in v1.0.5
type AttachNetworkInterfaceResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result AttachNetworkInterfaceResult `json:"result"` }
type AttachNetworkInterfaceResult ¶ added in v1.0.5
type AttachNetworkInterfaceResult struct { }
type CopyImagesRequest ¶ added in v1.0.5
type CopyImagesRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 源镜像ID */ SourceImageIds []string `json:"sourceImageIds"` /* 目标区域 */ DestinationRegion string `json:"destinationRegion"` }
func NewCopyImagesRequest ¶ added in v1.0.5
func NewCopyImagesRequest( regionId string, sourceImageIds []string, destinationRegion string, ) *CopyImagesRequest
* param regionId: 地域ID (Required) * param sourceImageIds: 源镜像ID (Required) * param destinationRegion: 目标区域 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewCopyImagesRequestWithAllParams ¶ added in v1.0.5
func NewCopyImagesRequestWithAllParams( regionId string, sourceImageIds []string, destinationRegion string, ) *CopyImagesRequest
* param regionId: 地域ID (Required) * param sourceImageIds: 源镜像ID (Required) * param destinationRegion: 目标区域 (Required)
func NewCopyImagesRequestWithoutParam ¶ added in v1.0.5
func NewCopyImagesRequestWithoutParam() *CopyImagesRequest
This constructor has better compatible ability when API parameters changed
func (CopyImagesRequest) GetRegionId ¶ added in v1.0.5
func (r CopyImagesRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*CopyImagesRequest) SetDestinationRegion ¶ added in v1.0.5
func (r *CopyImagesRequest) SetDestinationRegion(destinationRegion string)
param destinationRegion: 目标区域(Required)
func (*CopyImagesRequest) SetRegionId ¶ added in v1.0.5
func (r *CopyImagesRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
func (*CopyImagesRequest) SetSourceImageIds ¶ added in v1.0.5
func (r *CopyImagesRequest) SetSourceImageIds(sourceImageIds []string)
param sourceImageIds: 源镜像ID(Required)
type CopyImagesResponse ¶ added in v1.0.5
type CopyImagesResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result CopyImagesResult `json:"result"` }
type CopyImagesResult ¶ added in v1.0.5
type CreateImageRequest ¶
type CreateImageRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 云主机ID */ InstanceId string `json:"instanceId"` /* 镜像名称,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 */ Name string `json:"name"` /* 镜像描述,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Optional) */ Description *string `json:"description"` /* 数据盘列表,可以在实例已挂载数据盘的基础上,额外增加新的快照、空盘、或排除云主机中的数据盘。 (Optional) */ DataDisks []vm.InstanceDiskAttachmentSpec `json:"dataDisks"` }
func NewCreateImageRequest ¶
func NewCreateImageRequest( regionId string, instanceId string, name string, ) *CreateImageRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * param name: 镜像名称,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewCreateImageRequestWithAllParams ¶ added in v1.0.4
func NewCreateImageRequestWithAllParams( regionId string, instanceId string, name string, description *string, dataDisks []vm.InstanceDiskAttachmentSpec, ) *CreateImageRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * param name: 镜像名称,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Required) * param description: 镜像描述,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Optional) * param dataDisks: 数据盘列表,可以在实例已挂载数据盘的基础上,额外增加新的快照、空盘、或排除云主机中的数据盘。 (Optional)
func NewCreateImageRequestWithoutParam ¶ added in v1.0.4
func NewCreateImageRequestWithoutParam() *CreateImageRequest
This constructor has better compatible ability when API parameters changed
func (CreateImageRequest) GetRegionId ¶
func (r CreateImageRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*CreateImageRequest) SetDataDisks ¶
func (r *CreateImageRequest) SetDataDisks(dataDisks []vm.InstanceDiskAttachmentSpec)
param dataDisks: 数据盘列表,可以在实例已挂载数据盘的基础上,额外增加新的快照、空盘、或排除云主机中的数据盘。(Optional)
func (*CreateImageRequest) SetDescription ¶
func (r *CreateImageRequest) SetDescription(description string)
param description: 镜像描述,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。(Optional)
func (*CreateImageRequest) SetInstanceId ¶
func (r *CreateImageRequest) SetInstanceId(instanceId string)
param instanceId: 云主机ID(Required)
func (*CreateImageRequest) SetName ¶
func (r *CreateImageRequest) SetName(name string)
param name: 镜像名称,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。(Required)
func (*CreateImageRequest) SetRegionId ¶
func (r *CreateImageRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type CreateImageResponse ¶
type CreateImageResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result CreateImageResult `json:"result"` }
type CreateImageResult ¶
type CreateImageResult struct {
ImageId string `json:"imageId"`
}
type CreateInstanceTemplateRequest ¶ added in v1.10.0
type CreateInstanceTemplateRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 启动模板的数据 */ InstanceTemplateData *vm.InstanceTemplateSpec `json:"instanceTemplateData"` /* 启动模板的名称,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 */ Name string `json:"name"` /* 启动模板的描述,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Optional) */ Description *string `json:"description"` }
func NewCreateInstanceTemplateRequest ¶ added in v1.10.0
func NewCreateInstanceTemplateRequest( regionId string, instanceTemplateData *vm.InstanceTemplateSpec, name string, ) *CreateInstanceTemplateRequest
* param regionId: 地域ID (Required) * param instanceTemplateData: 启动模板的数据 (Required) * param name: 启动模板的名称,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewCreateInstanceTemplateRequestWithAllParams ¶ added in v1.10.0
func NewCreateInstanceTemplateRequestWithAllParams( regionId string, instanceTemplateData *vm.InstanceTemplateSpec, name string, description *string, ) *CreateInstanceTemplateRequest
* param regionId: 地域ID (Required) * param instanceTemplateData: 启动模板的数据 (Required) * param name: 启动模板的名称,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Required) * param description: 启动模板的描述,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Optional)
func NewCreateInstanceTemplateRequestWithoutParam ¶ added in v1.10.0
func NewCreateInstanceTemplateRequestWithoutParam() *CreateInstanceTemplateRequest
This constructor has better compatible ability when API parameters changed
func (CreateInstanceTemplateRequest) GetRegionId ¶ added in v1.10.0
func (r CreateInstanceTemplateRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*CreateInstanceTemplateRequest) SetDescription ¶ added in v1.10.0
func (r *CreateInstanceTemplateRequest) SetDescription(description string)
param description: 启动模板的描述,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。(Optional)
func (*CreateInstanceTemplateRequest) SetInstanceTemplateData ¶ added in v1.10.0
func (r *CreateInstanceTemplateRequest) SetInstanceTemplateData(instanceTemplateData *vm.InstanceTemplateSpec)
param instanceTemplateData: 启动模板的数据(Required)
func (*CreateInstanceTemplateRequest) SetName ¶ added in v1.10.0
func (r *CreateInstanceTemplateRequest) SetName(name string)
param name: 启动模板的名称,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。(Required)
func (*CreateInstanceTemplateRequest) SetRegionId ¶ added in v1.10.0
func (r *CreateInstanceTemplateRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type CreateInstanceTemplateResponse ¶ added in v1.10.0
type CreateInstanceTemplateResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result CreateInstanceTemplateResult `json:"result"` }
type CreateInstanceTemplateResult ¶ added in v1.10.0
type CreateInstanceTemplateResult struct {
InstanceTemplateId string `json:"instanceTemplateId"`
}
type CreateInstancesRequest ¶
type CreateInstancesRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 描述云主机配置 */ InstanceSpec *vm.InstanceSpec `json:"instanceSpec"` /* 购买云主机的数量;取值范围:[1,100],默认为1。 (Optional) */ MaxCount *int `json:"maxCount"` /* 用于保证请求的幂等性。由客户端生成,长度不能超过64个字符。 (Optional) */ ClientToken *string `json:"clientToken"` }
func NewCreateInstancesRequest ¶
func NewCreateInstancesRequest( regionId string, instanceSpec *vm.InstanceSpec, ) *CreateInstancesRequest
* param regionId: 地域ID (Required) * param instanceSpec: 描述云主机配置 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewCreateInstancesRequestWithAllParams ¶ added in v1.0.4
func NewCreateInstancesRequestWithAllParams( regionId string, instanceSpec *vm.InstanceSpec, maxCount *int, clientToken *string, ) *CreateInstancesRequest
* param regionId: 地域ID (Required) * param instanceSpec: 描述云主机配置 (Required) * param maxCount: 购买云主机的数量;取值范围:[1,100],默认为1。 (Optional) * param clientToken: 用于保证请求的幂等性。由客户端生成,长度不能超过64个字符。 (Optional)
func NewCreateInstancesRequestWithoutParam ¶ added in v1.0.4
func NewCreateInstancesRequestWithoutParam() *CreateInstancesRequest
This constructor has better compatible ability when API parameters changed
func (CreateInstancesRequest) GetRegionId ¶
func (r CreateInstancesRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*CreateInstancesRequest) SetClientToken ¶ added in v1.0.5
func (r *CreateInstancesRequest) SetClientToken(clientToken string)
param clientToken: 用于保证请求的幂等性。由客户端生成,长度不能超过64个字符。
(Optional)
func (*CreateInstancesRequest) SetInstanceSpec ¶
func (r *CreateInstancesRequest) SetInstanceSpec(instanceSpec *vm.InstanceSpec)
param instanceSpec: 描述云主机配置
(Required)
func (*CreateInstancesRequest) SetMaxCount ¶
func (r *CreateInstancesRequest) SetMaxCount(maxCount int)
param maxCount: 购买云主机的数量;取值范围:[1,100],默认为1。
(Optional)
func (*CreateInstancesRequest) SetRegionId ¶
func (r *CreateInstancesRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type CreateInstancesResponse ¶
type CreateInstancesResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result CreateInstancesResult `json:"result"` }
type CreateInstancesResult ¶
type CreateInstancesResult struct {
InstanceIds []string `json:"instanceIds"`
}
type CreateKeypairRequest ¶ added in v1.1.0
type CreateKeypairRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 密钥对名称,需要全局唯一。只允许数字、大小写字母、下划线“_”及中划线“-”,不超过32个字符。 */ KeyName string `json:"keyName"` }
func NewCreateKeypairRequest ¶ added in v1.1.0
func NewCreateKeypairRequest( regionId string, keyName string, ) *CreateKeypairRequest
* param regionId: 地域ID (Required) * param keyName: 密钥对名称,需要全局唯一。只允许数字、大小写字母、下划线“_”及中划线“-”,不超过32个字符。 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewCreateKeypairRequestWithAllParams ¶ added in v1.1.0
func NewCreateKeypairRequestWithAllParams( regionId string, keyName string, ) *CreateKeypairRequest
* param regionId: 地域ID (Required) * param keyName: 密钥对名称,需要全局唯一。只允许数字、大小写字母、下划线“_”及中划线“-”,不超过32个字符。 (Required)
func NewCreateKeypairRequestWithoutParam ¶ added in v1.1.0
func NewCreateKeypairRequestWithoutParam() *CreateKeypairRequest
This constructor has better compatible ability when API parameters changed
func (CreateKeypairRequest) GetRegionId ¶ added in v1.1.0
func (r CreateKeypairRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*CreateKeypairRequest) SetKeyName ¶ added in v1.1.0
func (r *CreateKeypairRequest) SetKeyName(keyName string)
param keyName: 密钥对名称,需要全局唯一。只允许数字、大小写字母、下划线“_”及中划线“-”,不超过32个字符。
(Required)
func (*CreateKeypairRequest) SetRegionId ¶ added in v1.1.0
func (r *CreateKeypairRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type CreateKeypairResponse ¶ added in v1.1.0
type CreateKeypairResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result CreateKeypairResult `json:"result"` }
type CreateKeypairResult ¶ added in v1.1.0
type DeleteImageRequest ¶
type DeleteImageRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 镜像ID */ ImageId string `json:"imageId"` }
func NewDeleteImageRequest ¶
func NewDeleteImageRequest( regionId string, imageId string, ) *DeleteImageRequest
* param regionId: 地域ID (Required) * param imageId: 镜像ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDeleteImageRequestWithAllParams ¶ added in v1.0.4
func NewDeleteImageRequestWithAllParams( regionId string, imageId string, ) *DeleteImageRequest
* param regionId: 地域ID (Required) * param imageId: 镜像ID (Required)
func NewDeleteImageRequestWithoutParam ¶ added in v1.0.4
func NewDeleteImageRequestWithoutParam() *DeleteImageRequest
This constructor has better compatible ability when API parameters changed
func (DeleteImageRequest) GetRegionId ¶
func (r DeleteImageRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DeleteImageRequest) SetImageId ¶
func (r *DeleteImageRequest) SetImageId(imageId string)
param imageId: 镜像ID(Required)
func (*DeleteImageRequest) SetRegionId ¶
func (r *DeleteImageRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DeleteImageResponse ¶
type DeleteImageResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DeleteImageResult `json:"result"` }
type DeleteImageResult ¶
type DeleteImageResult struct { }
type DeleteInstanceRequest ¶
type DeleteInstanceRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 云主机ID */ InstanceId string `json:"instanceId"` }
func NewDeleteInstanceRequest ¶
func NewDeleteInstanceRequest( regionId string, instanceId string, ) *DeleteInstanceRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDeleteInstanceRequestWithAllParams ¶ added in v1.0.4
func NewDeleteInstanceRequestWithAllParams( regionId string, instanceId string, ) *DeleteInstanceRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required)
func NewDeleteInstanceRequestWithoutParam ¶ added in v1.0.4
func NewDeleteInstanceRequestWithoutParam() *DeleteInstanceRequest
This constructor has better compatible ability when API parameters changed
func (DeleteInstanceRequest) GetRegionId ¶
func (r DeleteInstanceRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DeleteInstanceRequest) SetInstanceId ¶
func (r *DeleteInstanceRequest) SetInstanceId(instanceId string)
param instanceId: 云主机ID(Required)
func (*DeleteInstanceRequest) SetRegionId ¶
func (r *DeleteInstanceRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DeleteInstanceResponse ¶
type DeleteInstanceResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DeleteInstanceResult `json:"result"` }
type DeleteInstanceResult ¶
type DeleteInstanceResult struct { }
type DeleteInstanceTemplateRequest ¶ added in v1.10.0
type DeleteInstanceTemplateRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 启动模板ID */ InstanceTemplateId string `json:"instanceTemplateId"` }
func NewDeleteInstanceTemplateRequest ¶ added in v1.10.0
func NewDeleteInstanceTemplateRequest( regionId string, instanceTemplateId string, ) *DeleteInstanceTemplateRequest
* param regionId: 地域ID (Required) * param instanceTemplateId: 启动模板ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDeleteInstanceTemplateRequestWithAllParams ¶ added in v1.10.0
func NewDeleteInstanceTemplateRequestWithAllParams( regionId string, instanceTemplateId string, ) *DeleteInstanceTemplateRequest
* param regionId: 地域ID (Required) * param instanceTemplateId: 启动模板ID (Required)
func NewDeleteInstanceTemplateRequestWithoutParam ¶ added in v1.10.0
func NewDeleteInstanceTemplateRequestWithoutParam() *DeleteInstanceTemplateRequest
This constructor has better compatible ability when API parameters changed
func (DeleteInstanceTemplateRequest) GetRegionId ¶ added in v1.10.0
func (r DeleteInstanceTemplateRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DeleteInstanceTemplateRequest) SetInstanceTemplateId ¶ added in v1.10.0
func (r *DeleteInstanceTemplateRequest) SetInstanceTemplateId(instanceTemplateId string)
param instanceTemplateId: 启动模板ID(Required)
func (*DeleteInstanceTemplateRequest) SetRegionId ¶ added in v1.10.0
func (r *DeleteInstanceTemplateRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DeleteInstanceTemplateResponse ¶ added in v1.10.0
type DeleteInstanceTemplateResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DeleteInstanceTemplateResult `json:"result"` }
type DeleteInstanceTemplateResult ¶ added in v1.10.0
type DeleteInstanceTemplateResult struct { }
type DeleteKeypairRequest ¶ added in v1.1.0
type DeleteKeypairRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 密钥名称 */ KeyName string `json:"keyName"` }
func NewDeleteKeypairRequest ¶ added in v1.1.0
func NewDeleteKeypairRequest( regionId string, keyName string, ) *DeleteKeypairRequest
* param regionId: 地域ID (Required) * param keyName: 密钥名称 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDeleteKeypairRequestWithAllParams ¶ added in v1.1.0
func NewDeleteKeypairRequestWithAllParams( regionId string, keyName string, ) *DeleteKeypairRequest
* param regionId: 地域ID (Required) * param keyName: 密钥名称 (Required)
func NewDeleteKeypairRequestWithoutParam ¶ added in v1.1.0
func NewDeleteKeypairRequestWithoutParam() *DeleteKeypairRequest
This constructor has better compatible ability when API parameters changed
func (DeleteKeypairRequest) GetRegionId ¶ added in v1.1.0
func (r DeleteKeypairRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DeleteKeypairRequest) SetKeyName ¶ added in v1.1.0
func (r *DeleteKeypairRequest) SetKeyName(keyName string)
param keyName: 密钥名称(Required)
func (*DeleteKeypairRequest) SetRegionId ¶ added in v1.1.0
func (r *DeleteKeypairRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DeleteKeypairResponse ¶ added in v1.1.0
type DeleteKeypairResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DeleteKeypairResult `json:"result"` }
type DeleteKeypairResult ¶ added in v1.1.0
type DeleteKeypairResult struct { }
type DescribeBriefInstancesRequest ¶ added in v1.25.0
type DescribeBriefInstancesRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 页码;默认为1 (Optional) */ PageNumber *int `json:"pageNumber"` /* 分页大小;默认为20;取值范围[10, 100] (Optional) */ PageSize *int `json:"pageSize"` /* Tag筛选条件 (Optional) */ Tags []vm.TagFilter `json:"tags"` /* instanceId - 云主机ID,精确匹配,支持多个 privateIpAddress - 主网卡内网主IP地址,模糊匹配,支持多个 az - 可用区,精确匹配,支持多个 vpcId - 私有网络ID,精确匹配,支持多个 status - 云主机状态,精确匹配,支持多个,<a href="http://docs.jdcloud.com/virtual-machines/api/vm_status">参考云主机状态</a> name - 云主机名称,模糊匹配,支持单个 imageId - 镜像ID,精确匹配,支持多个 networkInterfaceId - 弹性网卡ID,精确匹配,支持多个 subnetId - 子网ID,精确匹配,支持多个 agId - 使用可用组id,支持单个 faultDomain - 错误域,支持多个 dedicatedHostId - 专有宿主机ID,精确匹配,支持多个 dedicatedPoolId - 专有宿主机池ID,精确匹配,支持多个 instanceType - 实例规格,精确匹配,支持多个 elasticIpAddress - 公网IP地址,精确匹配,支持单个 (Optional) */ Filters []common.Filter `json:"filters"` }
func NewDescribeBriefInstancesRequest ¶ added in v1.25.0
func NewDescribeBriefInstancesRequest( regionId string, ) *DescribeBriefInstancesRequest
* param regionId: 地域ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeBriefInstancesRequestWithAllParams ¶ added in v1.25.0
func NewDescribeBriefInstancesRequestWithAllParams( regionId string, pageNumber *int, pageSize *int, tags []vm.TagFilter, filters []common.Filter, ) *DescribeBriefInstancesRequest
- param regionId: 地域ID (Required)
- param pageNumber: 页码;默认为1 (Optional)
- param pageSize: 分页大小;默认为20;取值范围[10, 100] (Optional)
- param tags: Tag筛选条件 (Optional)
- param filters: instanceId - 云主机ID,精确匹配,支持多个
privateIpAddress - 主网卡内网主IP地址,模糊匹配,支持多个 az - 可用区,精确匹配,支持多个 vpcId - 私有网络ID,精确匹配,支持多个 status - 云主机状态,精确匹配,支持多个,<a href="http://docs.jdcloud.com/virtual-machines/api/vm_status">参考云主机状态</a> name - 云主机名称,模糊匹配,支持单个 imageId - 镜像ID,精确匹配,支持多个 networkInterfaceId - 弹性网卡ID,精确匹配,支持多个 subnetId - 子网ID,精确匹配,支持多个 agId - 使用可用组id,支持单个 faultDomain - 错误域,支持多个 dedicatedHostId - 专有宿主机ID,精确匹配,支持多个 dedicatedPoolId - 专有宿主机池ID,精确匹配,支持多个 instanceType - 实例规格,精确匹配,支持多个 elasticIpAddress - 公网IP地址,精确匹配,支持单个
(Optional)
func NewDescribeBriefInstancesRequestWithoutParam ¶ added in v1.25.0
func NewDescribeBriefInstancesRequestWithoutParam() *DescribeBriefInstancesRequest
This constructor has better compatible ability when API parameters changed
func (DescribeBriefInstancesRequest) GetRegionId ¶ added in v1.25.0
func (r DescribeBriefInstancesRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeBriefInstancesRequest) SetFilters ¶ added in v1.25.0
func (r *DescribeBriefInstancesRequest) SetFilters(filters []common.Filter)
param filters: instanceId - 云主机ID,精确匹配,支持多个
privateIpAddress - 主网卡内网主IP地址,模糊匹配,支持多个 az - 可用区,精确匹配,支持多个 vpcId - 私有网络ID,精确匹配,支持多个 status - 云主机状态,精确匹配,支持多个,<a href="http://docs.jdcloud.com/virtual-machines/api/vm_status">参考云主机状态</a> name - 云主机名称,模糊匹配,支持单个 imageId - 镜像ID,精确匹配,支持多个 networkInterfaceId - 弹性网卡ID,精确匹配,支持多个 subnetId - 子网ID,精确匹配,支持多个 agId - 使用可用组id,支持单个 faultDomain - 错误域,支持多个 dedicatedHostId - 专有宿主机ID,精确匹配,支持多个 dedicatedPoolId - 专有宿主机池ID,精确匹配,支持多个 instanceType - 实例规格,精确匹配,支持多个 elasticIpAddress - 公网IP地址,精确匹配,支持单个 (Optional)
func (*DescribeBriefInstancesRequest) SetPageNumber ¶ added in v1.25.0
func (r *DescribeBriefInstancesRequest) SetPageNumber(pageNumber int)
param pageNumber: 页码;默认为1(Optional)
func (*DescribeBriefInstancesRequest) SetPageSize ¶ added in v1.25.0
func (r *DescribeBriefInstancesRequest) SetPageSize(pageSize int)
param pageSize: 分页大小;默认为20;取值范围[10, 100](Optional)
func (*DescribeBriefInstancesRequest) SetRegionId ¶ added in v1.25.0
func (r *DescribeBriefInstancesRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
func (*DescribeBriefInstancesRequest) SetTags ¶ added in v1.25.0
func (r *DescribeBriefInstancesRequest) SetTags(tags []vm.TagFilter)
param tags: Tag筛选条件(Optional)
type DescribeBriefInstancesResponse ¶ added in v1.25.0
type DescribeBriefInstancesResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeBriefInstancesResult `json:"result"` }
type DescribeBriefInstancesResult ¶ added in v1.25.0
type DescribeBriefInstancesResult struct { Instances []vm.BriefInstance `json:"instances"` TotalCount int `json:"totalCount"` }
type DescribeImageConstraintsBatchRequest ¶ added in v1.0.4
type DescribeImageConstraintsBatchRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 镜像ID列表 (Optional) */ Ids []string `json:"ids"` }
func NewDescribeImageConstraintsBatchRequest ¶ added in v1.0.4
func NewDescribeImageConstraintsBatchRequest( regionId string, ) *DescribeImageConstraintsBatchRequest
* param regionId: 地域ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeImageConstraintsBatchRequestWithAllParams ¶ added in v1.0.4
func NewDescribeImageConstraintsBatchRequestWithAllParams( regionId string, ids []string, ) *DescribeImageConstraintsBatchRequest
* param regionId: 地域ID (Required) * param ids: 镜像ID列表 (Optional)
func NewDescribeImageConstraintsBatchRequestWithoutParam ¶ added in v1.0.4
func NewDescribeImageConstraintsBatchRequestWithoutParam() *DescribeImageConstraintsBatchRequest
This constructor has better compatible ability when API parameters changed
func (DescribeImageConstraintsBatchRequest) GetRegionId ¶ added in v1.0.4
func (r DescribeImageConstraintsBatchRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeImageConstraintsBatchRequest) SetIds ¶ added in v1.0.4
func (r *DescribeImageConstraintsBatchRequest) SetIds(ids []string)
param ids: 镜像ID列表(Optional)
func (*DescribeImageConstraintsBatchRequest) SetRegionId ¶ added in v1.0.4
func (r *DescribeImageConstraintsBatchRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DescribeImageConstraintsBatchResponse ¶ added in v1.0.4
type DescribeImageConstraintsBatchResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeImageConstraintsBatchResult `json:"result"` }
type DescribeImageConstraintsBatchResult ¶ added in v1.0.4
type DescribeImageConstraintsBatchResult struct {
ImageConstraints []vm.ImageConstraint `json:"imageConstraints"`
}
type DescribeImageConstraintsRequest ¶
type DescribeImageConstraintsRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 镜像ID */ ImageId string `json:"imageId"` }
func NewDescribeImageConstraintsRequest ¶
func NewDescribeImageConstraintsRequest( regionId string, imageId string, ) *DescribeImageConstraintsRequest
* param regionId: 地域ID (Required) * param imageId: 镜像ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeImageConstraintsRequestWithAllParams ¶ added in v1.0.4
func NewDescribeImageConstraintsRequestWithAllParams( regionId string, imageId string, ) *DescribeImageConstraintsRequest
* param regionId: 地域ID (Required) * param imageId: 镜像ID (Required)
func NewDescribeImageConstraintsRequestWithoutParam ¶ added in v1.0.4
func NewDescribeImageConstraintsRequestWithoutParam() *DescribeImageConstraintsRequest
This constructor has better compatible ability when API parameters changed
func (DescribeImageConstraintsRequest) GetRegionId ¶
func (r DescribeImageConstraintsRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeImageConstraintsRequest) SetImageId ¶
func (r *DescribeImageConstraintsRequest) SetImageId(imageId string)
param imageId: 镜像ID(Required)
func (*DescribeImageConstraintsRequest) SetRegionId ¶
func (r *DescribeImageConstraintsRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DescribeImageConstraintsResponse ¶
type DescribeImageConstraintsResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeImageConstraintsResult `json:"result"` }
type DescribeImageConstraintsResult ¶
type DescribeImageConstraintsResult struct {
ImageConstraints vm.ImageConstraint `json:"imageConstraints"`
}
type DescribeImageMembersRequest ¶
type DescribeImageMembersRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 镜像ID */ ImageId string `json:"imageId"` }
func NewDescribeImageMembersRequest ¶
func NewDescribeImageMembersRequest( regionId string, imageId string, ) *DescribeImageMembersRequest
* param regionId: 地域ID (Required) * param imageId: 镜像ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeImageMembersRequestWithAllParams ¶ added in v1.0.4
func NewDescribeImageMembersRequestWithAllParams( regionId string, imageId string, ) *DescribeImageMembersRequest
* param regionId: 地域ID (Required) * param imageId: 镜像ID (Required)
func NewDescribeImageMembersRequestWithoutParam ¶ added in v1.0.4
func NewDescribeImageMembersRequestWithoutParam() *DescribeImageMembersRequest
This constructor has better compatible ability when API parameters changed
func (DescribeImageMembersRequest) GetRegionId ¶
func (r DescribeImageMembersRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeImageMembersRequest) SetImageId ¶
func (r *DescribeImageMembersRequest) SetImageId(imageId string)
param imageId: 镜像ID(Required)
func (*DescribeImageMembersRequest) SetRegionId ¶
func (r *DescribeImageMembersRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DescribeImageMembersResponse ¶
type DescribeImageMembersResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeImageMembersResult `json:"result"` }
type DescribeImageMembersResult ¶
type DescribeImageMembersResult struct {
Pins []string `json:"pins"`
}
type DescribeImageRequest ¶
type DescribeImageRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 镜像ID */ ImageId string `json:"imageId"` }
func NewDescribeImageRequest ¶
func NewDescribeImageRequest( regionId string, imageId string, ) *DescribeImageRequest
* param regionId: 地域ID (Required) * param imageId: 镜像ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeImageRequestWithAllParams ¶ added in v1.0.4
func NewDescribeImageRequestWithAllParams( regionId string, imageId string, ) *DescribeImageRequest
* param regionId: 地域ID (Required) * param imageId: 镜像ID (Required)
func NewDescribeImageRequestWithoutParam ¶ added in v1.0.4
func NewDescribeImageRequestWithoutParam() *DescribeImageRequest
This constructor has better compatible ability when API parameters changed
func (DescribeImageRequest) GetRegionId ¶
func (r DescribeImageRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeImageRequest) SetImageId ¶
func (r *DescribeImageRequest) SetImageId(imageId string)
param imageId: 镜像ID(Required)
func (*DescribeImageRequest) SetRegionId ¶
func (r *DescribeImageRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DescribeImageResponse ¶
type DescribeImageResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeImageResult `json:"result"` }
type DescribeImageResult ¶
type DescribeImagesRequest ¶
type DescribeImagesRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 镜像来源,如果没有指定ids参数,此参数必传;取值范围:public、shared、thirdparty、private、community (Optional) */ ImageSource *string `json:"imageSource"` /* 产品线标识,非必传,不传的时候返回全部产品线镜像 (Optional) */ ServiceCode *string `json:"serviceCode"` /* 是否下线,默认值为false;imageSource为public或者thirdparty时,此参数才有意义,其它情况下此参数无效;指定镜像ID查询时,此参数无效 (Optional) */ Offline *bool `json:"offline"` /* 操作系统平台,取值范围:Windows Server、CentOS、Ubuntu (Optional) */ Platform *string `json:"platform"` /* 镜像ID列表,如果指定了此参数,其它参数可为空 (Optional) */ Ids []string `json:"ids"` /* 镜像支持的系统盘类型,[localDisk,cloudDisk] (Optional) */ RootDeviceType *string `json:"rootDeviceType"` /* 镜像的使用权限[all, specifiedUsers,ownerOnly],可选参数,仅当imageSource取值private时有效 (Optional) */ LaunchPermission *string `json:"launchPermission"` /* <a href="http://docs.jdcloud.com/virtual-machines/api/image_status">参考镜像状态</a> (Optional) */ Status *string `json:"status"` /* 页码;默认为1 (Optional) */ PageNumber *int `json:"pageNumber"` /* 分页大小;默认为20;取值范围[10, 100] (Optional) */ PageSize *int `json:"pageSize"` }
func NewDescribeImagesRequest ¶
func NewDescribeImagesRequest( regionId string, ) *DescribeImagesRequest
* param regionId: 地域ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeImagesRequestWithAllParams ¶ added in v1.0.4
func NewDescribeImagesRequestWithAllParams( regionId string, imageSource *string, serviceCode *string, offline *bool, platform *string, ids []string, rootDeviceType *string, launchPermission *string, status *string, pageNumber *int, pageSize *int, ) *DescribeImagesRequest
* param regionId: 地域ID (Required) * param imageSource: 镜像来源,如果没有指定ids参数,此参数必传;取值范围:public、shared、thirdparty、private、community (Optional) * param serviceCode: 产品线标识,非必传,不传的时候返回全部产品线镜像 (Optional) * param offline: 是否下线,默认值为false;imageSource为public或者thirdparty时,此参数才有意义,其它情况下此参数无效;指定镜像ID查询时,此参数无效 (Optional) * param platform: 操作系统平台,取值范围:Windows Server、CentOS、Ubuntu (Optional) * param ids: 镜像ID列表,如果指定了此参数,其它参数可为空 (Optional) * param rootDeviceType: 镜像支持的系统盘类型,[localDisk,cloudDisk] (Optional) * param launchPermission: 镜像的使用权限[all, specifiedUsers,ownerOnly],可选参数,仅当imageSource取值private时有效 (Optional) * param status: <a href="http://docs.jdcloud.com/virtual-machines/api/image_status">参考镜像状态</a> (Optional) * param pageNumber: 页码;默认为1 (Optional) * param pageSize: 分页大小;默认为20;取值范围[10, 100] (Optional)
func NewDescribeImagesRequestWithoutParam ¶ added in v1.0.4
func NewDescribeImagesRequestWithoutParam() *DescribeImagesRequest
This constructor has better compatible ability when API parameters changed
func (DescribeImagesRequest) GetRegionId ¶
func (r DescribeImagesRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeImagesRequest) SetIds ¶
func (r *DescribeImagesRequest) SetIds(ids []string)
param ids: 镜像ID列表,如果指定了此参数,其它参数可为空(Optional)
func (*DescribeImagesRequest) SetImageSource ¶
func (r *DescribeImagesRequest) SetImageSource(imageSource string)
param imageSource: 镜像来源,如果没有指定ids参数,此参数必传;取值范围:public、shared、thirdparty、private、community(Optional)
func (*DescribeImagesRequest) SetLaunchPermission ¶ added in v1.13.0
func (r *DescribeImagesRequest) SetLaunchPermission(launchPermission string)
param launchPermission: 镜像的使用权限[all, specifiedUsers,ownerOnly],可选参数,仅当imageSource取值private时有效(Optional)
func (*DescribeImagesRequest) SetOffline ¶ added in v1.25.0
func (r *DescribeImagesRequest) SetOffline(offline bool)
param offline: 是否下线,默认值为false;imageSource为public或者thirdparty时,此参数才有意义,其它情况下此参数无效;指定镜像ID查询时,此参数无效(Optional)
func (*DescribeImagesRequest) SetPageNumber ¶ added in v1.0.5
func (r *DescribeImagesRequest) SetPageNumber(pageNumber int)
param pageNumber: 页码;默认为1(Optional)
func (*DescribeImagesRequest) SetPageSize ¶ added in v1.0.5
func (r *DescribeImagesRequest) SetPageSize(pageSize int)
param pageSize: 分页大小;默认为20;取值范围[10, 100](Optional)
func (*DescribeImagesRequest) SetPlatform ¶
func (r *DescribeImagesRequest) SetPlatform(platform string)
param platform: 操作系统平台,取值范围:Windows Server、CentOS、Ubuntu(Optional)
func (*DescribeImagesRequest) SetRegionId ¶
func (r *DescribeImagesRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
func (*DescribeImagesRequest) SetRootDeviceType ¶ added in v1.0.5
func (r *DescribeImagesRequest) SetRootDeviceType(rootDeviceType string)
param rootDeviceType: 镜像支持的系统盘类型,[localDisk,cloudDisk](Optional)
func (*DescribeImagesRequest) SetServiceCode ¶ added in v1.25.0
func (r *DescribeImagesRequest) SetServiceCode(serviceCode string)
param serviceCode: 产品线标识,非必传,不传的时候返回全部产品线镜像(Optional)
func (*DescribeImagesRequest) SetStatus ¶ added in v1.0.5
func (r *DescribeImagesRequest) SetStatus(status string)
param status: <a href="http://docs.jdcloud.com/virtual-machines/api/image_status">参考镜像状态</a>(Optional)
type DescribeImagesResponse ¶
type DescribeImagesResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeImagesResult `json:"result"` }
type DescribeImagesResult ¶
type DescribeInstancePrivateIpAddressRequest ¶ added in v1.0.11
type DescribeInstancePrivateIpAddressRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 页码;默认为1 (Optional) */ PageNumber *int `json:"pageNumber"` /* 分页大小;默认为20;取值范围[10, 100] (Optional) */ PageSize *int `json:"pageSize"` /* instanceId - 云主机ID,精确匹配,支持多个 privateIpAddress - 主网卡内网主IP地址,模糊匹配,支持多个 vpcId - 私有网络ID,精确匹配,支持多个 status - 云主机状态,精确匹配,支持多个,<a href="http://docs.jdcloud.com/virtual-machines/api/vm_status">参考云主机状态</a> name - 云主机名称,模糊匹配,支持单个 imageId - 镜像ID,精确匹配,支持多个 networkInterfaceId - 弹性网卡ID,精确匹配,支持多个 subnetId - 子网ID,精确匹配,支持多个 chargeOnStopped - 停机不计费标志,keepCharging、stopCharging 或者 notApplicable (Optional) */ Filters []common.Filter `json:"filters"` }
func NewDescribeInstancePrivateIpAddressRequest ¶ added in v1.0.11
func NewDescribeInstancePrivateIpAddressRequest( regionId string, ) *DescribeInstancePrivateIpAddressRequest
* param regionId: 地域ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeInstancePrivateIpAddressRequestWithAllParams ¶ added in v1.0.11
func NewDescribeInstancePrivateIpAddressRequestWithAllParams( regionId string, pageNumber *int, pageSize *int, filters []common.Filter, ) *DescribeInstancePrivateIpAddressRequest
- param regionId: 地域ID (Required)
- param pageNumber: 页码;默认为1 (Optional)
- param pageSize: 分页大小;默认为20;取值范围[10, 100] (Optional)
- param filters: instanceId - 云主机ID,精确匹配,支持多个
privateIpAddress - 主网卡内网主IP地址,模糊匹配,支持多个 vpcId - 私有网络ID,精确匹配,支持多个 status - 云主机状态,精确匹配,支持多个,<a href="http://docs.jdcloud.com/virtual-machines/api/vm_status">参考云主机状态</a> name - 云主机名称,模糊匹配,支持单个 imageId - 镜像ID,精确匹配,支持多个 networkInterfaceId - 弹性网卡ID,精确匹配,支持多个 subnetId - 子网ID,精确匹配,支持多个 chargeOnStopped - 停机不计费标志,keepCharging、stopCharging 或者 notApplicable
(Optional)
func NewDescribeInstancePrivateIpAddressRequestWithoutParam ¶ added in v1.0.11
func NewDescribeInstancePrivateIpAddressRequestWithoutParam() *DescribeInstancePrivateIpAddressRequest
This constructor has better compatible ability when API parameters changed
func (DescribeInstancePrivateIpAddressRequest) GetRegionId ¶ added in v1.0.11
func (r DescribeInstancePrivateIpAddressRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeInstancePrivateIpAddressRequest) SetFilters ¶ added in v1.0.11
func (r *DescribeInstancePrivateIpAddressRequest) SetFilters(filters []common.Filter)
param filters: instanceId - 云主机ID,精确匹配,支持多个
privateIpAddress - 主网卡内网主IP地址,模糊匹配,支持多个 vpcId - 私有网络ID,精确匹配,支持多个 status - 云主机状态,精确匹配,支持多个,<a href="http://docs.jdcloud.com/virtual-machines/api/vm_status">参考云主机状态</a> name - 云主机名称,模糊匹配,支持单个 imageId - 镜像ID,精确匹配,支持多个 networkInterfaceId - 弹性网卡ID,精确匹配,支持多个 subnetId - 子网ID,精确匹配,支持多个 chargeOnStopped - 停机不计费标志,keepCharging、stopCharging 或者 notApplicable (Optional)
func (*DescribeInstancePrivateIpAddressRequest) SetPageNumber ¶ added in v1.0.11
func (r *DescribeInstancePrivateIpAddressRequest) SetPageNumber(pageNumber int)
param pageNumber: 页码;默认为1(Optional)
func (*DescribeInstancePrivateIpAddressRequest) SetPageSize ¶ added in v1.0.11
func (r *DescribeInstancePrivateIpAddressRequest) SetPageSize(pageSize int)
param pageSize: 分页大小;默认为20;取值范围[10, 100](Optional)
func (*DescribeInstancePrivateIpAddressRequest) SetRegionId ¶ added in v1.0.11
func (r *DescribeInstancePrivateIpAddressRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DescribeInstancePrivateIpAddressResponse ¶ added in v1.0.11
type DescribeInstancePrivateIpAddressResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeInstancePrivateIpAddressResult `json:"result"` }
type DescribeInstancePrivateIpAddressResult ¶ added in v1.0.11
type DescribeInstancePrivateIpAddressResult struct { InstancePrivateIpAddress []vm.InstancePrivateIpAddress `json:"instancePrivateIpAddress"` TotalCount int `json:"totalCount"` }
type DescribeInstanceRequest ¶
type DescribeInstanceRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 云主机ID */ InstanceId string `json:"instanceId"` }
func NewDescribeInstanceRequest ¶
func NewDescribeInstanceRequest( regionId string, instanceId string, ) *DescribeInstanceRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeInstanceRequestWithAllParams ¶ added in v1.0.4
func NewDescribeInstanceRequestWithAllParams( regionId string, instanceId string, ) *DescribeInstanceRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required)
func NewDescribeInstanceRequestWithoutParam ¶ added in v1.0.4
func NewDescribeInstanceRequestWithoutParam() *DescribeInstanceRequest
This constructor has better compatible ability when API parameters changed
func (DescribeInstanceRequest) GetRegionId ¶
func (r DescribeInstanceRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeInstanceRequest) SetInstanceId ¶
func (r *DescribeInstanceRequest) SetInstanceId(instanceId string)
param instanceId: 云主机ID(Required)
func (*DescribeInstanceRequest) SetRegionId ¶
func (r *DescribeInstanceRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DescribeInstanceResponse ¶
type DescribeInstanceResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeInstanceResult `json:"result"` }
type DescribeInstanceResult ¶
type DescribeInstanceStatusRequest ¶ added in v1.0.4
type DescribeInstanceStatusRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 页码;默认为1 (Optional) */ PageNumber *int `json:"pageNumber"` /* 分页大小;默认为20;取值范围[10, 100] (Optional) */ PageSize *int `json:"pageSize"` /* instanceId - 云主机ID,精确匹配,支持多个 privateIpAddress - 主网卡内网主IP地址,模糊匹配,支持多个 vpcId - 私有网络ID,精确匹配,支持多个 status - 云主机状态,精确匹配,支持多个,<a href="http://docs.jdcloud.com/virtual-machines/api/vm_status">参考云主机状态</a> name - 云主机名称,模糊匹配,支持单个 imageId - 镜像ID,精确匹配,支持多个 networkInterfaceId - 弹性网卡ID,精确匹配,支持多个 subnetId - 子网ID,精确匹配,支持多个 (Optional) */ Filters []common.Filter `json:"filters"` }
func NewDescribeInstanceStatusRequest ¶ added in v1.0.4
func NewDescribeInstanceStatusRequest( regionId string, ) *DescribeInstanceStatusRequest
* param regionId: 地域ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeInstanceStatusRequestWithAllParams ¶ added in v1.0.4
func NewDescribeInstanceStatusRequestWithAllParams( regionId string, pageNumber *int, pageSize *int, filters []common.Filter, ) *DescribeInstanceStatusRequest
- param regionId: 地域ID (Required)
- param pageNumber: 页码;默认为1 (Optional)
- param pageSize: 分页大小;默认为20;取值范围[10, 100] (Optional)
- param filters: instanceId - 云主机ID,精确匹配,支持多个
privateIpAddress - 主网卡内网主IP地址,模糊匹配,支持多个 vpcId - 私有网络ID,精确匹配,支持多个 status - 云主机状态,精确匹配,支持多个,<a href="http://docs.jdcloud.com/virtual-machines/api/vm_status">参考云主机状态</a> name - 云主机名称,模糊匹配,支持单个 imageId - 镜像ID,精确匹配,支持多个 networkInterfaceId - 弹性网卡ID,精确匹配,支持多个 subnetId - 子网ID,精确匹配,支持多个
(Optional)
func NewDescribeInstanceStatusRequestWithoutParam ¶ added in v1.0.4
func NewDescribeInstanceStatusRequestWithoutParam() *DescribeInstanceStatusRequest
This constructor has better compatible ability when API parameters changed
func (DescribeInstanceStatusRequest) GetRegionId ¶ added in v1.0.4
func (r DescribeInstanceStatusRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeInstanceStatusRequest) SetFilters ¶ added in v1.0.4
func (r *DescribeInstanceStatusRequest) SetFilters(filters []common.Filter)
param filters: instanceId - 云主机ID,精确匹配,支持多个
privateIpAddress - 主网卡内网主IP地址,模糊匹配,支持多个 vpcId - 私有网络ID,精确匹配,支持多个 status - 云主机状态,精确匹配,支持多个,<a href="http://docs.jdcloud.com/virtual-machines/api/vm_status">参考云主机状态</a> name - 云主机名称,模糊匹配,支持单个 imageId - 镜像ID,精确匹配,支持多个 networkInterfaceId - 弹性网卡ID,精确匹配,支持多个 subnetId - 子网ID,精确匹配,支持多个 (Optional)
func (*DescribeInstanceStatusRequest) SetPageNumber ¶ added in v1.0.4
func (r *DescribeInstanceStatusRequest) SetPageNumber(pageNumber int)
param pageNumber: 页码;默认为1(Optional)
func (*DescribeInstanceStatusRequest) SetPageSize ¶ added in v1.0.4
func (r *DescribeInstanceStatusRequest) SetPageSize(pageSize int)
param pageSize: 分页大小;默认为20;取值范围[10, 100](Optional)
func (*DescribeInstanceStatusRequest) SetRegionId ¶ added in v1.0.4
func (r *DescribeInstanceStatusRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DescribeInstanceStatusResponse ¶ added in v1.0.4
type DescribeInstanceStatusResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeInstanceStatusResult `json:"result"` }
type DescribeInstanceStatusResult ¶ added in v1.0.4
type DescribeInstanceStatusResult struct { InstanceStatuses []vm.InstanceStatus `json:"instanceStatuses"` TotalCount int `json:"totalCount"` }
type DescribeInstanceTemplateRequest ¶ added in v1.10.0
type DescribeInstanceTemplateRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 启动模板ID */ InstanceTemplateId string `json:"instanceTemplateId"` }
func NewDescribeInstanceTemplateRequest ¶ added in v1.10.0
func NewDescribeInstanceTemplateRequest( regionId string, instanceTemplateId string, ) *DescribeInstanceTemplateRequest
* param regionId: 地域ID (Required) * param instanceTemplateId: 启动模板ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeInstanceTemplateRequestWithAllParams ¶ added in v1.10.0
func NewDescribeInstanceTemplateRequestWithAllParams( regionId string, instanceTemplateId string, ) *DescribeInstanceTemplateRequest
* param regionId: 地域ID (Required) * param instanceTemplateId: 启动模板ID (Required)
func NewDescribeInstanceTemplateRequestWithoutParam ¶ added in v1.10.0
func NewDescribeInstanceTemplateRequestWithoutParam() *DescribeInstanceTemplateRequest
This constructor has better compatible ability when API parameters changed
func (DescribeInstanceTemplateRequest) GetRegionId ¶ added in v1.10.0
func (r DescribeInstanceTemplateRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeInstanceTemplateRequest) SetInstanceTemplateId ¶ added in v1.10.0
func (r *DescribeInstanceTemplateRequest) SetInstanceTemplateId(instanceTemplateId string)
param instanceTemplateId: 启动模板ID(Required)
func (*DescribeInstanceTemplateRequest) SetRegionId ¶ added in v1.10.0
func (r *DescribeInstanceTemplateRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DescribeInstanceTemplateResponse ¶ added in v1.10.0
type DescribeInstanceTemplateResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeInstanceTemplateResult `json:"result"` }
type DescribeInstanceTemplateResult ¶ added in v1.10.0
type DescribeInstanceTemplateResult struct {
InstanceTemplate vm.InstanceTemplate `json:"instanceTemplate"`
}
type DescribeInstanceTemplatesRequest ¶ added in v1.10.0
type DescribeInstanceTemplatesRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 页码;默认为1 (Optional) */ PageNumber *int `json:"pageNumber"` /* 分页大小;默认为20;取值范围[10, 100] (Optional) */ PageSize *int `json:"pageSize"` /* name - 启动模板名称,模糊匹配,支持多个 instanceTemplateId - 启动模板ID,精确匹配,支持多个 (Optional) */ Filters []common.Filter `json:"filters"` }
func NewDescribeInstanceTemplatesRequest ¶ added in v1.10.0
func NewDescribeInstanceTemplatesRequest( regionId string, ) *DescribeInstanceTemplatesRequest
* param regionId: 地域ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeInstanceTemplatesRequestWithAllParams ¶ added in v1.10.0
func NewDescribeInstanceTemplatesRequestWithAllParams( regionId string, pageNumber *int, pageSize *int, filters []common.Filter, ) *DescribeInstanceTemplatesRequest
- param regionId: 地域ID (Required)
- param pageNumber: 页码;默认为1 (Optional)
- param pageSize: 分页大小;默认为20;取值范围[10, 100] (Optional)
- param filters: name - 启动模板名称,模糊匹配,支持多个
instanceTemplateId - 启动模板ID,精确匹配,支持多个
(Optional)
func NewDescribeInstanceTemplatesRequestWithoutParam ¶ added in v1.10.0
func NewDescribeInstanceTemplatesRequestWithoutParam() *DescribeInstanceTemplatesRequest
This constructor has better compatible ability when API parameters changed
func (DescribeInstanceTemplatesRequest) GetRegionId ¶ added in v1.10.0
func (r DescribeInstanceTemplatesRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeInstanceTemplatesRequest) SetFilters ¶ added in v1.10.0
func (r *DescribeInstanceTemplatesRequest) SetFilters(filters []common.Filter)
param filters: name - 启动模板名称,模糊匹配,支持多个
instanceTemplateId - 启动模板ID,精确匹配,支持多个 (Optional)
func (*DescribeInstanceTemplatesRequest) SetPageNumber ¶ added in v1.10.0
func (r *DescribeInstanceTemplatesRequest) SetPageNumber(pageNumber int)
param pageNumber: 页码;默认为1(Optional)
func (*DescribeInstanceTemplatesRequest) SetPageSize ¶ added in v1.10.0
func (r *DescribeInstanceTemplatesRequest) SetPageSize(pageSize int)
param pageSize: 分页大小;默认为20;取值范围[10, 100](Optional)
func (*DescribeInstanceTemplatesRequest) SetRegionId ¶ added in v1.10.0
func (r *DescribeInstanceTemplatesRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DescribeInstanceTemplatesResponse ¶ added in v1.10.0
type DescribeInstanceTemplatesResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeInstanceTemplatesResult `json:"result"` }
type DescribeInstanceTemplatesResult ¶ added in v1.10.0
type DescribeInstanceTemplatesResult struct { InstanceTemplates []vm.InstanceTemplate `json:"instanceTemplates"` TotalCount int `json:"totalCount"` }
type DescribeInstanceTypesRequest ¶
type DescribeInstanceTypesRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 服务类型,取值为{vm、nc},vm代表虚机、nc代表原生容器 (Optional) */ ServiceName *string `json:"serviceName"` /* instanceTypes - 实例规格,精确匹配,支持多个 az - 可用区,精确匹配,支持多个 (Optional) */ Filters []common.Filter `json:"filters"` }
func NewDescribeInstanceTypesRequest ¶
func NewDescribeInstanceTypesRequest( regionId string, ) *DescribeInstanceTypesRequest
* param regionId: 地域ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeInstanceTypesRequestWithAllParams ¶ added in v1.0.4
func NewDescribeInstanceTypesRequestWithAllParams( regionId string, serviceName *string, filters []common.Filter, ) *DescribeInstanceTypesRequest
- param regionId: 地域ID (Required)
- param serviceName: 服务类型,取值为{vm、nc},vm代表虚机、nc代表原生容器 (Optional)
- param filters: instanceTypes - 实例规格,精确匹配,支持多个
az - 可用区,精确匹配,支持多个
(Optional)
func NewDescribeInstanceTypesRequestWithoutParam ¶ added in v1.0.4
func NewDescribeInstanceTypesRequestWithoutParam() *DescribeInstanceTypesRequest
This constructor has better compatible ability when API parameters changed
func (DescribeInstanceTypesRequest) GetRegionId ¶
func (r DescribeInstanceTypesRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeInstanceTypesRequest) SetFilters ¶
func (r *DescribeInstanceTypesRequest) SetFilters(filters []common.Filter)
param filters: instanceTypes - 实例规格,精确匹配,支持多个
az - 可用区,精确匹配,支持多个 (Optional)
func (*DescribeInstanceTypesRequest) SetRegionId ¶
func (r *DescribeInstanceTypesRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
func (*DescribeInstanceTypesRequest) SetServiceName ¶ added in v1.10.0
func (r *DescribeInstanceTypesRequest) SetServiceName(serviceName string)
param serviceName: 服务类型,取值为{vm、nc},vm代表虚机、nc代表原生容器(Optional)
type DescribeInstanceTypesResponse ¶
type DescribeInstanceTypesResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeInstanceTypesResult `json:"result"` }
type DescribeInstanceTypesResult ¶
type DescribeInstanceTypesResult struct { InstanceTypes []vm.InstanceType `json:"instanceTypes"` SpecificInstanceTypes []vm.InstanceType `json:"specificInstanceTypes"` TotalCount int `json:"totalCount"` }
type DescribeInstanceVncUrlRequest ¶
type DescribeInstanceVncUrlRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 云主机ID */ InstanceId string `json:"instanceId"` }
func NewDescribeInstanceVncUrlRequest ¶
func NewDescribeInstanceVncUrlRequest( regionId string, instanceId string, ) *DescribeInstanceVncUrlRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeInstanceVncUrlRequestWithAllParams ¶ added in v1.0.4
func NewDescribeInstanceVncUrlRequestWithAllParams( regionId string, instanceId string, ) *DescribeInstanceVncUrlRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required)
func NewDescribeInstanceVncUrlRequestWithoutParam ¶ added in v1.0.4
func NewDescribeInstanceVncUrlRequestWithoutParam() *DescribeInstanceVncUrlRequest
This constructor has better compatible ability when API parameters changed
func (DescribeInstanceVncUrlRequest) GetRegionId ¶
func (r DescribeInstanceVncUrlRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeInstanceVncUrlRequest) SetInstanceId ¶
func (r *DescribeInstanceVncUrlRequest) SetInstanceId(instanceId string)
param instanceId: 云主机ID(Required)
func (*DescribeInstanceVncUrlRequest) SetRegionId ¶
func (r *DescribeInstanceVncUrlRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DescribeInstanceVncUrlResponse ¶
type DescribeInstanceVncUrlResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeInstanceVncUrlResult `json:"result"` }
type DescribeInstanceVncUrlResult ¶
type DescribeInstanceVncUrlResult struct {
VncUrl string `json:"vncUrl"`
}
type DescribeInstancesRequest ¶
type DescribeInstancesRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 页码;默认为1 (Optional) */ PageNumber *int `json:"pageNumber"` /* 分页大小;默认为20;取值范围[10, 100] (Optional) */ PageSize *int `json:"pageSize"` /* instanceId - 云主机ID,精确匹配,支持多个 privateIpAddress - 主网卡内网主IP地址,模糊匹配,支持多个 az - 可用区,精确匹配,支持多个 vpcId - 私有网络ID,精确匹配,支持多个 status - 云主机状态,精确匹配,支持多个,<a href="http://docs.jdcloud.com/virtual-machines/api/vm_status">参考云主机状态</a> name - 云主机名称,模糊匹配,支持单个 imageId - 镜像ID,精确匹配,支持多个 networkInterfaceId - 弹性网卡ID,精确匹配,支持多个 subnetId - 子网ID,精确匹配,支持多个 agId - 使用可用组id,支持单个 faultDomain - 错误域,支持多个 dedicatedHostId - 专有宿主机ID,精确匹配,支持多个 dedicatedPoolId - 专有宿主机池ID,精确匹配,支持多个 instanceType - 实例规格,精确匹配,支持多个 elasticIpAddress - 公网IP地址,精确匹配,支持单个 (Optional) */ Filters []common.Filter `json:"filters"` }
func NewDescribeInstancesRequest ¶
func NewDescribeInstancesRequest( regionId string, ) *DescribeInstancesRequest
* param regionId: 地域ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeInstancesRequestWithAllParams ¶ added in v1.0.4
func NewDescribeInstancesRequestWithAllParams( regionId string, pageNumber *int, pageSize *int, filters []common.Filter, ) *DescribeInstancesRequest
- param regionId: 地域ID (Required)
- param pageNumber: 页码;默认为1 (Optional)
- param pageSize: 分页大小;默认为20;取值范围[10, 100] (Optional)
- param filters: instanceId - 云主机ID,精确匹配,支持多个
privateIpAddress - 主网卡内网主IP地址,模糊匹配,支持多个 az - 可用区,精确匹配,支持多个 vpcId - 私有网络ID,精确匹配,支持多个 status - 云主机状态,精确匹配,支持多个,<a href="http://docs.jdcloud.com/virtual-machines/api/vm_status">参考云主机状态</a> name - 云主机名称,模糊匹配,支持单个 imageId - 镜像ID,精确匹配,支持多个 networkInterfaceId - 弹性网卡ID,精确匹配,支持多个 subnetId - 子网ID,精确匹配,支持多个 agId - 使用可用组id,支持单个 faultDomain - 错误域,支持多个 dedicatedHostId - 专有宿主机ID,精确匹配,支持多个 dedicatedPoolId - 专有宿主机池ID,精确匹配,支持多个 instanceType - 实例规格,精确匹配,支持多个 elasticIpAddress - 公网IP地址,精确匹配,支持单个
(Optional)
func NewDescribeInstancesRequestWithoutParam ¶ added in v1.0.4
func NewDescribeInstancesRequestWithoutParam() *DescribeInstancesRequest
This constructor has better compatible ability when API parameters changed
func (DescribeInstancesRequest) GetRegionId ¶
func (r DescribeInstancesRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeInstancesRequest) SetFilters ¶
func (r *DescribeInstancesRequest) SetFilters(filters []common.Filter)
param filters: instanceId - 云主机ID,精确匹配,支持多个
privateIpAddress - 主网卡内网主IP地址,模糊匹配,支持多个 az - 可用区,精确匹配,支持多个 vpcId - 私有网络ID,精确匹配,支持多个 status - 云主机状态,精确匹配,支持多个,<a href="http://docs.jdcloud.com/virtual-machines/api/vm_status">参考云主机状态</a> name - 云主机名称,模糊匹配,支持单个 imageId - 镜像ID,精确匹配,支持多个 networkInterfaceId - 弹性网卡ID,精确匹配,支持多个 subnetId - 子网ID,精确匹配,支持多个 agId - 使用可用组id,支持单个 faultDomain - 错误域,支持多个 dedicatedHostId - 专有宿主机ID,精确匹配,支持多个 dedicatedPoolId - 专有宿主机池ID,精确匹配,支持多个 instanceType - 实例规格,精确匹配,支持多个 elasticIpAddress - 公网IP地址,精确匹配,支持单个 (Optional)
func (*DescribeInstancesRequest) SetPageNumber ¶
func (r *DescribeInstancesRequest) SetPageNumber(pageNumber int)
param pageNumber: 页码;默认为1(Optional)
func (*DescribeInstancesRequest) SetPageSize ¶
func (r *DescribeInstancesRequest) SetPageSize(pageSize int)
param pageSize: 分页大小;默认为20;取值范围[10, 100](Optional)
func (*DescribeInstancesRequest) SetRegionId ¶
func (r *DescribeInstancesRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DescribeInstancesResponse ¶
type DescribeInstancesResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeInstancesResult `json:"result"` }
type DescribeInstancesResult ¶
type DescribeKeypairsRequest ¶ added in v1.1.0
type DescribeKeypairsRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 页码;默认为1 (Optional) */ PageNumber *int `json:"pageNumber"` /* 分页大小;默认为20;取值范围[10, 100] (Optional) */ PageSize *int `json:"pageSize"` /* keyNames - 密钥对名称,精确匹配,支持多个 (Optional) */ Filters []common.Filter `json:"filters"` }
func NewDescribeKeypairsRequest ¶ added in v1.1.0
func NewDescribeKeypairsRequest( regionId string, ) *DescribeKeypairsRequest
* param regionId: 地域ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeKeypairsRequestWithAllParams ¶ added in v1.1.0
func NewDescribeKeypairsRequestWithAllParams( regionId string, pageNumber *int, pageSize *int, filters []common.Filter, ) *DescribeKeypairsRequest
* param regionId: 地域ID (Required) * param pageNumber: 页码;默认为1 (Optional) * param pageSize: 分页大小;默认为20;取值范围[10, 100] (Optional) * param filters: keyNames - 密钥对名称,精确匹配,支持多个 (Optional)
func NewDescribeKeypairsRequestWithoutParam ¶ added in v1.1.0
func NewDescribeKeypairsRequestWithoutParam() *DescribeKeypairsRequest
This constructor has better compatible ability when API parameters changed
func (DescribeKeypairsRequest) GetRegionId ¶ added in v1.1.0
func (r DescribeKeypairsRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeKeypairsRequest) SetFilters ¶ added in v1.1.0
func (r *DescribeKeypairsRequest) SetFilters(filters []common.Filter)
param filters: keyNames - 密钥对名称,精确匹配,支持多个
(Optional)
func (*DescribeKeypairsRequest) SetPageNumber ¶ added in v1.1.0
func (r *DescribeKeypairsRequest) SetPageNumber(pageNumber int)
param pageNumber: 页码;默认为1(Optional)
func (*DescribeKeypairsRequest) SetPageSize ¶ added in v1.1.0
func (r *DescribeKeypairsRequest) SetPageSize(pageSize int)
param pageSize: 分页大小;默认为20;取值范围[10, 100](Optional)
func (*DescribeKeypairsRequest) SetRegionId ¶ added in v1.1.0
func (r *DescribeKeypairsRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DescribeKeypairsResponse ¶ added in v1.1.0
type DescribeKeypairsResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeKeypairsResult `json:"result"` }
type DescribeKeypairsResult ¶ added in v1.1.0
type DescribeQuotasRequest ¶
type DescribeQuotasRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* resourceTypes - 资源类型,支持多个[instance,keypair,image,instanceTemplate,imageShare] (Optional) */ Filters []common.Filter `json:"filters"` /* 私有镜像Id,查询镜像共享(imageShare)配额时,此参数必传 (Optional) */ ImageId *string `json:"imageId"` }
func NewDescribeQuotasRequest ¶
func NewDescribeQuotasRequest( regionId string, ) *DescribeQuotasRequest
* param regionId: 地域ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeQuotasRequestWithAllParams ¶ added in v1.0.4
func NewDescribeQuotasRequestWithAllParams( regionId string, filters []common.Filter, imageId *string, ) *DescribeQuotasRequest
* param regionId: 地域ID (Required) * param filters: resourceTypes - 资源类型,支持多个[instance,keypair,image,instanceTemplate,imageShare] (Optional) * param imageId: 私有镜像Id,查询镜像共享(imageShare)配额时,此参数必传 (Optional)
func NewDescribeQuotasRequestWithoutParam ¶ added in v1.0.4
func NewDescribeQuotasRequestWithoutParam() *DescribeQuotasRequest
This constructor has better compatible ability when API parameters changed
func (DescribeQuotasRequest) GetRegionId ¶
func (r DescribeQuotasRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeQuotasRequest) SetFilters ¶
func (r *DescribeQuotasRequest) SetFilters(filters []common.Filter)
param filters: resourceTypes - 资源类型,支持多个[instance,keypair,image,instanceTemplate,imageShare]
(Optional)
func (*DescribeQuotasRequest) SetImageId ¶ added in v1.1.0
func (r *DescribeQuotasRequest) SetImageId(imageId string)
param imageId: 私有镜像Id,查询镜像共享(imageShare)配额时,此参数必传(Optional)
func (*DescribeQuotasRequest) SetRegionId ¶
func (r *DescribeQuotasRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DescribeQuotasResponse ¶
type DescribeQuotasResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeQuotasResult `json:"result"` }
type DescribeQuotasResult ¶
type DetachDiskRequest ¶
type DetachDiskRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 云主机ID */ InstanceId string `json:"instanceId"` /* 云硬盘ID */ DiskId string `json:"diskId"` /* 强制缷载,默认False。如果此参数传值为True,代表数据盘的IO会被强制断掉。 (Optional) */ Force *bool `json:"force"` }
func NewDetachDiskRequest ¶
func NewDetachDiskRequest( regionId string, instanceId string, diskId string, ) *DetachDiskRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * param diskId: 云硬盘ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDetachDiskRequestWithAllParams ¶ added in v1.0.4
func NewDetachDiskRequestWithAllParams( regionId string, instanceId string, diskId string, force *bool, ) *DetachDiskRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * param diskId: 云硬盘ID (Required) * param force: 强制缷载,默认False。如果此参数传值为True,代表数据盘的IO会被强制断掉。 (Optional)
func NewDetachDiskRequestWithoutParam ¶ added in v1.0.4
func NewDetachDiskRequestWithoutParam() *DetachDiskRequest
This constructor has better compatible ability when API parameters changed
func (DetachDiskRequest) GetRegionId ¶
func (r DetachDiskRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DetachDiskRequest) SetDiskId ¶
func (r *DetachDiskRequest) SetDiskId(diskId string)
param diskId: 云硬盘ID(Required)
func (*DetachDiskRequest) SetForce ¶
func (r *DetachDiskRequest) SetForce(force bool)
param force: 强制缷载,默认False。如果此参数传值为True,代表数据盘的IO会被强制断掉。(Optional)
func (*DetachDiskRequest) SetInstanceId ¶
func (r *DetachDiskRequest) SetInstanceId(instanceId string)
param instanceId: 云主机ID(Required)
func (*DetachDiskRequest) SetRegionId ¶
func (r *DetachDiskRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DetachDiskResponse ¶
type DetachDiskResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DetachDiskResult `json:"result"` }
type DetachDiskResult ¶
type DetachDiskResult struct { }
type DetachNetworkInterfaceRequest ¶ added in v1.0.5
type DetachNetworkInterfaceRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 云主机ID */ InstanceId string `json:"instanceId"` /* 弹性网卡ID */ NetworkInterfaceId string `json:"networkInterfaceId"` }
func NewDetachNetworkInterfaceRequest ¶ added in v1.0.5
func NewDetachNetworkInterfaceRequest( regionId string, instanceId string, networkInterfaceId string, ) *DetachNetworkInterfaceRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * param networkInterfaceId: 弹性网卡ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDetachNetworkInterfaceRequestWithAllParams ¶ added in v1.0.5
func NewDetachNetworkInterfaceRequestWithAllParams( regionId string, instanceId string, networkInterfaceId string, ) *DetachNetworkInterfaceRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * param networkInterfaceId: 弹性网卡ID (Required)
func NewDetachNetworkInterfaceRequestWithoutParam ¶ added in v1.0.5
func NewDetachNetworkInterfaceRequestWithoutParam() *DetachNetworkInterfaceRequest
This constructor has better compatible ability when API parameters changed
func (DetachNetworkInterfaceRequest) GetRegionId ¶ added in v1.0.5
func (r DetachNetworkInterfaceRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DetachNetworkInterfaceRequest) SetInstanceId ¶ added in v1.0.5
func (r *DetachNetworkInterfaceRequest) SetInstanceId(instanceId string)
param instanceId: 云主机ID(Required)
func (*DetachNetworkInterfaceRequest) SetNetworkInterfaceId ¶ added in v1.0.5
func (r *DetachNetworkInterfaceRequest) SetNetworkInterfaceId(networkInterfaceId string)
param networkInterfaceId: 弹性网卡ID(Required)
func (*DetachNetworkInterfaceRequest) SetRegionId ¶ added in v1.0.5
func (r *DetachNetworkInterfaceRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DetachNetworkInterfaceResponse ¶ added in v1.0.5
type DetachNetworkInterfaceResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DetachNetworkInterfaceResult `json:"result"` }
type DetachNetworkInterfaceResult ¶ added in v1.0.5
type DetachNetworkInterfaceResult struct { }
type DisassociateElasticIpRequest ¶
type DisassociateElasticIpRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 云主机ID */ InstanceId string `json:"instanceId"` /* 弹性公网IP的ID */ ElasticIpId string `json:"elasticIpId"` }
func NewDisassociateElasticIpRequest ¶
func NewDisassociateElasticIpRequest( regionId string, instanceId string, elasticIpId string, ) *DisassociateElasticIpRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * param elasticIpId: 弹性公网IP的ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDisassociateElasticIpRequestWithAllParams ¶ added in v1.0.4
func NewDisassociateElasticIpRequestWithAllParams( regionId string, instanceId string, elasticIpId string, ) *DisassociateElasticIpRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * param elasticIpId: 弹性公网IP的ID (Required)
func NewDisassociateElasticIpRequestWithoutParam ¶ added in v1.0.4
func NewDisassociateElasticIpRequestWithoutParam() *DisassociateElasticIpRequest
This constructor has better compatible ability when API parameters changed
func (DisassociateElasticIpRequest) GetRegionId ¶
func (r DisassociateElasticIpRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DisassociateElasticIpRequest) SetElasticIpId ¶
func (r *DisassociateElasticIpRequest) SetElasticIpId(elasticIpId string)
param elasticIpId: 弹性公网IP的ID(Required)
func (*DisassociateElasticIpRequest) SetInstanceId ¶
func (r *DisassociateElasticIpRequest) SetInstanceId(instanceId string)
param instanceId: 云主机ID(Required)
func (*DisassociateElasticIpRequest) SetRegionId ¶
func (r *DisassociateElasticIpRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DisassociateElasticIpResponse ¶
type DisassociateElasticIpResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DisassociateElasticIpResult `json:"result"` }
type DisassociateElasticIpResult ¶
type DisassociateElasticIpResult struct { }
type ExportImageRequest ¶ added in v1.25.0
type ExportImageRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 镜像ID */ ImageId string `json:"imageId"` /* 用户创建的服务角色名称 */ RoleName string `json:"roleName"` /* 存储导出镜像文件的oss bucket的域名,请填写以 https:// 开头的完整url */ OssUrl string `json:"ossUrl"` /* 导出镜像文件名前缀,仅支持英文字母和数字,不能超过32个字符 (Optional) */ OssPrefix *string `json:"ossPrefix"` /* 用户导出镜像的幂等性保证。每次导出请传入不同的值,如果传值与某次的clientToken相同,则返还同一个请求结果,不能超过64个字符 (Optional) */ ClientToken *string `json:"clientToken"` }
func NewExportImageRequest ¶ added in v1.25.0
func NewExportImageRequest( regionId string, imageId string, roleName string, ossUrl string, ) *ExportImageRequest
* param regionId: 地域ID (Required) * param imageId: 镜像ID (Required) * param roleName: 用户创建的服务角色名称 (Required) * param ossUrl: 存储导出镜像文件的oss bucket的域名,请填写以 https:// 开头的完整url (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewExportImageRequestWithAllParams ¶ added in v1.25.0
func NewExportImageRequestWithAllParams( regionId string, imageId string, roleName string, ossUrl string, ossPrefix *string, clientToken *string, ) *ExportImageRequest
* param regionId: 地域ID (Required) * param imageId: 镜像ID (Required) * param roleName: 用户创建的服务角色名称 (Required) * param ossUrl: 存储导出镜像文件的oss bucket的域名,请填写以 https:// 开头的完整url (Required) * param ossPrefix: 导出镜像文件名前缀,仅支持英文字母和数字,不能超过32个字符 (Optional) * param clientToken: 用户导出镜像的幂等性保证。每次导出请传入不同的值,如果传值与某次的clientToken相同,则返还同一个请求结果,不能超过64个字符 (Optional)
func NewExportImageRequestWithoutParam ¶ added in v1.25.0
func NewExportImageRequestWithoutParam() *ExportImageRequest
This constructor has better compatible ability when API parameters changed
func (ExportImageRequest) GetRegionId ¶ added in v1.25.0
func (r ExportImageRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ExportImageRequest) SetClientToken ¶ added in v1.25.0
func (r *ExportImageRequest) SetClientToken(clientToken string)
param clientToken: 用户导出镜像的幂等性保证。每次导出请传入不同的值,如果传值与某次的clientToken相同,则返还同一个请求结果,不能超过64个字符(Optional)
func (*ExportImageRequest) SetImageId ¶ added in v1.25.0
func (r *ExportImageRequest) SetImageId(imageId string)
param imageId: 镜像ID(Required)
func (*ExportImageRequest) SetOssPrefix ¶ added in v1.25.0
func (r *ExportImageRequest) SetOssPrefix(ossPrefix string)
param ossPrefix: 导出镜像文件名前缀,仅支持英文字母和数字,不能超过32个字符(Optional)
func (*ExportImageRequest) SetOssUrl ¶ added in v1.25.0
func (r *ExportImageRequest) SetOssUrl(ossUrl string)
param ossUrl: 存储导出镜像文件的oss bucket的域名,请填写以 https:// 开头的完整url(Required)
func (*ExportImageRequest) SetRegionId ¶ added in v1.25.0
func (r *ExportImageRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
func (*ExportImageRequest) SetRoleName ¶ added in v1.25.0
func (r *ExportImageRequest) SetRoleName(roleName string)
param roleName: 用户创建的服务角色名称(Required)
type ExportImageResponse ¶ added in v1.25.0
type ExportImageResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ExportImageResult `json:"result"` }
type ExportImageResult ¶ added in v1.25.0
type ExportImageResult struct {
ExportTaskId int `json:"exportTaskId"`
}
type ImageTasksRequest ¶ added in v1.10.0
type ImageTasksRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 任务种类。可选值:ImportImage, ExportImage */ TaskAction string `json:"taskAction"` /* 任务id (Optional) */ TaskIds []int `json:"taskIds"` /* 任务状态。可选值:pending,running,failed,finished (Optional) */ TaskStatus *string `json:"taskStatus"` /* 任务开始时间 (Optional) */ StartTime *string `json:"startTime"` /* 任务结束时间 (Optional) */ EndTime *string `json:"endTime"` /* 页码;默认为1 (Optional) */ PageNumber *int `json:"pageNumber"` /* 分页大小;默认为20;取值范围[10, 100] (Optional) */ PageSize *int `json:"pageSize"` }
func NewImageTasksRequest ¶ added in v1.10.0
func NewImageTasksRequest( regionId string, taskAction string, ) *ImageTasksRequest
* param regionId: 地域ID (Required) * param taskAction: 任务种类。可选值:ImportImage, ExportImage (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewImageTasksRequestWithAllParams ¶ added in v1.10.0
func NewImageTasksRequestWithAllParams( regionId string, taskAction string, taskIds []int, taskStatus *string, startTime *string, endTime *string, pageNumber *int, pageSize *int, ) *ImageTasksRequest
* param regionId: 地域ID (Required) * param taskAction: 任务种类。可选值:ImportImage, ExportImage (Required) * param taskIds: 任务id (Optional) * param taskStatus: 任务状态。可选值:pending,running,failed,finished (Optional) * param startTime: 任务开始时间 (Optional) * param endTime: 任务结束时间 (Optional) * param pageNumber: 页码;默认为1 (Optional) * param pageSize: 分页大小;默认为20;取值范围[10, 100] (Optional)
func NewImageTasksRequestWithoutParam ¶ added in v1.10.0
func NewImageTasksRequestWithoutParam() *ImageTasksRequest
This constructor has better compatible ability when API parameters changed
func (ImageTasksRequest) GetRegionId ¶ added in v1.10.0
func (r ImageTasksRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ImageTasksRequest) SetEndTime ¶ added in v1.10.0
func (r *ImageTasksRequest) SetEndTime(endTime string)
param endTime: 任务结束时间(Optional)
func (*ImageTasksRequest) SetPageNumber ¶ added in v1.10.0
func (r *ImageTasksRequest) SetPageNumber(pageNumber int)
param pageNumber: 页码;默认为1(Optional)
func (*ImageTasksRequest) SetPageSize ¶ added in v1.10.0
func (r *ImageTasksRequest) SetPageSize(pageSize int)
param pageSize: 分页大小;默认为20;取值范围[10, 100](Optional)
func (*ImageTasksRequest) SetRegionId ¶ added in v1.10.0
func (r *ImageTasksRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
func (*ImageTasksRequest) SetStartTime ¶ added in v1.10.0
func (r *ImageTasksRequest) SetStartTime(startTime string)
param startTime: 任务开始时间(Optional)
func (*ImageTasksRequest) SetTaskAction ¶ added in v1.10.0
func (r *ImageTasksRequest) SetTaskAction(taskAction string)
param taskAction: 任务种类。可选值:ImportImage, ExportImage(Required)
func (*ImageTasksRequest) SetTaskIds ¶ added in v1.10.0
func (r *ImageTasksRequest) SetTaskIds(taskIds []int)
param taskIds: 任务id(Optional)
func (*ImageTasksRequest) SetTaskStatus ¶ added in v1.10.0
func (r *ImageTasksRequest) SetTaskStatus(taskStatus string)
param taskStatus: 任务状态。可选值:pending,running,failed,finished(Optional)
type ImageTasksResponse ¶ added in v1.10.0
type ImageTasksResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ImageTasksResult `json:"result"` }
type ImageTasksResult ¶ added in v1.10.0
type ImportImageRequest ¶ added in v1.10.0
type ImportImageRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 系统架构,可选值:x86_64,i386 */ Architecture string `json:"architecture"` /* 操作系统,可选值:windows,linux */ OsType string `json:"osType"` /* 平台名称,可选值:CentOS,Ubuntu,Windows Server,Other Linux,Other Windows */ Platform string `json:"platform"` /* 磁盘格式,可选值:qcow2,vhd,vmdk,raw */ DiskFormat string `json:"diskFormat"` /* 以此镜像需要制作的系统盘的默认大小,单位GB。最小值40,最大值500,要求值是10的整数倍 */ SystemDiskSizeGB int `json:"systemDiskSizeGB"` /* 要导入镜像的对象存储外链地址 */ ImageUrl string `json:"imageUrl"` /* 镜像的操作系统版本 (Optional) */ OsVersion *string `json:"osVersion"` /* 导入镜像的自定义名称 */ ImageName string `json:"imageName"` /* 导入镜像的描述信息 (Optional) */ Description *string `json:"description"` /* 是否强制导入。强制导入则忽略镜像的合规性检测 (Optional) */ ForceImport *bool `json:"forceImport"` /* 用户导入镜像的幂等性保证。每次创建请传入不同的值,如果传值与某次的clientToken相同,则返还该次的请求结果 (Optional) */ ClientToken *string `json:"clientToken"` }
func NewImportImageRequest ¶ added in v1.10.0
func NewImportImageRequest( regionId string, architecture string, osType string, platform string, diskFormat string, systemDiskSizeGB int, imageUrl string, imageName string, ) *ImportImageRequest
* param regionId: 地域ID (Required) * param architecture: 系统架构,可选值:x86_64,i386 (Required) * param osType: 操作系统,可选值:windows,linux (Required) * param platform: 平台名称,可选值:CentOS,Ubuntu,Windows Server,Other Linux,Other Windows (Required) * param diskFormat: 磁盘格式,可选值:qcow2,vhd,vmdk,raw (Required) * param systemDiskSizeGB: 以此镜像需要制作的系统盘的默认大小,单位GB。最小值40,最大值500,要求值是10的整数倍 (Required) * param imageUrl: 要导入镜像的对象存储外链地址 (Required) * param imageName: 导入镜像的自定义名称 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewImportImageRequestWithAllParams ¶ added in v1.10.0
func NewImportImageRequestWithAllParams( regionId string, architecture string, osType string, platform string, diskFormat string, systemDiskSizeGB int, imageUrl string, osVersion *string, imageName string, description *string, forceImport *bool, clientToken *string, ) *ImportImageRequest
* param regionId: 地域ID (Required) * param architecture: 系统架构,可选值:x86_64,i386 (Required) * param osType: 操作系统,可选值:windows,linux (Required) * param platform: 平台名称,可选值:CentOS,Ubuntu,Windows Server,Other Linux,Other Windows (Required) * param diskFormat: 磁盘格式,可选值:qcow2,vhd,vmdk,raw (Required) * param systemDiskSizeGB: 以此镜像需要制作的系统盘的默认大小,单位GB。最小值40,最大值500,要求值是10的整数倍 (Required) * param imageUrl: 要导入镜像的对象存储外链地址 (Required) * param osVersion: 镜像的操作系统版本 (Optional) * param imageName: 导入镜像的自定义名称 (Required) * param description: 导入镜像的描述信息 (Optional) * param forceImport: 是否强制导入。强制导入则忽略镜像的合规性检测 (Optional) * param clientToken: 用户导入镜像的幂等性保证。每次创建请传入不同的值,如果传值与某次的clientToken相同,则返还该次的请求结果 (Optional)
func NewImportImageRequestWithoutParam ¶ added in v1.10.0
func NewImportImageRequestWithoutParam() *ImportImageRequest
This constructor has better compatible ability when API parameters changed
func (ImportImageRequest) GetRegionId ¶ added in v1.10.0
func (r ImportImageRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ImportImageRequest) SetArchitecture ¶ added in v1.10.0
func (r *ImportImageRequest) SetArchitecture(architecture string)
param architecture: 系统架构,可选值:x86_64,i386(Required)
func (*ImportImageRequest) SetClientToken ¶ added in v1.10.0
func (r *ImportImageRequest) SetClientToken(clientToken string)
param clientToken: 用户导入镜像的幂等性保证。每次创建请传入不同的值,如果传值与某次的clientToken相同,则返还该次的请求结果(Optional)
func (*ImportImageRequest) SetDescription ¶ added in v1.10.0
func (r *ImportImageRequest) SetDescription(description string)
param description: 导入镜像的描述信息(Optional)
func (*ImportImageRequest) SetDiskFormat ¶ added in v1.10.0
func (r *ImportImageRequest) SetDiskFormat(diskFormat string)
param diskFormat: 磁盘格式,可选值:qcow2,vhd,vmdk,raw(Required)
func (*ImportImageRequest) SetForceImport ¶ added in v1.10.0
func (r *ImportImageRequest) SetForceImport(forceImport bool)
param forceImport: 是否强制导入。强制导入则忽略镜像的合规性检测(Optional)
func (*ImportImageRequest) SetImageName ¶ added in v1.10.0
func (r *ImportImageRequest) SetImageName(imageName string)
param imageName: 导入镜像的自定义名称(Required)
func (*ImportImageRequest) SetImageUrl ¶ added in v1.10.0
func (r *ImportImageRequest) SetImageUrl(imageUrl string)
param imageUrl: 要导入镜像的对象存储外链地址(Required)
func (*ImportImageRequest) SetOsType ¶ added in v1.10.0
func (r *ImportImageRequest) SetOsType(osType string)
param osType: 操作系统,可选值:windows,linux(Required)
func (*ImportImageRequest) SetOsVersion ¶ added in v1.10.0
func (r *ImportImageRequest) SetOsVersion(osVersion string)
param osVersion: 镜像的操作系统版本(Optional)
func (*ImportImageRequest) SetPlatform ¶ added in v1.10.0
func (r *ImportImageRequest) SetPlatform(platform string)
param platform: 平台名称,可选值:CentOS,Ubuntu,Windows Server,Other Linux,Other Windows(Required)
func (*ImportImageRequest) SetRegionId ¶ added in v1.10.0
func (r *ImportImageRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
func (*ImportImageRequest) SetSystemDiskSizeGB ¶ added in v1.10.0
func (r *ImportImageRequest) SetSystemDiskSizeGB(systemDiskSizeGB int)
param systemDiskSizeGB: 以此镜像需要制作的系统盘的默认大小,单位GB。最小值40,最大值500,要求值是10的整数倍(Required)
type ImportImageResponse ¶ added in v1.10.0
type ImportImageResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ImportImageResult `json:"result"` }
type ImportImageResult ¶ added in v1.10.0
type ImportKeypairRequest ¶ added in v1.1.0
type ImportKeypairRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 密钥对名称,需要全局唯一。只允许数字、大小写字母、下划线“_”及中划线“-”,不超过32个字符。 */ KeyName string `json:"keyName"` /* 密钥对的公钥部分 */ PublicKey string `json:"publicKey"` }
func NewImportKeypairRequest ¶ added in v1.1.0
func NewImportKeypairRequest( regionId string, keyName string, publicKey string, ) *ImportKeypairRequest
* param regionId: 地域ID (Required) * param keyName: 密钥对名称,需要全局唯一。只允许数字、大小写字母、下划线“_”及中划线“-”,不超过32个字符。 (Required) * param publicKey: 密钥对的公钥部分 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewImportKeypairRequestWithAllParams ¶ added in v1.1.0
func NewImportKeypairRequestWithAllParams( regionId string, keyName string, publicKey string, ) *ImportKeypairRequest
* param regionId: 地域ID (Required) * param keyName: 密钥对名称,需要全局唯一。只允许数字、大小写字母、下划线“_”及中划线“-”,不超过32个字符。 (Required) * param publicKey: 密钥对的公钥部分 (Required)
func NewImportKeypairRequestWithoutParam ¶ added in v1.1.0
func NewImportKeypairRequestWithoutParam() *ImportKeypairRequest
This constructor has better compatible ability when API parameters changed
func (ImportKeypairRequest) GetRegionId ¶ added in v1.1.0
func (r ImportKeypairRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ImportKeypairRequest) SetKeyName ¶ added in v1.1.0
func (r *ImportKeypairRequest) SetKeyName(keyName string)
param keyName: 密钥对名称,需要全局唯一。只允许数字、大小写字母、下划线“_”及中划线“-”,不超过32个字符。
(Required)
func (*ImportKeypairRequest) SetPublicKey ¶ added in v1.1.0
func (r *ImportKeypairRequest) SetPublicKey(publicKey string)
param publicKey: 密钥对的公钥部分(Required)
func (*ImportKeypairRequest) SetRegionId ¶ added in v1.1.0
func (r *ImportKeypairRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type ImportKeypairResponse ¶ added in v1.1.0
type ImportKeypairResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ImportKeypairResult `json:"result"` }
type ImportKeypairResult ¶ added in v1.1.0
type ModifyImageAttributeRequest ¶ added in v1.0.4
type ModifyImageAttributeRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 镜像ID */ ImageId string `json:"imageId"` /* 名称,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Optional) */ Name *string `json:"name"` /* 描述,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Optional) */ Description *string `json:"description"` }
func NewModifyImageAttributeRequest ¶ added in v1.0.4
func NewModifyImageAttributeRequest( regionId string, imageId string, ) *ModifyImageAttributeRequest
* param regionId: 地域ID (Required) * param imageId: 镜像ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewModifyImageAttributeRequestWithAllParams ¶ added in v1.0.4
func NewModifyImageAttributeRequestWithAllParams( regionId string, imageId string, name *string, description *string, ) *ModifyImageAttributeRequest
* param regionId: 地域ID (Required) * param imageId: 镜像ID (Required) * param name: 名称,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Optional) * param description: 描述,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Optional)
func NewModifyImageAttributeRequestWithoutParam ¶ added in v1.0.4
func NewModifyImageAttributeRequestWithoutParam() *ModifyImageAttributeRequest
This constructor has better compatible ability when API parameters changed
func (ModifyImageAttributeRequest) GetRegionId ¶ added in v1.0.4
func (r ModifyImageAttributeRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ModifyImageAttributeRequest) SetDescription ¶ added in v1.0.4
func (r *ModifyImageAttributeRequest) SetDescription(description string)
param description: 描述,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。(Optional)
func (*ModifyImageAttributeRequest) SetImageId ¶ added in v1.0.4
func (r *ModifyImageAttributeRequest) SetImageId(imageId string)
param imageId: 镜像ID(Required)
func (*ModifyImageAttributeRequest) SetName ¶ added in v1.0.4
func (r *ModifyImageAttributeRequest) SetName(name string)
param name: 名称,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。(Optional)
func (*ModifyImageAttributeRequest) SetRegionId ¶ added in v1.0.4
func (r *ModifyImageAttributeRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type ModifyImageAttributeResponse ¶ added in v1.0.4
type ModifyImageAttributeResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ModifyImageAttributeResult `json:"result"` }
type ModifyImageAttributeResult ¶ added in v1.0.4
type ModifyImageAttributeResult struct { }
type ModifyInstanceAttributeRequest ¶
type ModifyInstanceAttributeRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 云主机ID */ InstanceId string `json:"instanceId"` /* 名称,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Optional) */ Name *string `json:"name"` /* 描述,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Optional) */ Description *string `json:"description"` }
func NewModifyInstanceAttributeRequest ¶
func NewModifyInstanceAttributeRequest( regionId string, instanceId string, ) *ModifyInstanceAttributeRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewModifyInstanceAttributeRequestWithAllParams ¶ added in v1.0.4
func NewModifyInstanceAttributeRequestWithAllParams( regionId string, instanceId string, name *string, description *string, ) *ModifyInstanceAttributeRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * param name: 名称,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Optional) * param description: 描述,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Optional)
func NewModifyInstanceAttributeRequestWithoutParam ¶ added in v1.0.4
func NewModifyInstanceAttributeRequestWithoutParam() *ModifyInstanceAttributeRequest
This constructor has better compatible ability when API parameters changed
func (ModifyInstanceAttributeRequest) GetRegionId ¶
func (r ModifyInstanceAttributeRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ModifyInstanceAttributeRequest) SetDescription ¶
func (r *ModifyInstanceAttributeRequest) SetDescription(description string)
param description: 描述,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。(Optional)
func (*ModifyInstanceAttributeRequest) SetInstanceId ¶
func (r *ModifyInstanceAttributeRequest) SetInstanceId(instanceId string)
param instanceId: 云主机ID(Required)
func (*ModifyInstanceAttributeRequest) SetName ¶
func (r *ModifyInstanceAttributeRequest) SetName(name string)
param name: 名称,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。(Optional)
func (*ModifyInstanceAttributeRequest) SetRegionId ¶
func (r *ModifyInstanceAttributeRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type ModifyInstanceAttributeResponse ¶
type ModifyInstanceAttributeResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ModifyInstanceAttributeResult `json:"result"` }
type ModifyInstanceAttributeResult ¶
type ModifyInstanceAttributeResult struct { }
type ModifyInstanceDiskAttributeRequest ¶ added in v1.0.5
type ModifyInstanceDiskAttributeRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 云主机ID */ InstanceId string `json:"instanceId"` /* 云硬盘列表 (Optional) */ DataDisks []vm.InstanceDiskAttribute `json:"dataDisks"` }
func NewModifyInstanceDiskAttributeRequest ¶ added in v1.0.5
func NewModifyInstanceDiskAttributeRequest( regionId string, instanceId string, ) *ModifyInstanceDiskAttributeRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewModifyInstanceDiskAttributeRequestWithAllParams ¶ added in v1.0.5
func NewModifyInstanceDiskAttributeRequestWithAllParams( regionId string, instanceId string, dataDisks []vm.InstanceDiskAttribute, ) *ModifyInstanceDiskAttributeRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * param dataDisks: 云硬盘列表 (Optional)
func NewModifyInstanceDiskAttributeRequestWithoutParam ¶ added in v1.0.5
func NewModifyInstanceDiskAttributeRequestWithoutParam() *ModifyInstanceDiskAttributeRequest
This constructor has better compatible ability when API parameters changed
func (ModifyInstanceDiskAttributeRequest) GetRegionId ¶ added in v1.0.5
func (r ModifyInstanceDiskAttributeRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ModifyInstanceDiskAttributeRequest) SetDataDisks ¶ added in v1.0.5
func (r *ModifyInstanceDiskAttributeRequest) SetDataDisks(dataDisks []vm.InstanceDiskAttribute)
param dataDisks: 云硬盘列表(Optional)
func (*ModifyInstanceDiskAttributeRequest) SetInstanceId ¶ added in v1.0.5
func (r *ModifyInstanceDiskAttributeRequest) SetInstanceId(instanceId string)
param instanceId: 云主机ID(Required)
func (*ModifyInstanceDiskAttributeRequest) SetRegionId ¶ added in v1.0.5
func (r *ModifyInstanceDiskAttributeRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type ModifyInstanceDiskAttributeResponse ¶ added in v1.0.5
type ModifyInstanceDiskAttributeResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ModifyInstanceDiskAttributeResult `json:"result"` }
type ModifyInstanceDiskAttributeResult ¶ added in v1.0.5
type ModifyInstanceDiskAttributeResult struct { }
type ModifyInstanceNetworkAttributeRequest ¶ added in v1.0.5
type ModifyInstanceNetworkAttributeRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 云主机ID */ InstanceId string `json:"instanceId"` /* 弹性网卡列表 (Optional) */ Networks []vm.InstanceNetworkAttribute `json:"networks"` }
func NewModifyInstanceNetworkAttributeRequest ¶ added in v1.0.5
func NewModifyInstanceNetworkAttributeRequest( regionId string, instanceId string, ) *ModifyInstanceNetworkAttributeRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewModifyInstanceNetworkAttributeRequestWithAllParams ¶ added in v1.0.5
func NewModifyInstanceNetworkAttributeRequestWithAllParams( regionId string, instanceId string, networks []vm.InstanceNetworkAttribute, ) *ModifyInstanceNetworkAttributeRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * param networks: 弹性网卡列表 (Optional)
func NewModifyInstanceNetworkAttributeRequestWithoutParam ¶ added in v1.0.5
func NewModifyInstanceNetworkAttributeRequestWithoutParam() *ModifyInstanceNetworkAttributeRequest
This constructor has better compatible ability when API parameters changed
func (ModifyInstanceNetworkAttributeRequest) GetRegionId ¶ added in v1.0.5
func (r ModifyInstanceNetworkAttributeRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ModifyInstanceNetworkAttributeRequest) SetInstanceId ¶ added in v1.0.5
func (r *ModifyInstanceNetworkAttributeRequest) SetInstanceId(instanceId string)
param instanceId: 云主机ID(Required)
func (*ModifyInstanceNetworkAttributeRequest) SetNetworks ¶ added in v1.0.5
func (r *ModifyInstanceNetworkAttributeRequest) SetNetworks(networks []vm.InstanceNetworkAttribute)
param networks: 弹性网卡列表(Optional)
func (*ModifyInstanceNetworkAttributeRequest) SetRegionId ¶ added in v1.0.5
func (r *ModifyInstanceNetworkAttributeRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type ModifyInstanceNetworkAttributeResponse ¶ added in v1.0.5
type ModifyInstanceNetworkAttributeResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ModifyInstanceNetworkAttributeResult `json:"result"` }
type ModifyInstanceNetworkAttributeResult ¶ added in v1.0.5
type ModifyInstanceNetworkAttributeResult struct { }
type ModifyInstancePasswordRequest ¶
type ModifyInstancePasswordRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 云主机ID */ InstanceId string `json:"instanceId"` /* 密码,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 */ Password string `json:"password"` }
func NewModifyInstancePasswordRequest ¶
func NewModifyInstancePasswordRequest( regionId string, instanceId string, password string, ) *ModifyInstancePasswordRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * param password: 密码,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewModifyInstancePasswordRequestWithAllParams ¶ added in v1.0.4
func NewModifyInstancePasswordRequestWithAllParams( regionId string, instanceId string, password string, ) *ModifyInstancePasswordRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * param password: 密码,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Required)
func NewModifyInstancePasswordRequestWithoutParam ¶ added in v1.0.4
func NewModifyInstancePasswordRequestWithoutParam() *ModifyInstancePasswordRequest
This constructor has better compatible ability when API parameters changed
func (ModifyInstancePasswordRequest) GetRegionId ¶
func (r ModifyInstancePasswordRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ModifyInstancePasswordRequest) SetInstanceId ¶
func (r *ModifyInstancePasswordRequest) SetInstanceId(instanceId string)
param instanceId: 云主机ID(Required)
func (*ModifyInstancePasswordRequest) SetPassword ¶
func (r *ModifyInstancePasswordRequest) SetPassword(password string)
param password: 密码,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。(Required)
func (*ModifyInstancePasswordRequest) SetRegionId ¶
func (r *ModifyInstancePasswordRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type ModifyInstancePasswordResponse ¶
type ModifyInstancePasswordResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ModifyInstancePasswordResult `json:"result"` }
type ModifyInstancePasswordResult ¶
type ModifyInstancePasswordResult struct { }
type RebootInstanceRequest ¶
type RebootInstanceRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 云主机ID */ InstanceId string `json:"instanceId"` }
func NewRebootInstanceRequest ¶
func NewRebootInstanceRequest( regionId string, instanceId string, ) *RebootInstanceRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewRebootInstanceRequestWithAllParams ¶ added in v1.0.4
func NewRebootInstanceRequestWithAllParams( regionId string, instanceId string, ) *RebootInstanceRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required)
func NewRebootInstanceRequestWithoutParam ¶ added in v1.0.4
func NewRebootInstanceRequestWithoutParam() *RebootInstanceRequest
This constructor has better compatible ability when API parameters changed
func (RebootInstanceRequest) GetRegionId ¶
func (r RebootInstanceRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*RebootInstanceRequest) SetInstanceId ¶
func (r *RebootInstanceRequest) SetInstanceId(instanceId string)
param instanceId: 云主机ID(Required)
func (*RebootInstanceRequest) SetRegionId ¶
func (r *RebootInstanceRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type RebootInstanceResponse ¶
type RebootInstanceResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result RebootInstanceResult `json:"result"` }
type RebootInstanceResult ¶
type RebootInstanceResult struct { }
type RebuildInstanceRequest ¶ added in v1.0.2
type RebuildInstanceRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 云主机ID */ InstanceId string `json:"instanceId"` /* 云主机密码,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 */ Password string `json:"password"` /* 镜像ID。可查询<a href="http://docs.jdcloud.com/virtual-machines/api/describeimages">DescribeImages</a>接口获得指定地域的镜像信息。 (Optional) */ ImageId *string `json:"imageId"` /* 密钥对名称;当前只支持一个。仅Linux系统支持指定。 (Optional) */ KeyNames []string `json:"keyNames"` }
func NewRebuildInstanceRequest ¶ added in v1.0.2
func NewRebuildInstanceRequest( regionId string, instanceId string, password string, ) *RebuildInstanceRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * param password: 云主机密码,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewRebuildInstanceRequestWithAllParams ¶ added in v1.0.4
func NewRebuildInstanceRequestWithAllParams( regionId string, instanceId string, password string, imageId *string, keyNames []string, ) *RebuildInstanceRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * param password: 云主机密码,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Required) * param imageId: 镜像ID。可查询<a href="http://docs.jdcloud.com/virtual-machines/api/describeimages">DescribeImages</a>接口获得指定地域的镜像信息。 (Optional) * param keyNames: 密钥对名称;当前只支持一个。仅Linux系统支持指定。 (Optional)
func NewRebuildInstanceRequestWithoutParam ¶ added in v1.0.4
func NewRebuildInstanceRequestWithoutParam() *RebuildInstanceRequest
This constructor has better compatible ability when API parameters changed
func (RebuildInstanceRequest) GetRegionId ¶ added in v1.0.2
func (r RebuildInstanceRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*RebuildInstanceRequest) SetImageId ¶ added in v1.0.2
func (r *RebuildInstanceRequest) SetImageId(imageId string)
param imageId: 镜像ID。可查询<a href="http://docs.jdcloud.com/virtual-machines/api/describeimages">DescribeImages</a>接口获得指定地域的镜像信息。(Optional)
func (*RebuildInstanceRequest) SetInstanceId ¶ added in v1.0.2
func (r *RebuildInstanceRequest) SetInstanceId(instanceId string)
param instanceId: 云主机ID(Required)
func (*RebuildInstanceRequest) SetKeyNames ¶ added in v1.0.2
func (r *RebuildInstanceRequest) SetKeyNames(keyNames []string)
param keyNames: 密钥对名称;当前只支持一个。仅Linux系统支持指定。(Optional)
func (*RebuildInstanceRequest) SetPassword ¶ added in v1.0.2
func (r *RebuildInstanceRequest) SetPassword(password string)
param password: 云主机密码,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。(Required)
func (*RebuildInstanceRequest) SetRegionId ¶ added in v1.0.2
func (r *RebuildInstanceRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type RebuildInstanceResponse ¶ added in v1.0.2
type RebuildInstanceResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result RebuildInstanceResult `json:"result"` }
type RebuildInstanceResult ¶ added in v1.0.2
type RebuildInstanceResult struct { }
type ReleaseImageRequest ¶ added in v1.13.0
type ReleaseImageRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 镜像ID */ ImageId string `json:"imageId"` }
func NewReleaseImageRequest ¶ added in v1.13.0
func NewReleaseImageRequest( regionId string, imageId string, ) *ReleaseImageRequest
* param regionId: 地域ID (Required) * param imageId: 镜像ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewReleaseImageRequestWithAllParams ¶ added in v1.13.0
func NewReleaseImageRequestWithAllParams( regionId string, imageId string, ) *ReleaseImageRequest
* param regionId: 地域ID (Required) * param imageId: 镜像ID (Required)
func NewReleaseImageRequestWithoutParam ¶ added in v1.13.0
func NewReleaseImageRequestWithoutParam() *ReleaseImageRequest
This constructor has better compatible ability when API parameters changed
func (ReleaseImageRequest) GetRegionId ¶ added in v1.13.0
func (r ReleaseImageRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ReleaseImageRequest) SetImageId ¶ added in v1.13.0
func (r *ReleaseImageRequest) SetImageId(imageId string)
param imageId: 镜像ID(Required)
func (*ReleaseImageRequest) SetRegionId ¶ added in v1.13.0
func (r *ReleaseImageRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type ReleaseImageResponse ¶ added in v1.13.0
type ReleaseImageResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ReleaseImageResult `json:"result"` }
type ReleaseImageResult ¶ added in v1.13.0
type ReleaseImageResult struct { }
type ResizeInstanceRequest ¶ added in v1.0.2
type ResizeInstanceRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 云主机ID */ InstanceId string `json:"instanceId"` /* 实例规格,可查询<a href="http://docs.jdcloud.com/virtual-machines/api/describeinstancetypes">DescribeInstanceTypes</a>接口获得指定地域或可用区的规格信息。 */ InstanceType string `json:"instanceType"` /* 是否强制调配,默认为false;如果指定为true, 将会清除本地数据盘。 (Optional) */ Force *bool `json:"force"` }
func NewResizeInstanceRequest ¶ added in v1.0.2
func NewResizeInstanceRequest( regionId string, instanceId string, instanceType string, ) *ResizeInstanceRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * param instanceType: 实例规格,可查询<a href="http://docs.jdcloud.com/virtual-machines/api/describeinstancetypes">DescribeInstanceTypes</a>接口获得指定地域或可用区的规格信息。 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewResizeInstanceRequestWithAllParams ¶ added in v1.0.4
func NewResizeInstanceRequestWithAllParams( regionId string, instanceId string, instanceType string, force *bool, ) *ResizeInstanceRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * param instanceType: 实例规格,可查询<a href="http://docs.jdcloud.com/virtual-machines/api/describeinstancetypes">DescribeInstanceTypes</a>接口获得指定地域或可用区的规格信息。 (Required) * param force: 是否强制调配,默认为false;如果指定为true, 将会清除本地数据盘。 (Optional)
func NewResizeInstanceRequestWithoutParam ¶ added in v1.0.4
func NewResizeInstanceRequestWithoutParam() *ResizeInstanceRequest
This constructor has better compatible ability when API parameters changed
func (ResizeInstanceRequest) GetRegionId ¶ added in v1.0.2
func (r ResizeInstanceRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ResizeInstanceRequest) SetForce ¶ added in v1.25.0
func (r *ResizeInstanceRequest) SetForce(force bool)
param force: 是否强制调配,默认为false;如果指定为true, 将会清除本地数据盘。(Optional)
func (*ResizeInstanceRequest) SetInstanceId ¶ added in v1.0.2
func (r *ResizeInstanceRequest) SetInstanceId(instanceId string)
param instanceId: 云主机ID(Required)
func (*ResizeInstanceRequest) SetInstanceType ¶ added in v1.0.2
func (r *ResizeInstanceRequest) SetInstanceType(instanceType string)
param instanceType: 实例规格,可查询<a href="http://docs.jdcloud.com/virtual-machines/api/describeinstancetypes">DescribeInstanceTypes</a>接口获得指定地域或可用区的规格信息。(Required)
func (*ResizeInstanceRequest) SetRegionId ¶ added in v1.0.2
func (r *ResizeInstanceRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type ResizeInstanceResponse ¶ added in v1.0.2
type ResizeInstanceResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ResizeInstanceResult `json:"result"` }
type ResizeInstanceResult ¶ added in v1.0.2
type ResizeInstanceResult struct { }
type ShareImageRequest ¶
type ShareImageRequest struct { string `json:"regionId"` ImageId string `json:"imageId"` Pins []string `json:"pins"` }RegionId
func NewShareImageRequest ¶
func NewShareImageRequest( regionId string, imageId string, ) *ShareImageRequest
* param regionId: 地域ID (Required) * param imageId: 镜像ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewShareImageRequestWithAllParams ¶ added in v1.0.4
func NewShareImageRequestWithAllParams( regionId string, imageId string, pins []string, ) *ShareImageRequest
* param regionId: 地域ID (Required) * param imageId: 镜像ID (Required) * param pins: 需要共享的帐户 (Optional)
func NewShareImageRequestWithoutParam ¶ added in v1.0.4
func NewShareImageRequestWithoutParam() *ShareImageRequest
This constructor has better compatible ability when API parameters changed
func (ShareImageRequest) GetRegionId ¶
func (r ShareImageRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ShareImageRequest) SetImageId ¶
func (r *ShareImageRequest) SetImageId(imageId string)
param imageId: 镜像ID(Required)
func (*ShareImageRequest) SetPins ¶
func (r *ShareImageRequest) SetPins(pins []string)
param pins: 需要共享的帐户(Optional)
func (*ShareImageRequest) SetRegionId ¶
func (r *ShareImageRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type ShareImageResponse ¶
type ShareImageResponse struct {}
type ShareImageResult ¶
type ShareImageResult struct { }
type StartInstanceRequest ¶
type StartInstanceRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 云主机ID */ InstanceId string `json:"instanceId"` }
func NewStartInstanceRequest ¶
func NewStartInstanceRequest( regionId string, instanceId string, ) *StartInstanceRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewStartInstanceRequestWithAllParams ¶ added in v1.0.4
func NewStartInstanceRequestWithAllParams( regionId string, instanceId string, ) *StartInstanceRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required)
func NewStartInstanceRequestWithoutParam ¶ added in v1.0.4
func NewStartInstanceRequestWithoutParam() *StartInstanceRequest
This constructor has better compatible ability when API parameters changed
func (StartInstanceRequest) GetRegionId ¶
func (r StartInstanceRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*StartInstanceRequest) SetInstanceId ¶
func (r *StartInstanceRequest) SetInstanceId(instanceId string)
param instanceId: 云主机ID(Required)
func (*StartInstanceRequest) SetRegionId ¶
func (r *StartInstanceRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type StartInstanceResponse ¶
type StartInstanceResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result StartInstanceResult `json:"result"` }
type StartInstanceResult ¶
type StartInstanceResult struct { }
type StopInstanceRequest ¶
type StopInstanceRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 云主机ID */ InstanceId string `json:"instanceId"` /* 关机模式,只支持云盘做系统盘的按配置计费云主机keepCharging:关机后继续计费;stopCharging:关机后停止计费。 (Optional) */ ChargeOnStopped *string `json:"chargeOnStopped"` }
func NewStopInstanceRequest ¶
func NewStopInstanceRequest( regionId string, instanceId string, ) *StopInstanceRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewStopInstanceRequestWithAllParams ¶ added in v1.0.4
func NewStopInstanceRequestWithAllParams( regionId string, instanceId string, chargeOnStopped *string, ) *StopInstanceRequest
* param regionId: 地域ID (Required) * param instanceId: 云主机ID (Required) * param chargeOnStopped: 关机模式,只支持云盘做系统盘的按配置计费云主机keepCharging:关机后继续计费;stopCharging:关机后停止计费。 (Optional)
func NewStopInstanceRequestWithoutParam ¶ added in v1.0.4
func NewStopInstanceRequestWithoutParam() *StopInstanceRequest
This constructor has better compatible ability when API parameters changed
func (StopInstanceRequest) GetRegionId ¶
func (r StopInstanceRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*StopInstanceRequest) SetChargeOnStopped ¶ added in v1.25.0
func (r *StopInstanceRequest) SetChargeOnStopped(chargeOnStopped string)
param chargeOnStopped: 关机模式,只支持云盘做系统盘的按配置计费云主机keepCharging:关机后继续计费;stopCharging:关机后停止计费。(Optional)
func (*StopInstanceRequest) SetInstanceId ¶
func (r *StopInstanceRequest) SetInstanceId(instanceId string)
param instanceId: 云主机ID(Required)
func (*StopInstanceRequest) SetRegionId ¶
func (r *StopInstanceRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type StopInstanceResponse ¶
type StopInstanceResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result StopInstanceResult `json:"result"` }
type StopInstanceResult ¶
type StopInstanceResult struct { }
type UnReleaseImageRequest ¶ added in v1.13.0
type UnReleaseImageRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 镜像ID */ ImageId string `json:"imageId"` }
func NewUnReleaseImageRequest ¶ added in v1.13.0
func NewUnReleaseImageRequest( regionId string, imageId string, ) *UnReleaseImageRequest
* param regionId: 地域ID (Required) * param imageId: 镜像ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewUnReleaseImageRequestWithAllParams ¶ added in v1.13.0
func NewUnReleaseImageRequestWithAllParams( regionId string, imageId string, ) *UnReleaseImageRequest
* param regionId: 地域ID (Required) * param imageId: 镜像ID (Required)
func NewUnReleaseImageRequestWithoutParam ¶ added in v1.13.0
func NewUnReleaseImageRequestWithoutParam() *UnReleaseImageRequest
This constructor has better compatible ability when API parameters changed
func (UnReleaseImageRequest) GetRegionId ¶ added in v1.13.0
func (r UnReleaseImageRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*UnReleaseImageRequest) SetImageId ¶ added in v1.13.0
func (r *UnReleaseImageRequest) SetImageId(imageId string)
param imageId: 镜像ID(Required)
func (*UnReleaseImageRequest) SetRegionId ¶ added in v1.13.0
func (r *UnReleaseImageRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type UnReleaseImageResponse ¶ added in v1.13.0
type UnReleaseImageResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result UnReleaseImageResult `json:"result"` }
type UnReleaseImageResult ¶ added in v1.13.0
type UnReleaseImageResult struct { }
type UnShareImageRequest ¶
type UnShareImageRequest struct { string `json:"regionId"` ImageId string `json:"imageId"` Pins []string `json:"pins"` }RegionId
func NewUnShareImageRequest ¶
func NewUnShareImageRequest( regionId string, imageId string, ) *UnShareImageRequest
* param regionId: 地域ID (Required) * param imageId: 镜像ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewUnShareImageRequestWithAllParams ¶ added in v1.0.4
func NewUnShareImageRequestWithAllParams( regionId string, imageId string, pins []string, ) *UnShareImageRequest
* param regionId: 地域ID (Required) * param imageId: 镜像ID (Required) * param pins: 需要取消的帐户 (Optional)
func NewUnShareImageRequestWithoutParam ¶ added in v1.0.4
func NewUnShareImageRequestWithoutParam() *UnShareImageRequest
This constructor has better compatible ability when API parameters changed
func (UnShareImageRequest) GetRegionId ¶
func (r UnShareImageRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*UnShareImageRequest) SetImageId ¶
func (r *UnShareImageRequest) SetImageId(imageId string)
param imageId: 镜像ID(Required)
func (*UnShareImageRequest) SetPins ¶
func (r *UnShareImageRequest) SetPins(pins []string)
param pins: 需要取消的帐户(Optional)
func (*UnShareImageRequest) SetRegionId ¶
func (r *UnShareImageRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type UnShareImageResponse ¶
type UnShareImageResponse struct {}
type UnShareImageResult ¶
type UnShareImageResult struct { }
type UpdateInstanceTemplateRequest ¶ added in v1.10.0
type UpdateInstanceTemplateRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 启动模板ID */ InstanceTemplateId string `json:"instanceTemplateId"` /* 模板描述,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Optional) */ Description *string `json:"description"` /* 模板名称,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Optional) */ Name *string `json:"name"` }
func NewUpdateInstanceTemplateRequest ¶ added in v1.10.0
func NewUpdateInstanceTemplateRequest( regionId string, instanceTemplateId string, ) *UpdateInstanceTemplateRequest
* param regionId: 地域ID (Required) * param instanceTemplateId: 启动模板ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewUpdateInstanceTemplateRequestWithAllParams ¶ added in v1.10.0
func NewUpdateInstanceTemplateRequestWithAllParams( regionId string, instanceTemplateId string, description *string, name *string, ) *UpdateInstanceTemplateRequest
* param regionId: 地域ID (Required) * param instanceTemplateId: 启动模板ID (Required) * param description: 模板描述,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Optional) * param name: 模板名称,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Optional)
func NewUpdateInstanceTemplateRequestWithoutParam ¶ added in v1.10.0
func NewUpdateInstanceTemplateRequestWithoutParam() *UpdateInstanceTemplateRequest
This constructor has better compatible ability when API parameters changed
func (UpdateInstanceTemplateRequest) GetRegionId ¶ added in v1.10.0
func (r UpdateInstanceTemplateRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*UpdateInstanceTemplateRequest) SetDescription ¶ added in v1.10.0
func (r *UpdateInstanceTemplateRequest) SetDescription(description string)
param description: 模板描述,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。(Optional)
func (*UpdateInstanceTemplateRequest) SetInstanceTemplateId ¶ added in v1.10.0
func (r *UpdateInstanceTemplateRequest) SetInstanceTemplateId(instanceTemplateId string)
param instanceTemplateId: 启动模板ID(Required)
func (*UpdateInstanceTemplateRequest) SetName ¶ added in v1.10.0
func (r *UpdateInstanceTemplateRequest) SetName(name string)
param name: 模板名称,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。(Optional)
func (*UpdateInstanceTemplateRequest) SetRegionId ¶ added in v1.10.0
func (r *UpdateInstanceTemplateRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type UpdateInstanceTemplateResponse ¶ added in v1.10.0
type UpdateInstanceTemplateResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result UpdateInstanceTemplateResult `json:"result"` }
type UpdateInstanceTemplateResult ¶ added in v1.10.0
type UpdateInstanceTemplateResult struct { }
type VerifyInstanceTemplateRequest ¶ added in v1.10.0
type VerifyInstanceTemplateRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 启动模板ID */ InstanceTemplateId string `json:"instanceTemplateId"` }
func NewVerifyInstanceTemplateRequest ¶ added in v1.10.0
func NewVerifyInstanceTemplateRequest( regionId string, instanceTemplateId string, ) *VerifyInstanceTemplateRequest
* param regionId: 地域ID (Required) * param instanceTemplateId: 启动模板ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewVerifyInstanceTemplateRequestWithAllParams ¶ added in v1.10.0
func NewVerifyInstanceTemplateRequestWithAllParams( regionId string, instanceTemplateId string, ) *VerifyInstanceTemplateRequest
* param regionId: 地域ID (Required) * param instanceTemplateId: 启动模板ID (Required)
func NewVerifyInstanceTemplateRequestWithoutParam ¶ added in v1.10.0
func NewVerifyInstanceTemplateRequestWithoutParam() *VerifyInstanceTemplateRequest
This constructor has better compatible ability when API parameters changed
func (VerifyInstanceTemplateRequest) GetRegionId ¶ added in v1.10.0
func (r VerifyInstanceTemplateRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*VerifyInstanceTemplateRequest) SetInstanceTemplateId ¶ added in v1.10.0
func (r *VerifyInstanceTemplateRequest) SetInstanceTemplateId(instanceTemplateId string)
param instanceTemplateId: 启动模板ID(Required)
func (*VerifyInstanceTemplateRequest) SetRegionId ¶ added in v1.10.0
func (r *VerifyInstanceTemplateRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type VerifyInstanceTemplateResponse ¶ added in v1.10.0
type VerifyInstanceTemplateResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result VerifyInstanceTemplateResult `json:"result"` }
type VerifyInstanceTemplateResult ¶ added in v1.10.0
type VerifyInstanceTemplateResult struct { }
Source Files ¶
- AssociateElasticIp.go
- AttachDisk.go
- AttachNetworkInterface.go
- CopyImages.go
- CreateImage.go
- CreateInstanceTemplate.go
- CreateInstances.go
- CreateKeypair.go
- DeleteImage.go
- DeleteInstance.go
- DeleteInstanceTemplate.go
- DeleteKeypair.go
- DescribeBriefInstances.go
- DescribeImage.go
- DescribeImageConstraints.go
- DescribeImageConstraintsBatch.go
- DescribeImageMembers.go
- DescribeImages.go
- DescribeInstance.go
- DescribeInstancePrivateIpAddress.go
- DescribeInstanceStatus.go
- DescribeInstanceTemplate.go
- DescribeInstanceTemplates.go
- DescribeInstanceTypes.go
- DescribeInstanceVncUrl.go
- DescribeInstances.go
- DescribeKeypairs.go
- DescribeQuotas.go
- DetachDisk.go
- DetachNetworkInterface.go
- DisassociateElasticIp.go
- ExportImage.go
- ImageTasks.go
- ImportImage.go
- ImportKeypair.go
- ModifyImageAttribute.go
- ModifyInstanceAttribute.go
- ModifyInstanceDiskAttribute.go
- ModifyInstanceNetworkAttribute.go
- ModifyInstancePassword.go
- RebootInstance.go
- RebuildInstance.go
- ReleaseImage.go
- ResizeInstance.go
- ShareImage.go
- StartInstance.go
- StopInstance.go
- UnReleaseImage.go
- UnShareImage.go
- UpdateInstanceTemplate.go
- VerifyInstanceTemplate.go