Documentation
¶
Index ¶
- Constants
- type AdvRetention
- type Apis
- type CtecsAffinityGroupUnbindInstanceV41Api
- type CtecsAffinityGroupUnbindInstanceV41Request
- type CtecsAffinityGroupUnbindInstanceV41Response
- type CtecsAffinityGroupUnbindInstanceV41ReturnObjResponse
- type CtecsAffinityGroupUnbindInstancesApi
- type CtecsAffinityGroupUnbindInstancesRequest
- type CtecsAffinityGroupUnbindInstancesResponse
- type CtecsAffinityGroupUnbindInstancesReturnObjResponse
- type CtecsAffinityGroupbindInstanceCheckV41Api
- type CtecsAffinityGroupbindInstanceCheckV41Request
- type CtecsAffinityGroupbindInstanceCheckV41Response
- type CtecsAffinityGroupbindInstanceCheckV41ReturnObjResponse
- type CtecsAffinityGroupbindInstanceV41Api
- type CtecsAffinityGroupbindInstanceV41Request
- type CtecsAffinityGroupbindInstanceV41Response
- type CtecsAffinityGroupbindInstanceV41ReturnObjResponse
- type CtecsAttachVolumeV41Api
- type CtecsAttachVolumeV41ErrorDetailResponse
- type CtecsAttachVolumeV41Request
- type CtecsAttachVolumeV41Response
- type CtecsAttachVolumeV41ReturnObjResponse
- type CtecsBackupBatchUpdateApi
- type CtecsBackupBatchUpdateRequest
- type CtecsBackupBatchUpdateResponse
- type CtecsBackupBatchUpdateReturnObjResponse
- type CtecsBackupBatchUpdateUpdateInfoRequest
- type CtecsBatchCreateInstancesV41Api
- type CtecsBatchCreateInstancesV41DataDiskListRequest
- type CtecsBatchCreateInstancesV41LabelListRequest
- type CtecsBatchCreateInstancesV41NetworkCardListRequest
- type CtecsBatchCreateInstancesV41Request
- type CtecsBatchCreateInstancesV41Response
- type CtecsBatchCreateInstancesV41ReturnObjResponse
- type CtecsBatchDeleteInstancesApi
- type CtecsBatchDeleteInstancesRequest
- type CtecsBatchDeleteInstancesResponse
- type CtecsBatchDeleteInstancesReturnObjResponse
- type CtecsBatchDeleteMetadataV41Api
- type CtecsBatchDeleteMetadataV41Request
- type CtecsBatchDeleteMetadataV41Response
- type CtecsBatchDeleteMetadataV41ReturnObjResponse
- type CtecsBatchOperateEcsLabelV41Api
- type CtecsBatchOperateEcsLabelV41LabelListRequest
- type CtecsBatchOperateEcsLabelV41Request
- type CtecsBatchOperateEcsLabelV41Response
- type CtecsBatchRebootInstancesV41Api
- type CtecsBatchRebootInstancesV41Request
- type CtecsBatchRebootInstancesV41Response
- type CtecsBatchRebootInstancesV41ReturnObjJobIDListResponse
- type CtecsBatchRebootInstancesV41ReturnObjResponse
- type CtecsBatchRebuildInstancesV41Api
- type CtecsBatchRebuildInstancesV41RebuildInfoRequest
- type CtecsBatchRebuildInstancesV41Request
- type CtecsBatchRebuildInstancesV41Response
- type CtecsBatchRebuildInstancesV41ReturnObjJobIDListResponse
- type CtecsBatchRebuildInstancesV41ReturnObjResponse
- type CtecsBatchShelveInstancesApi
- type CtecsBatchShelveInstancesRequest
- type CtecsBatchShelveInstancesResponse
- type CtecsBatchShelveInstancesReturnObjJobIDListResponse
- type CtecsBatchShelveInstancesReturnObjResponse
- type CtecsBatchStartInstancesV41Api
- type CtecsBatchStartInstancesV41Request
- type CtecsBatchStartInstancesV41Response
- type CtecsBatchStartInstancesV41ReturnObjJobIDListResponse
- type CtecsBatchStartInstancesV41ReturnObjResponse
- type CtecsBatchStopInstancesV41Api
- type CtecsBatchStopInstancesV41Request
- type CtecsBatchStopInstancesV41Response
- type CtecsBatchStopInstancesV41ReturnObjJobIDListResponse
- type CtecsBatchStopInstancesV41ReturnObjResponse
- type CtecsBatchUpdateInstancesPasswordV41Api
- type CtecsBatchUpdateInstancesPasswordV41Request
- type CtecsBatchUpdateInstancesPasswordV41Response
- type CtecsBatchUpdateInstancesPasswordV41ReturnObjResponse
- type CtecsBatchUpdateInstancesPasswordV41UpdatePwdInfoRequest
- type CtecsBatchUpdateInstancesV41Api
- type CtecsBatchUpdateInstancesV41Request
- type CtecsBatchUpdateInstancesV41Response
- type CtecsBatchUpdateInstancesV41ReturnObjResponse
- type CtecsBatchUpdateInstancesV41ReturnObjUpdateInfoResponse
- type CtecsBatchUpdateInstancesV41UpdateInfoRequest
- type CtecsBatchUpdateSnapshotV41Api
- type CtecsBatchUpdateSnapshotV41Request
- type CtecsBatchUpdateSnapshotV41Response
- type CtecsBatchUpdateSnapshotV41ReturnObjResponse
- type CtecsBatchUpdateSnapshotV41UpdateInfoRequest
- type CtecsCloneInstanceApi
- type CtecsCloneInstanceLabelListRequest
- type CtecsCloneInstanceNetworkCardListRequest
- type CtecsCloneInstanceRequest
- type CtecsCloneInstanceResponse
- type CtecsCloneInstanceReturnObjResponse
- type CtecsCloudAssistantDescribeInvocationResultsApi
- type CtecsCloudAssistantDescribeInvocationResultsRequest
- type CtecsCloudAssistantDescribeInvocationResultsResponse
- type CtecsCloudAssistantDescribeInvocationResultsReturnObjResponse
- type CtecsCloudAssistantDescribeInvocationResultsReturnObjResultsResponse
- type CtecsCloudAssistantRunCommandApi
- type CtecsCloudAssistantRunCommandDefaultParameterRequest
- type CtecsCloudAssistantRunCommandParameterRequest
- type CtecsCloudAssistantRunCommandRequest
- type CtecsCloudAssistantRunCommandResponse
- type CtecsCloudAssistantRunCommandReturnObjResponse
- type CtecsCreateAffinityGroupV41Api
- type CtecsCreateAffinityGroupV41Request
- type CtecsCreateAffinityGroupV41Response
- type CtecsCreateAffinityGroupV41ReturnObjAffinityGroupPolicyResponse
- type CtecsCreateAffinityGroupV41ReturnObjResponse
- type CtecsCreateCommandApi
- type CtecsCreateCommandDefaultParameterRequest
- type CtecsCreateCommandRequest
- type CtecsCreateCommandResponse
- type CtecsCreateCommandReturnObjResponse
- type CtecsCreateEipV41Api
- type CtecsCreateEipV41Request
- type CtecsCreateEipV41Response
- type CtecsCreateEipV41ReturnObjResponse
- type CtecsCreateInstanceBackupPolicyApi
- type CtecsCreateInstanceBackupPolicyRequest
- type CtecsCreateInstanceBackupPolicyResponse
- type CtecsCreateInstanceBackupPolicyReturnObjResponse
- type CtecsCreateInstanceBackupRepoApi
- type CtecsCreateInstanceBackupRepoRequest
- type CtecsCreateInstanceBackupRepoResponse
- type CtecsCreateInstanceBackupRepoReturnObjResponse
- type CtecsCreateInstanceBackupV41Api
- type CtecsCreateInstanceBackupV41Request
- type CtecsCreateInstanceBackupV41Response
- type CtecsCreateInstanceBackupV41ReturnObjResponse
- type CtecsCreateInstanceBackupV41ReturnObjResultsResponse
- type CtecsCreateInstanceByInstanceBackupApi
- type CtecsCreateInstanceByInstanceBackupLabelListRequest
- type CtecsCreateInstanceByInstanceBackupNetworkCardListRequest
- type CtecsCreateInstanceByInstanceBackupRequest
- type CtecsCreateInstanceByInstanceBackupResponse
- type CtecsCreateInstanceByInstanceBackupReturnObjResponse
- type CtecsCreateInstanceV41Api
- type CtecsCreateInstanceV41DataDiskListRequest
- type CtecsCreateInstanceV41LabelListRequest
- type CtecsCreateInstanceV41NetworkCardListRequest
- type CtecsCreateInstanceV41Request
- type CtecsCreateInstanceV41Response
- type CtecsCreateInstanceV41ReturnObjResponse
- type CtecsCreateKeypairV41Api
- type CtecsCreateKeypairV41Request
- type CtecsCreateKeypairV41Response
- type CtecsCreateKeypairV41ReturnObjResponse
- type CtecsCreateLiteInstanceV41Api
- type CtecsCreateLiteInstanceV41DataDiskListRequest
- type CtecsCreateLiteInstanceV41Request
- type CtecsCreateLiteInstanceV41Response
- type CtecsCreateLiteInstanceV41ReturnObjResponse
- type CtecsCreateMetadataV41Api
- type CtecsCreateMetadataV41MetadataRequest
- type CtecsCreateMetadataV41Request
- type CtecsCreateMetadataV41Response
- type CtecsCreateMetadataV41ReturnObjMetadataResponse
- type CtecsCreateMetadataV41ReturnObjResponse
- type CtecsCreatePortsV41Api
- type CtecsCreatePortsV41Request
- type CtecsCreatePortsV41Response
- type CtecsCreatePortsV41ReturnObjResponse
- type CtecsCreateSameConfigInstancesApi
- type CtecsCreateSameConfigInstancesDataDiskListRequest
- type CtecsCreateSameConfigInstancesLabelListRequest
- type CtecsCreateSameConfigInstancesNetworkCardListRequest
- type CtecsCreateSameConfigInstancesRequest
- type CtecsCreateSameConfigInstancesResponse
- type CtecsCreateSameConfigInstancesReturnObjResponse
- type CtecsCreateSecurityGroupEgressV41Api
- type CtecsCreateSecurityGroupEgressV41Request
- type CtecsCreateSecurityGroupEgressV41Response
- type CtecsCreateSecurityGroupEgressV41ReturnObjResponse
- type CtecsCreateSecurityGroupEgressV41SecurityGroupRulesRequest
- type CtecsCreateSecurityGroupIngressV41Api
- type CtecsCreateSecurityGroupIngressV41Request
- type CtecsCreateSecurityGroupIngressV41Response
- type CtecsCreateSecurityGroupIngressV41ReturnObjResponse
- type CtecsCreateSecurityGroupIngressV41SecurityGroupRulesRequest
- type CtecsCreateSecurityGroupV41Api
- type CtecsCreateSecurityGroupV41Request
- type CtecsCreateSecurityGroupV41Response
- type CtecsCreateSecurityGroupV41ReturnObjResponse
- type CtecsCreateSnapshotV41Api
- type CtecsCreateSnapshotV41Request
- type CtecsCreateSnapshotV41Response
- type CtecsCreateSnapshotV41ReturnObjResponse
- type CtecsCreateSnapshotpolicyV41Api
- type CtecsCreateSnapshotpolicyV41Request
- type CtecsCreateSnapshotpolicyV41Response
- type CtecsCreateSnapshotpolicyV41ReturnObjResponse
- type CtecsCreateVolumeV41Api
- type CtecsCreateVolumeV41ErrorDetailResponse
- type CtecsCreateVolumeV41LabelsRequest
- type CtecsCreateVolumeV41Request
- type CtecsCreateVolumeV41Response
- type CtecsCreateVolumeV41ReturnObjResourcesResponse
- type CtecsCreateVolumeV41ReturnObjResponse
- type CtecsDeleteAffinityGroupApi
- type CtecsDeleteAffinityGroupRequest
- type CtecsDeleteAffinityGroupResponse
- type CtecsDeleteAffinityGroupReturnObjResponse
- type CtecsDeleteCommandApi
- type CtecsDeleteCommandRequest
- type CtecsDeleteCommandResponse
- type CtecsDeleteEipV41Api
- type CtecsDeleteEipV41Request
- type CtecsDeleteEipV41Response
- type CtecsDeleteEipV41ReturnObjResponse
- type CtecsDeleteInstanceAndRelatedResourceApi
- type CtecsDeleteInstanceAndRelatedResourceRequest
- type CtecsDeleteInstanceAndRelatedResourceResponse
- type CtecsDeleteInstanceAndRelatedResourceReturnObjResponse
- type CtecsDeleteInstanceBackupApi
- type CtecsDeleteInstanceBackupPolicyApi
- type CtecsDeleteInstanceBackupPolicyRequest
- type CtecsDeleteInstanceBackupPolicyResponse
- type CtecsDeleteInstanceBackupPolicyReturnObjResponse
- type CtecsDeleteInstanceBackupRepoApi
- type CtecsDeleteInstanceBackupRepoRequest
- type CtecsDeleteInstanceBackupRepoResponse
- type CtecsDeleteInstanceBackupRepoReturnObjResponse
- type CtecsDeleteInstanceBackupRequest
- type CtecsDeleteInstanceBackupResponse
- type CtecsDeleteInstanceBackupReturnObjResponse
- type CtecsDeleteKeypairV41Api
- type CtecsDeleteKeypairV41Request
- type CtecsDeleteKeypairV41Response
- type CtecsDeleteKeypairV41ReturnObjResponse
- type CtecsDeleteMetadataV41Api
- type CtecsDeleteMetadataV41Request
- type CtecsDeleteMetadataV41Response
- type CtecsDeleteMetadataV41ReturnObjResponse
- type CtecsDeletePortsV41Api
- type CtecsDeletePortsV41Request
- type CtecsDeletePortsV41Response
- type CtecsDeleteSecurityGroupV41Api
- type CtecsDeleteSecurityGroupV41Request
- type CtecsDeleteSecurityGroupV41Response
- type CtecsDeleteSnapshotV41Api
- type CtecsDeleteSnapshotV41Request
- type CtecsDeleteSnapshotV41Response
- type CtecsDeleteSnapshotV41ReturnObjResponse
- type CtecsDeleteSnapshotpolicyV41Api
- type CtecsDeleteSnapshotpolicyV41Request
- type CtecsDeleteSnapshotpolicyV41Response
- type CtecsDeleteSnapshotpolicyV41ReturnObjResponse
- type CtecsDeleteVolumeV41Api
- type CtecsDeleteVolumeV41ErrorDetailResponse
- type CtecsDeleteVolumeV41Request
- type CtecsDeleteVolumeV41Response
- type CtecsDeleteVolumeV41ReturnObjResponse
- type CtecsDescribeAvailabilityZonesV41Api
- type CtecsDescribeAvailabilityZonesV41Request
- type CtecsDescribeAvailabilityZonesV41Response
- type CtecsDescribeAvailabilityZonesV41ReturnObjAzListResponse
- type CtecsDescribeAvailabilityZonesV41ReturnObjResponse
- type CtecsDescribeInstancesApi
- type CtecsDescribeInstancesLabelListRequest
- type CtecsDescribeInstancesRequest
- type CtecsDescribeInstancesResponse
- type CtecsDescribeInstancesReturnObjResponse
- type CtecsDescribeInstancesReturnObjResultsAddressesAddressListResponse
- type CtecsDescribeInstancesReturnObjResultsAddressesResponse
- type CtecsDescribeInstancesReturnObjResultsAffinityGroupResponse
- type CtecsDescribeInstancesReturnObjResultsFlavorResponse
- type CtecsDescribeInstancesReturnObjResultsImageResponse
- type CtecsDescribeInstancesReturnObjResultsNetworkInfoBoundTypeResponse
- type CtecsDescribeInstancesReturnObjResultsNetworkInfoResponse
- type CtecsDescribeInstancesReturnObjResultsResponse
- type CtecsDescribeInstancesReturnObjResultsSecGroupListResponse
- type CtecsDescribeInstancesReturnObjResultsVipInfoListResponse
- type CtecsDescribeSecurityGroupAttributeV41Api
- type CtecsDescribeSecurityGroupAttributeV41Request
- type CtecsDescribeSecurityGroupAttributeV41Response
- type CtecsDescribeSecurityGroupAttributeV41ReturnObjResponse
- type CtecsDescribeSecurityGroupAttributeV41ReturnObjSecurityGroupRuleListResponse
- type CtecsDescribeSendFileResultsApi
- type CtecsDescribeSendFileResultsRequest
- type CtecsDescribeSendFileResultsResponse
- type CtecsDescribeSendFileResultsReturnObjResponse
- type CtecsDescribeSendFileResultsReturnObjResultsInvokeInstancesResponse
- type CtecsDescribeSendFileResultsReturnObjResultsResponse
- type CtecsDestroyInstanceApi
- type CtecsDestroyInstanceRequest
- type CtecsDestroyInstanceResponse
- type CtecsDestroyInstanceReturnObjResponse
- type CtecsDetachVolumeV41Api
- type CtecsDetachVolumeV41ErrorDetailResponse
- type CtecsDetachVolumeV41Request
- type CtecsDetachVolumeV41Response
- type CtecsDetachVolumeV41ReturnObjResponse
- type CtecsDetailsBackupInstanceV41Api
- type CtecsDetailsBackupInstanceV41Request
- type CtecsDetailsBackupInstanceV41Response
- type CtecsDetailsBackupInstanceV41ReturnObjAddressesAddressListResponse
- type CtecsDetailsBackupInstanceV41ReturnObjAddressesResponse
- type CtecsDetailsBackupInstanceV41ReturnObjAffinityGroupResponse
- type CtecsDetailsBackupInstanceV41ReturnObjFlavorResponse
- type CtecsDetailsBackupInstanceV41ReturnObjImageResponse
- type CtecsDetailsBackupInstanceV41ReturnObjNetworkCardListResponse
- type CtecsDetailsBackupInstanceV41ReturnObjResponse
- type CtecsDetailsBackupInstanceV41ReturnObjSecGroupListResponse
- type CtecsDetailsBackupInstanceV41ReturnObjVipInfoListResponse
- type CtecsDetailsBackupInstanceV41ReturnObjVolumesResponse
- type CtecsDetailsInstanceBackupV41Api
- type CtecsDetailsInstanceBackupV41Request
- type CtecsDetailsInstanceBackupV41Response
- type CtecsDetailsInstanceBackupV41ReturnObjResponse
- type CtecsDetailsInstanceV41Api
- type CtecsDetailsInstanceV41Request
- type CtecsDetailsInstanceV41Response
- type CtecsDetailsInstanceV41ReturnObjAddressesAddressListResponse
- type CtecsDetailsInstanceV41ReturnObjAddressesResponse
- type CtecsDetailsInstanceV41ReturnObjAffinityGroupResponse
- type CtecsDetailsInstanceV41ReturnObjFlavorResponse
- type CtecsDetailsInstanceV41ReturnObjImageResponse
- type CtecsDetailsInstanceV41ReturnObjMetadataResponse
- type CtecsDetailsInstanceV41ReturnObjNetworkCardListResponse
- type CtecsDetailsInstanceV41ReturnObjResponse
- type CtecsDetailsInstanceV41ReturnObjSecGroupListResponse
- type CtecsDetailsInstanceV41ReturnObjVipInfoListResponse
- type CtecsDetailsKeypairV41Api
- type CtecsDetailsKeypairV41Request
- type CtecsDetailsKeypairV41Response
- type CtecsDetailsKeypairV41ReturnObjResponse
- type CtecsDetailsKeypairV41ReturnObjResultsResponse
- type CtecsDetailsLiteInstanceV41Api
- type CtecsDetailsLiteInstanceV41Request
- type CtecsDetailsLiteInstanceV41Response
- type CtecsDetailsLiteInstanceV41ReturnObjAddressesAddressListResponse
- type CtecsDetailsLiteInstanceV41ReturnObjAddressesResponse
- type CtecsDetailsLiteInstanceV41ReturnObjFlavorResponse
- type CtecsDetailsLiteInstanceV41ReturnObjImageResponse
- type CtecsDetailsLiteInstanceV41ReturnObjNetworkCardListResponse
- type CtecsDetailsLiteInstanceV41ReturnObjResponse
- type CtecsDetailsLiteInstanceV41ReturnObjSecGroupListResponse
- type CtecsDetailsMetadataV41Api
- type CtecsDetailsMetadataV41MetadataKeyRequest
- type CtecsDetailsMetadataV41Request
- type CtecsDetailsMetadataV41Response
- type CtecsDetailsMetadataV41ReturnObjMetadataResponse
- type CtecsDetailsMetadataV41ReturnObjResponse
- type CtecsDetailsSnapshotpolicyV41Api
- type CtecsDetailsSnapshotpolicyV41Request
- type CtecsDetailsSnapshotpolicyV41Response
- type CtecsDetailsSnapshotpolicyV41ReturnObjResponse
- type CtecsDetailsVncLiteInstanceV41Api
- type CtecsDetailsVncLiteInstanceV41Request
- type CtecsDetailsVncLiteInstanceV41Response
- type CtecsDetailsVncLiteInstanceV41ReturnObjResponse
- type CtecsDisableSnapshotPolicyV41Api
- type CtecsDisableSnapshotPolicyV41Request
- type CtecsDisableSnapshotPolicyV41Response
- type CtecsDisableSnapshotPolicyV41ReturnObjResponse
- type CtecsEcsAttachDelegateApi
- type CtecsEcsAttachDelegateRequest
- type CtecsEcsAttachDelegateResponse
- type CtecsEcsAttachDelegateReturnObjResponse
- type CtecsEcsDeleteDelegateApi
- type CtecsEcsDeleteDelegateRequest
- type CtecsEcsDeleteDelegateResponse
- type CtecsEcsDeleteDelegateReturnObjResponse
- type CtecsEcsJoinSecurityGroupV41Api
- type CtecsEcsJoinSecurityGroupV41Request
- type CtecsEcsJoinSecurityGroupV41Response
- type CtecsEcsSnapshotBatchDeleteApi
- type CtecsEcsSnapshotBatchDeleteRequest
- type CtecsEcsSnapshotBatchDeleteResponse
- type CtecsEcsSnapshotBatchDeleteReturnObjResponse
- type CtecsEcsSnapshotTaskListApi
- type CtecsEcsSnapshotTaskListRequest
- type CtecsEcsSnapshotTaskListResponse
- type CtecsEcsSnapshotTaskListReturnObjResponse
- type CtecsEcsSnapshotTaskListReturnObjResultsResponse
- type CtecsEcsleaveSecurityGroupV41Api
- type CtecsEcsleaveSecurityGroupV41Request
- type CtecsEcsleaveSecurityGroupV41Response
- type CtecsEnableSnapshotPolicyV41Api
- type CtecsEnableSnapshotPolicyV41Request
- type CtecsEnableSnapshotPolicyV41Response
- type CtecsEnableSnapshotPolicyV41ReturnObjResponse
- type CtecsExecuteInstanceBackupPolicyApi
- type CtecsExecuteInstanceBackupPolicyRequest
- type CtecsExecuteInstanceBackupPolicyResponse
- type CtecsExecuteInstanceBackupPolicyReturnObjResponse
- type CtecsExecuteSnapshotPolicyV41Api
- type CtecsExecuteSnapshotPolicyV41Request
- type CtecsExecuteSnapshotPolicyV41Response
- type CtecsExecuteSnapshotPolicyV41ReturnObjResponse
- type CtecsExtendVolumeV41Api
- type CtecsExtendVolumeV41ErrorDetailResponse
- type CtecsExtendVolumeV41Request
- type CtecsExtendVolumeV41Response
- type CtecsExtendVolumeV41ReturnObjResponse
- type CtecsGetAffinityGroupV41Api
- type CtecsGetAffinityGroupV41Request
- type CtecsGetAffinityGroupV41Response
- type CtecsGetAffinityGroupV41ReturnObjResponse
- type CtecsGetCaAgentApi
- type CtecsGetCaAgentRequest
- type CtecsGetCaAgentResponse
- type CtecsGetCaAgentReturnObjCaAgentStatusSetResponse
- type CtecsGetCaAgentReturnObjResponse
- type CtecsGetCommandApi
- type CtecsGetCommandRequest
- type CtecsGetCommandResponse
- type CtecsGetCommandReturnObjResponse
- type CtecsGetCommandsApi
- type CtecsGetCommandsFiltersRequest
- type CtecsGetCommandsRequest
- type CtecsGetCommandsResponse
- type CtecsGetCommandsReturnObjCommandsResponse
- type CtecsGetCommandsReturnObjResponse
- type CtecsGetEcsFlavorsApi
- type CtecsGetEcsFlavorsRequest
- type CtecsGetEcsFlavorsResponse
- type CtecsGetEcsFlavorsReturnObjResponse
- type CtecsGetEcsFlavorsReturnObjResultsResponse
- type CtecsGetVolumeStatisticsV41Api
- type CtecsGetVolumeStatisticsV41Request
- type CtecsGetVolumeStatisticsV41Response
- type CtecsGetVolumeStatisticsV41ReturnObjResponse
- type CtecsGetVolumeStatisticsV41ReturnObjVolumeStatisticsResponse
- type CtecsImportKeypairV41Api
- type CtecsImportKeypairV41Request
- type CtecsImportKeypairV41Response
- type CtecsImportKeypairV41ReturnObjResponse
- type CtecsInstanceAttachSfsV41Api
- type CtecsInstanceAttachSfsV41Request
- type CtecsInstanceAttachSfsV41Response
- type CtecsInstanceAttachSfsV41ReturnObjResponse
- type CtecsInstanceAttachSfsV41SysInfoListRequest
- type CtecsInstanceAttachShareInterfaceV41Api
- type CtecsInstanceAttachShareInterfaceV41Request
- type CtecsInstanceAttachShareInterfaceV41Response
- type CtecsInstanceAttachShareInterfaceV41ReturnObjResponse
- type CtecsInstanceBackupPolicyBindInstancesApi
- type CtecsInstanceBackupPolicyBindInstancesRequest
- type CtecsInstanceBackupPolicyBindInstancesResponse
- type CtecsInstanceBackupPolicyBindInstancesReturnObjResponse
- type CtecsInstanceBackupPolicyBindRepoApi
- type CtecsInstanceBackupPolicyBindRepoRequest
- type CtecsInstanceBackupPolicyBindRepoResponse
- type CtecsInstanceBackupPolicyBindRepoReturnObjResponse
- type CtecsInstanceBackupPolicyUnbindInstancesApi
- type CtecsInstanceBackupPolicyUnbindInstancesRequest
- type CtecsInstanceBackupPolicyUnbindInstancesResponse
- type CtecsInstanceBackupPolicyUnbindInstancesReturnObjResponse
- type CtecsInstanceBackupPolicyUnbindRepoApi
- type CtecsInstanceBackupPolicyUnbindRepoRequest
- type CtecsInstanceBackupPolicyUnbindRepoResponse
- type CtecsInstanceBackupPolicyUnbindRepoReturnObjResponse
- type CtecsInstanceDetachKeypairV41Api
- type CtecsInstanceDetachKeypairV41Request
- type CtecsInstanceDetachKeypairV41Response
- type CtecsInstanceDetachKeypairV41ReturnObjResponse
- type CtecsInstanceDetachSfsV41Api
- type CtecsInstanceDetachSfsV41Request
- type CtecsInstanceDetachSfsV41Response
- type CtecsInstanceDetachSfsV41ReturnObjResponse
- type CtecsInstanceDetachSfsV41SysInfoListRequest
- type CtecsInvokeCommandApi
- type CtecsInvokeCommandParameterRequest
- type CtecsInvokeCommandRequest
- type CtecsInvokeCommandResponse
- type CtecsInvokeCommandReturnObjResponse
- type CtecsKeypairAttachInstanceV41Api
- type CtecsKeypairAttachInstanceV41Request
- type CtecsKeypairAttachInstanceV41Response
- type CtecsKeypairAttachInstanceV41ReturnObjResponse
- type CtecsListAffinityGroupInstanceV41Api
- type CtecsListAffinityGroupInstanceV41Request
- type CtecsListAffinityGroupInstanceV41Response
- type CtecsListAffinityGroupInstanceV41ReturnObjResponse
- type CtecsListAffinityGroupInstanceV41ReturnObjResultsAddressesAddressListResponse
- type CtecsListAffinityGroupInstanceV41ReturnObjResultsAddressesResponse
- type CtecsListAffinityGroupInstanceV41ReturnObjResultsAffinityGroupResponse
- type CtecsListAffinityGroupInstanceV41ReturnObjResultsFlavorResponse
- type CtecsListAffinityGroupInstanceV41ReturnObjResultsImageResponse
- type CtecsListAffinityGroupInstanceV41ReturnObjResultsNetworkCardListResponse
- type CtecsListAffinityGroupInstanceV41ReturnObjResultsResponse
- type CtecsListAffinityGroupInstanceV41ReturnObjResultsSecGroupListResponse
- type CtecsListAffinityGroupInstanceV41ReturnObjResultsVipInfoListResponse
- type CtecsListAffinityGroupV41Api
- type CtecsListAffinityGroupV41Request
- type CtecsListAffinityGroupV41Response
- type CtecsListAffinityGroupV41ReturnObjResponse
- type CtecsListAffinityGroupV41ReturnObjResultsAffinityGroupPolicyResponse
- type CtecsListAffinityGroupV41ReturnObjResultsResponse
- type CtecsListBackupTaskApi
- type CtecsListBackupTaskRequest
- type CtecsListBackupTaskResponse
- type CtecsListBackupTaskReturnObjResponse
- type CtecsListBackupTaskReturnObjResultsResponse
- type CtecsListFixedIpV41Api
- type CtecsListFixedIpV41Request
- type CtecsListFixedIpV41Response
- type CtecsListFixedIpV41ReturnObjResponse
- type CtecsListFlavorFamiliesV41Api
- type CtecsListFlavorFamiliesV41Request
- type CtecsListFlavorFamiliesV41Response
- type CtecsListFlavorFamiliesV41ReturnObjResponse
- type CtecsListFlavorLiteInstanceV41Api
- type CtecsListFlavorLiteInstanceV41Request
- type CtecsListFlavorLiteInstanceV41Response
- type CtecsListFlavorLiteInstanceV41ReturnObjResponse
- type CtecsListFlavorLiteInstanceV41ReturnObjResultsResponse
- type CtecsListFlavorV41Api
- type CtecsListFlavorV41Request
- type CtecsListFlavorV41Response
- type CtecsListFlavorV41ReturnObjFlavorListResponse
- type CtecsListFlavorV41ReturnObjResponse
- type CtecsListGpuDriverV41Api
- type CtecsListGpuDriverV41Request
- type CtecsListGpuDriverV41Response
- type CtecsListGpuDriverV41ReturnObjResponse
- type CtecsListInstanceBackupPolicyApi
- type CtecsListInstanceBackupPolicyBindInstancesApi
- type CtecsListInstanceBackupPolicyBindInstancesRequest
- type CtecsListInstanceBackupPolicyBindInstancesResponse
- type CtecsListInstanceBackupPolicyBindInstancesReturnObjInstancePoliciesResponse
- type CtecsListInstanceBackupPolicyBindInstancesReturnObjResponse
- type CtecsListInstanceBackupPolicyRequest
- type CtecsListInstanceBackupPolicyResponse
- type CtecsListInstanceBackupPolicyReturnObjPolicyListRepositoryListResponse
- type CtecsListInstanceBackupPolicyReturnObjPolicyListResponse
- type CtecsListInstanceBackupPolicyReturnObjResponse
- type CtecsListInstanceBackupRepoApi
- type CtecsListInstanceBackupRepoRequest
- type CtecsListInstanceBackupRepoResponse
- type CtecsListInstanceBackupRepoReturnObjResponse
- type CtecsListInstanceBackupRepoReturnObjResultsResponse
- type CtecsListInstanceBackupV41Api
- type CtecsListInstanceBackupV41Request
- type CtecsListInstanceBackupV41Response
- type CtecsListInstanceBackupV41ReturnObjResponse
- type CtecsListInstanceBackupV41ReturnObjResultsResponse
- type CtecsListInstanceFlavorFamiliesV41Api
- type CtecsListInstanceFlavorFamiliesV41Request
- type CtecsListInstanceFlavorFamiliesV41Response
- type CtecsListInstanceFlavorFamiliesV41ReturnObjResponse
- type CtecsListInstanceFlavorFamiliesV41ReturnObjResultsFlavorResponse
- type CtecsListInstanceFlavorFamiliesV41ReturnObjResultsResponse
- type CtecsListInstanceSfsV41Api
- type CtecsListInstanceSfsV41Request
- type CtecsListInstanceSfsV41Response
- type CtecsListInstanceSfsV41ReturnObjResponse
- type CtecsListInstanceSfsV41ReturnObjResultsResponse
- type CtecsListInstanceSfsV41ReturnObjResultsVmInfoResponse
- type CtecsListInstanceSnapshotPolicyV41Api
- type CtecsListInstanceSnapshotPolicyV41Request
- type CtecsListInstanceSnapshotPolicyV41Response
- type CtecsListInstanceSnapshotPolicyV41ReturnObjInstanceListResponse
- type CtecsListInstanceSnapshotPolicyV41ReturnObjResponse
- type CtecsListInstanceStatusV41Api
- type CtecsListInstanceStatusV41Request
- type CtecsListInstanceStatusV41Response
- type CtecsListInstanceStatusV41ReturnObjResponse
- type CtecsListInstanceStatusV41ReturnObjStatusListResponse
- type CtecsListInstanceV41Api
- type CtecsListInstanceV41LabelListRequest
- type CtecsListInstanceV41Request
- type CtecsListInstanceV41Response
- type CtecsListInstanceV41ReturnObjResponse
- type CtecsListInstanceV41ReturnObjResultsAddressesAddressListResponse
- type CtecsListInstanceV41ReturnObjResultsAddressesResponse
- type CtecsListInstanceV41ReturnObjResultsAffinityGroupResponse
- type CtecsListInstanceV41ReturnObjResultsFlavorResponse
- type CtecsListInstanceV41ReturnObjResultsImageResponse
- type CtecsListInstanceV41ReturnObjResultsMetadataResponse
- type CtecsListInstanceV41ReturnObjResultsNetworkCardListResponse
- type CtecsListInstanceV41ReturnObjResultsResponse
- type CtecsListInstanceV41ReturnObjResultsSecGroupListResponse
- type CtecsListInstanceV41ReturnObjResultsVipInfoListResponse
- type CtecsListLiteInstanceV41Api
- type CtecsListLiteInstanceV41Request
- type CtecsListLiteInstanceV41Response
- type CtecsListLiteInstanceV41ReturnObjResponse
- type CtecsListLiteInstanceV41ReturnObjResultsAddressesAddressListResponse
- type CtecsListLiteInstanceV41ReturnObjResultsAddressesResponse
- type CtecsListLiteInstanceV41ReturnObjResultsFlavorResponse
- type CtecsListLiteInstanceV41ReturnObjResultsImageResponse
- type CtecsListLiteInstanceV41ReturnObjResultsResponse
- type CtecsListLiveResizeFlavorV41Api
- type CtecsListLiveResizeFlavorV41Request
- type CtecsListLiveResizeFlavorV41Response
- type CtecsListLiveResizeFlavorV41ReturnObjFlavorListResponse
- type CtecsListLiveResizeFlavorV41ReturnObjResponse
- type CtecsListPortsV41Api
- type CtecsListPortsV41Request
- type CtecsListPortsV41Response
- type CtecsListPortsV41ReturnObjResponse
- type CtecsListRegionsV41Api
- type CtecsListRegionsV41Request
- type CtecsListRegionsV41Response
- type CtecsListRegionsV41ReturnObjRegionListResponse
- type CtecsListRegionsV41ReturnObjResponse
- type CtecsListSfsInstanceV41Api
- type CtecsListSfsInstanceV41Request
- type CtecsListSfsInstanceV41Response
- type CtecsListSfsInstanceV41ReturnObjResponse
- type CtecsListSfsInstanceV41ReturnObjResultsResponse
- type CtecsListSnapshotPolicyTaskV41Api
- type CtecsListSnapshotPolicyTaskV41Request
- type CtecsListSnapshotPolicyTaskV41Response
- type CtecsListSnapshotPolicyTaskV41ReturnObjResponse
- type CtecsListSnapshotPolicyTaskV41ReturnObjTaskListResponse
- type CtecsListSnapshotPolicyV41Api
- type CtecsListSnapshotPolicyV41Request
- type CtecsListSnapshotPolicyV41Response
- type CtecsListSnapshotPolicyV41ReturnObjResponse
- type CtecsListSnapshotPolicyV41ReturnObjSnapshotPolicyListResponse
- type CtecsListUpdateSpecFlavorV41Api
- type CtecsListUpdateSpecFlavorV41Request
- type CtecsListUpdateSpecFlavorV41Response
- type CtecsListUpdateSpecFlavorV41ReturnObjFlavorListResponse
- type CtecsListUpdateSpecFlavorV41ReturnObjResponse
- type CtecsLiteEcsCreateVolumeApi
- type CtecsLiteEcsCreateVolumeRequest
- type CtecsLiteEcsCreateVolumeResponse
- type CtecsLiteEcsCreateVolumeReturnObjResponse
- type CtecsLiteEcsUnsubscribeVolumeApi
- type CtecsLiteEcsUnsubscribeVolumeRequest
- type CtecsLiteEcsUnsubscribeVolumeResponse
- type CtecsLiteEcsUnsubscribeVolumeReturnObjResponse
- type CtecsLiveResizeInstanceV41Api
- type CtecsLiveResizeInstanceV41Request
- type CtecsLiveResizeInstanceV41Response
- type CtecsLiveResizeInstanceV41ReturnObjResponse
- type CtecsModifyCommandApi
- type CtecsModifyCommandDefaultParameterRequest
- type CtecsModifyCommandRequest
- type CtecsModifyCommandResponse
- type CtecsModifyCommandReturnObjResponse
- type CtecsModifySecurityGroupEgressV41Api
- type CtecsModifySecurityGroupEgressV41Request
- type CtecsModifySecurityGroupEgressV41Response
- type CtecsModifySecurityGroupIngressV41Api
- type CtecsModifySecurityGroupIngressV41Request
- type CtecsModifySecurityGroupIngressV41Response
- type CtecsOperateAllInstancesV41Api
- type CtecsOperateAllInstancesV41Request
- type CtecsOperateAllInstancesV41Response
- type CtecsOperateAllInstancesV41ReturnObjJobIDListResponse
- type CtecsOperateAllInstancesV41ReturnObjResponse
- type CtecsPortsAssignIpv6V41Api
- type CtecsPortsAssignIpv6V41Request
- type CtecsPortsAssignIpv6V41Response
- type CtecsPortsAssignSecondaryprivateipsV41Api
- type CtecsPortsAssignSecondaryprivateipsV41Request
- type CtecsPortsAssignSecondaryprivateipsV41Response
- type CtecsPortsAttachInstanceV41Api
- type CtecsPortsAttachInstanceV41Request
- type CtecsPortsAttachInstanceV41Response
- type CtecsPortsDetachInstanceV41Api
- type CtecsPortsDetachInstanceV41Request
- type CtecsPortsDetachInstanceV41Response
- type CtecsPortsUnassignIpv6V41Api
- type CtecsPortsUnassignIpv6V41Request
- type CtecsPortsUnassignIpv6V41Response
- type CtecsPortsUnassignSecondaryprivateipsV41Api
- type CtecsPortsUnassignSecondaryprivateipsV41Request
- type CtecsPortsUnassignSecondaryprivateipsV41Response
- type CtecsQueryAsyncResultV41Api
- type CtecsQueryAsyncResultV41Request
- type CtecsQueryAsyncResultV41Response
- type CtecsQueryAsyncResultV41ReturnObjResponse
- type CtecsQueryCustomerQuotasInRegionV41Api
- type CtecsQueryCustomerQuotasInRegionV41Request
- type CtecsQueryCustomerQuotasInRegionV41Response
- type CtecsQueryCustomerQuotasInRegionV41ReturnObjGlobal_quotaResponse
- type CtecsQueryCustomerQuotasInRegionV41ReturnObjQuotasResponse
- type CtecsQueryCustomerQuotasInRegionV41ReturnObjResponse
- type CtecsQueryCustomerResourcesInRegionV41Api
- type CtecsQueryCustomerResourcesInRegionV41Request
- type CtecsQueryCustomerResourcesInRegionV41Response
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesACLLISTDetailResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesACLLISTResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesBMSResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesCBRDetailResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesCBRResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesCBR_VBSDetailResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesCBR_VBSResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesCERTDetailResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesCERTResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesDisk_BackupDetailResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesDisk_BackupResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesIMAGEDetailResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesIMAGEResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesIP_POOLDetailResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesIP_POOLResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesLB_LISTENERDetailResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesLB_LISTENERResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesLOADBALANCERDetailResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesLOADBALANCERResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesNATDetailResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesNATResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesOS_BackupResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesPublic_IPResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesSNAPSHOTDetailResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesSNAPSHOTResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesVMResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesVOLUME_SNAPSHOTResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesVPCResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesVm_GroupDetailResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesVm_GroupResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesVolumeResponse
- type CtecsQueryCustomerResourcesInRegionV41ReturnObjResponse
- type CtecsQueryInstancIDV41Api
- type CtecsQueryInstancIDV41Request
- type CtecsQueryInstancIDV41Response
- type CtecsQueryInstancIDV41ReturnObjResponse
- type CtecsQueryInstanceStatisticsV41Api
- type CtecsQueryInstanceStatisticsV41Request
- type CtecsQueryInstanceStatisticsV41Response
- type CtecsQueryInstanceStatisticsV41ReturnObjInstanceStatisticsResponse
- type CtecsQueryInstanceStatisticsV41ReturnObjResponse
- type CtecsQueryJobInfoV41Api
- type CtecsQueryJobInfoV41Request
- type CtecsQueryJobInfoV41Response
- type CtecsQueryJobInfoV41ReturnObjFieldsResponse
- type CtecsQueryJobInfoV41ReturnObjResponse
- type CtecsQueryJobV41Api
- type CtecsQueryJobV41Request
- type CtecsQueryJobV41Response
- type CtecsQueryJobV41ReturnObjJobListResponse
- type CtecsQueryJobV41ReturnObjResponse
- type CtecsQueryNewOrderPriceV41Api
- type CtecsQueryNewOrderPriceV41DisksRequest
- type CtecsQueryNewOrderPriceV41OrderDisksRequest
- type CtecsQueryNewOrderPriceV41Request
- type CtecsQueryNewOrderPriceV41Response
- type CtecsQueryNewOrderPriceV41ReturnObjResponse
- type CtecsQueryNewOrderPriceV41ReturnObjSubOrderPricesOrderItemPricesResponse
- type CtecsQueryNewOrderPriceV41ReturnObjSubOrderPricesResponse
- type CtecsQueryNewOrderPriceV42Api
- type CtecsQueryNewOrderPriceV42DisksRequest
- type CtecsQueryNewOrderPriceV42OrderDisksRequest
- type CtecsQueryNewOrderPriceV42Request
- type CtecsQueryNewOrderPriceV42Response
- type CtecsQueryNewOrderPriceV42ReturnObjResponse
- type CtecsQueryNewOrderPriceV42ReturnObjSubOrderPricesOrderItemPricesResponse
- type CtecsQueryNewOrderPriceV42ReturnObjSubOrderPricesResponse
- type CtecsQueryOrderUuidV41Api
- type CtecsQueryOrderUuidV41Request
- type CtecsQueryOrderUuidV41Response
- type CtecsQueryOrderUuidV41ReturnObjResponse
- type CtecsQueryProductsInRegionV41Api
- type CtecsQueryProductsInRegionV41Request
- type CtecsQueryProductsInRegionV41Response
- type CtecsQueryProductsInRegionV41ReturnObjAzListDetailsResponse
- type CtecsQueryProductsInRegionV41ReturnObjAzListDetailsStorageTypeResponse
- type CtecsQueryProductsInRegionV41ReturnObjAzListResponse
- type CtecsQueryProductsInRegionV41ReturnObjResponse
- type CtecsQueryRenewOrderPriceV41Api
- type CtecsQueryRenewOrderPriceV41Request
- type CtecsQueryRenewOrderPriceV41Response
- type CtecsQueryRenewOrderPriceV41ReturnObjResponse
- type CtecsQueryRenewOrderPriceV41ReturnObjSubOrderPricesOrderItemPricesResponse
- type CtecsQueryRenewOrderPriceV41ReturnObjSubOrderPricesResponse
- type CtecsQueryRenewOrderPriceV42Api
- type CtecsQueryRenewOrderPriceV42Request
- type CtecsQueryRenewOrderPriceV42Response
- type CtecsQueryRenewOrderPriceV42ReturnObjResponse
- type CtecsQueryRenewOrderPriceV42ReturnObjSubOrderPricesOrderItemPricesResponse
- type CtecsQueryRenewOrderPriceV42ReturnObjSubOrderPricesResponse
- type CtecsQuerySecurityGroupsV41Api
- type CtecsQuerySecurityGroupsV41Request
- type CtecsQuerySecurityGroupsV41Response
- type CtecsQuerySecurityGroupsV41ReturnObjResponse
- type CtecsQuerySecurityGroupsV41ReturnObjSecurityGroupRuleListResponse
- type CtecsQuerySnapshotDetailsV41Api
- type CtecsQuerySnapshotDetailsV41Request
- type CtecsQuerySnapshotDetailsV41Response
- type CtecsQuerySnapshotDetailsV41ReturnObjResponse
- type CtecsQuerySnapshotDetailsV41ReturnObjResultsMembersResponse
- type CtecsQuerySnapshotDetailsV41ReturnObjResultsResponse
- type CtecsQuerySnapshotListV41Api
- type CtecsQuerySnapshotListV41Request
- type CtecsQuerySnapshotListV41Response
- type CtecsQuerySnapshotListV41ReturnObjResponse
- type CtecsQuerySnapshotListV41ReturnObjResultsMembersResponse
- type CtecsQuerySnapshotListV41ReturnObjResultsResponse
- type CtecsQuerySnapshotStatisticsV41Api
- type CtecsQuerySnapshotStatisticsV41Request
- type CtecsQuerySnapshotStatisticsV41Response
- type CtecsQuerySnapshotStatisticsV41ReturnObjResponse
- type CtecsQuerySnapshotStatusV41Api
- type CtecsQuerySnapshotStatusV41Request
- type CtecsQuerySnapshotStatusV41Response
- type CtecsQuerySnapshotStatusV41ReturnObjResponse
- type CtecsQuerySummaryInRegionV41Api
- type CtecsQuerySummaryInRegionV41Request
- type CtecsQuerySummaryInRegionV41Response
- type CtecsQuerySummaryInRegionV41ReturnObjResponse
- type CtecsQueryUpgradeOrderPriceV41Api
- type CtecsQueryUpgradeOrderPriceV41Request
- type CtecsQueryUpgradeOrderPriceV41Response
- type CtecsQueryUpgradeOrderPriceV41ReturnObjResponse
- type CtecsQueryUpgradeOrderPriceV41ReturnObjSubOrderPricesOrderItemPricesResponse
- type CtecsQueryUpgradeOrderPriceV41ReturnObjSubOrderPricesResponse
- type CtecsQueryUpgradeOrderPriceV42Api
- type CtecsQueryUpgradeOrderPriceV42Request
- type CtecsQueryUpgradeOrderPriceV42Response
- type CtecsQueryUpgradeOrderPriceV42ReturnObjResponse
- type CtecsQueryUpgradeOrderPriceV42ReturnObjSubOrderPricesOrderItemPricesResponse
- type CtecsQueryUpgradeOrderPriceV42ReturnObjSubOrderPricesResponse
- type CtecsQueryUserdataDetailsV41Api
- type CtecsQueryUserdataDetailsV41Request
- type CtecsQueryUserdataDetailsV41Response
- type CtecsQueryUserdataDetailsV41ReturnObjResponse
- type CtecsQueryVmCpuHistoryMetricDataV41Api
- type CtecsQueryVmCpuHistoryMetricDataV41Request
- type CtecsQueryVmCpuHistoryMetricDataV41Response
- type CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResponse
- type CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultItemAggregateListCpu_idle_timeResponse
- type CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultItemAggregateListCpu_interrupt_timeResponse
- type CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultItemAggregateListCpu_iowait_timeResponse
- type CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultItemAggregateListCpu_softirq_timeResponse
- type CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultItemAggregateListCpu_system_timeResponse
- type CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultItemAggregateListCpu_user_timeResponse
- type CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultItemAggregateListCpu_utilResponse
- type CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultItemAggregateListOther_cpu_utilResponse
- type CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultItemAggregateListProcess_cpu_usedResponse
- type CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultItemAggregateListResponse
- type CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultResponse
- type CtecsQueryVmCpuLatestMetricDataV41Api
- type CtecsQueryVmCpuLatestMetricDataV41Request
- type CtecsQueryVmCpuLatestMetricDataV41Response
- type CtecsQueryVmCpuLatestMetricDataV41ReturnObjResponse
- type CtecsQueryVmCpuLatestMetricDataV41ReturnObjResultItemListResponse
- type CtecsQueryVmCpuLatestMetricDataV41ReturnObjResultResponse
- type CtecsQueryVmDiskHistoryMetricDataV41Api
- type CtecsQueryVmDiskHistoryMetricDataV41Request
- type CtecsQueryVmDiskHistoryMetricDataV41Response
- type CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResponse
- type CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResultItemAggregateListDisk_read_bytes_rateResponse
- type CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResultItemAggregateListDisk_read_requests_rateResponse
- type CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResultItemAggregateListDisk_utilResponse
- type CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResultItemAggregateListDisk_write_bytes_rateResponse
- type CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResultItemAggregateListDisk_write_requests_rateResponse
- type CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResultItemAggregateListResponse
- type CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResultResponse
- type CtecsQueryVmDiskLatestMetricDataV41Api
- type CtecsQueryVmDiskLatestMetricDataV41Request
- type CtecsQueryVmDiskLatestMetricDataV41Response
- type CtecsQueryVmDiskLatestMetricDataV41ReturnObjResponse
- type CtecsQueryVmDiskLatestMetricDataV41ReturnObjResultItemListResponse
- type CtecsQueryVmDiskLatestMetricDataV41ReturnObjResultResponse
- type CtecsQueryVmMemoryHistoryMetricDataV41Api
- type CtecsQueryVmMemoryHistoryMetricDataV41Request
- type CtecsQueryVmMemoryHistoryMetricDataV41Response
- type CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResponse
- type CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResultItemAggregateListBuffer_memoryResponse
- type CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResultItemAggregateListCache_memoryResponse
- type CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResultItemAggregateListFree_memoryResponse
- type CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResultItemAggregateListMem_utilResponse
- type CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResultItemAggregateListProcess_memory_usedResponse
- type CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResultItemAggregateListPused_memoryResponse
- type CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResultItemAggregateListResponse
- type CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResultItemAggregateListUsed_memoryResponse
- type CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResultResponse
- type CtecsQueryVmMemoryLatestMetricDataV41Api
- type CtecsQueryVmMemoryLatestMetricDataV41Request
- type CtecsQueryVmMemoryLatestMetricDataV41Response
- type CtecsQueryVmMemoryLatestMetricDataV41ReturnObjResponse
- type CtecsQueryVmMemoryLatestMetricDataV41ReturnObjResultItemListResponse
- type CtecsQueryVmMemoryLatestMetricDataV41ReturnObjResultResponse
- type CtecsQueryVmNetworkHistoryMetricDataV41Api
- type CtecsQueryVmNetworkHistoryMetricDataV41Request
- type CtecsQueryVmNetworkHistoryMetricDataV41Response
- type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResponse
- type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListNet_in_bytes_rateResponse
- type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListNet_out_bytes_rateResponse
- type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListNetwork_incoming_drop_rate_inbandResponse
- type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListNetwork_incoming_errs_rate_inbandResponse
- type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListNetwork_incoming_packets_rate_inbandResponse
- type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListNetwork_outing_drop_rate_inbandResponse
- type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListNetwork_outing_errs_rate_inbandResponse
- type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListNetwork_outing_packets_rate_inbandResponse
- type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListResponse
- type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultResponse
- type CtecsQueryVmNetworkLatestMetricDataV41Api
- type CtecsQueryVmNetworkLatestMetricDataV41Request
- type CtecsQueryVmNetworkLatestMetricDataV41Response
- type CtecsQueryVmNetworkLatestMetricDataV41ReturnObjResponse
- type CtecsQueryVmNetworkLatestMetricDataV41ReturnObjResultItemListResponse
- type CtecsQueryVmNetworkLatestMetricDataV41ReturnObjResultResponse
- type CtecsQueryVncDetailsV41Api
- type CtecsQueryVncDetailsV41Request
- type CtecsQueryVncDetailsV41Response
- type CtecsQueryVncDetailsV41ReturnObjResponse
- type CtecsQueryVolumeListV41Api
- type CtecsQueryVolumeListV41Request
- type CtecsQueryVolumeListV41Response
- type CtecsQueryVolumeListV41ReturnObjResponse
- type CtecsQueryVolumeListV41ReturnObjResultsResponse
- type CtecsQueryZonesInRegionV41Api
- type CtecsQueryZonesInRegionV41Request
- type CtecsQueryZonesInRegionV41Response
- type CtecsQueryZonesInRegionV41ReturnObjResponse
- type CtecsQueryZonesInRegionV41ReturnObjZoneListResponse
- type CtecsRebootInstanceV41Api
- type CtecsRebootInstanceV41Request
- type CtecsRebootInstanceV41Response
- type CtecsRebootInstanceV41ReturnObjResponse
- type CtecsRebootLiteInstanceV41Api
- type CtecsRebootLiteInstanceV41Request
- type CtecsRebootLiteInstanceV41Response
- type CtecsRebootLiteInstanceV41ReturnObjResponse
- type CtecsRebuildInstanceV41Api
- type CtecsRebuildInstanceV41Request
- type CtecsRebuildInstanceV41Response
- type CtecsRebuildInstanceV41ReturnObjResponse
- type CtecsRebuildLiteInstanceApi
- type CtecsRebuildLiteInstanceRequest
- type CtecsRebuildLiteInstanceResponse
- type CtecsRebuildLiteInstanceReturnObjResponse
- type CtecsRecoverUnsubscribeInstanceV41Api
- type CtecsRecoverUnsubscribeInstanceV41Request
- type CtecsRecoverUnsubscribeInstanceV41Response
- type CtecsRecoverUnsubscribeInstanceV41ReturnObjOrderInfoResponse
- type CtecsRecoverUnsubscribeInstanceV41ReturnObjResponse
- type CtecsRenewInstanceBackupRepoApi
- type CtecsRenewInstanceBackupRepoRequest
- type CtecsRenewInstanceBackupRepoResponse
- type CtecsRenewInstanceBackupRepoReturnObjResponse
- type CtecsResetInstancePasswordV41Api
- type CtecsResetInstancePasswordV41Request
- type CtecsResetInstancePasswordV41Response
- type CtecsResetInstancePasswordV41ReturnObjResponse
- type CtecsResetLiteInstancePasswordV41Api
- type CtecsResetLiteInstancePasswordV41Request
- type CtecsResetLiteInstancePasswordV41Response
- type CtecsResetLiteInstancePasswordV41ReturnObjResponse
- type CtecsRestoreInstanceBackupApi
- type CtecsRestoreInstanceBackupRequest
- type CtecsRestoreInstanceBackupResponse
- type CtecsRestoreInstanceBackupReturnObjResponse
- type CtecsRestoreSnapshotV41Api
- type CtecsRestoreSnapshotV41Request
- type CtecsRestoreSnapshotV41Response
- type CtecsRestoreSnapshotV41ReturnObjResponse
- type CtecsResubscribeInstanceV41Api
- type CtecsResubscribeInstanceV41Request
- type CtecsResubscribeInstanceV41Response
- type CtecsResubscribeInstanceV41ReturnObjResponse
- type CtecsResubscribeLiteInstanceV41Api
- type CtecsResubscribeLiteInstanceV41Request
- type CtecsResubscribeLiteInstanceV41Response
- type CtecsResubscribeLiteInstanceV41ReturnObjResponse
- type CtecsRevokeSecurityGroupEgressV41Api
- type CtecsRevokeSecurityGroupEgressV41Request
- type CtecsRevokeSecurityGroupEgressV41Response
- type CtecsRevokeSecurityGroupIngressV41Api
- type CtecsRevokeSecurityGroupIngressV41Request
- type CtecsRevokeSecurityGroupIngressV41Response
- type CtecsSendFileApi
- type CtecsSendFileRequest
- type CtecsSendFileResponse
- type CtecsSendFileReturnObjResponse
- type CtecsShelveInstanceApi
- type CtecsShelveInstanceRequest
- type CtecsShelveInstanceResponse
- type CtecsShelveInstanceReturnObjResponse
- type CtecsShowPortsV41Api
- type CtecsShowPortsV41Request
- type CtecsShowPortsV41Response
- type CtecsShowPortsV41ReturnObjAssociatedEipResponse
- type CtecsShowPortsV41ReturnObjResponse
- type CtecsShowVolumeV41Api
- type CtecsShowVolumeV41Request
- type CtecsShowVolumeV41Response
- type CtecsShowVolumeV41ReturnObjAttachmentsResponse
- type CtecsShowVolumeV41ReturnObjResponse
- type CtecsSnapshotCreateInstanceV41Api
- type CtecsSnapshotCreateInstanceV41LabelListRequest
- type CtecsSnapshotCreateInstanceV41NetworkCardListRequest
- type CtecsSnapshotCreateInstanceV41Request
- type CtecsSnapshotCreateInstanceV41Response
- type CtecsSnapshotCreateInstanceV41ReturnObjResponse
- type CtecsSnapshotPolicyUnbindInstancesV41Api
- type CtecsSnapshotPolicyUnbindInstancesV41Request
- type CtecsSnapshotPolicyUnbindInstancesV41Response
- type CtecsSnapshotPolicyUnbindInstancesV41ReturnObjResponse
- type CtecsSnapshotpolicyBindInstanceV41Api
- type CtecsSnapshotpolicyBindInstanceV41Request
- type CtecsSnapshotpolicyBindInstanceV41Response
- type CtecsSnapshotpolicyBindInstanceV41ReturnObjResponse
- type CtecsStartInstanceV41Api
- type CtecsStartInstanceV41Request
- type CtecsStartInstanceV41Response
- type CtecsStartInstanceV41ReturnObjResponse
- type CtecsStartLiteInstanceV41Api
- type CtecsStartLiteInstanceV41Request
- type CtecsStartLiteInstanceV41Response
- type CtecsStartLiteInstanceV41ReturnObjResponse
- type CtecsStatisticsInstanceBackupApi
- type CtecsStatisticsInstanceBackupRequest
- type CtecsStatisticsInstanceBackupResponse
- type CtecsStatisticsInstanceBackupReturnObjResponse
- type CtecsStatusInstanceBackupV41Api
- type CtecsStatusInstanceBackupV41Request
- type CtecsStatusInstanceBackupV41Response
- type CtecsStatusInstanceBackupV41ReturnObjResponse
- type CtecsStopInstanceV41Api
- type CtecsStopInstanceV41Request
- type CtecsStopInstanceV41Response
- type CtecsStopInstanceV41ReturnObjResponse
- type CtecsStopLiteInstanceV41Api
- type CtecsStopLiteInstanceV41Request
- type CtecsStopLiteInstanceV41Response
- type CtecsStopLiteInstanceV41ReturnObjResponse
- type CtecsTotalInstanceBackupVolumeSizeV41Api
- type CtecsTotalInstanceBackupVolumeSizeV41Request
- type CtecsTotalInstanceBackupVolumeSizeV41Response
- type CtecsTotalInstanceBackupVolumeSizeV41ReturnObjResponse
- type CtecsUnsubscribeInstanceV41Api
- type CtecsUnsubscribeInstanceV41Request
- type CtecsUnsubscribeInstanceV41Response
- type CtecsUnsubscribeInstanceV41ReturnObjResponse
- type CtecsUnsubscribeLiteInstanceV41Api
- type CtecsUnsubscribeLiteInstanceV41Request
- type CtecsUnsubscribeLiteInstanceV41Response
- type CtecsUnsubscribeLiteInstanceV41ReturnObjResponse
- type CtecsUpdateAffinityGroupApi
- type CtecsUpdateAffinityGroupRequest
- type CtecsUpdateAffinityGroupResponse
- type CtecsUpdateAffinityGroupReturnObjResponse
- type CtecsUpdateDeletionProtectionV41Api
- type CtecsUpdateDeletionProtectionV41Request
- type CtecsUpdateDeletionProtectionV41Response
- type CtecsUpdateDeletionProtectionV41ReturnObjResponse
- type CtecsUpdateEcsLabelV41Api
- type CtecsUpdateEcsLabelV41LabelListRequest
- type CtecsUpdateEcsLabelV41Request
- type CtecsUpdateEcsLabelV41Response
- type CtecsUpdateFlavorSpecV41Api
- type CtecsUpdateFlavorSpecV41Request
- type CtecsUpdateFlavorSpecV41Response
- type CtecsUpdateFlavorSpecV41ReturnObjResponse
- type CtecsUpdateInstanceBackupPolicyApi
- type CtecsUpdateInstanceBackupPolicyRequest
- type CtecsUpdateInstanceBackupPolicyResponse
- type CtecsUpdateInstanceBackupPolicyReturnObjResponse
- type CtecsUpdateInstanceBackupV41Api
- type CtecsUpdateInstanceBackupV41Request
- type CtecsUpdateInstanceBackupV41Response
- type CtecsUpdateInstanceBackupV41ReturnObjResponse
- type CtecsUpdateInstanceSpecV41Api
- type CtecsUpdateInstanceSpecV41Request
- type CtecsUpdateInstanceSpecV41Response
- type CtecsUpdateInstanceSpecV41ReturnObjResponse
- type CtecsUpdateInstanceV41Api
- type CtecsUpdateInstanceV41Request
- type CtecsUpdateInstanceV41Response
- type CtecsUpdateInstanceV41ReturnObjResponse
- type CtecsUpdateMetadataV41Api
- type CtecsUpdateMetadataV41MetadataRequest
- type CtecsUpdateMetadataV41Request
- type CtecsUpdateMetadataV41Response
- type CtecsUpdateMetadataV41ReturnObjMetadataResponse
- type CtecsUpdateMetadataV41ReturnObjResponse
- type CtecsUpdateNetworkSpecV41Api
- type CtecsUpdateNetworkSpecV41Request
- type CtecsUpdateNetworkSpecV41Response
- type CtecsUpdateNetworkSpecV41ReturnObjResponse
- type CtecsUpdatePortsV41Api
- type CtecsUpdatePortsV41Request
- type CtecsUpdatePortsV41Response
- type CtecsUpdateSnapshotPolicyV41Api
- type CtecsUpdateSnapshotPolicyV41Request
- type CtecsUpdateSnapshotPolicyV41Response
- type CtecsUpdateSnapshotPolicyV41ReturnObjResponse
- type CtecsUpdateSnapshotV41Api
- type CtecsUpdateSnapshotV41Request
- type CtecsUpdateSnapshotV41Response
- type CtecsUpdateSnapshotV41ReturnObjResponse
- type CtecsUpdateSpecLiteInstanceV41Api
- type CtecsUpdateSpecLiteInstanceV41Request
- type CtecsUpdateSpecLiteInstanceV41Response
- type CtecsUpdateSpecLiteInstanceV41ReturnObjResponse
- type CtecsUpdateVolumeV41Api
- type CtecsUpdateVolumeV41Request
- type CtecsUpdateVolumeV41Response
- type CtecsUpgradeInstanceBackupRepoApi
- type CtecsUpgradeInstanceBackupRepoRequest
- type CtecsUpgradeInstanceBackupRepoResponse
- type CtecsUpgradeInstanceBackupRepoReturnObjResponse
- type CtecsUsageInstanceBackupApi
- type CtecsUsageInstanceBackupRequest
- type CtecsUsageInstanceBackupResponse
- type CtecsUsageInstanceBackupReturnObjResponse
Constants ¶
View Source
const EndpointName = "ctecs"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvRetention ¶
type AdvRetention struct {
AdvDay int32 `json:"advDay,omitempty"` /* 保留n天内、每天的第一个备份,n为输入的数字。单位为天,取值范围:[1, 99999],默认值0 */
AdvWeek int32 `json:"advWeek,omitempty"` /* 保留n周内、每周的第一个备份,n为输入的数字。单位为周,取值范围:[1, 99999],默认值0 */
AdvMonth int32 `json:"advMonth,omitempty"` /* 保留n月内、每月的第一个备份,n为输入的数字。单位为月,取值范围:[1, 99999],默认值0 */
AdvYear int32 `json:"advYear,omitempty"` /* 保留n年内、每年的第一个备份,n为输入的数字。单位为年,取值范围:[1, 99999],默认值0 */
}
type Apis ¶
type Apis struct {
CtecsDeleteInstanceAndRelatedResourceApi *CtecsDeleteInstanceAndRelatedResourceApi
CtecsRecoverUnsubscribeInstanceV41Api *CtecsRecoverUnsubscribeInstanceV41Api
CtecsGetCaAgentApi *CtecsGetCaAgentApi
CtecsDescribeSendFileResultsApi *CtecsDescribeSendFileResultsApi
CtecsSendFileApi *CtecsSendFileApi
CtecsGetCommandApi *CtecsGetCommandApi
CtecsGetCommandsApi *CtecsGetCommandsApi
CtecsInvokeCommandApi *CtecsInvokeCommandApi
CtecsDeleteCommandApi *CtecsDeleteCommandApi
CtecsModifyCommandApi *CtecsModifyCommandApi
CtecsCreateCommandApi *CtecsCreateCommandApi
CtecsCreateSameConfigInstancesApi *CtecsCreateSameConfigInstancesApi
CtecsBatchOperateEcsLabelV41Api *CtecsBatchOperateEcsLabelV41Api
CtecsUpdateEcsLabelV41Api *CtecsUpdateEcsLabelV41Api
CtecsOperateAllInstancesV41Api *CtecsOperateAllInstancesV41Api
CtecsLiteEcsCreateVolumeApi *CtecsLiteEcsCreateVolumeApi
CtecsListBackupTaskApi *CtecsListBackupTaskApi
CtecsListUpdateSpecFlavorV41Api *CtecsListUpdateSpecFlavorV41Api
CtecsRebuildLiteInstanceApi *CtecsRebuildLiteInstanceApi
CtecsEcsSnapshotTaskListApi *CtecsEcsSnapshotTaskListApi
CtecsLiteEcsUnsubscribeVolumeApi *CtecsLiteEcsUnsubscribeVolumeApi
CtecsEcsSnapshotBatchDeleteApi *CtecsEcsSnapshotBatchDeleteApi
CtecsDestroyInstanceApi *CtecsDestroyInstanceApi
CtecsEcsDeleteDelegateApi *CtecsEcsDeleteDelegateApi
CtecsEcsAttachDelegateApi *CtecsEcsAttachDelegateApi
CtecsCloudAssistantDescribeInvocationResultsApi *CtecsCloudAssistantDescribeInvocationResultsApi
CtecsCloudAssistantRunCommandApi *CtecsCloudAssistantRunCommandApi
CtecsListGpuDriverV41Api *CtecsListGpuDriverV41Api
CtecsBatchShelveInstancesApi *CtecsBatchShelveInstancesApi
CtecsShelveInstanceApi *CtecsShelveInstanceApi
CtecsAffinityGroupUnbindInstancesApi *CtecsAffinityGroupUnbindInstancesApi
CtecsInstanceDetachSfsV41Api *CtecsInstanceDetachSfsV41Api
CtecsInstanceAttachSfsV41Api *CtecsInstanceAttachSfsV41Api
CtecsListSfsInstanceV41Api *CtecsListSfsInstanceV41Api
CtecsListInstanceSfsV41Api *CtecsListInstanceSfsV41Api
CtecsUpdateDeletionProtectionV41Api *CtecsUpdateDeletionProtectionV41Api
CtecsLiveResizeInstanceV41Api *CtecsLiveResizeInstanceV41Api
CtecsListLiveResizeFlavorV41Api *CtecsListLiveResizeFlavorV41Api
CtecsQuerySnapshotStatisticsV41Api *CtecsQuerySnapshotStatisticsV41Api
CtecsShowVolumeV41Api *CtecsShowVolumeV41Api
CtecsListFlavorLiteInstanceV41Api *CtecsListFlavorLiteInstanceV41Api
CtecsDeleteVolumeV41Api *CtecsDeleteVolumeV41Api
CtecsAttachVolumeV41Api *CtecsAttachVolumeV41Api
CtecsExtendVolumeV41Api *CtecsExtendVolumeV41Api
CtecsDetachVolumeV41Api *CtecsDetachVolumeV41Api
CtecsUpdateSpecLiteInstanceV41Api *CtecsUpdateSpecLiteInstanceV41Api
CtecsResetLiteInstancePasswordV41Api *CtecsResetLiteInstancePasswordV41Api
CtecsRebootLiteInstanceV41Api *CtecsRebootLiteInstanceV41Api
CtecsStopLiteInstanceV41Api *CtecsStopLiteInstanceV41Api
CtecsStartLiteInstanceV41Api *CtecsStartLiteInstanceV41Api
CtecsDetailsVncLiteInstanceV41Api *CtecsDetailsVncLiteInstanceV41Api
CtecsUnsubscribeLiteInstanceV41Api *CtecsUnsubscribeLiteInstanceV41Api
CtecsResubscribeLiteInstanceV41Api *CtecsResubscribeLiteInstanceV41Api
CtecsDetailsLiteInstanceV41Api *CtecsDetailsLiteInstanceV41Api
CtecsListLiteInstanceV41Api *CtecsListLiteInstanceV41Api
CtecsCreateLiteInstanceV41Api *CtecsCreateLiteInstanceV41Api
CtecsUpdateVolumeV41Api *CtecsUpdateVolumeV41Api
CtecsCreateVolumeV41Api *CtecsCreateVolumeV41Api
CtecsQueryOrderUuidV41Api *CtecsQueryOrderUuidV41Api
CtecsQueryCustomerQuotasInRegionV41Api *CtecsQueryCustomerQuotasInRegionV41Api
CtecsQueryCustomerResourcesInRegionV41Api *CtecsQueryCustomerResourcesInRegionV41Api
CtecsDeleteSnapshotpolicyV41Api *CtecsDeleteSnapshotpolicyV41Api
CtecsQueryInstancIDV41Api *CtecsQueryInstancIDV41Api
CtecsExecuteSnapshotPolicyV41Api *CtecsExecuteSnapshotPolicyV41Api
CtecsListInstanceSnapshotPolicyV41Api *CtecsListInstanceSnapshotPolicyV41Api
CtecsDetailsSnapshotpolicyV41Api *CtecsDetailsSnapshotpolicyV41Api
CtecsListSnapshotPolicyV41Api *CtecsListSnapshotPolicyV41Api
CtecsListSnapshotPolicyTaskV41Api *CtecsListSnapshotPolicyTaskV41Api
CtecsSnapshotPolicyUnbindInstancesV41Api *CtecsSnapshotPolicyUnbindInstancesV41Api
CtecsSnapshotpolicyBindInstanceV41Api *CtecsSnapshotpolicyBindInstanceV41Api
CtecsEnableSnapshotPolicyV41Api *CtecsEnableSnapshotPolicyV41Api
CtecsCreateSnapshotpolicyV41Api *CtecsCreateSnapshotpolicyV41Api
CtecsDisableSnapshotPolicyV41Api *CtecsDisableSnapshotPolicyV41Api
CtecsUpdateSnapshotPolicyV41Api *CtecsUpdateSnapshotPolicyV41Api
CtecsQueryJobV41Api *CtecsQueryJobV41Api
CtecsDescribeInstancesApi *CtecsDescribeInstancesApi
CtecsCreateMetadataV41Api *CtecsCreateMetadataV41Api
CtecsListInstanceBackupV41Api *CtecsListInstanceBackupV41Api
CtecsDetailsInstanceBackupV41Api *CtecsDetailsInstanceBackupV41Api
CtecsCreateSnapshotV41Api *CtecsCreateSnapshotV41Api
CtecsUpdateSnapshotV41Api *CtecsUpdateSnapshotV41Api
CtecsBatchUpdateSnapshotV41Api *CtecsBatchUpdateSnapshotV41Api
CtecsQuerySnapshotListV41Api *CtecsQuerySnapshotListV41Api
CtecsQuerySnapshotStatusV41Api *CtecsQuerySnapshotStatusV41Api
CtecsQuerySnapshotDetailsV41Api *CtecsQuerySnapshotDetailsV41Api
CtecsImportKeypairV41Api *CtecsImportKeypairV41Api
CtecsCreateKeypairV41Api *CtecsCreateKeypairV41Api
CtecsStatusInstanceBackupV41Api *CtecsStatusInstanceBackupV41Api
CtecsDetailsKeypairV41Api *CtecsDetailsKeypairV41Api
CtecsKeypairAttachInstanceV41Api *CtecsKeypairAttachInstanceV41Api
CtecsInstanceDetachKeypairV41Api *CtecsInstanceDetachKeypairV41Api
CtecsUpdateInstanceBackupV41Api *CtecsUpdateInstanceBackupV41Api
CtecsBackupBatchUpdateApi *CtecsBackupBatchUpdateApi
CtecsCreateInstanceBackupV41Api *CtecsCreateInstanceBackupV41Api
CtecsDetailsBackupInstanceV41Api *CtecsDetailsBackupInstanceV41Api
CtecsTotalInstanceBackupVolumeSizeV41Api *CtecsTotalInstanceBackupVolumeSizeV41Api
CtecsListFlavorV41Api *CtecsListFlavorV41Api
CtecsListFlavorFamiliesV41Api *CtecsListFlavorFamiliesV41Api
CtecsListInstanceFlavorFamiliesV41Api *CtecsListInstanceFlavorFamiliesV41Api
CtecsListAffinityGroupV41Api *CtecsListAffinityGroupV41Api
CtecsDeleteMetadataV41Api *CtecsDeleteMetadataV41Api
CtecsUpdateMetadataV41Api *CtecsUpdateMetadataV41Api
CtecsGetAffinityGroupV41Api *CtecsGetAffinityGroupV41Api
CtecsListAffinityGroupInstanceV41Api *CtecsListAffinityGroupInstanceV41Api
CtecsDetailsMetadataV41Api *CtecsDetailsMetadataV41Api
CtecsCreateAffinityGroupV41Api *CtecsCreateAffinityGroupV41Api
CtecsAffinityGroupbindInstanceV41Api *CtecsAffinityGroupbindInstanceV41Api
CtecsDescribeAvailabilityZonesV41Api *CtecsDescribeAvailabilityZonesV41Api
CtecsAffinityGroupUnbindInstanceV41Api *CtecsAffinityGroupUnbindInstanceV41Api
CtecsAffinityGroupbindInstanceCheckV41Api *CtecsAffinityGroupbindInstanceCheckV41Api
CtecsQueryUserdataDetailsV41Api *CtecsQueryUserdataDetailsV41Api
CtecsDetailsInstanceV41Api *CtecsDetailsInstanceV41Api
CtecsListInstanceV41Api *CtecsListInstanceV41Api
CtecsListInstanceStatusV41Api *CtecsListInstanceStatusV41Api
CtecsListFixedIpV41Api *CtecsListFixedIpV41Api
CtecsBatchRebuildInstancesV41Api *CtecsBatchRebuildInstancesV41Api
CtecsBatchRebootInstancesV41Api *CtecsBatchRebootInstancesV41Api
CtecsBatchStopInstancesV41Api *CtecsBatchStopInstancesV41Api
CtecsBatchStartInstancesV41Api *CtecsBatchStartInstancesV41Api
CtecsRebuildInstanceV41Api *CtecsRebuildInstanceV41Api
CtecsRebootInstanceV41Api *CtecsRebootInstanceV41Api
CtecsStopInstanceV41Api *CtecsStopInstanceV41Api
CtecsStartInstanceV41Api *CtecsStartInstanceV41Api
CtecsUpdateNetworkSpecV41Api *CtecsUpdateNetworkSpecV41Api
CtecsUpdateFlavorSpecV41Api *CtecsUpdateFlavorSpecV41Api
CtecsUpdateInstanceSpecV41Api *CtecsUpdateInstanceSpecV41Api
CtecsGetVolumeStatisticsV41Api *CtecsGetVolumeStatisticsV41Api
CtecsQueryVolumeListV41Api *CtecsQueryVolumeListV41Api
CtecsQueryVncDetailsV41Api *CtecsQueryVncDetailsV41Api
CtecsBatchUpdateInstancesPasswordV41Api *CtecsBatchUpdateInstancesPasswordV41Api
CtecsResetInstancePasswordV41Api *CtecsResetInstancePasswordV41Api
CtecsBatchUpdateInstancesV41Api *CtecsBatchUpdateInstancesV41Api
CtecsUpdateInstanceV41Api *CtecsUpdateInstanceV41Api
CtecsUnsubscribeInstanceV41Api *CtecsUnsubscribeInstanceV41Api
CtecsResubscribeInstanceV41Api *CtecsResubscribeInstanceV41Api
CtecsBatchCreateInstancesV41Api *CtecsBatchCreateInstancesV41Api
CtecsCreateInstanceV41Api *CtecsCreateInstanceV41Api
CtecsCloneInstanceApi *CtecsCloneInstanceApi
CtecsCreateInstanceByInstanceBackupApi *CtecsCreateInstanceByInstanceBackupApi
CtecsSnapshotCreateInstanceV41Api *CtecsSnapshotCreateInstanceV41Api
CtecsListInstanceBackupPolicyBindInstancesApi *CtecsListInstanceBackupPolicyBindInstancesApi
CtecsQueryUpgradeOrderPriceV41Api *CtecsQueryUpgradeOrderPriceV41Api
CtecsQueryRenewOrderPriceV41Api *CtecsQueryRenewOrderPriceV41Api
CtecsQueryNewOrderPriceV42Api *CtecsQueryNewOrderPriceV42Api
CtecsListInstanceBackupPolicyApi *CtecsListInstanceBackupPolicyApi
CtecsInstanceBackupPolicyUnbindRepoApi *CtecsInstanceBackupPolicyUnbindRepoApi
CtecsInstanceBackupPolicyBindRepoApi *CtecsInstanceBackupPolicyBindRepoApi
CtecsInstanceBackupPolicyUnbindInstancesApi *CtecsInstanceBackupPolicyUnbindInstancesApi
CtecsInstanceBackupPolicyBindInstancesApi *CtecsInstanceBackupPolicyBindInstancesApi
CtecsExecuteInstanceBackupPolicyApi *CtecsExecuteInstanceBackupPolicyApi
CtecsUpdateInstanceBackupPolicyApi *CtecsUpdateInstanceBackupPolicyApi
CtecsDeleteInstanceBackupPolicyApi *CtecsDeleteInstanceBackupPolicyApi
CtecsCreateInstanceBackupPolicyApi *CtecsCreateInstanceBackupPolicyApi
CtecsUpgradeInstanceBackupRepoApi *CtecsUpgradeInstanceBackupRepoApi
CtecsCreateInstanceBackupRepoApi *CtecsCreateInstanceBackupRepoApi
CtecsListInstanceBackupRepoApi *CtecsListInstanceBackupRepoApi
CtecsRenewInstanceBackupRepoApi *CtecsRenewInstanceBackupRepoApi
CtecsDeleteInstanceBackupRepoApi *CtecsDeleteInstanceBackupRepoApi
CtecsCreateEipV41Api *CtecsCreateEipV41Api
CtecsStatisticsInstanceBackupApi *CtecsStatisticsInstanceBackupApi
CtecsDeleteEipV41Api *CtecsDeleteEipV41Api
CtecsQueryVmNetworkHistoryMetricDataV41Api *CtecsQueryVmNetworkHistoryMetricDataV41Api
CtecsQueryVmDiskHistoryMetricDataV41Api *CtecsQueryVmDiskHistoryMetricDataV41Api
CtecsQueryVmMemoryHistoryMetricDataV41Api *CtecsQueryVmMemoryHistoryMetricDataV41Api
CtecsQueryVmCpuHistoryMetricDataV41Api *CtecsQueryVmCpuHistoryMetricDataV41Api
CtecsQueryVmNetworkLatestMetricDataV41Api *CtecsQueryVmNetworkLatestMetricDataV41Api
CtecsQueryVmDiskLatestMetricDataV41Api *CtecsQueryVmDiskLatestMetricDataV41Api
CtecsQueryVmMemoryLatestMetricDataV41Api *CtecsQueryVmMemoryLatestMetricDataV41Api
CtecsQueryVmCpuLatestMetricDataV41Api *CtecsQueryVmCpuLatestMetricDataV41Api
CtecsBatchDeleteMetadataV41Api *CtecsBatchDeleteMetadataV41Api
CtecsQueryInstanceStatisticsV41Api *CtecsQueryInstanceStatisticsV41Api
CtecsQueryUpgradeOrderPriceV42Api *CtecsQueryUpgradeOrderPriceV42Api
CtecsQueryRenewOrderPriceV42Api *CtecsQueryRenewOrderPriceV42Api
CtecsQueryNewOrderPriceV41Api *CtecsQueryNewOrderPriceV41Api
CtecsQueryJobInfoV41Api *CtecsQueryJobInfoV41Api
CtecsGetEcsFlavorsApi *CtecsGetEcsFlavorsApi
CtecsQuerySummaryInRegionV41Api *CtecsQuerySummaryInRegionV41Api
CtecsQueryZonesInRegionV41Api *CtecsQueryZonesInRegionV41Api
CtecsQueryProductsInRegionV41Api *CtecsQueryProductsInRegionV41Api
CtecsListRegionsV41Api *CtecsListRegionsV41Api
CtecsUsageInstanceBackupApi *CtecsUsageInstanceBackupApi
CtecsRestoreInstanceBackupApi *CtecsRestoreInstanceBackupApi
CtecsDeleteInstanceBackupApi *CtecsDeleteInstanceBackupApi
CtecsRestoreSnapshotV41Api *CtecsRestoreSnapshotV41Api
CtecsDeleteSnapshotV41Api *CtecsDeleteSnapshotV41Api
CtecsDeleteKeypairV41Api *CtecsDeleteKeypairV41Api
CtecsDescribeSecurityGroupAttributeV41Api *CtecsDescribeSecurityGroupAttributeV41Api
CtecsEcsleaveSecurityGroupV41Api *CtecsEcsleaveSecurityGroupV41Api
CtecsEcsJoinSecurityGroupV41Api *CtecsEcsJoinSecurityGroupV41Api
CtecsRevokeSecurityGroupEgressV41Api *CtecsRevokeSecurityGroupEgressV41Api
CtecsRevokeSecurityGroupIngressV41Api *CtecsRevokeSecurityGroupIngressV41Api
CtecsModifySecurityGroupEgressV41Api *CtecsModifySecurityGroupEgressV41Api
CtecsModifySecurityGroupIngressV41Api *CtecsModifySecurityGroupIngressV41Api
CtecsCreateSecurityGroupEgressV41Api *CtecsCreateSecurityGroupEgressV41Api
CtecsCreateSecurityGroupIngressV41Api *CtecsCreateSecurityGroupIngressV41Api
CtecsDeleteSecurityGroupV41Api *CtecsDeleteSecurityGroupV41Api
CtecsQuerySecurityGroupsV41Api *CtecsQuerySecurityGroupsV41Api
CtecsCreateSecurityGroupV41Api *CtecsCreateSecurityGroupV41Api
CtecsBatchDeleteInstancesApi *CtecsBatchDeleteInstancesApi
CtecsQueryAsyncResultV41Api *CtecsQueryAsyncResultV41Api
CtecsPortsDetachInstanceV41Api *CtecsPortsDetachInstanceV41Api
CtecsPortsAttachInstanceV41Api *CtecsPortsAttachInstanceV41Api
CtecsPortsUnassignIpv6V41Api *CtecsPortsUnassignIpv6V41Api
CtecsPortsAssignIpv6V41Api *CtecsPortsAssignIpv6V41Api
CtecsPortsUnassignSecondaryprivateipsV41Api *CtecsPortsUnassignSecondaryprivateipsV41Api
CtecsPortsAssignSecondaryprivateipsV41Api *CtecsPortsAssignSecondaryprivateipsV41Api
CtecsUpdatePortsV41Api *CtecsUpdatePortsV41Api
CtecsDeletePortsV41Api *CtecsDeletePortsV41Api
CtecsCreatePortsV41Api *CtecsCreatePortsV41Api
CtecsShowPortsV41Api *CtecsShowPortsV41Api
CtecsListPortsV41Api *CtecsListPortsV41Api
CtecsUpdateAffinityGroupApi *CtecsUpdateAffinityGroupApi
CtecsDeleteAffinityGroupApi *CtecsDeleteAffinityGroupApi
}
type CtecsAffinityGroupUnbindInstanceV41Api ¶
type CtecsAffinityGroupUnbindInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsAffinityGroupUnbindInstanceV41Api ¶
func NewCtecsAffinityGroupUnbindInstanceV41Api(client *core.CtyunClient) *CtecsAffinityGroupUnbindInstanceV41Api
func (*CtecsAffinityGroupUnbindInstanceV41Api) Do ¶
func (a *CtecsAffinityGroupUnbindInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsAffinityGroupUnbindInstanceV41Request) (*CtecsAffinityGroupUnbindInstanceV41Response, error)
type CtecsAffinityGroupUnbindInstanceV41Request ¶
type CtecsAffinityGroupUnbindInstanceV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
AffinityGroupID string `json:"affinityGroupID,omitempty"` /* 云主机组ID,获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8324&data=87">查询云主机组列表或者详情</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8316&data=87">创建云主机组</a><br /> */
}
type CtecsAffinityGroupUnbindInstanceV41Response ¶
type CtecsAffinityGroupUnbindInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsAffinityGroupUnbindInstanceV41ReturnObjResponse `json:"returnObj"` /* 空值 */
}
type CtecsAffinityGroupUnbindInstanceV41ReturnObjResponse ¶
type CtecsAffinityGroupUnbindInstanceV41ReturnObjResponse struct{}
type CtecsAffinityGroupUnbindInstancesApi ¶
type CtecsAffinityGroupUnbindInstancesApi struct {
// contains filtered or unexported fields
}
func NewCtecsAffinityGroupUnbindInstancesApi ¶
func NewCtecsAffinityGroupUnbindInstancesApi(client *core.CtyunClient) *CtecsAffinityGroupUnbindInstancesApi
func (*CtecsAffinityGroupUnbindInstancesApi) Do ¶
func (a *CtecsAffinityGroupUnbindInstancesApi) Do(ctx context.Context, credential core.Credential, req *CtecsAffinityGroupUnbindInstancesRequest) (*CtecsAffinityGroupUnbindInstancesResponse, error)
type CtecsAffinityGroupUnbindInstancesRequest ¶
type CtecsAffinityGroupUnbindInstancesRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceIDs string `json:"instanceIDs,omitempty"` /* 云主机ID列表,多台使用英文逗号分割,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
AffinityGroupID string `json:"affinityGroupID,omitempty"` /* 云主机组ID,获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8324&data=87">查询云主机组列表或者详情</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8316&data=87">创建云主机组</a><br /> */
}
type CtecsAffinityGroupUnbindInstancesResponse ¶
type CtecsAffinityGroupUnbindInstancesResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsAffinityGroupUnbindInstancesReturnObjResponse `json:"returnObj"` /* 空值 */
}
type CtecsAffinityGroupUnbindInstancesReturnObjResponse ¶
type CtecsAffinityGroupUnbindInstancesReturnObjResponse struct{}
type CtecsAffinityGroupbindInstanceCheckV41Api ¶
type CtecsAffinityGroupbindInstanceCheckV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsAffinityGroupbindInstanceCheckV41Api ¶
func NewCtecsAffinityGroupbindInstanceCheckV41Api(client *core.CtyunClient) *CtecsAffinityGroupbindInstanceCheckV41Api
func (*CtecsAffinityGroupbindInstanceCheckV41Api) Do ¶
func (a *CtecsAffinityGroupbindInstanceCheckV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsAffinityGroupbindInstanceCheckV41Request) (*CtecsAffinityGroupbindInstanceCheckV41Response, error)
type CtecsAffinityGroupbindInstanceCheckV41Request ¶
type CtecsAffinityGroupbindInstanceCheckV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
AffinityGroupID string `json:"affinityGroupID,omitempty"` /* 云主机组ID,获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8324&data=87">查询云主机组列表或者详情</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8316&data=87">创建云主机组</a><br /> */
}
type CtecsAffinityGroupbindInstanceCheckV41Response ¶
type CtecsAffinityGroupbindInstanceCheckV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsAffinityGroupbindInstanceCheckV41ReturnObjResponse `json:"returnObj"` /* 返回内容 */
}
type CtecsAffinityGroupbindInstanceCheckV41ReturnObjResponse ¶
type CtecsAffinityGroupbindInstanceCheckV41ReturnObjResponse struct {
NeedMigrate int32 `json:"needMigrate,omitempty"` /* 需要迁移的次数 */
}
type CtecsAffinityGroupbindInstanceV41Api ¶
type CtecsAffinityGroupbindInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsAffinityGroupbindInstanceV41Api ¶
func NewCtecsAffinityGroupbindInstanceV41Api(client *core.CtyunClient) *CtecsAffinityGroupbindInstanceV41Api
func (*CtecsAffinityGroupbindInstanceV41Api) Do ¶
func (a *CtecsAffinityGroupbindInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsAffinityGroupbindInstanceV41Request) (*CtecsAffinityGroupbindInstanceV41Response, error)
type CtecsAffinityGroupbindInstanceV41Request ¶
type CtecsAffinityGroupbindInstanceV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
AffinityGroupID string `json:"affinityGroupID,omitempty"` /* 云主机组ID,获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8324&data=87">查询云主机组列表或者详情</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8316&data=87">创建云主机组</a><br /> */
}
type CtecsAffinityGroupbindInstanceV41Response ¶
type CtecsAffinityGroupbindInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsAffinityGroupbindInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsAffinityGroupbindInstanceV41ReturnObjResponse ¶
type CtecsAffinityGroupbindInstanceV41ReturnObjResponse struct{}
type CtecsAttachVolumeV41Api ¶
type CtecsAttachVolumeV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsAttachVolumeV41Api ¶
func NewCtecsAttachVolumeV41Api(client *core.CtyunClient) *CtecsAttachVolumeV41Api
func (*CtecsAttachVolumeV41Api) Do ¶
func (a *CtecsAttachVolumeV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsAttachVolumeV41Request) (*CtecsAttachVolumeV41Response, error)
type CtecsAttachVolumeV41ErrorDetailResponse ¶
type CtecsAttachVolumeV41ErrorDetailResponse struct {
BssErrCode string `json:"bssErrCode,omitempty"` /* bss错误明细码,包含于bss格式化JSON错误信息中 */
BssErrMsg string `json:"bssErrMsg,omitempty"` /* bss错误信息,包含于bss格式化JSON错误信息中 */
BssOrigErr string `json:"bssOrigErr,omitempty"` /* 无法明确解码bss错误信息时,原样透出的bss错误信息 */
BssErrPrefixHint string `json:"bssErrPrefixHint,omitempty"` /* bss格式化JSON错误信息的前置提示信息 */
}
type CtecsAttachVolumeV41Request ¶
type CtecsAttachVolumeV41Request struct {
DiskID string `json:"diskID,omitempty"` /* 磁盘ID,您可以查看<a href="https://www.ctyun.cn/document/10027696/10027930">产品定义-云硬盘</a>来了解云硬盘 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=35&api=7338&data=48">云硬盘列表查询</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=35&api=7332&data=48&isNormal=1&vid=45">创建云硬盘</a> */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID。多可用区资源池下,云硬盘和云主机必须在同个az才能支持挂载。您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
}
type CtecsAttachVolumeV41Response ¶
type CtecsAttachVolumeV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsAttachVolumeV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
ErrorDetail *CtecsAttachVolumeV41ErrorDetailResponse `json:"errorDetail"` /* 错误明细。一般情况下,会对订单侧(bss)的云硬盘订单业务相关的错误做明确的错误映射和提升,有唯一对应的errorCode。<br />其他订单侧(bss)的错误,以Ebs.Order.ProcFailed的errorCode统一映射返回,并在errorDetail中返回订单侧的详细错误信息 */
}
type CtecsAttachVolumeV41ReturnObjResponse ¶
type CtecsAttachVolumeV41ReturnObjResponse struct {
DiskJobID string `json:"diskJobID,omitempty"` /* 异步任务ID,可通过公共接口<a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5865&data=87&isNormal=1&vid=81">通用任务状态查询</a>该jobID的异步任务最终执行结果 */
DiskRequestID string `json:"diskRequestID,omitempty"` /* 异步任务ID,可通过公共接口<a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5865&data=87&isNormal=1&vid=81">通用任务状态查询</a>该jobID的异步任务最终执行结果 */
}
type CtecsBackupBatchUpdateApi ¶
type CtecsBackupBatchUpdateApi struct {
// contains filtered or unexported fields
}
func NewCtecsBackupBatchUpdateApi ¶
func NewCtecsBackupBatchUpdateApi(client *core.CtyunClient) *CtecsBackupBatchUpdateApi
func (*CtecsBackupBatchUpdateApi) Do ¶
func (a *CtecsBackupBatchUpdateApi) Do(ctx context.Context, credential core.Credential, req *CtecsBackupBatchUpdateRequest) (*CtecsBackupBatchUpdateResponse, error)
type CtecsBackupBatchUpdateRequest ¶
type CtecsBackupBatchUpdateRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
UpdateInfo []*CtecsBackupBatchUpdateUpdateInfoRequest `json:"updateInfo"` /* 云主机备份更新信息 */
}
type CtecsBackupBatchUpdateResponse ¶
type CtecsBackupBatchUpdateResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsBackupBatchUpdateReturnObjResponse `json:"returnObj"` /* 返回结果 */
}
type CtecsBackupBatchUpdateReturnObjResponse ¶
type CtecsBackupBatchUpdateReturnObjResponse struct {
InstanceBackupIDList []string `json:"instanceBackupIDList"` /* 云主机备份ID列表 */
}
type CtecsBackupBatchUpdateUpdateInfoRequest ¶
type CtecsBackupBatchUpdateUpdateInfoRequest struct {
InstanceBackupID string `json:"instanceBackupID,omitempty"` /* 云主机备份ID,您可以查看<a href="https://www.ctyun.cn/document/10026751/10033738">产品定义-云主机备份</a>来了解云主机备份<br /> 获取:<span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8332&data=87&isNormal=1&vid=81">创建云主机备份</a> */
InstanceBackupName string `json:"instanceBackupName,omitempty"` /* 云主机备份名称。满足以下规则:长度为2-63字符,头尾不支持输入空格<br />注:在所有资源池不可重复(instanceBackupName与instanceBackupDescription参数需要二选一) */
InstanceBackupDescription string `json:"instanceBackupDescription,omitempty"` /* 云主机备份描述。(instanceBackupName与instanceBackupDescription参数需要二选一) */
}
type CtecsBatchCreateInstancesV41Api ¶
type CtecsBatchCreateInstancesV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsBatchCreateInstancesV41Api ¶
func NewCtecsBatchCreateInstancesV41Api(client *core.CtyunClient) *CtecsBatchCreateInstancesV41Api
func (*CtecsBatchCreateInstancesV41Api) Do ¶
func (a *CtecsBatchCreateInstancesV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsBatchCreateInstancesV41Request) (*CtecsBatchCreateInstancesV41Response, error)
type CtecsBatchCreateInstancesV41DataDiskListRequest ¶
type CtecsBatchCreateInstancesV41DataDiskListRequest struct {
DiskMode string `json:"diskMode,omitempty"` /* 云硬盘属性,取值范围:<br />FCSAN:光纤通道协议的SAN网络,<br />ISCSI:小型计算机系统接口,<br />VBD:虚拟块存储设备<br />您可以查看<a href="https://www.ctyun.cn/document/10027696/10162960">磁盘模式及使用方法</a><br />注:默认为VBD */
DiskType string `json:"diskType,omitempty"` /* 云硬盘类型,取值范围:<br />SATA:普通IO,<br />SAS:高IO,<br />SSD:超高IO,<br />FAST-SSD:极速型SSD<br />您可以查看<a href="https://www.ctyun.cn/document/10027696/10162918">磁盘类型及性能介绍</a>磁盘类型相关信息 */
DiskSize int32 `json:"diskSize,omitempty"` /* 磁盘容量,单位为GB,取值范围:[10, 32768] */
CmkID string `json:"cmkID,omitempty"` /* 加密密钥ID,注:加密数据盘填写该参数 */
IsEncrypt *bool `json:"isEncrypt"` /* 磁盘是否加密,取值范围:<br />true:加密,<br />false:不加密<br />注:默认值false;填写True时,需要填写加密密钥(cmkID),否则无效 */
DiskName string `json:"diskName,omitempty"` /* 该参数暂时无法使用。云硬盘名称,长度限制2~63字符,不支持中文 */
}
type CtecsBatchCreateInstancesV41NetworkCardListRequest ¶
type CtecsBatchCreateInstancesV41NetworkCardListRequest struct {
FixedIP string `json:"fixedIP,omitempty"` /* 内网IPv4地址,<br />注:不可使用已占用IP;当购买数量超过1时(orderCount>1),该参数不可使用 */
IsMaster bool `json:"isMaster"` /* 是否主网卡,取值范围:<br />true:表示主网卡,<br />false:表示扩展网卡<br />注:只能含有一个主网卡 */
SubnetID string `json:"subnetID,omitempty"` /* 子网ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10098380">基本概念</a>来查找子网的相关定义 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=8659&data=94">查询子网列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4812&data=94">创建子网</a><br />注:在多可用区类型资源池下,subnetID通常以“subnet-”开头,非多可用区类型资源池subnetID为uuid格式 */
NicName string `json:"nicName,omitempty"` /* 该参数暂时无法使用。网卡名称,长度2~32,支持拉丁字母、中文、数字、下划线、连字符,中文或英文字母开头,不能以http:或https:开头 */
}
type CtecsBatchCreateInstancesV41Request ¶
type CtecsBatchCreateInstancesV41Request struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。保留时间为24小时,使用同一个clientToken值,则代表为同一个请求 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
AzName string `json:"azName,omitempty"` /* 可用区名称,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解可用区 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5855&data=87">资源池可用区查询</a><br />注:查询结果中zoneList内返回存在可用区名称(即多可用区,本字段填写实际可用区名称),若查询结果中zoneList为空(即为单可用区,本字段填写default) */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称,支持模式串(支持{R:数字}形式,且只支持使用1次,此处数字需为小于等于9799的正整数,不支持冒号“:”以及大括号“{}”两类字符单独存在或其它组合方式)。不同操作系统下,云主机名称规则有差异<br />Windows:长度为2-15个字符(当创建两台及两台以上的云主机时名称长度为2-10个字符),允许使用大小写字母、数字或连字符(-)。不能以连字符(-)开头或结尾,不能连续使用连字符(-),也不能仅使用数字;<br />其他操作系统:长度为2-64字符(当创建两台及两台以上的云主机时名称长度为2-59个字符),允许使用点(.)分隔字符成多段,每段允许使用大小写字母、数字或连字符(-),但不能连续使用点号(.)或连字符(-),不能以点号(.)或连字符(-)开头或结尾,也不能仅使用数字 */
DisplayName string `json:"displayName,omitempty"` /* 云主机显示名称,支持模式串(支持{R:数字}形式,且只支持使用1次,此处数字需为小于等于9799的正整数,不支持冒号“:”以及大括号”{}”两类字符单独存在或其它组合方式),长度为2-63字符 */
FlavorID string `json:"flavorID,omitempty"` /* 云主机规格ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10118193">规格说明</a>了解弹性云主机的选型基本信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8327&data=87">查询一个或多个云主机规格资源</a><br />注:同一规格名称在不同资源池不同可用区的规格ID是不同的,调用前需确认规格ID是否归属当前资源池,多可用区资源池确认是否归属当前可用区 */
ImageType int32 `json:"imageType,omitempty"` /* 镜像类型,取值范围:<br />0:私有镜像,<br />1:公有镜像,<br />2:共享镜像,<br />3:安全镜像,<br />4:甄选镜像<br />5:应用镜像<br />您可以查看<a href="https://www.ctyun.cn/document/10026730/10030151">镜像概述</a>查看关于云主机镜像介绍 */
ImageID string `json:"imageID,omitempty"` /* 镜像ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10030151">镜像概述</a>来了解云主机镜像<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=23&api=4763&data=89">查询可以使用的镜像资源</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=23&api=4765&data=89">创建私有镜像(云主机系统盘)</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=23&api=5230&data=89">创建私有镜像(云主机数据盘)</a><br />注:同一镜像名称在不同资源池的镜像ID是不同的,调用前需确认镜像ID是否归属当前资源池 */
BootDiskType string `json:"bootDiskType,omitempty"` /* 系统盘类型,取值范围:<br />SATA:普通IO,<br />SAS:高IO,<br />SSD:超高IO,<br />FAST-SSD:极速型SSD<br />您可以查看<a href="https://www.ctyun.cn/document/10027696/10162918">磁盘类型及性能介绍</a>来了解磁盘类型及其对应性能指标 */
BootDiskSize int32 `json:"bootDiskSize,omitempty"` /* 系统盘大小单位为GB,取值范围:[40, 32768],注:创建云主机过程中会存在单位转换,因此该参数只能传入整型,如果填写小数值则会被取整,影响到涉及计费 */
BootDiskIsEncrypt *bool `json:"bootDiskIsEncrypt"` /* 系统盘是否加密,取值范围:<br />true:加密,<br />false:不加密<br />注:默认值false;填写true时,需要填写系统盘加密密钥(bootDiskCmkID),否则无效 */
BootDiskCmkID string `json:"bootDiskCmkID,omitempty"` /* 系统盘加密密钥ID,注:加密系统盘填写该参数,同时需要填写系统盘是否加密(bootDiskIsEncrypt) 为true;暂不支持包周期密钥与默认密钥 */
VpcID string `json:"vpcID,omitempty"` /* 虚拟私有云ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028310">产品定义-虚拟私有云</a>来了解虚拟私有云<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4814&data=94">查询VPC列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4811&data=94">创建VPC</a><br />注:在多可用区类型资源池下,vpcID通常为“vpc-”开头,非多可用区类型资源池vpcID为uuid格式 */
OnDemand bool `json:"onDemand"` /* 购买方式,取值范围:<br />false:按周期,<br />true:按需<br />您可以查看<a href="https://www.ctyun.cn/document/10026730/10030877">计费模式</a>了解云主机的计费模式<br />注:按周期(false)创建云主机需要同时指定cycleCount和cycleType参数 */
NetworkCardList []*CtecsBatchCreateInstancesV41NetworkCardListRequest `json:"networkCardList"` /* 网卡信息列表,您可以查看<a href="https://www.ctyun.cn/document/10026730/10225195">弹性网卡概述</a>了解弹性网卡相关信息 */
ExtIP string `json:"extIP,omitempty"` /* 是否使用弹性公网IP,取值范围:<br />0:不使用,<br />1:自动分配,<br />2:使用已有<br />注:自动分配弹性公网,默认分配IPv4弹性公网,需填写带宽大小,如需ipv6请填写弹性IP版本(即参数extIP="1"时,需填写参数bandwidth、ipVersion,ipVersion含默认值ipv4)<br />使用已有弹性公网,请填写弹性公网IP的ID,默认为ipv4版本,如使用已有ipv6,请填写弹性ip版本(即参数extIP="2"时,需填写eipID或ipv6AddressID,同时ipv6情况下请填写ipVersion) */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目<br />注:默认值为"0" */
SecGroupList []string `json:"secGroupList"` /* 安全组ID列表,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>了解安全组相关信息 <br />获取: <br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4817&data=94">查询用户安全组列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4821&data=94">创建安全组</a><br />注:在多可用区类型资源池下,安全组ID通常以“sg-”开头,非多可用区类型资源池安全组ID为uuid格式;默认使用默认安全组,无默认安全组情况下请填写该参数 */
DataDiskList []*CtecsBatchCreateInstancesV41DataDiskListRequest `json:"dataDiskList"` /* 数据盘信息列表,注:同一云主机下最多可挂载8块数据盘 */
IpVersion string `json:"ipVersion,omitempty"` /* 弹性IP版本,取值范围:<br />ipv4:v4地址,<br />ipv6:v6地址<br />不指定默认为ipv4。注:请先确认该资源池是否支持ipv6(多可用区类资源池暂不支持) */
Bandwidth int32 `json:"bandwidth,omitempty"` /* 带宽大小,单位为Mbit/s,取值范围:[1, 2000] */
Ipv6AddressID string `json:"ipv6AddressID,omitempty"` /* 弹性公网IPv6的ID,注:多可用区类资源池暂不支持;填写该参数时请填写ipVersion为ipv6 */
EipID string `json:"eipID,omitempty"` /* 弹性公网IP的ID,您可以查看<a href="https://www.ctyun.cn/document/10026753/10026909">产品定义-弹性IP</a>来了解弹性公网IP <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=8652&data=94&isNormal=1&vid=88">查询指定地域已创建的弹性 IP</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5723&data=94&vid=88">创建弹性 IP</a> */
AffinityGroupID string `json:"affinityGroupID,omitempty"` /* 云主机组ID,获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8324&data=87">查询云主机组列表或者详情</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8316&data=87"> 创建云主机组</a> */
KeyPairID string `json:"keyPairID,omitempty"` /* 密钥对ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10230540">密钥对</a>来了解密钥对相关内容 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8342&data=87">查询一个或多个密钥对</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8344&data=87">创建一对SSH密钥对</a> */
UserPassword string `json:"userPassword,omitempty"` /* 用户密码,满足以下规则:<br />长度在8~30个字符<br />必须包含大写字母、小写字母、数字以及特殊符号中的三项<br />特殊符号可选:()`~!@#$%^&*_-+=|{}[]:;'<>,.?/且不能以斜线号 / 开头<br />不能包含3个及以上连续字符;<br />Linux镜像不能包含镜像用户名(root)、用户名的倒序(toor)、用户名大小写变化(如RoOt、rOot等)<br />Windows镜像不能包含镜像用户名(Administrator)、用户名大小写变化(adminiSTrator等) */
CycleCount int32 `json:"cycleCount,omitempty"` /* 订购时长,该参数需要与cycleType一同使用<br />注:最长订购周期为60个月(5年)<br />cycleType与cycleCount一起填写;按量付费(即onDemand为true)时,无需填写该参数(填写无效) */
CycleType string `json:"cycleType,omitempty"` /* 订购周期类型,取值范围:<br />MONTH:按月,<br />YEAR:按年<br />注:cycleType与cycleCount一起填写;按量付费(即onDemand为true)时,无需填写该参数(填写无效) */
AutoRenewStatus int32 `json:"autoRenewStatus,omitempty"` /* 是否自动续订,取值范围:<br />0:不续费,<br />1:自动续费<br />注:按月购买,自动续订周期为1个月;按年购买,自动续订周期为1年 */
UserData string `json:"userData,omitempty"` /* 用户自定义数据,需要以Base64方式编码,Base64编码后的长度限制为1-16384字符<br /> */
OrderCount int32 `json:"orderCount,omitempty"` /* 购买数量,取值范围:[1, 50]<br />注:不填则默认为1 */
PayVoucherPrice float32 `json:"payVoucherPrice"` /* 代金券,满足以下规则:两位小数,不足两位自动补0,超过两位小数无效;不可为负数;字段为0时表示不使用代金券 */
LabelList []*CtecsBatchCreateInstancesV41LabelListRequest `json:"labelList"` /* 标签信息列表,注:单台云主机最多可绑定10个标签;云主机创建完成后,云主机变为运行状态,此时标签仍可能未绑定,需等待一段时间(0~10分钟);批量创建云主机时并非云主机对应labelList中各个标签进行对应绑定,而是这一批的所有云主机都会绑定labelList中所有的标签 */
GpuDriverKits string `json:"gpuDriverKits,omitempty"` /* GPU云主机安装驱动的工具包,仅在同时选择NVIDIA显卡、计算加速型、linux公共镜像三个条件下,支持安装驱动 */
MonitorService *bool `json:"monitorService"` /* 监控参数,支持通过该参数指定云主机在创建后是否开启详细监控,取值范围: <br />false:不开启,<br />true:开启<br />若指定该参数为true或不指定该参数,云主机内默认开启最新详细监控服务<br />若指定该参数为false,默认公共镜像不开启最新监控服务;私有镜像使用镜像中保留的监控服务<br />说明:仅部分资源池支持monitorService参数,详细请参考<a href="https://www.ctyun.cn/document/10026730/10325957">监控Agent概览</a> */
InstanceDescription string `json:"instanceDescription,omitempty"` /* 云主机描述,限制长度为0-255个字符 */
LineType string `json:"lineType,omitempty"` /* 弹性IP线路类型,当自动分配弹性IP时,该值生效<br />弹性IP为IPv4时,取值范围: <br />bgp_standalone:BGP多线,<br />standalone:单线-中国电信,<br />prostandalone:精品线路<br />弹性IP为IPv6时,取值范围:<br />standalone:单线-中国电信<br />默认为单线-中国电信 */
SecurityProduct string `json:"securityProduct,omitempty"` /* 安全防护类型,取值范围:<br />EnterpriseEdition:企业版,<br />UltimateEdition:旗舰版,<br />BasicEdition:基础版,<br/>false:不开启,<br />注:默认不开启 */
}
type CtecsBatchCreateInstancesV41Response ¶
type CtecsBatchCreateInstancesV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsBatchCreateInstancesV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsBatchCreateInstancesV41ReturnObjResponse ¶
type CtecsBatchCreateInstancesV41ReturnObjResponse struct {
MasterOrderID string `json:"masterOrderID,omitempty"` /* 主订单ID。调用方在拿到masterOrderID之后,可以使用materOrderID进一步确认订单状态及资源状态<br />查询订单状态及资源UUID:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9607&data=87&isNormal=1">根据masterOrderID查询云主机ID</a> */
MasterOrderNO string `json:"masterOrderNO,omitempty"` /* 订单号 */
MasterResourceID string `json:"masterResourceID,omitempty"` /* 主资源ID */
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
}
type CtecsBatchDeleteInstancesApi ¶
type CtecsBatchDeleteInstancesApi struct {
// contains filtered or unexported fields
}
func NewCtecsBatchDeleteInstancesApi ¶
func NewCtecsBatchDeleteInstancesApi(client *core.CtyunClient) *CtecsBatchDeleteInstancesApi
func (*CtecsBatchDeleteInstancesApi) Do ¶
func (a *CtecsBatchDeleteInstancesApi) Do(ctx context.Context, credential core.Credential, req *CtecsBatchDeleteInstancesRequest) (*CtecsBatchDeleteInstancesResponse, error)
type CtecsBatchDeleteInstancesRequest ¶
type CtecsBatchDeleteInstancesRequest struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。保留时间为24小时,使用同一个clientToken值,则代表为同一个请求 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span><a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceIDList string `json:"instanceIDList,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a> */
}
type CtecsBatchDeleteInstancesResponse ¶
type CtecsBatchDeleteInstancesResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsBatchDeleteInstancesReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsBatchDeleteMetadataV41Api ¶
type CtecsBatchDeleteMetadataV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsBatchDeleteMetadataV41Api ¶
func NewCtecsBatchDeleteMetadataV41Api(client *core.CtyunClient) *CtecsBatchDeleteMetadataV41Api
func (*CtecsBatchDeleteMetadataV41Api) Do ¶
func (a *CtecsBatchDeleteMetadataV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsBatchDeleteMetadataV41Request) (*CtecsBatchDeleteMetadataV41Response, error)
type CtecsBatchDeleteMetadataV41Request ¶
type CtecsBatchDeleteMetadataV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceIDList string `json:"instanceIDList,omitempty"` /* 云主机ID列表,多台使用英文逗号分割,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
}
type CtecsBatchDeleteMetadataV41Response ¶
type CtecsBatchDeleteMetadataV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsBatchDeleteMetadataV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsBatchOperateEcsLabelV41Api ¶
type CtecsBatchOperateEcsLabelV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsBatchOperateEcsLabelV41Api ¶
func NewCtecsBatchOperateEcsLabelV41Api(client *core.CtyunClient) *CtecsBatchOperateEcsLabelV41Api
func (*CtecsBatchOperateEcsLabelV41Api) Do ¶
func (a *CtecsBatchOperateEcsLabelV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsBatchOperateEcsLabelV41Request) (*CtecsBatchOperateEcsLabelV41Response, error)
type CtecsBatchOperateEcsLabelV41Request ¶
type CtecsBatchOperateEcsLabelV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceIDList string `json:"instanceIDList,omitempty"` /* 云主机ID列表,多台使用英文逗号分割,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a><br />注:批量操作云主机的最大数量为10台 */
OperateType string `json:"operateType,omitempty"` /* 操作类型,可选值:BIND(绑定)、UNBIND(解绑) */
LabelList []*CtecsBatchOperateEcsLabelV41LabelListRequest `json:"LabelList"` /* 标签列表 */
}
type CtecsBatchOperateEcsLabelV41Response ¶
type CtecsBatchOperateEcsLabelV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,详见错误码部分 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码,详见错误码部分 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
}
type CtecsBatchRebootInstancesV41Api ¶
type CtecsBatchRebootInstancesV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsBatchRebootInstancesV41Api ¶
func NewCtecsBatchRebootInstancesV41Api(client *core.CtyunClient) *CtecsBatchRebootInstancesV41Api
func (*CtecsBatchRebootInstancesV41Api) Do ¶
func (a *CtecsBatchRebootInstancesV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsBatchRebootInstancesV41Request) (*CtecsBatchRebootInstancesV41Response, error)
type CtecsBatchRebootInstancesV41Request ¶
type CtecsBatchRebootInstancesV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceIDList string `json:"instanceIDList,omitempty"` /* 云主机ID列表,多台使用英文逗号分割,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a><br />注:批量重启云主机的最大数量为50台 */
Force *bool `json:"force"` /* 是否强制重启,取值范围:<br />true:强制重启,<br />false:普通重启<br />注:默认值false */
}
type CtecsBatchRebootInstancesV41Response ¶
type CtecsBatchRebootInstancesV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsBatchRebootInstancesV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsBatchRebootInstancesV41ReturnObjJobIDListResponse ¶
type CtecsBatchRebootInstancesV41ReturnObjJobIDListResponse struct {
JobID string `json:"jobID,omitempty"` /* 重启任务ID,您可以调用<a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9271&data=87">查询多个异步任务的结果</a>来查询操作是否成功 */
InstanceID string `json:"instanceID,omitempty"` /* 对应任务云主机ID */
}
type CtecsBatchRebootInstancesV41ReturnObjResponse ¶
type CtecsBatchRebootInstancesV41ReturnObjResponse struct {
JobIDList []*CtecsBatchRebootInstancesV41ReturnObjJobIDListResponse `json:"jobIDList"` /* 重启任务列表 */
}
type CtecsBatchRebuildInstancesV41Api ¶
type CtecsBatchRebuildInstancesV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsBatchRebuildInstancesV41Api ¶
func NewCtecsBatchRebuildInstancesV41Api(client *core.CtyunClient) *CtecsBatchRebuildInstancesV41Api
func (*CtecsBatchRebuildInstancesV41Api) Do ¶
func (a *CtecsBatchRebuildInstancesV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsBatchRebuildInstancesV41Request) (*CtecsBatchRebuildInstancesV41Response, error)
type CtecsBatchRebuildInstancesV41RebuildInfoRequest ¶
type CtecsBatchRebuildInstancesV41RebuildInfoRequest struct {
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
Password string `json:"password,omitempty"` /* 用户密码,满足以下规则:<br />长度在8-30个字符;<br />必须包含大写字母、小写字母、数字以及特殊符号中的三项;<br />特殊符号可选:()`~!@#$%^&*_-+=|{}[]:;'<>,.?/\且不能以斜线号 / 开头;<br />不能包含3个及以上连续字符;<br />Linux镜像不能包含镜像用户名(root)、用户名的倒序(toor)、用户名大小写变化(如RoOt、rOot等);<br />Windows镜像不能包含镜像用户名(Administrator)、用户名大小写变化(adminiSTrator等) */
ImageID string `json:"imageID,omitempty"` /* 镜像ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10030151">镜像概述</a>来了解云主机镜像<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=23&api=4763&data=89">查询可以使用的镜像资源</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=23&api=4765&data=89">创建私有镜像(云主机系统盘)</a><br />注:不填默认以原镜像进行重装 */
UserData string `json:"userData,omitempty"` /* 用户自定义数据,需要以Base64方式编码,Base64编码后的长度限制为1-16384字符 */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称。不同操作系统下,云主机名称规则有差异<br />Windows:长度为2-15个字符,允许使用大小写字母、数字或连字符(-)。不能以连字符(-)开头或结尾,不能连续使用连字符(-),也不能仅使用数字;<br />其他操作系统:长度为2-64字符,允许使用点(.)分隔字符成多段,每段允许使用大小写字母、数字或连字符(-),但不能连续使用点号(.)或连字符(-),不能以点号(.)或连字符(-)开头或结尾,也不能仅使用数字<br />注:如果不填,默认值为原来云主机名称 */
MonitorService *bool `json:"monitorService"` /* 监控参数,支持通过该参数指定云主机在创建后是否开启详细监控,取值范围: <br />false:不开启,<br />true:开启<br />若指定该参数为true或不指定该参数,云主机内默认开启最新详细监控服务<br />若指定该参数为false,默认公共镜像不开启最新监控服务;私有镜像使用镜像中保留的监控服务<br />说明:仅部分资源池支持monitorService参数,详细请参考<a href="https://www.ctyun.cn/document/10026730/10325957">监控Agent概览</a> */
}
type CtecsBatchRebuildInstancesV41Request ¶
type CtecsBatchRebuildInstancesV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
RebuildInfo []*CtecsBatchRebuildInstancesV41RebuildInfoRequest `json:"rebuildInfo"` /* 重装信息列表 */
}
type CtecsBatchRebuildInstancesV41Response ¶
type CtecsBatchRebuildInstancesV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsBatchRebuildInstancesV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsBatchRebuildInstancesV41ReturnObjResponse ¶
type CtecsBatchRebuildInstancesV41ReturnObjResponse struct {
JobIDList []*CtecsBatchRebuildInstancesV41ReturnObjJobIDListResponse `json:"jobIDList"` /* 重装任务列表 */
}
type CtecsBatchShelveInstancesApi ¶
type CtecsBatchShelveInstancesApi struct {
// contains filtered or unexported fields
}
func NewCtecsBatchShelveInstancesApi ¶
func NewCtecsBatchShelveInstancesApi(client *core.CtyunClient) *CtecsBatchShelveInstancesApi
func (*CtecsBatchShelveInstancesApi) Do ¶
func (a *CtecsBatchShelveInstancesApi) Do(ctx context.Context, credential core.Credential, req *CtecsBatchShelveInstancesRequest) (*CtecsBatchShelveInstancesResponse, error)
type CtecsBatchShelveInstancesRequest ¶
type CtecsBatchShelveInstancesRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceIDList string `json:"instanceIDList,omitempty"` /* 云主机ID列表,多台使用英文逗号分割,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a><br />注:批量节省关机云主机的最大数量为50台 */
}
type CtecsBatchShelveInstancesResponse ¶
type CtecsBatchShelveInstancesResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsBatchShelveInstancesReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsBatchShelveInstancesReturnObjJobIDListResponse ¶
type CtecsBatchShelveInstancesReturnObjJobIDListResponse struct {
JobID string `json:"jobID,omitempty"` /* 关机任务ID,您可以调用<a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9271&data=87">查询多个异步任务的结果</a>来查询操作是否成功 */
InstanceID string `json:"instanceID,omitempty"` /* 对应任务云主机ID */
}
type CtecsBatchShelveInstancesReturnObjResponse ¶
type CtecsBatchShelveInstancesReturnObjResponse struct {
JobIDList []*CtecsBatchShelveInstancesReturnObjJobIDListResponse `json:"jobIDList"` /* 关机任务列表 */
}
type CtecsBatchStartInstancesV41Api ¶
type CtecsBatchStartInstancesV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsBatchStartInstancesV41Api ¶
func NewCtecsBatchStartInstancesV41Api(client *core.CtyunClient) *CtecsBatchStartInstancesV41Api
func (*CtecsBatchStartInstancesV41Api) Do ¶
func (a *CtecsBatchStartInstancesV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsBatchStartInstancesV41Request) (*CtecsBatchStartInstancesV41Response, error)
type CtecsBatchStartInstancesV41Request ¶
type CtecsBatchStartInstancesV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceIDList string `json:"instanceIDList,omitempty"` /* 云主机ID列表,多台使用英文逗号分割,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a><br />注:批量开启云主机的最大数量为50台 */
}
type CtecsBatchStartInstancesV41Response ¶
type CtecsBatchStartInstancesV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsBatchStartInstancesV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsBatchStartInstancesV41ReturnObjJobIDListResponse ¶
type CtecsBatchStartInstancesV41ReturnObjJobIDListResponse struct {
JobID string `json:"jobID,omitempty"` /* 开机任务ID,您可以调用<a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9271&data=87">查询多个异步任务的结果</a>来查询操作是否成功 */
InstanceID string `json:"instanceID,omitempty"` /* 对应任务云主机ID */
}
type CtecsBatchStartInstancesV41ReturnObjResponse ¶
type CtecsBatchStartInstancesV41ReturnObjResponse struct {
JobIDList []*CtecsBatchStartInstancesV41ReturnObjJobIDListResponse `json:"jobIDList"` /* 开机任务列表 */
}
type CtecsBatchStopInstancesV41Api ¶
type CtecsBatchStopInstancesV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsBatchStopInstancesV41Api ¶
func NewCtecsBatchStopInstancesV41Api(client *core.CtyunClient) *CtecsBatchStopInstancesV41Api
func (*CtecsBatchStopInstancesV41Api) Do ¶
func (a *CtecsBatchStopInstancesV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsBatchStopInstancesV41Request) (*CtecsBatchStopInstancesV41Response, error)
type CtecsBatchStopInstancesV41Request ¶
type CtecsBatchStopInstancesV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceIDList string `json:"instanceIDList,omitempty"` /* 云主机ID列表,多台使用英文逗号分割,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a><br />注:批量关闭云主机的最大数量为50台 */
Force *bool `json:"force"` /* 是否强制关机,取值范围:<br />true:强制关机,<br />false:普通关机<br />注:默认值false */
}
type CtecsBatchStopInstancesV41Response ¶
type CtecsBatchStopInstancesV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsBatchStopInstancesV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsBatchStopInstancesV41ReturnObjJobIDListResponse ¶
type CtecsBatchStopInstancesV41ReturnObjJobIDListResponse struct {
JobID string `json:"jobID,omitempty"` /* 关机任务ID,您可以调用<a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9271&data=87">查询多个异步任务的结果</a>来查询操作是否成功 */
InstanceID string `json:"instanceID,omitempty"` /* 对应任务云主机ID */
}
type CtecsBatchStopInstancesV41ReturnObjResponse ¶
type CtecsBatchStopInstancesV41ReturnObjResponse struct {
JobIDList []*CtecsBatchStopInstancesV41ReturnObjJobIDListResponse `json:"jobIDList"` /* 关机任务列表 */
}
type CtecsBatchUpdateInstancesPasswordV41Api ¶
type CtecsBatchUpdateInstancesPasswordV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsBatchUpdateInstancesPasswordV41Api ¶
func NewCtecsBatchUpdateInstancesPasswordV41Api(client *core.CtyunClient) *CtecsBatchUpdateInstancesPasswordV41Api
func (*CtecsBatchUpdateInstancesPasswordV41Api) Do ¶
func (a *CtecsBatchUpdateInstancesPasswordV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsBatchUpdateInstancesPasswordV41Request) (*CtecsBatchUpdateInstancesPasswordV41Response, error)
type CtecsBatchUpdateInstancesPasswordV41Request ¶
type CtecsBatchUpdateInstancesPasswordV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
UpdatePwdInfo []*CtecsBatchUpdateInstancesPasswordV41UpdatePwdInfoRequest `json:"updatePwdInfo"` /* 批量更新密码信息列表 */
}
type CtecsBatchUpdateInstancesPasswordV41Response ¶
type CtecsBatchUpdateInstancesPasswordV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,详见错误码部分 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码,详见错误码部分 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsBatchUpdateInstancesPasswordV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsBatchUpdateInstancesPasswordV41ReturnObjResponse ¶
type CtecsBatchUpdateInstancesPasswordV41ReturnObjResponse struct {
InstanceIDList string `json:"instanceIDList,omitempty"` /* 被更新密码的云主机ID列表,使用英文逗号分割,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
}
type CtecsBatchUpdateInstancesPasswordV41UpdatePwdInfoRequest ¶
type CtecsBatchUpdateInstancesPasswordV41UpdatePwdInfoRequest struct {
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
NewPassword string `json:"newPassword,omitempty"` /* 新的用户密码,满足以下规则:<br />长度在8~30个字符;<br />必须包含大写字母、小写字母、数字以及特殊符号中的三项;<br />特殊符号可选:()`~!@#$%^&*_-+=|{}[]:;'<>,.?/且不能以斜线号 / 开头;<br />不能包含3个及以上连续字符;<br />Linux镜像不能包含镜像用户名(root)、用户名的倒序(toor)、用户名大小写变化(如RoOt、rOot等);<br />Windows镜像不能包含镜像用户名(Administrator)、用户名大小写变化(adminiSTrator等) */
}
type CtecsBatchUpdateInstancesV41Api ¶
type CtecsBatchUpdateInstancesV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsBatchUpdateInstancesV41Api ¶
func NewCtecsBatchUpdateInstancesV41Api(client *core.CtyunClient) *CtecsBatchUpdateInstancesV41Api
func (*CtecsBatchUpdateInstancesV41Api) Do ¶
func (a *CtecsBatchUpdateInstancesV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsBatchUpdateInstancesV41Request) (*CtecsBatchUpdateInstancesV41Response, error)
type CtecsBatchUpdateInstancesV41Request ¶
type CtecsBatchUpdateInstancesV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
UpdateInfo []*CtecsBatchUpdateInstancesV41UpdateInfoRequest `json:"updateInfo"` /* 批量更新信息列表 */
}
type CtecsBatchUpdateInstancesV41Response ¶
type CtecsBatchUpdateInstancesV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,详见错误码部分 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码,详见错误码部分 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsBatchUpdateInstancesV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsBatchUpdateInstancesV41ReturnObjResponse ¶
type CtecsBatchUpdateInstancesV41ReturnObjResponse struct {
UpdateInfo []*CtecsBatchUpdateInstancesV41ReturnObjUpdateInfoResponse `json:"updateInfo"` /* 被更新云主机信息 */
}
type CtecsBatchUpdateInstancesV41ReturnObjUpdateInfoResponse ¶
type CtecsBatchUpdateInstancesV41ReturnObjUpdateInfoResponse struct {
InstanceID string `json:"instanceID,omitempty"` /* 被更新名称的云主机ID */
DisplayName string `json:"displayName,omitempty"` /* 更新后的云主机名称 */
InstanceName string `json:"instanceName,omitempty"` /* 被更新云主机名称 */
InstanceDescription string `json:"instanceDescription,omitempty"` /* 被更新云主机描述信息 */
}
type CtecsBatchUpdateInstancesV41UpdateInfoRequest ¶
type CtecsBatchUpdateInstancesV41UpdateInfoRequest struct {
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
DisplayName string `json:"displayName,omitempty"` /* 云主机显示名称,长度为2~63个字符<br />注:displayName、instanceName、instanceDescription不可全为空 */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称。不同操作系统下,云主机名称规则有差异<br />Windows:长度为2-15个字符,允许使用大小写字母、数字或连字符(-)。不能以连字符(-)开头或结尾,不能连续使用连字符(-),也不能仅使用数字;<br />其他操作系统:长度为2-64字符,允许使用点(.)分隔字符成多段,每段允许使用大小写字母、数字或连字符(-),但不能连续使用点号(.)或连字符(-),不能以点号(.)或连字符(-)开头或结尾,也不能仅使用数字<br />注:displayName、instanceName、instanceDescription不可全为空 */
InstanceDescription string `json:"instanceDescription,omitempty"` /* 云主机描述信息,限制长度为0~255个字符<br />注:displayName、instanceName、instanceDescription不可全为空 */
}
type CtecsBatchUpdateSnapshotV41Api ¶
type CtecsBatchUpdateSnapshotV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsBatchUpdateSnapshotV41Api ¶
func NewCtecsBatchUpdateSnapshotV41Api(client *core.CtyunClient) *CtecsBatchUpdateSnapshotV41Api
func (*CtecsBatchUpdateSnapshotV41Api) Do ¶
func (a *CtecsBatchUpdateSnapshotV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsBatchUpdateSnapshotV41Request) (*CtecsBatchUpdateSnapshotV41Response, error)
type CtecsBatchUpdateSnapshotV41Request ¶
type CtecsBatchUpdateSnapshotV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
UpdateInfo []*CtecsBatchUpdateSnapshotV41UpdateInfoRequest `json:"updateInfo"` /* 批量更新信息列表 */
}
type CtecsBatchUpdateSnapshotV41Response ¶
type CtecsBatchUpdateSnapshotV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsBatchUpdateSnapshotV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsBatchUpdateSnapshotV41ReturnObjResponse ¶
type CtecsBatchUpdateSnapshotV41ReturnObjResponse struct {
SnapshotIDList []string `json:"snapshotIDList"` /* 云主机快照ID */
}
type CtecsBatchUpdateSnapshotV41UpdateInfoRequest ¶
type CtecsBatchUpdateSnapshotV41UpdateInfoRequest struct {
SnapshotID string `json:"snapshotID,omitempty"` /* 云主机快照ID,<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8349&data=87">查询云主机快照列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8352&data=87">创建云主机快照</a> */
SnapshotName string `json:"snapshotName,omitempty"` /* 云主机快照名称。满足以下规则:长度为2-63字符,头尾不支持输入空格 */
SnapshotDescription string `json:"snapshotDescription,omitempty"` /* 云主机快照描述,字符长度不超过256字符 */
}
type CtecsCloneInstanceApi ¶
type CtecsCloneInstanceApi struct {
// contains filtered or unexported fields
}
func NewCtecsCloneInstanceApi ¶
func NewCtecsCloneInstanceApi(client *core.CtyunClient) *CtecsCloneInstanceApi
func (*CtecsCloneInstanceApi) Do ¶
func (a *CtecsCloneInstanceApi) Do(ctx context.Context, credential core.Credential, req *CtecsCloneInstanceRequest) (*CtecsCloneInstanceResponse, error)
type CtecsCloneInstanceNetworkCardListRequest ¶
type CtecsCloneInstanceNetworkCardListRequest struct {
NicName string `json:"nicName,omitempty"` /* 长度2-32,支持拉丁字母、中文、数字、下划线、连字符,中文或英文字母开头,不能以http:或https:开头 */
FixedIP string `json:"fixedIP,omitempty"` /* 内网IPv4地址,注:不可使用已占用IP */
IsMaster bool `json:"isMaster"` /* 是否主网卡,取值范围:<br />true:表示主网卡,<br />false:表示扩展网卡<br />注:只能含有一个主网卡 */
SubnetID string `json:"subnetID,omitempty"` /* 子网ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10098380">基本概念</a>来查找子网的相关定义 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=8659&data=94">查询子网列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4812&data=94">创建子网</a><br />注:在多可用区类型资源池下,subnetID通常以“subnet-”开头,非多可用区类型资源池subnetID为uuid格式 */
}
type CtecsCloneInstanceRequest ¶
type CtecsCloneInstanceRequest struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个ClientToken值,其他请求参数相同时,则代表为同一个请求。保留时间为24小时 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 被克隆云主机ID,获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称。不同操作系统下,云主机名称规则有差异<br />Windows:长度为2-15个字符,允许使用大小写字母、数字或连字符(-)。不能以连字符(-)开头或结尾,不能连续使用连字符(-),也不能仅使用数字;<br />其他操作系统:长度为2-64字符,允许使用点(.)分隔字符成多段,每段允许使用大小写字母、数字或连字符(-),但不能连续使用点号(.)或连字符(-),不能以点号(.)或连字符(-)开头或结尾,也不能仅使用数字 */
DisplayName string `json:"displayName,omitempty"` /* 云主机显示名称,长度为2-63字符 */
VpcID string `json:"vpcID,omitempty"` /* 虚拟私有云ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028310">产品定义-虚拟私有云</a>来了解虚拟私有云<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4814&data=94">查询VPC列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4811&data=94">创建VPC</a><br />注:在多可用区类型资源池下,vpcID通常为“vpc-”开头,非多可用区类型资源池vpcID为uuid格式 */
OnDemand bool `json:"onDemand"` /* 购买方式,取值范围:<br />false:按周期,<br />true:按需<br />您可以查看<a href="https://www.ctyun.cn/document/10026730/10030877">计费模式</a>了解云主机的计费模式<br />注:按周期(false)创建云主机需要同时指定cycleCount和cycleType参数 */
SecGroupList []string `json:"secGroupList"` /* 安全组ID列表,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>了解安全组相关信息 <br />获取: <br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4817&data=94">查询用户安全组列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4821&data=94">创建安全组</a><br />注:在多可用区类型资源池下,安全组ID通常以“sg-”开头,非多可用区类型资源池安全组ID为uuid格式;默认使用默认安全组,无默认安全组情况下请填写该参数 */
NetworkCardList []*CtecsCloneInstanceNetworkCardListRequest `json:"networkCardList"` /* 网卡信息列表,您可以查看<a href="https://www.ctyun.cn/document/10026730/10225195">弹性网卡概述</a>了解弹性网卡相关信息 */
ExtIP string `json:"extIP,omitempty"` /* 是否使用弹性公网IP,取值范围:<br />0:不使用,<br />1:自动分配,<br />2:使用已有<br />注:自动分配弹性公网,默认分配IPv4弹性公网,需填写带宽大小,如需ipv6请填写弹性IP版本(即参数extIP="1"时,需填写参数bandwidth、ipVersion,ipVersion含默认值ipv4);<br />使用已有弹性公网,请填写弹性公网IP的ID,默认为ipv4版本,如使用已有ipv6,请填写弹性ip版本(即参数extIP="2"时,需填写eipID或ipv6AddressID,同时ipv6情况下请填写ipVersion) */
IpVersion string `json:"ipVersion,omitempty"` /* 弹性IP版本,取值范围:<br />ipv4:v4地址,<br />ipv6:v6地址<br />不指定默认为ipv4。注:请先确认该资源池是否支持ipv6 */
Bandwidth int32 `json:"bandwidth,omitempty"` /* 带宽大小,单位为Mbit/s,取值范围:[1, 2000]<br />注:extIP取值1时,bandwidth生效且必填 */
Ipv6AddressID string `json:"ipv6AddressID,omitempty"` /* 弹性公网IPv6的ID,注:多可用区类资源池暂不支持;填写该参数时请填写ipVersion为ipv6 */
EipID string `json:"eipID,omitempty"` /* 弹性公网IP的ID,您可以查看<a href="https://www.ctyun.cn/document/10026753/10026909">产品定义-弹性IP</a>来了解弹性公网IP <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=8652&data=94&isNormal=1&vid=88">查询指定地域已创建的弹性 IP</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5723&data=94&vid=88">创建弹性 IP</a> */
AffinityGroupID string `json:"affinityGroupID,omitempty"` /* 云主机组ID,获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8324&data=87">查询云主机组列表或者详情</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8316&data=87"> 创建云主机组</a> */
KeyPairID string `json:"keyPairID,omitempty"` /* 密钥对ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10230540">密钥对</a>来了解密钥对相关内容 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8342&data=87">查询一个或多个密钥对</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8344&data=87">创建一对SSH密钥对</a> */
UserPassword string `json:"userPassword,omitempty"` /* 用户密码,满足以下规则:<br />长度在8~30个字符;<br />必须包含大写字母、小写字母、数字以及特殊符号中的三项;<br />特殊符号可选:()`-!@#$%^&*_-+=|{}[]:;'<>,.?/且不能以斜线号 / 开头;<br />不能包含3个及以上连续字符;<br />Linux镜像不能包含镜像用户名(root)、用户名的倒序(toor)、用户名大小写变化(如RoOt、rOot等);<br />Windows镜像不能包含镜像用户名(Administrator)、用户名大小写变化(adminiSTrator等) */
CycleCount int32 `json:"cycleCount,omitempty"` /* 订购时长,该参数需要与cycleType一同使用<br />注:最长订购周期为60个月(5年);cycleType与cycleCount一起填写;按量付费(即onDemand为true)时,无需填写该参数(填写无效) */
CycleType string `json:"cycleType,omitempty"` /* 订购周期类型,取值范围:<br />MONTH:按月,<br />YEAR:按年<br />注:cycleType与cycleCount一起填写;按量付费(即onDemand为true)时,无需填写该参数(填写无效) */
AutoRenewStatus int32 `json:"autoRenewStatus,omitempty"` /* 是否自动续订,取值范围:<br />0:不续费,<br />1:自动续费<br />注:按月购买,自动续订周期为1个月;按年购买,自动续订周期为1年 */
UserData string `json:"userData,omitempty"` /* 用户自定义数据,需要以Base64方式编码,Base64编码后的长度限制为1-16384字符<br /> */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目<br />注:默认值为"0" */
LabelList []*CtecsCloneInstanceLabelListRequest `json:"labelList"` /* 标签信息列表,注:单台云主机最多可绑定10个标签;云主机创建完成后,云主机变为运行状态,此时标签仍可能未绑定,需等待一段时间(0-10分钟) */
MonitorService *bool `json:"monitorService"` /* 监控参数,支持通过该参数指定云主机在创建后是否开启详细监控,取值范围: <br />false:不开启,<br />true:开启<br />若指定该参数为true或不指定该参数,云主机内默认开启最新详细监控服务<br />若指定该参数为false,默认不开启最新监控服务,而使用与原云主机相同的监控服务<br />说明:仅部分资源池支持monitorService参数,详细请参考<a href="https://www.ctyun.cn/document/10026730/10325957">监控Agent概览</a> */
}
type CtecsCloneInstanceResponse ¶
type CtecsCloneInstanceResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsCloneInstanceReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsCloneInstanceReturnObjResponse ¶
type CtecsCloneInstanceReturnObjResponse struct {
MasterOrderID string `json:"masterOrderID,omitempty"` /* 主订单ID。调用方在拿到masterOrderID之后,可以使用materOrderID进一步确认订单状态及资源状态<br />查询订单状态及资源UUID: <br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9607&data=87&isNormal=1">根据masterOrderID查询云主机ID</a> */
MasterOrderNO string `json:"masterOrderNO,omitempty"` /* 订单号 */
MasterResourceID string `json:"masterResourceID,omitempty"` /* 主资源ID */
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
}
type CtecsCloudAssistantDescribeInvocationResultsApi ¶
type CtecsCloudAssistantDescribeInvocationResultsApi struct {
// contains filtered or unexported fields
}
func NewCtecsCloudAssistantDescribeInvocationResultsApi ¶
func NewCtecsCloudAssistantDescribeInvocationResultsApi(client *core.CtyunClient) *CtecsCloudAssistantDescribeInvocationResultsApi
func (*CtecsCloudAssistantDescribeInvocationResultsApi) Do ¶
func (a *CtecsCloudAssistantDescribeInvocationResultsApi) Do(ctx context.Context, credential core.Credential, req *CtecsCloudAssistantDescribeInvocationResultsRequest) (*CtecsCloudAssistantDescribeInvocationResultsResponse, error)
type CtecsCloudAssistantDescribeInvocationResultsRequest ¶
type CtecsCloudAssistantDescribeInvocationResultsRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
CommandID string `json:"commandID,omitempty"` /* 命令ID */
InvokedID string `json:"invokedID,omitempty"` /* 命令执行ID */
PageNo int32 `json:"pageNo,omitempty"` /* 当前页码,默认值为1 */
PageSize int32 `json:"pageSize,omitempty"` /* 分页查询时设置的每页行数,最大值为100,默认为10 */
}
type CtecsCloudAssistantDescribeInvocationResultsResponse ¶
type CtecsCloudAssistantDescribeInvocationResultsResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800 为成功,900 为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,详见错误码说明 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsCloudAssistantDescribeInvocationResultsReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsCloudAssistantDescribeInvocationResultsReturnObjResponse ¶
type CtecsCloudAssistantDescribeInvocationResultsReturnObjResponse struct {
Results *CtecsCloudAssistantDescribeInvocationResultsReturnObjResultsResponse `json:"results"` /* 命令执行结果集合 */
PageNo int32 `json:"pageNo,omitempty"` /* 当前页码 */
TotalCount int32 `json:"totalCount,omitempty"` /* 命令总个数 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页行数 */
}
type CtecsCloudAssistantDescribeInvocationResultsReturnObjResultsResponse ¶
type CtecsCloudAssistantDescribeInvocationResultsReturnObjResultsResponse struct {
InvocationStatus string `json:"invocationStatus,omitempty"` /* 单台云主机的命令运行状态,可能值:<br />Pending:系统正在校验或发送命令;<br />Running:命令正在云主机上运行;<br />Success:命令执行完成,且退出码为0;<br />Failed:命令执行完成,且退出码非0; */
CreateTime string `json:"createTime,omitempty"` /* 命令执行创建时间 */
UpdateTime string `json:"updateTime,omitempty"` /* 命令执行完成时间 */
InvokedID string `json:"invokedID,omitempty"` /* 命令执行ID */
CommandID string `json:"commandID,omitempty"` /* 命令ID */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
Output string `json:"output,omitempty"` /* 命令执行后的输出信息 */
ExitCode int32 `json:"exitCode,omitempty"` /* 命令退出码 */
ErrorInfo string `json:"errorInfo,omitempty"` /* 命令执行失败原因详情 */
InvokeRecordStatus string `json:"invokeRecordStatus,omitempty"` /* 单个命令执行任务的总状态,取值范围:<br />Pending:未执行,当有云主机中命令状态为Pending,则总的执行状态为未执行;<br />Running:运行中,有云主机中命令进程为运行中,则总的执行状态为运行中;<br />Finished:已完成。所有云主机命令进程全部完成执行;<br />Failed:执行失败,有云主机中命令进程为执行失败,则总的状态为Failed。 */
}
type CtecsCloudAssistantRunCommandApi ¶
type CtecsCloudAssistantRunCommandApi struct {
// contains filtered or unexported fields
}
func NewCtecsCloudAssistantRunCommandApi ¶
func NewCtecsCloudAssistantRunCommandApi(client *core.CtyunClient) *CtecsCloudAssistantRunCommandApi
func (*CtecsCloudAssistantRunCommandApi) Do ¶
func (a *CtecsCloudAssistantRunCommandApi) Do(ctx context.Context, credential core.Credential, req *CtecsCloudAssistantRunCommandRequest) (*CtecsCloudAssistantRunCommandResponse, error)
type CtecsCloudAssistantRunCommandParameterRequest ¶
type CtecsCloudAssistantRunCommandParameterRequest struct{}
type CtecsCloudAssistantRunCommandRequest ¶
type CtecsCloudAssistantRunCommandRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
InstanceIDs string `json:"instanceIDs,omitempty"` /* 待执行命令的弹性云主机、物理机ID列表, 使用英文 , 分割(当前仅支持同时下发弹性云主机ID或同时下发物理机ID,不支持混合下发) */
CommandName string `json:"commandName,omitempty"` /* 命令名称,长度不超过128个字符 */
Description string `json:"description,omitempty"` /* 命令描述,长度不超过512个字符 */
CommandType string `json:"commandType,omitempty"` /* 命令类型,取值范围:<br />Shell:适用于Linux云主机、物理机的Shell命令;<br />Bat:适用于Windows云主机的Bat命令;<br />PowerShell:适用于Windows云主机的PowerShell命令;<br />Python:适用于Python命令。<br />说明:当前物理机云助手还不支持windows系统。 */
CommandContent string `json:"commandContent,omitempty"` /* 加密后的命令内容,长度不可超过24KB */
WorkingDirectory string `json:"workingDirectory,omitempty"` /* 命令在实例中运行目录:<br />Linux系统默认路径为 /tmp;<br />Windows系统默认路径为 C:\Windows\System32。<br />说明:若在Windows系统云主机下执行Python命令,需要传Python安装全路径。 */
Timeout int32 `json:"timeout,omitempty"` /* 命令超时时间。默认值60秒 */
SaveCommand *bool `json:"saveCommand"` /* 是否保存命令,默认false */
EnabledParameter *bool `json:"enabledParameter"` /* 是否启用自定义参数,默认值为false,若传true,则必须传defaultParameter,若enabledParameter为false,则defaultParameter和parameter都不能传 */
DefaultParameter []*CtecsCloudAssistantRunCommandDefaultParameterRequest `json:"defaultParameter"` /* 启用自定义参数功能时,自定义参数的默认取值,json 格式map数组,说明:key仅支持大小写字母(A-a)、数字(0-9)、横线(-)和下划线(_) */
Parameter *CtecsCloudAssistantRunCommandParameterRequest `json:"parameter"` /* 自定义参数,说明:key仅支持大小写字母(A-a)、数字(0-9)、横线(-)和下划线(_),key和value均只支持string */
}
type CtecsCloudAssistantRunCommandResponse ¶
type CtecsCloudAssistantRunCommandResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800 为成功,900 为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,详见错误码说明 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsCloudAssistantRunCommandReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsCreateAffinityGroupV41Api ¶
type CtecsCreateAffinityGroupV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsCreateAffinityGroupV41Api ¶
func NewCtecsCreateAffinityGroupV41Api(client *core.CtyunClient) *CtecsCreateAffinityGroupV41Api
func (*CtecsCreateAffinityGroupV41Api) Do ¶
func (a *CtecsCreateAffinityGroupV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsCreateAffinityGroupV41Request) (*CtecsCreateAffinityGroupV41Response, error)
type CtecsCreateAffinityGroupV41Request ¶
type CtecsCreateAffinityGroupV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
AffinityGroupName string `json:"affinityGroupName,omitempty"` /* 云主机组名称,满足以下规则:长度在1-64个字符,只能由中文、英文字母、数字、下划线_、中划线-、点.组成 */
PolicyType int32 `json:"policyType"` /* 云主机组策略类型。<br />取值范围:<br />0:强制反亲和性,<br />1:强制亲和性,<br />2:反亲和性,<br />3:亲和性,<br />4:电力反亲和性<br />注:默认值2 */
}
type CtecsCreateAffinityGroupV41Response ¶
type CtecsCreateAffinityGroupV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsCreateAffinityGroupV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsCreateAffinityGroupV41ReturnObjAffinityGroupPolicyResponse ¶
type CtecsCreateAffinityGroupV41ReturnObjAffinityGroupPolicyResponse struct {
PolicyType int32 `json:"policyType,omitempty"` /* 云主机组策略类型。<br />取值范围:<br />0:强制反亲和性,<br />1:强制亲和性,<br />2:反亲和性,<br />3:亲和性,<br />4:电力反亲和性 */
PolicyTypeName string `json:"policyTypeName,omitempty"` /* 云主机组策略类型名称<br />取值范围:<br />anti-affinity:强制反亲和性,<br />affinity:强制亲和性,<br />soft-anti-affinity:反亲和性,<br />soft-affinity:亲和性,<br />power-anti-affinity:电力反亲和性 */
}
type CtecsCreateAffinityGroupV41ReturnObjResponse ¶
type CtecsCreateAffinityGroupV41ReturnObjResponse struct {
AffinityGroupID string `json:"affinityGroupID,omitempty"` /* 云主机组ID */
AffinityGroupName string `json:"affinityGroupName,omitempty"` /* 云主机组名称 */
AffinityGroupPolicy *CtecsCreateAffinityGroupV41ReturnObjAffinityGroupPolicyResponse `json:"affinityGroupPolicy"` /* 云主机组策略 */
}
type CtecsCreateCommandApi ¶
type CtecsCreateCommandApi struct {
// contains filtered or unexported fields
}
func NewCtecsCreateCommandApi ¶
func NewCtecsCreateCommandApi(client *core.CtyunClient) *CtecsCreateCommandApi
func (*CtecsCreateCommandApi) Do ¶
func (a *CtecsCreateCommandApi) Do(ctx context.Context, credential core.Credential, req *CtecsCreateCommandRequest) (*CtecsCreateCommandResponse, error)
type CtecsCreateCommandRequest ¶
type CtecsCreateCommandRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
CommandName string `json:"commandName,omitempty"` /* 命令名称,长度不超过128个字符 */
Description string `json:"description,omitempty"` /* 命令描述,长度不超过512个字符 */
CommandType string `json:"commandType,omitempty"` /* 命令类型,取值范围:<br />Shell:适用于Linux云主机、物理机的Shell命令;<br />Bat:适用于Windows云主机的Bat命令;<br />PowerShell:适用于Windows云主机的PowerShell命令;<br />Python:适用于Python命令 */
CommandContent string `json:"commandContent,omitempty"` /* 加密后的命令内容,base64编码长度不可超过24KB */
WorkingDirectory string `json:"workingDirectory,omitempty"` /* 命令在实例中运行目录。Linux系统默认路径为 /root;Windows系统默认路径为C:\Windows\System32 <br />说明:若在Windows系统云主机下执行Python脚本命令,需传Python安装全路径。 */
Timeout int32 `json:"timeout,omitempty"` /* 命令超时时间,默认值60秒 */
EnabledParameter *bool `json:"enabledParameter"` /* 是否启用自定义参数,若传true,则必须传defaultParameter,若enabledParameter为false,则defaultParameter不能传 */
DefaultParameter []*CtecsCreateCommandDefaultParameterRequest `json:"defaultParameter"` /* 启用自定义参数功能时,自定义参数的默认取值,json 格式string数组 */
}
type CtecsCreateCommandResponse ¶
type CtecsCreateCommandResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800 为成功,900 为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsCreateCommandReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsCreateCommandReturnObjResponse ¶
type CtecsCreateCommandReturnObjResponse struct {
CommandID string `json:"commandID,omitempty"` /* 命令id */
}
type CtecsCreateEipV41Api ¶
type CtecsCreateEipV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsCreateEipV41Api ¶
func NewCtecsCreateEipV41Api(client *core.CtyunClient) *CtecsCreateEipV41Api
func (*CtecsCreateEipV41Api) Do ¶
func (a *CtecsCreateEipV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsCreateEipV41Request) (*CtecsCreateEipV41Response, error)
type CtecsCreateEipV41Request ¶
type CtecsCreateEipV41Request struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。保留时间为24小时,使用同一个clientToken值,则代表为同一个请求 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目<br />注:默认值为"0" */
CycleType string `json:"cycleType,omitempty"` /* 订购类型,取值范围:month表示按月,year表示按年,on_demand表示按需 */
CycleCount int32 `json:"cycleCount,omitempty"` /* 订购时长, <br />当 cycleType = month 时, 支持订购1 - 11 个月,支持续订1 - 11 个月 ;<br /> 当 cycleType = year 时, 支持订购1 - 5 年,支持续订 1 - 3 年;<br /> 当 cycleType = on_demand 时,可以不传 */
Name string `json:"name,omitempty"` /* 弹性 IP 名称,满足以下规则:支持拉丁字母、中文、数字,下划线,连字符,中文 / 英文字母开头,不能以 http: / https: 开头,长度 2 - 32 */
Bandwidth int32 `json:"bandwidth,omitempty"` /* 弹性 IP 的带宽峰值,默认为 1 Mbps */
BandwidthID string `json:"bandwidthID,omitempty"` /* 共享带宽,当 cycleType 为 on_demand 时生效,将弹性 IP 加入到共享带宽中 */
DemandBillingType string `json:"demandBillingType,omitempty"` /* 按需计费类型,当 cycleType 为 on_demand 时生效,支持 bandwidth(按带宽)/ upflowc(按流量) */
PayVoucherPrice string `json:"payVoucherPrice,omitempty"` /* 代金券金额,支持到小数点后两位,仅包周期支持代金券 */
LineType string `json:"lineType,omitempty"` /* 线路类型,默认为163,支持163 / bgp / chinamobile / chinaunicom */
SegmentID string `json:"segmentID,omitempty"` /* 专属地址池id */
ExclusiveName string `json:"exclusiveName,omitempty"` /* 专属地址池名称 */
}
type CtecsCreateEipV41Response ¶
type CtecsCreateEipV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsCreateEipV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsCreateEipV41ReturnObjResponse ¶
type CtecsCreateEipV41ReturnObjResponse struct {
MasterOrderID string `json:"masterOrderID,omitempty"` /* 订单ID。调用方在拿到masterOrderID之后,可以使用materOrderID进一步确认订单状态及资源状态 */
MasterOrderNO string `json:"masterOrderNO,omitempty"` /* 订单编号, 可以为 null。 */
MasterResourceStatus string `json:"masterResourceStatus,omitempty"` /* 资源状态: started(启用) / renewed(续订) / refunded(退订) / destroyed(销毁) / failed(失败) / starting(正在启用) / changed(变配)/ expired(过期)/ unknown(未知) */
MasterResourceID string `json:"masterResourceID,omitempty"` /* 可以为 null。 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
EipID string `json:"eipID,omitempty"` /* 弹性 IP id */
}
type CtecsCreateInstanceBackupPolicyApi ¶
type CtecsCreateInstanceBackupPolicyApi struct {
// contains filtered or unexported fields
}
func NewCtecsCreateInstanceBackupPolicyApi ¶
func NewCtecsCreateInstanceBackupPolicyApi(client *core.CtyunClient) *CtecsCreateInstanceBackupPolicyApi
func (*CtecsCreateInstanceBackupPolicyApi) Do ¶
func (a *CtecsCreateInstanceBackupPolicyApi) Do(ctx context.Context, credential core.Credential, req *CtecsCreateInstanceBackupPolicyRequest) (*CtecsCreateInstanceBackupPolicyResponse, error)
type CtecsCreateInstanceBackupPolicyRequest ¶
type CtecsCreateInstanceBackupPolicyRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
PolicyName string `json:"policyName,omitempty"` /* 云主机备份策略名称。满足以下规则:只能由数字、英文字母、中划线-、下划线_、点.组成,长度为2-64字符<br />注:在所有资源池不可重复 */
CycleType string `json:"cycleType,omitempty"` /* 云主机备份周期类型,取值范围:day(按天备份)week(按星期备份) */
CycleDay int32 `json:"cycleDay,omitempty"` /* 备份周期(天),取值范围:[1, 30],默认值为1 <br />注:cycleType为day时需设置 */
CycleWeek string `json:"cycleWeek,omitempty"` /* 备份周期(星期),星期取值范围:0~6(代表周几,其中0为周日),默认值是0<br />注:只有cycleType为week时需设置;<br />如果一周有多天备份,以逗号隔开(如周日周三进行快照,则填写"0,3") */
Time string `json:"time,omitempty"` /* 备份整点时间,时间取值范围:0~23<br />注:如果一天内多个时间节点备份,以逗号隔开(如11点15点进行快照,则填写"11,15"),默认值12 */
Status int32 `json:"status,omitempty"` /* 备份策略状态,是否启用,取值范围:<br />0(不启用),<br />1(启用)<br />注:默认值0(不启用) */
RetentionType string `json:"retentionType,omitempty"` /* 云主机备份保留类型,取值范围:<br />date(按时间保存),<br />num(按数量保存),<br />all(永久保存) */
RetentionDay int32 `json:"retentionDay,omitempty"` /* 云主机备份保留天数,单位为天,取值范围:[1, 99999] ,默认值1<br />注:retentionType为date时必填 */
RetentionNum int32 `json:"retentionNum,omitempty"` /* 云主机备份保留数量,取值范围:[1, 99999],默认值1<br />注:retentionType为num时必填 */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目<br />注:默认值为"0" */
FullBackupInterval int32 `json:"fullBackupInterval,omitempty"` /* 是否启用周期性全量备份。-1代表不开启,默认为-1;取值范围为[-1,100],即每执行n次增量备份后,执行一次全量备份;若传入为0,代表每一次均为全量备份。 */
AdvRetentionStatus bool `json:"advRetentionStatus,omitempty"` /* 是否开启高级保留策略,false(不启用),true(启用),默认值为false。需校验云主机备份保留类型(retentionType),若保留类型为按数量保存(num),可开启高级保留策略;若保留类型为date(按时间保存)或all(永久保存),不可开启高级保留策略。 */
AdvRetention *AdvRetention `json:"advRetention,omitempty"` /* 高级保留策略内容,只有retentionType为num且advRetentionStatus为true才生效 */
}
type CtecsCreateInstanceBackupPolicyResponse ¶
type CtecsCreateInstanceBackupPolicyResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 错误信息的英文描述 */
Description string `json:"description,omitempty"` /* 错误信息的本地化描述(中文) */
ReturnObj *CtecsCreateInstanceBackupPolicyReturnObjResponse `json:"returnObj"` /* 返回对象 */
}
type CtecsCreateInstanceBackupPolicyReturnObjResponse ¶
type CtecsCreateInstanceBackupPolicyReturnObjResponse struct {
Status int32 `json:"status,omitempty"` /* 备份策略状态 */
PolicyName string `json:"policyName,omitempty"` /* 备份策略名称 */
RetentionType string `json:"retentionType,omitempty"` /* 备份保留类型 */
RetentionDay int32 `json:"retentionDay,omitempty"` /* 保留时间,当retentionType为date时返回 */
RetentionNum int32 `json:"retentionNum,omitempty"` /* 保留数量,当retentionType为num时返回 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
CycleType string `json:"cycleType,omitempty"` /* 备份周期类型 */
CycleDay int32 `json:"cycleDay,omitempty"` /* cycleType为day时返回备份周期值 */
CycleWeek string `json:"cycleWeek,omitempty"` /* cycleType为week时返回备份周期值 */
PolicyID string `json:"policyID,omitempty"` /* 备份策略ID */
Time string `json:"time,omitempty"` /* 备份整点时间 */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID */
}
type CtecsCreateInstanceBackupRepoApi ¶
type CtecsCreateInstanceBackupRepoApi struct {
// contains filtered or unexported fields
}
func NewCtecsCreateInstanceBackupRepoApi ¶
func NewCtecsCreateInstanceBackupRepoApi(client *core.CtyunClient) *CtecsCreateInstanceBackupRepoApi
func (*CtecsCreateInstanceBackupRepoApi) Do ¶
func (a *CtecsCreateInstanceBackupRepoApi) Do(ctx context.Context, credential core.Credential, req *CtecsCreateInstanceBackupRepoRequest) (*CtecsCreateInstanceBackupRepoResponse, error)
type CtecsCreateInstanceBackupRepoRequest ¶
type CtecsCreateInstanceBackupRepoRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87&vid=81">资源池列表查询</a> */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目<br />注:默认值为"0" */
RepositoryName string `json:"repositoryName,omitempty"` /* 云主机备份存储库名称,满足以下规则:长度为2-63字符,头尾不支持输入空格 */
CycleCount int32 `json:"cycleCount,omitempty"` /* 订购时长,该参数需要与cycleType一同使用<br />注:最长订购周期为60个月(5年) */
CycleType string `json:"cycleType,omitempty"` /* 订购周期类型,取值范围:<br />MONTH:按月<br />YEAR:按年<br />最长订购周期为5年 */
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个ClientToken值,则代表为同一个请求。保留时间为24小时 */
Size int32 `json:"size,omitempty"` /* 云主机备份存储库容量,单位GB,取值范围:[100-1024000],默认值100 */
AutoRenewStatus int32 `json:"autoRenewStatus,omitempty"` /* 是否自动续订,取值范围:<br />0(不续费),<br />1(自动续费),<br />注:按月购买,自动续订周期为1个月;按年购买,自动续订周期为1年 */
PayVoucherPrice float32 `json:"payVoucherPrice"` /* 代金券,满足以下规则:两位小数,不足两位自动补0,超过两位小数无效;不可为负数;<br />注:字段为0时表示不使用代金券,默认不使用代金券。 */
}
type CtecsCreateInstanceBackupRepoResponse ¶
type CtecsCreateInstanceBackupRepoResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800 为成功,900 为失败)。 */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsCreateInstanceBackupRepoReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsCreateInstanceBackupRepoReturnObjResponse ¶
type CtecsCreateInstanceBackupRepoReturnObjResponse struct {
MasterOrderID string `json:"masterOrderID,omitempty"` /* 主订单ID。调用方在拿到masterOrderID之后,可以使用materOrderID进一步确认订单状态及资源状态 */
MasterOrderNO string `json:"masterOrderNO,omitempty"` /* 订单号 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
MasterResourceID string `json:"masterResourceID,omitempty"` /* 订单主资源ID */
}
type CtecsCreateInstanceBackupV41Api ¶
type CtecsCreateInstanceBackupV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsCreateInstanceBackupV41Api ¶
func NewCtecsCreateInstanceBackupV41Api(client *core.CtyunClient) *CtecsCreateInstanceBackupV41Api
func (*CtecsCreateInstanceBackupV41Api) Do ¶
func (a *CtecsCreateInstanceBackupV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsCreateInstanceBackupV41Request) (*CtecsCreateInstanceBackupV41Response, error)
type CtecsCreateInstanceBackupV41Request ¶
type CtecsCreateInstanceBackupV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a> */
InstanceBackupName string `json:"instanceBackupName,omitempty"` /* 云主机备份名称。满足以下规则:长度为2-63字符,头尾不支持输入空格 */
InstanceBackupDescription string `json:"instanceBackupDescription,omitempty"` /* 云主机备份描述,字符长度不超过256字符 */
RepositoryID string `json:"repositoryID,omitempty"` /* 云主机备份存储库ID,您可以查看<a href="https://www.ctyun.cn/document/10026751/10033742">产品定义-存储库</a>来了解存储库<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=6909&data=87&isNormal=1&vid=81">查询存储库列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=6910&data=87&isNormal=1&vid=81">创建存储库</a> */
FullBackup bool `json:"fullBackup,omitempty"` /* 是否启用全量备份,取值范围:●true:是●false:否若启用该参数,则此次备份的类型为全量备份。注:只有4.0资源池支持该参数。 */
}
type CtecsCreateInstanceBackupV41Response ¶
type CtecsCreateInstanceBackupV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsCreateInstanceBackupV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsCreateInstanceBackupV41ReturnObjResponse ¶
type CtecsCreateInstanceBackupV41ReturnObjResponse struct {
Results *CtecsCreateInstanceBackupV41ReturnObjResultsResponse `json:"results"` /* 备份结果 */
}
type CtecsCreateInstanceBackupV41ReturnObjResultsResponse ¶
type CtecsCreateInstanceBackupV41ReturnObjResultsResponse struct {
InstanceBackupID string `json:"instanceBackupID,omitempty"` /* 云主机备份ID */
InstanceBackupName string `json:"instanceBackupName,omitempty"` /* 云主机备份名称 */
InstanceBackupStatus string `json:"instanceBackupStatus,omitempty"` /* 备份状态,取值范围:<br />CREATING: 备份创建中, <br />ACTIVE: 可用, <br />RESTORING: 备份恢复中,<br />DELETING: 删除中,<br />EXPIRED:到期,<br />ERROR:错误 */
InstanceBackupDescription string `json:"instanceBackupDescription,omitempty"` /* 云主机备份描述 */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称 */
RepositoryID string `json:"repositoryID,omitempty"` /* 云主机备份存储库ID */
RepositoryName string `json:"repositoryName,omitempty"` /* 云主机备份存储库名称 */
DiskTotalSize int32 `json:"diskTotalSize,omitempty"` /* 云盘总容量大小,单位为GB */
UsedSize int32 `json:"usedSize,omitempty"` /* 云硬盘备份已使用大小 */
CreatedTime string `json:"createdTime,omitempty"` /* 创建时间 */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID */
}
type CtecsCreateInstanceByInstanceBackupApi ¶
type CtecsCreateInstanceByInstanceBackupApi struct {
// contains filtered or unexported fields
}
func NewCtecsCreateInstanceByInstanceBackupApi ¶
func NewCtecsCreateInstanceByInstanceBackupApi(client *core.CtyunClient) *CtecsCreateInstanceByInstanceBackupApi
func (*CtecsCreateInstanceByInstanceBackupApi) Do ¶
func (a *CtecsCreateInstanceByInstanceBackupApi) Do(ctx context.Context, credential core.Credential, req *CtecsCreateInstanceByInstanceBackupRequest) (*CtecsCreateInstanceByInstanceBackupResponse, error)
type CtecsCreateInstanceByInstanceBackupNetworkCardListRequest ¶
type CtecsCreateInstanceByInstanceBackupNetworkCardListRequest struct {
NicName string `json:"nicName,omitempty"` /* 长度2~32,支持拉丁字母、中文、数字、下划线、连字符,中文或英文字母开头,不能以http:或https:开头 */
FixedIP string `json:"fixedIP,omitempty"` /* 内网IPv4地址 */
IsMaster bool `json:"isMaster"` /* 是否主网卡,取值范围:<br />true:主网卡,<br />false:非主网卡 */
SubnetID string `json:"subnetID,omitempty"` /* 子网ID */
}
type CtecsCreateInstanceByInstanceBackupRequest ¶
type CtecsCreateInstanceByInstanceBackupRequest struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个ClientToken值,则代表为同一个请求。保留时间为24小时 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,请输入备份所在的资源池,保证备份创建的云主机与备份在同一资源池。 */
AzName string `json:"azName,omitempty"` /* 可用区名称,不填写时默认使用备份所在可用区。您可以调用获取[资源池信息](https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5855&data=87),查询结果中zoneList内返回存在可用区名称(即多可用区,本字段填写实际可用区名称),若查询结果中zoneList为空(即为单可用区)。 */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称。不同操作系统下,云主机名称规则有差异。<br />Windows:长度为2~15个字符,允许使用大小写字母、数字或连字符(-)。不能以连字符(-)开头或结尾,不能连续使用连字符(-),也不能仅使用数字;<br />其他操作系统:长度为2-64字符,允许使用点(.)分隔字符成多段,每段允许使用大小写字母、数字或连字符(-),但不能连续使用点号(.)或连字符(-),不能以点号(.)或连字符(-)开头或结尾,也不能仅使用数字 */
DisplayName string `json:"displayName,omitempty"` /* 云主机显示名称,长度为2-63字符 */
InstanceBackupID string `json:"instanceBackupID,omitempty"` /* 云主机备份ID,您可以查看<a href="https://www.ctyun.cn/document/10026751/10033738">产品定义-云主机备份</a>来了解云主机备份<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8354&data=87&isNormal=1&vid=81">查询云主机备份列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8332&data=87&isNormal=1&vid=81">创建云主机备份</a> */
FlavorID string `json:"flavorID,omitempty"` /* 云主机规格ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10118193">规格说明</a>了解弹性云主机的选型基本信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8327&data=87">查询一个或多个云主机规格资源</a><br />注:同一规格名称在不同资源池不同可用区的规格ID是不同的,调用前需确认规格ID是否归属当前资源池,多可用区资源池确认是否归属当前可用区 */
VpcID string `json:"vpcID,omitempty"` /* 虚拟私有云ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028310">产品定义-虚拟私有云</a>来了解虚拟私有云<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4814&data=94">查询VPC列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4811&data=94">创建VPC</a> */
OnDemand bool `json:"onDemand"` /* 购买方式,取值范围:<br />false(按周期),<br />true(按需)<br />您可以查看<a href="https://www.ctyun.cn/document/10026730/10030877">计费模式</a>了解云主机的计费模式<br />注:按周期(false)创建云主机需要同时指定cycleCount和cycleType参数 */
SecGroupList []string `json:"secGroupList"` /* 安全组ID列表,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>了解安全组相关信息 <br />获取: <br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4817&data=94">查询用户安全组列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4821&data=94">创建安全组</a> */
NetworkCardList []*CtecsCreateInstanceByInstanceBackupNetworkCardListRequest `json:"networkCardList"` /* 网卡信息列表,您可以查看<a href="https://www.ctyun.cn/document/10026730/10225195">弹性网卡概述</a>了解弹性网卡相关信息 */
ExtIP string `json:"extIP,omitempty"` /* 是否使用弹性公网IP,取值范围:<br />0(不使用),<br />1(自动分配),<br />2(使用已有)。<br />注:自动分配弹性公网,默认分配IPv4弹性公网,需填写带宽大小,如需ipv6请填写弹性IP版本(即参数extIP="1"时,需填写参数bandwidth、ipVersion,ipVersion含默认值ipv4);<br />使用已有弹性公网,请填写弹性公网IP的ID,默认为ipv4版本,如使用已有ipv6,请填写弹性ip版本(即参数extIP="2"时,需填写eipID或ipv6AddressID,同时ipv6情况下请填写ipVersion) */
IpVersion string `json:"ipVersion,omitempty"` /* 弹性IP版本,取值范围:<br />ipv4(v4地址),<br />ipv6(v6地址),<br />不指定默认为ipv4。注:请先确认该资源池是否支持ipv6 */
Bandwidth int32 `json:"bandwidth,omitempty"` /* 带宽大小,单位为Mbit/s,取值范围:[1, 2000] */
Ipv6AddressID string `json:"ipv6AddressID,omitempty"` /* ipv6地址的ID(多可用区类资源池暂不支持) */
EipID string `json:"eipID,omitempty"` /* 弹性公网IP的ID,您可以查看<a href="https://www.ctyun.cn/document/10026753/10026909">产品定义-弹性IP]来了解弹性公网IP <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=8652&data=94&isNormal=1&vid=88">查询指定地域已创建的弹性 IP</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5723&data=94&vid=88">创建弹性 IP</a> */
AffinityGroupID string `json:"affinityGroupID,omitempty"` /* 云主机组ID,获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8324&data=87">查询云主机组列表或者详情</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8316&data=87"> 创建云主机组</a><br /> */
KeyPairID string `json:"keyPairID,omitempty"` /* 密钥对ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10230540">密钥对</a>来了解密钥对相关内容 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8342&data=87">查询一个或多个密钥对</a><br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://www.ctyun.cn/document/10026730/10040171">查询一个或多个SSH密钥对(旧版)</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8344&data=87">创建一对SSH密钥对</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://www.ctyun.cn/document/10026730/10040170"> 创建一对SSH密钥对(旧版)</a> */
UserPassword string `json:"userPassword,omitempty"` /* 用户密码,满足以下规则:<br />长度在8~30个字符;<br />必须包含大写字母、小写字母、数字以及特殊符号中的三项;<br />特殊符号可选:()`~!@#$%^&*_-+=|{}[]:;'<>,.?/\且不能以斜线号 / 开头;<br />不能包含3个及以上连续字符;<br />Linux镜像不能包含镜像用户名(root)、用户名的倒序(toor)、用户名大小写变化(如RoOt、rOot等);<br />Windows镜像不能包含镜像用户名(Administrator)、用户名大小写变化(adminiSTrator等) */
CycleCount int32 `json:"cycleCount,omitempty"` /* 订购时长,该参数需要与cycleType一同使用<br />注:最长订购周期为60个月(5年);cycleType与cycleCount一起填写 */
CycleType string `json:"cycleType,omitempty"` /* 订购周期类型,取值范围:<br />MONTH:按月,<br />YEAR:按年。注:cycleType与cycleCount一起填写 */
AutoRenewStatus int32 `json:"autoRenewStatus,omitempty"` /* 是否自动续订,取值范围:<br />0(不续费),<br />1(自动续费),<br />注:按月购买,自动续订周期为1个月;按年购买,自动续订周期为1年 */
UserData string `json:"userData,omitempty"` /* 用户自定义数据,需要以Base64方式编码,Base64编码后的长度限制为1-16384字符 */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目<br />注:默认值为"0" */
PayVoucherPrice float32 `json:"payVoucherPrice"` /* 代金券,满足以下规则:两位小数,不足两位自动补0,超过两位小数无效;不可为负数;字段为0时表示不使用代金券,默认不使用代金券。 */
LabelList []*CtecsCreateInstanceByInstanceBackupLabelListRequest `json:"labelList"` /* 标签信息列表,注:单台云主机最多可绑定10个标签;主机创建完成后,云主机变为运行状态,此时标签仍可能未绑定,需等待一段时间(0~10分钟)。 */
MonitorService *bool `json:"monitorService"` /* 监控参数,支持通过该参数指定云主机在创建后是否开启详细监控,取值范围: <br />false(不开启),<br />true(开启)<br />若指定该参数为true或不指定该参数,云主机内默认开启最新详细监控服务。<br />若指定该参数为false,默认不开启最新监控服务,而使用与原备份里保留的监控服务。<br />说明:仅部分资源池支持monitorService参数,详细请参考<a href="https://www.ctyun.cn/document/10026730/10325957">监控Agent概览</a>。 */
}
type CtecsCreateInstanceByInstanceBackupResponse ¶
type CtecsCreateInstanceByInstanceBackupResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,详见**错误码说明** */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码,详见**错误码说明** */
Message string `json:"message,omitempty"` /* 失败时的错误信息 */
Description string `json:"description,omitempty"` /* 失败时的错误描述 */
ReturnObj *CtecsCreateInstanceByInstanceBackupReturnObjResponse `json:"returnObj"` /* 成功时返回的数据,参见表returnObj */
}
type CtecsCreateInstanceByInstanceBackupReturnObjResponse ¶
type CtecsCreateInstanceByInstanceBackupReturnObjResponse struct {
MasterOrderID string `json:"masterOrderID,omitempty"` /* 主订单ID。调用方在拿到masterOrderID之后,可以使用materOrderID进一步确认订单状态及资源状态 */
MasterOrderNO string `json:"masterOrderNO,omitempty"` /* 订单号 */
MasterResourceID string `json:"masterResourceID,omitempty"` /* 主资源ID */
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
}
type CtecsCreateInstanceV41Api ¶
type CtecsCreateInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsCreateInstanceV41Api ¶
func NewCtecsCreateInstanceV41Api(client *core.CtyunClient) *CtecsCreateInstanceV41Api
func (*CtecsCreateInstanceV41Api) Do ¶
func (a *CtecsCreateInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsCreateInstanceV41Request) (*CtecsCreateInstanceV41Response, error)
type CtecsCreateInstanceV41DataDiskListRequest ¶
type CtecsCreateInstanceV41DataDiskListRequest struct {
DiskMode string `json:"diskMode,omitempty"` /* 云硬盘属性,取值范围:<br />FCSAN:光纤通道协议的SAN网络,<br />ISCSI:小型计算机系统接口,<br />VBD:虚拟块存储设备<br />您可以查看<a href="https://www.ctyun.cn/document/10027696/10162960">磁盘模式及使用方法</a><br />注:默认为VBD */
DiskType string `json:"diskType,omitempty"` /* 云硬盘类型,取值范围:<br />SATA:普通IO,<br />SAS:高IO,<br />SSD:超高IO,<br />FAST-SSD:极速型SSD<br />您可以查看<a href="https://www.ctyun.cn/document/10027696/10162918">磁盘类型及性能介绍</a>磁盘类型相关信息 */
DiskSize int32 `json:"diskSize,omitempty"` /* 磁盘容量,单位为GB,取值范围:<br />[10, 32768] */
IsEncrypt *bool `json:"isEncrypt"` /* 磁盘是否加密,取值范围:<br />true:加密,<br />false:不加密<br />注:默认值false;填写True时,需要填写加密密钥(cmkID),否则无效 */
CmkID string `json:"cmkID,omitempty"` /* 加密密钥ID */
DiskName string `json:"diskName,omitempty"` /* 该参数暂时无法使用。云硬盘名称,长度限制2~63字符,不支持中文 */
}
type CtecsCreateInstanceV41NetworkCardListRequest ¶
type CtecsCreateInstanceV41NetworkCardListRequest struct {
FixedIP string `json:"fixedIP,omitempty"` /* 内网IPv4地址,注:不可使用已占用IP */
IsMaster bool `json:"isMaster"` /* 是否主网卡,取值范围:<br />true:表示主网卡,<br />false:表示扩展网卡<br />注:只能含有一个主网卡 */
SubnetID string `json:"subnetID,omitempty"` /* 子网ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10098380">基本概念</a>来查找子网的相关定义 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=8659&data=94">查询子网列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4812&data=94">创建子网</a><br />注:在多可用区类型资源池下,subnetID通常以“subnet-”开头,非多可用区类型资源池subnetID为uuid格式 */
NicName string `json:"nicName,omitempty"` /* 该参数暂时无法使用。网卡名称,长度2~32,支持拉丁字母、中文、数字、下划线、连字符,中文或英文字母开头,不能以http:或https:开头 */
}
type CtecsCreateInstanceV41Request ¶
type CtecsCreateInstanceV41Request struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。保留时间为24小时,使用同一个clientToken值,则代表为同一个请求 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
AzName string `json:"azName,omitempty"` /* 可用区名称,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解可用区 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5855&data=87">资源池可用区查询</a><br />注:查询结果中zoneList内返回存在可用区名称(即多可用区,本字段填写实际可用区名称),若查询结果中zoneList为空(即为单可用区,本字段填写default) */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称。不同操作系统下,云主机名称规则有差异<br />Windows:长度为2-15个字符,允许使用大小写字母、数字或连字符(-)。不能以连字符(-)开头或结尾,不能连续使用连字符(-),也不能仅使用数字;<br />其他操作系统:长度为2-64字符,允许使用点(.)分隔字符成多段,每段允许使用大小写字母、数字或连字符(-),但不能连续使用点号(.)或连字符(-),不能以点号(.)或连字符(-)开头或结尾,也不能仅使用数字 */
DisplayName string `json:"displayName,omitempty"` /* 云主机显示名称,长度为2-63字符 */
FlavorID string `json:"flavorID,omitempty"` /* 云主机规格ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10118193">规格说明</a>了解弹性云主机的选型基本信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8327&data=87">查询一个或多个云主机规格资源</a><br />注:同一规格名称在不同资源池不同可用区的规格ID是不同的,调用前需确认规格ID是否归属当前资源池,多可用区资源池确认是否归属当前可用区 */
ImageType int32 `json:"imageType,omitempty"` /* 镜像类型,取值范围:<br />0:私有镜像,<br />1:公有镜像,<br />2:共享镜像,<br />3:安全镜像,<br />4:甄选镜像 <br />5:应用镜像<br />您可以查看<a href="https://www.ctyun.cn/document/10026730/10030151">镜像概述</a>查看关于云主机镜像介绍 */
ImageID string `json:"imageID,omitempty"` /* 镜像ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10030151">镜像概述</a>来了解云主机镜像<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=23&api=4763&data=89">查询可以使用的镜像资源</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=23&api=4765&data=89">创建私有镜像(云主机系统盘)</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=23&api=5230&data=89">创建私有镜像(云主机数据盘)</a><br />注:同一镜像名称在不同资源池的镜像ID是不同的,调用前需确认镜像ID是否归属当前资源池 */
BootDiskType string `json:"bootDiskType,omitempty"` /* 系统盘类型,取值范围:<br />SATA:普通IO,<br />SAS:高IO,<br />SSD:超高IO,<br />FAST-SSD:极速型SSD<br />您可以查看<a href="https://www.ctyun.cn/document/10027696/10162918">磁盘类型及性能介绍</a>来了解磁盘类型及其对应性能指标 */
BootDiskSize int32 `json:"bootDiskSize,omitempty"` /* 系统盘大小单位为GiB,取值范围:<br />[40, 32768]<br />注:创建云主机过程中会存在单位转换,因此该参数只能传入整型,如果填写小数值则会被取整,影响到涉及计费 */
BootDiskIsEncrypt *bool `json:"bootDiskIsEncrypt"` /* 系统盘是否加密,取值范围:<br />true:加密,<br />false:不加密<br />注:默认值false;填写true时,需要填写系统盘加密密钥(bootDiskCmkID),否则无效 */
BootDiskCmkID string `json:"bootDiskCmkID,omitempty"` /* 系统盘加密密钥ID,注:加密系统盘填写该参数,同时需要填写系统盘是否加密(bootDiskIsEncrypt) 为true;暂不支持包周期密钥与默认密钥 */
VpcID string `json:"vpcID,omitempty"` /* 虚拟私有云ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028310">产品定义-虚拟私有云</a>来了解虚拟私有云<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4814&data=94">查询VPC列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4811&data=94">创建VPC</a><br />注:在多可用区类型资源池下,vpcID通常为“vpc-”开头,非多可用区类型资源池vpcID为uuid格式 */
OnDemand bool `json:"onDemand"` /* 购买方式,取值范围:<br />false:按周期,<br />true:按需<br />您可以查看<a href="https://www.ctyun.cn/document/10026730/10030877">计费模式</a>了解云主机的计费模式<br />注:按周期(false)创建云主机需要同时指定cycleCount和cycleType参数 */
NetworkCardList []*CtecsCreateInstanceV41NetworkCardListRequest `json:"networkCardList"` /* 网卡信息列表,您可以查看<a href="https://www.ctyun.cn/document/10026730/10225195">弹性网卡概述</a>了解弹性网卡相关信息 */
ExtIP string `json:"extIP,omitempty"` /* 是否使用弹性公网IP,取值范围:<br />0:不使用,<br />1:自动分配,<br />2:使用已有<br />注:自动分配弹性公网,默认分配IPv4弹性公网,需填写带宽大小,如需ipv6请填写弹性IP版本(即参数extIP="1"时,需填写参数bandwidth、ipVersion,ipVersion含默认值ipv4);<br />使用已有弹性公网,请填写弹性公网IP的ID,默认为ipv4版本,如使用已有ipv6,请填写弹性ip版本(即参数extIP="2"时,需填写eipID或ipv6AddressID,同时ipv6情况下请填写ipVersion) */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目<br />注:默认值为"0" */
SecGroupList []string `json:"secGroupList"` /* 安全组ID列表,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>了解安全组相关信息 <br />获取: <br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4817&data=94">查询用户安全组列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4821&data=94">创建安全组</a><br />注:在多可用区类型资源池下,安全组ID通常以“sg-”开头,非多可用区类型资源池安全组ID为uuid格式;默认使用默认安全组,无默认安全组情况下请填写该参数 */
DataDiskList []*CtecsCreateInstanceV41DataDiskListRequest `json:"dataDiskList"` /* 数据盘信息列表,注:同一云主机下最多可挂载8块数据盘 */
IpVersion string `json:"ipVersion,omitempty"` /* 弹性IP版本,取值范围:<br />ipv4:v4地址,<br />ipv6:v6地址<br />不指定默认为ipv4。注:请先确认该资源池是否支持ipv6(多可用区类资源池暂不支持) */
Bandwidth int32 `json:"bandwidth,omitempty"` /* 带宽大小,单位为Mbit/s,取值范围:[1, 2000] */
Ipv6AddressID string `json:"ipv6AddressID,omitempty"` /* 弹性公网IPv6的ID;填写该参数时请填写ipVersion为ipv6 */
EipID string `json:"eipID,omitempty"` /* 弹性公网IP的ID,您可以查看<a href="https://www.ctyun.cn/document/10026753/10026909">产品定义-弹性IP</a>来了解弹性公网IP <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=8652&data=94&isNormal=1&vid=88">查询指定地域已创建的弹性 IP</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5723&data=94&vid=88">创建弹性 IP</a> */
AffinityGroupID string `json:"affinityGroupID,omitempty"` /* 云主机组ID,获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8324&data=87">查询云主机组列表或者详情</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8316&data=87"> 创建云主机组</a> */
KeyPairID string `json:"keyPairID,omitempty"` /* 密钥对ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10230540">密钥对</a>来了解密钥对相关内容 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8342&data=87">查询一个或多个密钥对</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8344&data=87">创建一对SSH密钥对</a> */
UserPassword string `json:"userPassword,omitempty"` /* 用户密码,满足以下规则:<br />长度在8~30个字符<br />必须包含大写字母、小写字母、数字以及特殊符号中的三项<br />特殊符号可选:()`-!@#$%^&*_-+=|{}[]:;'<>,.?/且不能以斜线号 / 开头<br />不能包含3个及以上连续字符<br />Linux镜像不能包含镜像用户名(root)、用户名的倒序(toor)、用户名大小写变化(如RoOt、rOot等)<br />Windows镜像不能包含镜像用户名(Administrator)、用户名大小写变化(adminiSTrator等) */
CycleCount int32 `json:"cycleCount,omitempty"` /* 订购时长,该参数需要与cycleType一同使用<br />注:最长订购周期为60个月(5年);cycleType与cycleCount一起填写;按量付费(即onDemand为true)时,无需填写该参数(填写无效) */
CycleType string `json:"cycleType,omitempty"` /* 订购周期类型,取值范围:<br />MONTH:按月,<br />YEAR:按年<br />注:cycleType与cycleCount一起填写;按量付费(即onDemand为true)时,无需填写该参数(填写无效) */
AutoRenewStatus int32 `json:"autoRenewStatus,omitempty"` /* 是否自动续订,取值范围:<br />0:不续费,<br />1:自动续费<br />注:按月购买,自动续订周期为1个月;按年购买,自动续订周期为1年 */
UserData string `json:"userData,omitempty"` /* 用户自定义数据,需要以Base64方式编码,Base64编码后的长度限制为1-16384字符 */
PayVoucherPrice float32 `json:"payVoucherPrice"` /* 代金券,满足以下规则:<br />两位小数,不足两位自动补0,超过两位小数无效;<br />不可为负数;<br />注:字段为0时表示不使用代金券,默认不使用 */
LabelList []*CtecsCreateInstanceV41LabelListRequest `json:"labelList"` /* 标签信息列表,注:单台云主机最多可绑定10个标签;主机创建完成后,云主机变为运行状态,此时标签仍可能未绑定,需等待一段时间(0-10分钟) */
GpuDriverKits string `json:"gpuDriverKits,omitempty"` /* GPU云主机安装驱动的工具包,仅在同时选择NVIDIA显卡、计算加速型、linux公共镜像三个条件下,支持安装驱动 */
MonitorService *bool `json:"monitorService"` /* 监控参数,支持通过该参数指定云主机在创建后是否开启详细监控,取值范围: <br />false:不开启,<br />true:开启<br />若指定该参数为true或不指定该参数,云主机内默认开启最新详细监控服务<br />若指定该参数为false,默认公共镜像不开启最新监控服务;私有镜像使用镜像中保留的监控服务<br />说明:仅部分资源池支持monitorService参数,详细请参考<a href="https://www.ctyun.cn/document/10026730/10325957">监控Agent概览</a> */
InstanceDescription string `json:"instanceDescription,omitempty"` /* 云主机描述,限制长度为0-255个字符 */
LineType string `json:"lineType,omitempty"` /* 弹性IP线路类型,当自动分配弹性IP时,该值生效<br />弹性IP为IPv4时,取值范围: <br />bgp_standalone:BGP多线,<br />standalone:单线-中国电信,<br />prostandalone:精品线路<br />弹性IP为IPv6时,取值范围:<br />standalone:单线-中国电信<br />默认为单线-中国电信 */
SecurityProduct string `json:"securityProduct,omitempty"` /* 安全防护类型,取值范围:<br />EnterpriseEdition:企业版,<br />UltimateEdition:旗舰版,<br />BasicEdition:基础版,<br />false:不开启<br />注:默认不开启 */
}
type CtecsCreateInstanceV41Response ¶
type CtecsCreateInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsCreateInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsCreateInstanceV41ReturnObjResponse ¶
type CtecsCreateInstanceV41ReturnObjResponse struct {
MasterOrderID string `json:"masterOrderID,omitempty"` /* 主订单ID。调用方在拿到masterOrderID之后,可以使用materOrderID进一步确认订单状态及资源状态<br />查询订单状态及资源UUID:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9607&data=87&isNormal=1">根据masterOrderID查询云主机ID</a> */
MasterOrderNO string `json:"masterOrderNO,omitempty"` /* 订单号 */
MasterResourceID string `json:"masterResourceID,omitempty"` /* 主资源ID */
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
}
type CtecsCreateKeypairV41Api ¶
type CtecsCreateKeypairV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsCreateKeypairV41Api ¶
func NewCtecsCreateKeypairV41Api(client *core.CtyunClient) *CtecsCreateKeypairV41Api
func (*CtecsCreateKeypairV41Api) Do ¶
func (a *CtecsCreateKeypairV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsCreateKeypairV41Request) (*CtecsCreateKeypairV41Response, error)
type CtecsCreateKeypairV41Request ¶
type CtecsCreateKeypairV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
KeyPairName string `json:"keyPairName,omitempty"` /* 密钥对名称。满足以下规则:只能由数字、字母、-组成,不能以数字和-开头、以-结尾,且长度为2-63字符 */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目<br />注:默认值为"0" */
}
type CtecsCreateKeypairV41Response ¶
type CtecsCreateKeypairV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为处理中或失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsCreateKeypairV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsCreateKeypairV41ReturnObjResponse ¶
type CtecsCreateKeypairV41ReturnObjResponse struct {
KeyPairName string `json:"keyPairName,omitempty"` /* 密钥对名称 */
FingerPrint string `json:"fingerPrint,omitempty"` /* 密钥对的指纹,采用MD5信息摘要算法 */
KeyPairID string `json:"keyPairID,omitempty"` /* 密钥对的ID */
PublicKey string `json:"publicKey,omitempty"` /* 密钥对的公钥 */
PrivateKey string `json:"privateKey,omitempty"` /* 密钥对的私钥 */
}
type CtecsCreateLiteInstanceV41Api ¶
type CtecsCreateLiteInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsCreateLiteInstanceV41Api ¶
func NewCtecsCreateLiteInstanceV41Api(client *core.CtyunClient) *CtecsCreateLiteInstanceV41Api
func (*CtecsCreateLiteInstanceV41Api) Do ¶
func (a *CtecsCreateLiteInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsCreateLiteInstanceV41Request) (*CtecsCreateLiteInstanceV41Response, error)
type CtecsCreateLiteInstanceV41DataDiskListRequest ¶
type CtecsCreateLiteInstanceV41DataDiskListRequest struct {
DiskType string `json:"diskType,omitempty"` /* 云硬盘类型,取值范围:<br />SATA:普通IO,<br />SAS:高IO,<br />SSD:超高IO,<br />FAST-SSD:极速型SSD<br />您可以查看<a href="https://www.ctyun.cn/document/10027696/10162918">磁盘类型及性能介绍</a>磁盘类型相关信息 */
DiskSize int32 `json:"diskSize,omitempty"` /* 磁盘容量大小单位为GB,取值范围:[10-32768] */
}
type CtecsCreateLiteInstanceV41Request ¶
type CtecsCreateLiteInstanceV41Request struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性,保留时间为24小时 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
AzName string `json:"azName,omitempty"` /* 可用区名称,如果是4.0资源池,必须提供可用区名称。您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解可用区 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5855&data=87">资源池可用区查询</a><br />注:查询结果中zoneList内返回存在可用区名称(即多可用区,本字段填写实际可用区名称),若查询结果中zoneList为空(即为单可用区,本字段填写default) */
DisplayName string `json:"displayName,omitempty"` /* 云主机显示名称,长度为2~15字符 */
FlavorSetType string `json:"flavorSetType,omitempty"` /* 规格套餐类型,取值范围:<br />fix:固定套餐,<br />band:带宽套餐<br />选择带宽套餐必须设置系统盘大小和带宽大小,选择固定套餐会忽略传入的系统盘大小和带宽大小 */
FlavorName string `json:"flavorName,omitempty"` /* 规格套餐名称,<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11998&data=87">查询轻量型云主机的规格套餐资源</a> */
ImageID string `json:"imageID,omitempty"` /* 镜像ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10030151">镜像概述</a>来了解云主机镜像<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=23&api=4763&data=89">查询可以使用的镜像资源</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=23&api=4765&data=89">创建私有镜像(云主机系统盘)</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=23&api=5230&data=89">创建私有镜像(云主机数据盘)</a><br />注:同一镜像名称在不同资源池的镜像ID是不同的,调用前需确认镜像ID是否归属当前资源池 */
CycleCount int32 `json:"cycleCount,omitempty"` /* 订购时长,该参数需要与cycleType一同使用<br />注:最长订购周期为60个月(5年);cycleType与cycleCount一起填写;按量付费(即onDemand为true)时,无需填写该参数(填写无效) */
CycleType string `json:"cycleType,omitempty"` /* 订购周期类型,取值范围:<br />MONTH:按月,<br />YEAR:按年<br />注:cycleType与cycleCount一起填写;按量付费(即onDemand为true)时,无需填写该参数(填写无效) */
IpVersion string `json:"ipVersion,omitempty"` /* 弹性IP版本,取值范围:<br />ipv4:v4地址,<br />ipv6:v6地址<br />不指定默认为ipv4。注:请先确认该资源池是否支持ipv6<br/> */
BootDiskSize int32 `json:"bootDiskSize,omitempty"` /* 系统盘大小,带宽套餐时填写,固定套餐时填写会忽略,单位:GB,取值范围获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11998&data=87">查询轻量型云主机的规格套餐资源</a> */
Bandwidth int32 `json:"bandwidth,omitempty"` /* 带宽大小带,带宽套餐时填写,固定套餐时填写会忽略,单位:Mbit/s。取值范围获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11998&data=87">查询轻量型云主机的规格套餐资源</a> */
DataDiskList []*CtecsCreateLiteInstanceV41DataDiskListRequest `json:"dataDiskList"` /* 数据盘信息列表,注:同一云主机下最多可挂载5块数据盘 */
UserPassword string `json:"userPassword,omitempty"` /* 用户密码,满足以下规则:<br />长度在8~30个字符;<br />必须包含大写字母、小写字母、数字以及特殊符号中的三项;<br />特殊符号可选:()`~!@#$%^&*_-+=|{}[]:;'<>,.?/\且不能以斜线号 / 开头;<br />不能包含3个及以上连续字符;<br />Linux镜像不能包含镜像用户名(root)、用户名的倒序(toor)、用户名大小写变化(如RoOt、rOot等);<br />Windows镜像不能包含镜像用户名(Administrator)、用户名大小写变化(adminiSTrator等) */
AutoRenewStatus int32 `json:"autoRenewStatus,omitempty"` /* 本参数表示是否自动续订,取值范围:<br />0:不续费,<br />1:自动续费<br />注:按月购买,自动续订周期为1个月;按年购买,自动续订周期为1年 */
}
type CtecsCreateLiteInstanceV41Response ¶
type CtecsCreateLiteInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsCreateLiteInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsCreateLiteInstanceV41ReturnObjResponse ¶
type CtecsCreateLiteInstanceV41ReturnObjResponse struct {
MasterOrderID string `json:"masterOrderID,omitempty"` /* 主订单ID。调用方在拿到masterOrderID之后,可以使用materOrderID进一步确认订单状态及资源状态<br />查询订单状态及资源UUID:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9607&data=87&isNormal=1">根据masterOrderID查询云主机ID</a> */
MasterOrderNO string `json:"masterOrderNO,omitempty"` /* 订单号 */
MasterResourceID string `json:"masterResourceID,omitempty"` /* 主资源ID */
RegionID string `json:"regionID,omitempty"` /* 资源所属资源池ID */
}
type CtecsCreateMetadataV41Api ¶
type CtecsCreateMetadataV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsCreateMetadataV41Api ¶
func NewCtecsCreateMetadataV41Api(client *core.CtyunClient) *CtecsCreateMetadataV41Api
func (*CtecsCreateMetadataV41Api) Do ¶
func (a *CtecsCreateMetadataV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsCreateMetadataV41Request) (*CtecsCreateMetadataV41Response, error)
type CtecsCreateMetadataV41MetadataRequest ¶
type CtecsCreateMetadataV41MetadataRequest struct{}
type CtecsCreateMetadataV41Request ¶
type CtecsCreateMetadataV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
Metadata *CtecsCreateMetadataV41MetadataRequest `json:"metadata"` /* 元数据信息,用户自定义metadata键值对 */
}
type CtecsCreateMetadataV41Response ¶
type CtecsCreateMetadataV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsCreateMetadataV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsCreateMetadataV41ReturnObjMetadataResponse ¶
type CtecsCreateMetadataV41ReturnObjMetadataResponse struct{}
type CtecsCreateMetadataV41ReturnObjResponse ¶
type CtecsCreateMetadataV41ReturnObjResponse struct {
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
Metadata *CtecsCreateMetadataV41ReturnObjMetadataResponse `json:"metadata"` /* 元数据信息 */
}
type CtecsCreatePortsV41Api ¶
type CtecsCreatePortsV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsCreatePortsV41Api ¶
func NewCtecsCreatePortsV41Api(client *core.CtyunClient) *CtecsCreatePortsV41Api
func (*CtecsCreatePortsV41Api) Do ¶
func (a *CtecsCreatePortsV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsCreatePortsV41Request) (*CtecsCreatePortsV41Response, error)
type CtecsCreatePortsV41Request ¶
type CtecsCreatePortsV41Request struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。长度为1-64字符,要求单个云平台账户内唯一,使用同一个clientToken值,则代表为同一个请求。保留时间为24小时 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SubnetID string `json:"subnetID,omitempty"` /* 子网ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028310">产品定义-子网</a>来了解子网<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=8659&data=94">查询子网列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4812&data=94">创建子网</a> */
PrimaryPrivateIp string `json:"primaryPrivateIp,omitempty"` /* 弹性网卡的主私网IPv4地址 */
Ipv6Addresses []string `json:"ipv6Addresses"` /* 弹性网卡的主私网IPv6地址 */
SecurityGroupIds []string `json:"securityGroupIds"` /* 加入一个或多个安全组。安全组和弹性网卡必须在同一个专有网络VPC中。您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>来了解安全组<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4817&data=94">查询用户安全组列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4821&data=94">创建安全组</a> */
SecondaryPrivateIpCount int32 `json:"secondaryPrivateIpCount,omitempty"` /* 辅助私网IP地址数量,让ECS为您自动创建IP地址 */
SecondaryPrivateIps []string `json:"secondaryPrivateIps"` /* 辅助私网IP地址,不能和secondaryPrivateIpCount同时指定 */
Name string `json:"name,omitempty"` /* 网卡名称,满足以下规则:支持拉丁字母、中文、数字,下划线,连字符,中文/英文字母开头,不能以http:/https:开头,长度2-32 */
Description string `json:"description,omitempty"` /* 网卡的描述,满足以下规则:支持拉丁字母、中文、数字, 特殊字符:\~!@#$%^&*()_-+= <>?:"{},./;'[\]·!@#¥%……&*() —— -+={}\|《》?:“”【】、;‘',。、,不能以 http: / https: 开头,长度 0 - 128 */
}
type CtecsCreatePortsV41Response ¶
type CtecsCreatePortsV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsCreatePortsV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsCreatePortsV41ReturnObjResponse ¶
type CtecsCreatePortsV41ReturnObjResponse struct {
VpcID string `json:"vpcID,omitempty"` /* vpc的ID */
SubnetID string `json:"subnetID,omitempty"` /* 子网ID */
NetworkInterfaceID string `json:"networkInterfaceID,omitempty"` /* 网卡ID */
NetworkInterfaceName string `json:"networkInterfaceName,omitempty"` /* 网卡名称 */
MacAddress string `json:"macAddress,omitempty"` /* mac地址 */
Description string `json:"description,omitempty"` /* 网卡描述 */
Ipv6Address []string `json:"ipv6Address"` /* IPv6地址列表 */
SecurityGroupIds []string `json:"securityGroupIds"` /* 安全组ID列表 */
SecondaryPrivateIps []string `json:"secondaryPrivateIps"` /* 二级IP地址列表 */
PrivateIpAddress string `json:"privateIpAddress,omitempty"` /* 弹性网卡的主私有IP */
InstanceOwnerID string `json:"instanceOwnerID,omitempty"` /* 绑定的实例的所有者ID */
InstanceType string `json:"instanceType,omitempty"` /* 绑定的实例类型 */
InstanceID string `json:"instanceID,omitempty"` /* 绑定的实例ID */
}
type CtecsCreateSameConfigInstancesApi ¶
type CtecsCreateSameConfigInstancesApi struct {
// contains filtered or unexported fields
}
func NewCtecsCreateSameConfigInstancesApi ¶
func NewCtecsCreateSameConfigInstancesApi(client *core.CtyunClient) *CtecsCreateSameConfigInstancesApi
func (*CtecsCreateSameConfigInstancesApi) Do ¶
func (a *CtecsCreateSameConfigInstancesApi) Do(ctx context.Context, credential core.Credential, req *CtecsCreateSameConfigInstancesRequest) (*CtecsCreateSameConfigInstancesResponse, error)
type CtecsCreateSameConfigInstancesDataDiskListRequest ¶
type CtecsCreateSameConfigInstancesDataDiskListRequest struct {
DiskMode string `json:"diskMode,omitempty"` /* 云硬盘属性,取值范围:<br />FCSAN:光纤通道协议的SAN网络,<br />ISCSI:小型计算机系统接口,<br />VBD:虚拟块存储设备<br />您可以查看<a href="https://www.ctyun.cn/document/10027696/10162960">磁盘模式及使用方法</a> */
DiskType string `json:"diskType,omitempty"` /* 云硬盘类型,取值范围:<br />SATA:普通IO,<br />SAS:高IO,<br />SSD:超高IO,<br />FAST-SSD:极速型SSD<br />您可以查看<a href="https://www.ctyun.cn/document/10027696/10162918">磁盘类型及性能介绍</a>磁盘类型相关信息 */
DiskSize int32 `json:"diskSize,omitempty"` /* 磁盘容量,单位为GB,取值范围:[10, 32768] */
IsEncrypt *bool `json:"isEncrypt"` /* 磁盘是否加密,取值范围:<br />true:加密,<br />false:不加密<br />若该参数为true且不填写cmkID(加密密钥ID),则生成默认密钥(不在密钥列表中)加密进行加密 */
CmkID string `json:"cmkID,omitempty"` /* 加密密钥ID */
}
type CtecsCreateSameConfigInstancesNetworkCardListRequest ¶
type CtecsCreateSameConfigInstancesNetworkCardListRequest struct {
NicName string `json:"nicName,omitempty"` /* 该参数暂时无法使用。网卡名称,长度2~32,支持拉丁字母、中文、数字、下划线、连字符,中文或英文字母开头,不能以http:或https:开头 */
FixedIP string `json:"fixedIP,omitempty"` /* 内网IPv4地址,注:不可使用已占用IP */
IsMaster *bool `json:"isMaster"` /* 是否主网卡,取值范围:<br />true:表示主网卡,<br />false:表示扩展网卡<br />注:只能含有一个主网卡 */
SubnetID string `json:"subnetID,omitempty"` /* 子网ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10098380">基本概念</a>来查找子网的相关定义 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=8659&data=94">查询子网列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4812&data=94">创建子网</a><br />注:在多可用区类型资源池下,subnetID通常以“subnet-”开头,非多可用区类型资源池subnetID为uuid格式 */
}
type CtecsCreateSameConfigInstancesRequest ¶
type CtecsCreateSameConfigInstancesRequest struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个ClientToken值,其他请求参数相同时,则代表为同一个请求。保留时间为24小时 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
AzName string `json:"azName,omitempty"` /* 可用区名称,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解可用区 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5855&data=87">资源池可用区查询</a><br />注:查询结果中zoneList内返回存在可用区名称(即多可用区,本字段填写实际可用区名称),若查询结果中zoneList为空(即为单可用区,无需填写本字段) */
InstanceID string `json:"instanceID,omitempty"` /* 已有的云主机ID,获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称。不同操作系统下,云主机名称规则有差异。<br />Windows:长度为2-15个字符,允许使用大小写字母、数字或连字符(-)。不能以连字符(-)开头或结尾,不能连续使用连字符(-),也不能仅使用数字;<br />其他操作系统:长度为2-64字符,允许使用点(.)分隔字符成多段,每段允许使用大小写字母、数字或连字符(-),但不能连续使用点号(.)或连字符(-),不能以点号(.)或连字符(-)开头或结尾,也不能仅使用数字 */
DisplayName string `json:"displayName,omitempty"` /* 云主机显示名称,长度为2-63字符 */
FlavorID string `json:"flavorID,omitempty"` /* 云主机规格ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10118193">规格说明</a>了解弹性云主机的选型基本信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8327&data=87">查询一个或多个云主机规格资源</a><br />注:同一规格名称在不同资源池不同可用区的规格ID是不同的,调用前需确认规格ID是否归属当前资源池,多可用区资源池确认是否归属当前可用区 */
ImageID string `json:"imageID,omitempty"` /* 镜像ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10030151">镜像概述</a>来了解云主机镜像<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=23&api=4763&data=89">查询可以使用的镜像资源</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=23&api=4765&data=89">创建私有镜像(云主机系统盘)</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=23&api=5230&data=89">创建私有镜像(云主机数据盘)</a><br />注:同一镜像名称在不同资源池的镜像ID是不同的,调用前需确认镜像ID是否归属当前资源池 */
BootDiskType string `json:"bootDiskType,omitempty"` /* 系统盘类型,取值范围:<br />SATA:普通IO,<br />SAS:高IO,<br />SSD:超高IO,<br />FAST-SSD:极速型SSD<br />您可以查看<a href="https://www.ctyun.cn/document/10027696/10162918">磁盘类型及性能介绍</a>来了解磁盘类型及其对应性能指标 */
BootDiskSize int32 `json:"bootDiskSize,omitempty"` /* 系统盘大小单位为GiB,取值范围:[40, 2048],注:创建云主机过程中会存在单位转换,因此该参数只能传入整型,如果填写小数值则会被取整,影响到涉及计费 */
VpcID string `json:"vpcID,omitempty"` /* 虚拟私有云ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028310">产品定义-虚拟私有云</a>来了解虚拟私有云<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4814&data=94">查询VPC列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4811&data=94">创建VPC</a><br />注:在多可用区类型资源池下,vpcID通常为“vpc-”开头,非多可用区类型资源池vpcID为uuid格式 */
OnDemand *bool `json:"onDemand"` /* 购买方式,取值范围:<br />false:按周期,<br />true:按需<br />您可以查看<a href="https://www.ctyun.cn/document/10026730/10030877">计费模式</a>了解云主机的计费模式<br />注:按周期(false)创建云主机需要同时指定cycleCount和cycleType参数 */
NetworkCardList []*CtecsCreateSameConfigInstancesNetworkCardListRequest `json:"networkCardList"` /* 网卡信息列表,您可以查看<a href="https://www.ctyun.cn/document/10026730/10225195">弹性网卡概述</a>了解弹性网卡相关信息 */
ExtIP string `json:"extIP,omitempty"` /* 是否使用弹性公网IP,取值范围:<br />0:不使用,<br />1:自动分配,<br />2:使用已有<br />注:自动分配弹性公网,默认分配IPv4弹性公网,需填写带宽大小,如需ipv6请填写弹性IP版本(即参数extIP="1"时,需填写参数bandwidth、ipVersion,ipVersion含默认值ipv4);<br />使用已有弹性公网,请填写弹性公网IP的ID,默认为ipv4版本,如使用已有ipv6,请填写弹性ip版本(即参数extIP="2"时,需填写eipID或ipv6AddressID,同时ipv6情况下请填写ipVersion) */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目<br /> */
SecGroupList []string `json:"secGroupList"` /* 安全组ID列表,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>了解安全组相关信息 <br />获取: <br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4817&data=94">查询用户安全组列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4821&data=94">创建安全组</a><br />注:在多可用区类型资源池下,安全组ID通常以“sg-”开头,非多可用区类型资源池安全组ID为uuid格式; */
DataDiskList []*CtecsCreateSameConfigInstancesDataDiskListRequest `json:"dataDiskList"` /* 数据盘信息列表,注:同一云主机下最多可挂载8块数据盘 */
IpVersion string `json:"ipVersion,omitempty"` /* 弹性IP版本,取值范围:<br />ipv4:v4地址,<br />ipv6:v6地址<br />不指定默认为ipv4。注:请先确认该资源池是否支持ipv6(多可用区类资源池暂不支持) */
Bandwidth int32 `json:"bandwidth,omitempty"` /* 带宽大小,单位为Mbit/s,取值范围:[1, 2000] */
Ipv6AddressID string `json:"ipv6AddressID,omitempty"` /* 弹性公网IPv6的ID;填写该参数时请填写ipVersion为ipv6 */
EipID string `json:"eipID,omitempty"` /* 弹性公网IP的ID,您可以查看<a href="https://www.ctyun.cn/document/10026753/10026909">产品定义-弹性IP</a>来了解弹性公网IP <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=8652&data=94&isNormal=1&vid=88">查询指定地域已创建的弹性 IP</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5723&data=94&vid=88">创建弹性 IP</a> */
AffinityGroupID string `json:"affinityGroupID,omitempty"` /* 云主机组ID,获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8324&data=87">查询云主机组列表或者详情</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8316&data=87"> 创建云主机组</a> */
KeyPairID string `json:"keyPairID,omitempty"` /* 密钥对ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10230540">密钥对</a>来了解密钥对相关内容 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8342&data=87">查询一个或多个密钥对</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8344&data=87">创建一对SSH密钥对</a> */
UserPassword string `json:"userPassword,omitempty"` /* 用户密码,满足以下规则:<br />长度在8~30个字符;<br />必须包含大写字母、小写字母、数字以及特殊符号中的三项;<br />特殊符号可选:()`-!@#$%^&*_-+=|{}[]:;'<>,.?/且不能以斜线号 / 开头;<br />不能包含3个及以上连续字符;<br />Linux镜像不能包含镜像用户名(root)、用户名的倒序(toor)、用户名大小写变化(如RoOt、rOot等);<br />Windows镜像不能包含镜像用户名(Administrator)、用户名大小写变化(adminiSTrator等) */
CycleCount int32 `json:"cycleCount,omitempty"` /* 订购时长,该参数需要与cycleType一同使用<br />注:最长订购周期为60个月(5年);cycleType与cycleCount一起填写;按量付费(即onDemand为true)时,无需填写该参数(填写无效) */
CycleType string `json:"cycleType,omitempty"` /* 订购周期类型,取值范围:<br />MONTH:按月,<br />YEAR:按年<br />注:cycleType与cycleCount一起填写;按量付费(即onDemand为true)时,无需填写该参数(填写无效) */
AutoRenewStatus int32 `json:"autoRenewStatus,omitempty"` /* 是否自动续订,取值范围:<br />0:不续费,<br />1:自动续费<br />注:按月购买,自动续订周期为1个月;按年购买,自动续订周期为1年 */
UserData string `json:"userData,omitempty"` /* 用户自定义数据,需要以Base64方式编码,Base64编码后的长度限制为1-16384字符。 */
OrderCount int32 `json:"orderCount,omitempty"` /* 购买数量,取值范围:[1, 50]。注:不填则默认为1 */
PayVoucherPrice float32 `json:"payVoucherPrice"` /* 代金券,满足以下规则:<br />两位小数,不足两位自动补0,超过两位小数无效;<br />不可为负数;<br />注:字段为0时表示不使用代金券,默认不使用代金券 */
LabelList []*CtecsCreateSameConfigInstancesLabelListRequest `json:"labelList"` /* 标签信息列表,注:单台云主机最多可绑定10个标签;主机创建完成后,云主机变为运行状态,此时标签仍可能未绑定,需等待一段时间(0-10分钟) */
GpuDriverKits string `json:"gpuDriverKits,omitempty"` /* GPU云主机安装驱动的工具包,仅在同时选择NVIDIA显卡、计算加速型、linux公共镜像三个条件下,支持安装驱动 */
MonitorService *bool `json:"monitorService"` /* 监控参数,支持通过该参数指定云主机在创建后是否开启详细监控,取值范围: <br />false:不开启,<br />true:开启<br />若指定该参数为true或不指定该参数,云主机内默认开启最新详细监控服务<br />若指定该参数为false,默认公共镜像不开启最新监控服务;私有镜像使用镜像中保留的监控服务<br />说明:仅部分资源池支持monitorService参数,详细请参考<a href="https://www.ctyun.cn/document/10026730/10325957">监控Agent概览</a> */
}
type CtecsCreateSameConfigInstancesResponse ¶
type CtecsCreateSameConfigInstancesResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsCreateSameConfigInstancesReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsCreateSameConfigInstancesReturnObjResponse ¶
type CtecsCreateSameConfigInstancesReturnObjResponse struct {
MasterOrderID string `json:"masterOrderID,omitempty"` /* 主订单ID。调用方在拿到masterOrderID之后,可以使用masterOrderID进一步确认订单状态及资源状态<br />查询订单状态及资源UUID:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9607&data=87&isNormal=1">根据masterOrderID查询云主机ID</a> */
MasterOrderNO string `json:"masterOrderNO,omitempty"` /* 订单号 */
MasterResourceID string `json:"masterResourceID,omitempty"` /* 主资源ID */
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
}
type CtecsCreateSecurityGroupEgressV41Api ¶
type CtecsCreateSecurityGroupEgressV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsCreateSecurityGroupEgressV41Api ¶
func NewCtecsCreateSecurityGroupEgressV41Api(client *core.CtyunClient) *CtecsCreateSecurityGroupEgressV41Api
func (*CtecsCreateSecurityGroupEgressV41Api) Do ¶
func (a *CtecsCreateSecurityGroupEgressV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsCreateSecurityGroupEgressV41Request) (*CtecsCreateSecurityGroupEgressV41Response, error)
type CtecsCreateSecurityGroupEgressV41Request ¶
type CtecsCreateSecurityGroupEgressV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SecurityGroupID string `json:"securityGroupID,omitempty"` /* 安全组ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>了解安全组相关信息 <br />获取: <br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4817&data=94">查询用户安全组列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4821&data=94">创建安全组</a> */
SecurityGroupRules []*CtecsCreateSecurityGroupEgressV41SecurityGroupRulesRequest `json:"securityGroupRules"` /* 规则信息列表,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>了解安全组相关配置 */
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。长度为1-64字符,要求单个云平台账户内唯一,使用同一个clientToken值,其他请求参数相同时,则代表为同一个请求。保留时间为24小时 */
}
type CtecsCreateSecurityGroupEgressV41Response ¶
type CtecsCreateSecurityGroupEgressV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
ReturnObj *CtecsCreateSecurityGroupEgressV41ReturnObjResponse `json:"returnObj"` /* 业务数据 */
}
type CtecsCreateSecurityGroupEgressV41ReturnObjResponse ¶
type CtecsCreateSecurityGroupEgressV41ReturnObjResponse struct {
SgRuleIDs []string `json:"sgRuleIDs"` /* 安全组规则 id 列表 */
}
type CtecsCreateSecurityGroupEgressV41SecurityGroupRulesRequest ¶
type CtecsCreateSecurityGroupEgressV41SecurityGroupRulesRequest struct {
Direction string `json:"direction,omitempty"` /* 规则方向,出方向则填写egress */
RemoteType int32 `json:"remoteType,omitempty"` /* remote 类型,0 表示使用 cidr,1 表示使用远端安全组,默认为 0 */
RemoteSecurityGroupID string `json:"remoteSecurityGroupID,omitempty"` /* 远端安全组 id */
Action string `json:"action,omitempty"` /* 授权策略,取值范围:accept(允许),drop(拒绝)。 */
Priority int32 `json:"priority,omitempty"` /* 优先级,取值范围:[1, 100] <br />注;取值越小优先级越大 */
Protocol string `json:"protocol,omitempty"` /* 网络协议,取值范围:ANY(任意)、TCP、UDP、ICMP(v4) */
Ethertype string `json:"ethertype,omitempty"` /* IP类型,取值范围:IPv4、IPv6 */
DestCidrIp string `json:"destCidrIp,omitempty"` /* 远端地址:0.0.0.0/0 */
Description string `json:"description,omitempty"` /* 安全组规则描述信息,满足以下规则:<br />① 长度0-128字符,<br />② 支持拉丁字母、中文、数字, 特殊字符<br />!@#¥%……&*()——-+={}《》?:“”【】、;‘',。、<br />不能以 http: / https: 开头 */
RawRange string `json:"range,omitempty"` /* 安全组开放的传输层协议相关的源端端口范围 */
}
type CtecsCreateSecurityGroupIngressV41Api ¶
type CtecsCreateSecurityGroupIngressV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsCreateSecurityGroupIngressV41Api ¶
func NewCtecsCreateSecurityGroupIngressV41Api(client *core.CtyunClient) *CtecsCreateSecurityGroupIngressV41Api
func (*CtecsCreateSecurityGroupIngressV41Api) Do ¶
func (a *CtecsCreateSecurityGroupIngressV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsCreateSecurityGroupIngressV41Request) (*CtecsCreateSecurityGroupIngressV41Response, error)
type CtecsCreateSecurityGroupIngressV41Request ¶
type CtecsCreateSecurityGroupIngressV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SecurityGroupID string `json:"securityGroupID,omitempty"` /* 安全组ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>了解安全组相关信息 <br />获取: <br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4817&data=94">查询用户安全组列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4821&data=94">创建安全组</a> */
SecurityGroupRules []*CtecsCreateSecurityGroupIngressV41SecurityGroupRulesRequest `json:"securityGroupRules"` /* 规则信息列表,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>了解安全组相关配置 */
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。长度为1-64字符,要求单个云平台账户内唯一,使用同一个clientToken值,其他请求参数相同时,则代表为同一个请求。保留时间为24小时 */
}
type CtecsCreateSecurityGroupIngressV41Response ¶
type CtecsCreateSecurityGroupIngressV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
ReturnObj *CtecsCreateSecurityGroupIngressV41ReturnObjResponse `json:"returnObj"` /* 业务数据 */
}
type CtecsCreateSecurityGroupIngressV41ReturnObjResponse ¶
type CtecsCreateSecurityGroupIngressV41ReturnObjResponse struct {
SgRuleIDs []string `json:"sgRuleIDs"` /* 安全组规则 id 列表 */
}
type CtecsCreateSecurityGroupIngressV41SecurityGroupRulesRequest ¶
type CtecsCreateSecurityGroupIngressV41SecurityGroupRulesRequest struct {
Direction string `json:"direction,omitempty"` /* 规则方向,入方向则填写ingress */
RemoteType int32 `json:"remoteType,omitempty"` /* remote 类型,0 表示使用 cidr,1 表示使用远端安全组,默认为 0 */
RemoteSecurityGroupID string `json:"remoteSecurityGroupID,omitempty"` /* 远端安全组 id */
Action string `json:"action,omitempty"` /* 授权策略,取值范围:accept(允许),drop(拒绝)。 */
Priority int32 `json:"priority,omitempty"` /* 优先级,取值范围:[1, 100] <br />注:取值越小优先级越大。 */
Protocol string `json:"protocol,omitempty"` /* 网络协议,取值范围:ANY(任意)、TCP、UDP、ICMP(v4) */
Ethertype string `json:"ethertype,omitempty"` /* IP类型,取值范围:IPv4、IPv6 */
DestCidrIp string `json:"destCidrIp,omitempty"` /* 远端地址:0.0.0.0/0 */
Description string `json:"description,omitempty"` /* 安全组规则描述信息,满足以下规则:<br />① 长度0-128字符,<br />② 支持拉丁字母、中文、数字, 特殊字符<br />!@#¥%……&*()——-+={}《》?:“”【】、;‘',。、<br />不能以 http: / https: 开头 */
RawRange string `json:"range,omitempty"` /* 安全组开放的传输层协议相关的源端端口范围 */
}
type CtecsCreateSecurityGroupV41Api ¶
type CtecsCreateSecurityGroupV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsCreateSecurityGroupV41Api ¶
func NewCtecsCreateSecurityGroupV41Api(client *core.CtyunClient) *CtecsCreateSecurityGroupV41Api
func (*CtecsCreateSecurityGroupV41Api) Do ¶
func (a *CtecsCreateSecurityGroupV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsCreateSecurityGroupV41Request) (*CtecsCreateSecurityGroupV41Response, error)
type CtecsCreateSecurityGroupV41Request ¶
type CtecsCreateSecurityGroupV41Request struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。长度为1-64字符,要求单个云平台账户内唯一,使用同一个ClientToken值,其他请求参数相同时,则代表为同一个请求。保留时间为24小时 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目<br />注:默认值为"0" */
VpcID string `json:"vpcID,omitempty"` /* 虚拟私有云ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028310">产品定义-虚拟私有云</a>来了解虚拟私有云<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4814&data=94">查询VPC列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4811&data=94">创建VPC</a><br />注:在多可用区类型资源池下,vpcID通常为“vpc-”开头,非多可用区类型资源池vpcID为uuid格式 */
Name string `json:"name,omitempty"` /* 安全组名称。长度为2-32个字符。支持拉丁字母、中文、数字,下划线,连字符,中文 / 英文字母开头,不能以 http: / https: 开头。 */
Description string `json:"description,omitempty"` /* 支持拉丁字母、中文、数字, 特殊字符:~!@#$%^&*()_-+= <>?:{},./;'[]·~!@#¥%……&*() —— -+={}\|《》?:“”【】、;‘',。、,不能以 http: / https: 开头,长度 0 - 128 */
}
type CtecsCreateSecurityGroupV41Response ¶
type CtecsCreateSecurityGroupV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
ReturnObj *CtecsCreateSecurityGroupV41ReturnObjResponse `json:"returnObj"` /* 接口业务数据 */
}
type CtecsCreateSecurityGroupV41ReturnObjResponse ¶
type CtecsCreateSecurityGroupV41ReturnObjResponse struct {
SecurityGroupID string `json:"securityGroupID,omitempty"` /* 安全组ID */
}
type CtecsCreateSnapshotV41Api ¶
type CtecsCreateSnapshotV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsCreateSnapshotV41Api ¶
func NewCtecsCreateSnapshotV41Api(client *core.CtyunClient) *CtecsCreateSnapshotV41Api
func (*CtecsCreateSnapshotV41Api) Do ¶
func (a *CtecsCreateSnapshotV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsCreateSnapshotV41Request) (*CtecsCreateSnapshotV41Response, error)
type CtecsCreateSnapshotV41Request ¶
type CtecsCreateSnapshotV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
SnapshotName string `json:"snapshotName,omitempty"` /* 云主机快照名称。满足以下规则:长度为2-63字符,头尾不支持输入空格 */
}
type CtecsCreateSnapshotV41Response ¶
type CtecsCreateSnapshotV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsCreateSnapshotV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsCreateSnapshotV41ReturnObjResponse ¶
type CtecsCreateSnapshotV41ReturnObjResponse struct {
JobID string `json:"jobID,omitempty"` /* 任务ID */
SnapshotStatus string `json:"snapshotStatus,omitempty"` /* 云主机快照状态:<br />pending:创建中, <br />available:可用, <br />restoring:恢复中,<br />error:错误 */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称 */
SnapshotID string `json:"snapshotID,omitempty"` /* 云主机快照ID */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID */
SnapshotName string `json:"snapshotName,omitempty"` /* 云主机快照名称 */
}
type CtecsCreateSnapshotpolicyV41Api ¶
type CtecsCreateSnapshotpolicyV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsCreateSnapshotpolicyV41Api ¶
func NewCtecsCreateSnapshotpolicyV41Api(client *core.CtyunClient) *CtecsCreateSnapshotpolicyV41Api
func (*CtecsCreateSnapshotpolicyV41Api) Do ¶
func (a *CtecsCreateSnapshotpolicyV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsCreateSnapshotpolicyV41Request) (*CtecsCreateSnapshotpolicyV41Response, error)
type CtecsCreateSnapshotpolicyV41Request ¶
type CtecsCreateSnapshotpolicyV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SnapshotPolicyName string `json:"snapshotPolicyName,omitempty"` /* 云主机快照策略名称,满足以下规则:长度为2~63字符,由数字、字母、-组成,只能以字母开头,以数字和字母结尾 */
SnapshotTime string `json:"snapshotTime,omitempty"` /* 快照整点时间,时间取值范围:0~23<br />注:如果一天内多个时间节点备份,以逗号隔开(如11点15点进行快照,则填写"11,15"),默认值0 */
CycleType string `json:"cycleType,omitempty"` /* 云主机快照周期类型,取值范围:<br />day:天,<br />week:周 */
CycleDay int32 `json:"cycleDay,omitempty"` /* 快照周期(天),取值范围:[1, 10] <br />注:cycleType为day时需设置 */
CycleWeek string `json:"cycleWeek,omitempty"` /* 快照周期(星期),星期取值范围:0~6(代表周几,其中0为周日)<br />注:只有cycleType为week时需设置;<br />如果一周有多天备份,以逗号隔开(如周日周三进行快照,则填写"0,3") */
RetentionType string `json:"retentionType,omitempty"` /* 云主机快照保留类型,取值范围:<br />date:按时间保存,<br />num:按数量保存 */
RetentionDay int32 `json:"retentionDay,omitempty"` /* 云主机快照保留天数,单位为天,取值范围:[1, 365] <br />注:retentionType为date时必填 */
RetentionNum int32 `json:"retentionNum,omitempty"` /* 云主机快照保留数量,取值范围:[1, 30]<br />注:retentionType为num时必填 */
SnapshotPolicyStatus int32 `json:"snapshotPolicyStatus,omitempty"` /* 快照策略状态,是否启用,取值范围:<br />0:不启用,<br />1:启用<br />注:默认值1(启用) */
}
type CtecsCreateSnapshotpolicyV41Response ¶
type CtecsCreateSnapshotpolicyV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsCreateSnapshotpolicyV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsCreateSnapshotpolicyV41ReturnObjResponse ¶
type CtecsCreateSnapshotpolicyV41ReturnObjResponse struct {
SnapshotPolicyStatus int32 `json:"snapshotPolicyStatus,omitempty"` /* 快照策略状态,是否启用,取值范围:<br />0:不启用,<br />1:启用<br />注:默认值1(启用) */
SnapshotPolicyName string `json:"snapshotPolicyName,omitempty"` /* 云主机快照策略名称,满足以下规则:长度为2~63字符,由数字、字母、-组成,只能以字母开头,以数字和字母结尾 */
RetentionType string `json:"retentionType,omitempty"` /* 云主机快照保留类型,取值范围:<br />date:按时间保存,<br />num:按数量保存 */
RetentionDay string `json:"retentionDay,omitempty"` /* 保留天数,当retentionType为date时返回,否则为空字符串 */
RetentionNum string `json:"retentionNum,omitempty"` /* 保留数量,当retentionType为num时返回,否则为空字符串 */
CycleType string `json:"cycleType,omitempty"` /* 备份周期类型,day-按天备份,week-按星期备份 */
CycleDay int32 `json:"cycleDay,omitempty"` /* 快照周期值,cycleType为day时返回 */
CycleWeek string `json:"cycleWeek,omitempty"` /* 快照周期值,cycleType为week时返回,则取值范围0-6代表星期日-星期六,如果一周有多天备份,以逗号隔开 */
SnapshotPolicyID string `json:"snapshotPolicyID,omitempty"` /* 云主机快照策略ID,32字节<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9600&data=87">查询云主机快照策略列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9588&data=87">创建云主机快照策略</a> */
SnapshotTime string `json:"snapshotTime,omitempty"` /* 快照整点时间,时间取值范围:0~23<br />注:如果一天内多个时间节点备份,以逗号隔开(如11点15点进行快照,则填写"11,15"),默认值0 */
}
type CtecsCreateVolumeV41Api ¶
type CtecsCreateVolumeV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsCreateVolumeV41Api ¶
func NewCtecsCreateVolumeV41Api(client *core.CtyunClient) *CtecsCreateVolumeV41Api
func (*CtecsCreateVolumeV41Api) Do ¶
func (a *CtecsCreateVolumeV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsCreateVolumeV41Request) (*CtecsCreateVolumeV41Response, error)
type CtecsCreateVolumeV41ErrorDetailResponse ¶
type CtecsCreateVolumeV41ErrorDetailResponse struct {
BssErrCode string `json:"bssErrCode,omitempty"` /* bss错误明细码,包含于bss格式化JSON错误信息中 */
BssErrMs string `json:"bssErrMs,omitempty"` /* bss错误信息,包含于bss格式化JSON错误信息中 */
BssOrigErr string `json:"bssOrigErr,omitempty"` /* 无法明确解码bss错误信息时,原样透出的bss错误信息 */
BssErrPrefixHint string `json:"bssErrPrefixHint,omitempty"` /* bss格式化JSON错误信息的前置提示信息 */
}
type CtecsCreateVolumeV41Request ¶
type CtecsCreateVolumeV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
DiskMode string `json:"diskMode,omitempty"` /* 磁盘模式,取值范围:<br />FCSAN(光纤通道协议的SAN网络),<br />ISCSI(小型计算机系统接口),<br />VBD(虚拟块存储设备)<br />您可以查看<a href="https://www.ctyun.cn/document/10027696/10162960">磁盘模式及使用方法</a>了解相关内容。<br />注:默认值为VBD;XSSD类型盘不支持ISCSI和FCSAN */
DiskType string `json:"diskType,omitempty"` /* 云硬盘类型,取值范围:<br />SATA(普通IO),<br />SAS(高IO),<br />SSD(超高IO),<br />FAST-SSD(极速型SSD)<br />您可以查看<a href="https://www.ctyun.cn/document/10027696/10162918">磁盘类型及性能介绍</a>磁盘类型相关信息<br />注:极速SSD类型盘(FAST-SSD)不支持ISCSI磁盘模式;只有高IO类型(SAS)支持FCSAN磁盘模式;XSSD类型盘不支持多挂载、加密、ISCSI和FCSAN磁盘模式 */
DiskName string `json:"diskName,omitempty"` /* 云硬盘命名,单账户单资源池下,命名需唯一 */
DiskSize int32 `json:"diskSize,omitempty"` /* 云硬盘大小,单位GB,取值范围:[10, 32768] */
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个ClientToken值,其他请求参数相同时,则代表为同一个请求。保留时间为24小时 */
AzName string `json:"azName,omitempty"` /* 可用区名称,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解可用区 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5855&data=87">资源池可用区查询</a><br />注:查询结果中zoneList内返回存在可用区名称(即多可用区,本字段必填),若查询结果中zoneList为空(即为单可用区,本字段不可填写) */
MultiAttach *bool `json:"multiAttach"` /* 是否支持多云主机挂载,注:默认值false;XSSD类型盘不支持多挂载 */
OnDemand *bool `json:"onDemand"` /* 是否按需下单,注:默认值true */
CycleType string `json:"cycleType,omitempty"` /* 订购周期类型,取值范围: <br />MONTH(表示按月),<br />YEAR(表示按年)。注:onDemand为false时,必须指定。 */
CycleCount int32 `json:"cycleCount,omitempty"` /* 包周期数。注:onDemand为false时必须指定;周期最大长度不能超过5年 */
IsEncrypt *bool `json:"isEncrypt"` /* 是否加密盘,取值范围:<br />true表示加密,<br />false表示未加密。注:默认值false;XSSD类型盘不支持加密 */
KmsUUID string `json:"kmsUUID,omitempty"` /* 天翼云自研密钥管理(KMS,Key Management Service)的ID,如果是加密盘(参数isEncrypt为true时),需要提供KMS的uuid,您可以查看<a href="https://www.ctyun.cn/document/10027696/10162638">支持云硬盘加密功能</a>了解云硬盘加密功能 */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID,默认值为"0",企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目 */
ImageID string `json:"imageID,omitempty"` /* 镜像ID,如果用镜像创建,只支持数据盘的私有镜像,所创建的数据盘的所在地域要与镜像源一致,容量不可小于镜像对应的磁盘容量,不支持批量创建操作,从镜像创建的数据盘不支持加密、ISCSI和FCSAN高级配置 */
ProvisionedIops int32 `json:"provisionedIops,omitempty"` /* XSSD类型盘的预配置iops值,最小值为1,其他类型的盘不支持设置。具体取值范围如下:<br />●XSSD-0:(基础IOPS(min{1800+12×容量, 10,000}) + 预配置IOPS) ≤ min{500×容量,50,000}<br />●XSSD-1:(基础IOPS(min{1800+50×容量, 50000}) + 预配置IOPS) ≤ min{500×容量,100000}<br />●XSSD-2:(基础IOPS(min{3000+50×容量, 100000}) + 预配置IOPS) ≤ min{500×容量,1000000} */
DeleteSnapWithEbs *bool `json:"deleteSnapWithEbs"` /* 设置全部快照是否随盘删除,取值范围:<br />●true:是<br />●false:否<br />默认值:false */
Labels []*CtecsCreateVolumeV41LabelsRequest `json:"labels"` /* 设置云硬盘标签,实际绑定标签的结果请查询云硬盘详情的labels返回值是否如预期 */
BackupID string `json:"backupID,omitempty"` /* 云硬盘备份ID参数,有以下限制:<br />●从备份创建盘仅支持VBD模式<br />●新盘容量不能小于备份源盘容量<br />●不支持配置加密属性(自动与备份源盘保持一致)<br />●备份状态必须是可用 */
}
type CtecsCreateVolumeV41Response ¶
type CtecsCreateVolumeV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为处理中或失败) */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式码 */
ErrorDetail *CtecsCreateVolumeV41ErrorDetailResponse `json:"errorDetail"` /* 错误明细。一般情况下,会对订单侧(bss)的云硬盘订单业务相关的错误做明确的错误映射和提升,有唯一对应的errorCode。其他订单侧(bss)的错误,以ebs.order.procFailed的errorCode统一映射返回,并在errorDetail中返回订单侧的详细错误信息 */
ReturnObj *CtecsCreateVolumeV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsCreateVolumeV41ReturnObjResourcesResponse ¶
type CtecsCreateVolumeV41ReturnObjResourcesResponse struct {
DiskID string `json:"diskID,omitempty"` /* 资源底层ID,即磁盘ID */
OrderID string `json:"orderID,omitempty"` /* 无需关心 */
StartTime int32 `json:"startTime,omitempty"` /* 启动时刻,epoch时戳,毫秒精度 */
CreateTime int32 `json:"createTime,omitempty"` /* 创建时刻,epoch时戳,毫秒精度 */
UpdateTime int32 `json:"updateTime,omitempty"` /* 更新时刻,epoch时戳,毫秒精度 */
Status int32 `json:"status,omitempty"` /* 资源状态,无需关心。参考masterResourceStatus */
IsMaster *bool `json:"isMaster"` /* 是否是主资源项 */
ItemValue int32 `json:"itemValue,omitempty"` /* 资源规格,这里指磁盘大小,单位GB */
ResourceType string `json:"resourceType,omitempty"` /* 资源类型,云硬盘为EBS */
DiskName string `json:"diskName,omitempty"` /* 云硬盘名称 */
MasterOrderID string `json:"masterOrderID,omitempty"` /* 主订单ID。调用方在拿到masterOrderID之后,可以使用masterOrderID进一步确认订单状态及资源状态 */
MasterResourceID string `json:"masterResourceID,omitempty"` /* 主资源ID。云硬盘场景下,无需关心 */
}
type CtecsCreateVolumeV41ReturnObjResponse ¶
type CtecsCreateVolumeV41ReturnObjResponse struct {
MasterOrderID string `json:"masterOrderID,omitempty"` /* 主订单ID。调用方在拿到masterOrderID之后,可以使用materOrderID进一步确认订单状态及资源状态 */
MasterOrderNO string `json:"masterOrderNO,omitempty"` /* 订单号 */
MasterResourceID string `json:"masterResourceID,omitempty"` /* 主资源ID。云硬盘场景下,无需关心 */
MasterResourceStatus string `json:"masterResourceStatus,omitempty"` /* 主资源状态。只有主订单资源会返回。unknown/failed/ starting */
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
Resources []*CtecsCreateVolumeV41ReturnObjResourcesResponse `json:"resources"` /* 资源明细列表,注:订单未完成情况下不返回;待订单完成后使用创建时同样的clientToken(24小时后失效)进行查询,则返回该部分内容 */
}
type CtecsDeleteAffinityGroupApi ¶
type CtecsDeleteAffinityGroupApi struct {
// contains filtered or unexported fields
}
func NewCtecsDeleteAffinityGroupApi ¶
func NewCtecsDeleteAffinityGroupApi(client *core.CtyunClient) *CtecsDeleteAffinityGroupApi
func (*CtecsDeleteAffinityGroupApi) Do ¶
func (a *CtecsDeleteAffinityGroupApi) Do(ctx context.Context, credential core.Credential, req *CtecsDeleteAffinityGroupRequest) (*CtecsDeleteAffinityGroupResponse, error)
type CtecsDeleteAffinityGroupRequest ¶
type CtecsDeleteAffinityGroupRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
AffinityGroupID string `json:"affinityGroupID,omitempty"` /* 云主机组ID,获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8324&data=87">查询云主机组列表或者详情</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8316&data=87">创建云主机组</a><br /> */
}
type CtecsDeleteAffinityGroupResponse ¶
type CtecsDeleteAffinityGroupResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsDeleteAffinityGroupReturnObjResponse `json:"returnObj"` /* 返回结果 */
}
type CtecsDeleteAffinityGroupReturnObjResponse ¶
type CtecsDeleteAffinityGroupReturnObjResponse struct {
AffinityGroupID string `json:"affinityGroupID,omitempty"` /* 云主机组ID */
}
type CtecsDeleteCommandApi ¶
type CtecsDeleteCommandApi struct {
// contains filtered or unexported fields
}
func NewCtecsDeleteCommandApi ¶
func NewCtecsDeleteCommandApi(client *core.CtyunClient) *CtecsDeleteCommandApi
func (*CtecsDeleteCommandApi) Do ¶
func (a *CtecsDeleteCommandApi) Do(ctx context.Context, credential core.Credential, req *CtecsDeleteCommandRequest) (*CtecsDeleteCommandResponse, error)
type CtecsDeleteCommandResponse ¶
type CtecsDeleteCommandResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800 为成功,900 为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,详见错误码说明 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
}
type CtecsDeleteEipV41Api ¶
type CtecsDeleteEipV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsDeleteEipV41Api ¶
func NewCtecsDeleteEipV41Api(client *core.CtyunClient) *CtecsDeleteEipV41Api
func (*CtecsDeleteEipV41Api) Do ¶
func (a *CtecsDeleteEipV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsDeleteEipV41Request) (*CtecsDeleteEipV41Response, error)
type CtecsDeleteEipV41Request ¶
type CtecsDeleteEipV41Request struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个ClientToken值,则代表为同一个请求。保留时间为24小时 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
EipID string `json:"eipID,omitempty"` /* 弹性公网IP的ID,您可以查看<a href="https://www.ctyun.cn/document/10026753/10026909">产品定义-弹性IP</a>来了解弹性公网IP <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=13&api=8652&data=101">查询指定地域已创建的弹性IP</a><br /> */
}
type CtecsDeleteEipV41Response ¶
type CtecsDeleteEipV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsDeleteEipV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsDeleteEipV41ReturnObjResponse ¶
type CtecsDeleteEipV41ReturnObjResponse struct {
MasterOrderID string `json:"masterOrderID,omitempty"` /* 订单ID。调用方在拿到masterOrderID之后,可以使用materOrderID进一步确认订单状态及资源状态 */
MasterOrderNO string `json:"masterOrderNO,omitempty"` /* 订单号 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
MasterResourceStatus string `json:"masterResourceStatus,omitempty"` /* 资源状态 */
}
type CtecsDeleteInstanceAndRelatedResourceApi ¶
type CtecsDeleteInstanceAndRelatedResourceApi struct {
// contains filtered or unexported fields
}
func NewCtecsDeleteInstanceAndRelatedResourceApi ¶
func NewCtecsDeleteInstanceAndRelatedResourceApi(client *core.CtyunClient) *CtecsDeleteInstanceAndRelatedResourceApi
func (*CtecsDeleteInstanceAndRelatedResourceApi) Do ¶
func (a *CtecsDeleteInstanceAndRelatedResourceApi) Do(ctx context.Context, credential core.Credential, req *CtecsDeleteInstanceAndRelatedResourceRequest) (*CtecsDeleteInstanceAndRelatedResourceResponse, error)
type CtecsDeleteInstanceAndRelatedResourceRequest ¶
type CtecsDeleteInstanceAndRelatedResourceRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。保留时间为24小时,使用同一个clientToken值,则代表为同一个请求 */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a> */
DeleteVolume *bool `json:"deleteVolume"` /* 是否释放所挂载的数据盘,true(释放),false(不释放),默认值False。<br /> 注:不包含随主机一同创建的数据盘,随主机创建的盘默认随主机一同释放;所挂载的数据盘若含有硬盘快照,则不会释放 */
DeleteEip *bool `json:"deleteEip"` /* 是否释放所绑定的弹性公网ip,true(释放),false(不释放),默认值False。<br /> 注:不包含随主机一同创建的弹性公网ip,随主机创建的弹性公网ip默认随主机一同释放 */
}
type CtecsDeleteInstanceAndRelatedResourceResponse ¶
type CtecsDeleteInstanceAndRelatedResourceResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsDeleteInstanceAndRelatedResourceReturnObjResponse `json:"returnObj"` /* 成功时返回空 */
}
type CtecsDeleteInstanceAndRelatedResourceReturnObjResponse ¶
type CtecsDeleteInstanceAndRelatedResourceReturnObjResponse struct{}
type CtecsDeleteInstanceBackupApi ¶
type CtecsDeleteInstanceBackupApi struct {
// contains filtered or unexported fields
}
func NewCtecsDeleteInstanceBackupApi ¶
func NewCtecsDeleteInstanceBackupApi(client *core.CtyunClient) *CtecsDeleteInstanceBackupApi
func (*CtecsDeleteInstanceBackupApi) Do ¶
func (a *CtecsDeleteInstanceBackupApi) Do(ctx context.Context, credential core.Credential, req *CtecsDeleteInstanceBackupRequest) (*CtecsDeleteInstanceBackupResponse, error)
type CtecsDeleteInstanceBackupPolicyApi ¶
type CtecsDeleteInstanceBackupPolicyApi struct {
// contains filtered or unexported fields
}
func NewCtecsDeleteInstanceBackupPolicyApi ¶
func NewCtecsDeleteInstanceBackupPolicyApi(client *core.CtyunClient) *CtecsDeleteInstanceBackupPolicyApi
func (*CtecsDeleteInstanceBackupPolicyApi) Do ¶
func (a *CtecsDeleteInstanceBackupPolicyApi) Do(ctx context.Context, credential core.Credential, req *CtecsDeleteInstanceBackupPolicyRequest) (*CtecsDeleteInstanceBackupPolicyResponse, error)
type CtecsDeleteInstanceBackupPolicyRequest ¶
type CtecsDeleteInstanceBackupPolicyRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
PolicyID string `json:"policyID,omitempty"` /* 云主机备份策略ID,32字节<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=14&api=6924&data=100">查询云主机备份策略列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=14&api=6914&data=100">创建云主机备份策略</a> */
}
type CtecsDeleteInstanceBackupPolicyResponse ¶
type CtecsDeleteInstanceBackupPolicyResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 错误信息的英文描述 */
Description string `json:"description,omitempty"` /* 错误信息的本地化描述(中文) */
ReturnObj *CtecsDeleteInstanceBackupPolicyReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsDeleteInstanceBackupPolicyReturnObjResponse ¶
type CtecsDeleteInstanceBackupPolicyReturnObjResponse struct {
PolicyID string `json:"policyID,omitempty"` /* 云主机备份策略ID */
}
type CtecsDeleteInstanceBackupRepoApi ¶
type CtecsDeleteInstanceBackupRepoApi struct {
// contains filtered or unexported fields
}
func NewCtecsDeleteInstanceBackupRepoApi ¶
func NewCtecsDeleteInstanceBackupRepoApi(client *core.CtyunClient) *CtecsDeleteInstanceBackupRepoApi
func (*CtecsDeleteInstanceBackupRepoApi) Do ¶
func (a *CtecsDeleteInstanceBackupRepoApi) Do(ctx context.Context, credential core.Credential, req *CtecsDeleteInstanceBackupRepoRequest) (*CtecsDeleteInstanceBackupRepoResponse, error)
type CtecsDeleteInstanceBackupRepoRequest ¶
type CtecsDeleteInstanceBackupRepoRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
RepositoryID string `json:"repositoryID,omitempty"` /* 云主机备份存储库ID,您可以查看<a href="https://www.ctyun.cn/document/10026751/10033742">产品定义-存储库</a>来了解存储库<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=6909&data=87&isNormal=1&vid=81">查询存储库列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=6910&data=87&isNormal=1&vid=81">创建存储库</a> */
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个ClientToken值,则代表为同一个请求。保留时间为24小时 */
}
type CtecsDeleteInstanceBackupRepoResponse ¶
type CtecsDeleteInstanceBackupRepoResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误信息,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsDeleteInstanceBackupRepoReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsDeleteInstanceBackupRepoReturnObjResponse ¶
type CtecsDeleteInstanceBackupRepoReturnObjResponse struct {
MasterOrderID string `json:"masterOrderID,omitempty"` /* 主订单ID。调用方在拿到masterOrderID之后,可以使用materOrderID进一步确认订单状态及资源状态 */
MasterOrderNO string `json:"masterOrderNO,omitempty"` /* 订单号 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
}
type CtecsDeleteInstanceBackupRequest ¶
type CtecsDeleteInstanceBackupRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceBackupID string `json:"instanceBackupID,omitempty"` /* 云主机备份ID,您可以查看<a href="https://www.ctyun.cn/document/10026751/10033738">产品定义-云主机备份</a>来了解云主机备份<br /> 获取:<span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8332&data=87&isNormal=1&vid=81">创建云主机备份</a> */
}
type CtecsDeleteInstanceBackupResponse ¶
type CtecsDeleteInstanceBackupResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsDeleteInstanceBackupReturnObjResponse `json:"returnObj"` /* 返回结果 */
}
type CtecsDeleteInstanceBackupReturnObjResponse ¶
type CtecsDeleteInstanceBackupReturnObjResponse struct {
InstanceBackupID string `json:"instanceBackupID,omitempty"` /* 云主机备份ID */
}
type CtecsDeleteKeypairV41Api ¶
type CtecsDeleteKeypairV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsDeleteKeypairV41Api ¶
func NewCtecsDeleteKeypairV41Api(client *core.CtyunClient) *CtecsDeleteKeypairV41Api
func (*CtecsDeleteKeypairV41Api) Do ¶
func (a *CtecsDeleteKeypairV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsDeleteKeypairV41Request) (*CtecsDeleteKeypairV41Response, error)
type CtecsDeleteKeypairV41Request ¶
type CtecsDeleteKeypairV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
KeyPairName string `json:"keyPairName,omitempty"` /* 密钥对名称。满足以下规则:只能由数字、字母、-组成,不能以数字和-开头、以-结尾,且长度为2-63字符 */
}
type CtecsDeleteKeypairV41Response ¶
type CtecsDeleteKeypairV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsDeleteKeypairV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsDeleteKeypairV41ReturnObjResponse ¶
type CtecsDeleteKeypairV41ReturnObjResponse struct {
KeyPairName string `json:"keyPairName,omitempty"` /* 密钥对名称 */
}
type CtecsDeleteMetadataV41Api ¶
type CtecsDeleteMetadataV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsDeleteMetadataV41Api ¶
func NewCtecsDeleteMetadataV41Api(client *core.CtyunClient) *CtecsDeleteMetadataV41Api
func (*CtecsDeleteMetadataV41Api) Do ¶
func (a *CtecsDeleteMetadataV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsDeleteMetadataV41Request) (*CtecsDeleteMetadataV41Response, error)
type CtecsDeleteMetadataV41Request ¶
type CtecsDeleteMetadataV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
}
type CtecsDeleteMetadataV41Response ¶
type CtecsDeleteMetadataV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsDeleteMetadataV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsDeleteMetadataV41ReturnObjResponse ¶
type CtecsDeleteMetadataV41ReturnObjResponse struct {
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
}
type CtecsDeletePortsV41Api ¶
type CtecsDeletePortsV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsDeletePortsV41Api ¶
func NewCtecsDeletePortsV41Api(client *core.CtyunClient) *CtecsDeletePortsV41Api
func (*CtecsDeletePortsV41Api) Do ¶
func (a *CtecsDeletePortsV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsDeletePortsV41Request) (*CtecsDeletePortsV41Response, error)
type CtecsDeletePortsV41Request ¶
type CtecsDeletePortsV41Request struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个clientToken值,则代表为同一个请求。保留时间为24小时 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
NetworkInterfaceID string `json:"networkInterfaceID,omitempty"` /* 可以查看<a href="https://www.ctyun.cn/document/10026755/10197673">弹性网卡-弹性网卡基本知识</a>来了解弹性网卡<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5802&data=94">查询弹性网卡列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5789&data=94">创建弹性网卡</a> */
}
type CtecsDeletePortsV41Response ¶
type CtecsDeletePortsV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
}
type CtecsDeleteSecurityGroupV41Api ¶
type CtecsDeleteSecurityGroupV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsDeleteSecurityGroupV41Api ¶
func NewCtecsDeleteSecurityGroupV41Api(client *core.CtyunClient) *CtecsDeleteSecurityGroupV41Api
func (*CtecsDeleteSecurityGroupV41Api) Do ¶
func (a *CtecsDeleteSecurityGroupV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsDeleteSecurityGroupV41Request) (*CtecsDeleteSecurityGroupV41Response, error)
type CtecsDeleteSecurityGroupV41Request ¶
type CtecsDeleteSecurityGroupV41Request struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。长度为1-64字符,要求单个云平台账户内唯一,使用同一个clientToken值,其他请求参数相同时,则代表为同一个请求。保留时间为24小时 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目<br />注:默认值为"0" */
SecurityGroupID string `json:"securityGroupID,omitempty"` /* 安全组ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>了解安全组相关信息 <br />获取: <br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4817&data=94">查询用户安全组列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4821&data=94">创建安全组</a> */
}
type CtecsDeleteSecurityGroupV41Response ¶
type CtecsDeleteSecurityGroupV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
}
type CtecsDeleteSnapshotV41Api ¶
type CtecsDeleteSnapshotV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsDeleteSnapshotV41Api ¶
func NewCtecsDeleteSnapshotV41Api(client *core.CtyunClient) *CtecsDeleteSnapshotV41Api
func (*CtecsDeleteSnapshotV41Api) Do ¶
func (a *CtecsDeleteSnapshotV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsDeleteSnapshotV41Request) (*CtecsDeleteSnapshotV41Response, error)
type CtecsDeleteSnapshotV41Request ¶
type CtecsDeleteSnapshotV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SnapshotID string `json:"snapshotID,omitempty"` /* 云主机快照ID */
}
type CtecsDeleteSnapshotV41Response ¶
type CtecsDeleteSnapshotV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsDeleteSnapshotV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsDeleteSnapshotV41ReturnObjResponse ¶
type CtecsDeleteSnapshotV41ReturnObjResponse struct {
SnapshotID string `json:"snapshotID,omitempty"` /* 云主机快照ID */
}
type CtecsDeleteSnapshotpolicyV41Api ¶
type CtecsDeleteSnapshotpolicyV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsDeleteSnapshotpolicyV41Api ¶
func NewCtecsDeleteSnapshotpolicyV41Api(client *core.CtyunClient) *CtecsDeleteSnapshotpolicyV41Api
func (*CtecsDeleteSnapshotpolicyV41Api) Do ¶
func (a *CtecsDeleteSnapshotpolicyV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsDeleteSnapshotpolicyV41Request) (*CtecsDeleteSnapshotpolicyV41Response, error)
type CtecsDeleteSnapshotpolicyV41Request ¶
type CtecsDeleteSnapshotpolicyV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SnapshotPolicyID string `json:"snapshotPolicyID,omitempty"` /* 云主机快照策略ID,32字节<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9600&data=87">查询云主机快照策略列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9588&data=87">创建云主机快照策略</a> */
}
type CtecsDeleteSnapshotpolicyV41Response ¶
type CtecsDeleteSnapshotpolicyV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsDeleteSnapshotpolicyV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsDeleteSnapshotpolicyV41ReturnObjResponse ¶
type CtecsDeleteSnapshotpolicyV41ReturnObjResponse struct {
SnapshotPolicyID string `json:"snapshotPolicyID,omitempty"` /* 所删除的云主机快照策略ID */
}
type CtecsDeleteVolumeV41Api ¶
type CtecsDeleteVolumeV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsDeleteVolumeV41Api ¶
func NewCtecsDeleteVolumeV41Api(client *core.CtyunClient) *CtecsDeleteVolumeV41Api
func (*CtecsDeleteVolumeV41Api) Do ¶
func (a *CtecsDeleteVolumeV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsDeleteVolumeV41Request) (*CtecsDeleteVolumeV41Response, error)
type CtecsDeleteVolumeV41ErrorDetailResponse ¶
type CtecsDeleteVolumeV41ErrorDetailResponse struct {
BssErrCode string `json:"bssErrCode,omitempty"` /* bss错误明细码,包含于bss格式化JSON错误信息中 */
BssErrMsg string `json:"bssErrMsg,omitempty"` /* bss错误信息,包含于bss格式化JSON错误信息中 */
BssOrigErr string `json:"bssOrigErr,omitempty"` /* 无法明确解码bss错误信息时,原样透出的bss错误信息 */
BssErrPrefixHint string `json:"bssErrPrefixHint,omitempty"` /* bss格式化JSON错误信息的前置提示信息 */
}
type CtecsDeleteVolumeV41Request ¶
type CtecsDeleteVolumeV41Request struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。保留时间为24小时,使用同一个clientToken值,则代表为同一个请求 */
DiskID string `json:"diskID,omitempty"` /* 磁盘ID。您可以查看<a href="https://www.ctyun.cn/document/10027696/10027930">产品定义-云硬盘</a>来了解云硬盘 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=35&api=7338&data=48">云硬盘列表查询</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=35&api=7332&data=48&isNormal=1&vid=45">创建云硬盘</a> */
RegionID string `json:"regionID,omitempty"` /* 如本地语境支持保存regionID,那么建议传递。资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
DeleteSnapWithEbs string `json:"deleteSnapWithEbs,omitempty"` /* 设置快照是否随盘删除,只能设置为true */
}
type CtecsDeleteVolumeV41Response ¶
type CtecsDeleteVolumeV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为处理中或失败) */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsDeleteVolumeV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式码 */
ErrorDetail *CtecsDeleteVolumeV41ErrorDetailResponse `json:"errorDetail"` /* 错误明细。一般情况下,会对订单侧(bss)的云硬盘订单业务相关的错误做明确的错误映射和提升,有唯一对应的errorCode<br />其他订单侧(bss)的错误,以Ebs.Order.ProcFailed的errorCode统一映射返回,并在errorDetail中返回订单侧的详细错误信息 */
}
type CtecsDescribeAvailabilityZonesV41Api ¶
type CtecsDescribeAvailabilityZonesV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsDescribeAvailabilityZonesV41Api ¶
func NewCtecsDescribeAvailabilityZonesV41Api(client *core.CtyunClient) *CtecsDescribeAvailabilityZonesV41Api
func (*CtecsDescribeAvailabilityZonesV41Api) Do ¶
func (a *CtecsDescribeAvailabilityZonesV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsDescribeAvailabilityZonesV41Request) (*CtecsDescribeAvailabilityZonesV41Response, error)
type CtecsDescribeAvailabilityZonesV41Request ¶
type CtecsDescribeAvailabilityZonesV41Request struct {
RegionID string /* 资源池ID */
}
type CtecsDescribeAvailabilityZonesV41Response ¶
type CtecsDescribeAvailabilityZonesV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsDescribeAvailabilityZonesV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsDescribeAvailabilityZonesV41ReturnObjResponse ¶
type CtecsDescribeAvailabilityZonesV41ReturnObjResponse struct {
AzList []*CtecsDescribeAvailabilityZonesV41ReturnObjAzListResponse `json:"azList"` /* 可用区列表 */
}
type CtecsDescribeInstancesApi ¶
type CtecsDescribeInstancesApi struct {
// contains filtered or unexported fields
}
func NewCtecsDescribeInstancesApi ¶
func NewCtecsDescribeInstancesApi(client *core.CtyunClient) *CtecsDescribeInstancesApi
func (*CtecsDescribeInstancesApi) Do ¶
func (a *CtecsDescribeInstancesApi) Do(ctx context.Context, credential core.Credential, req *CtecsDescribeInstancesRequest) (*CtecsDescribeInstancesResponse, error)
type CtecsDescribeInstancesRequest ¶
type CtecsDescribeInstancesRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
AzName string `json:"azName,omitempty"` /* 可用区名称,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解可用区 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5855&data=87">资源池可用区查询</a><br />注:查询结果中zoneList内返回存在可用区名称(即多可用区,本字段填写实际可用区名称),若查询结果中zoneList为空(即为单可用区,本字段填写default) */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目 */
PageNo int32 `json:"pageNo,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目,取值范围:[1, 50],注:默认值为10 */
State string `json:"state,omitempty"` /* 云主机状态,详见枚举值表<br />注:该参数大小写不敏感(如active可填写为ACTIVE) */
Keyword string `json:"keyword,omitempty"` /* 关键字,对部分参数进行模糊查询,包含:instanceName、displayName、instanceID、privateIP */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称,精准匹配 */
InstanceIDList string `json:"instanceIDList,omitempty"` /* 云主机ID列表,多台使用英文逗号分割,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br/><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
SecurityGroupID string `json:"securityGroupID,omitempty"` /* 安全组ID,模糊匹配,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>了解安全组相关信息 <br />获取: <br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4817&data=94">查询用户安全组列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4821&data=94">创建安全组</a> */
LabelList []*CtecsDescribeInstancesLabelListRequest `json:"labelList"` /* 标签信息列表 */
}
type CtecsDescribeInstancesResponse ¶
type CtecsDescribeInstancesResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsDescribeInstancesReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsDescribeInstancesReturnObjResponse ¶
type CtecsDescribeInstancesReturnObjResponse struct {
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
Results []*CtecsDescribeInstancesReturnObjResultsResponse `json:"results"` /* 分页明细 */
}
type CtecsDescribeInstancesReturnObjResultsAddressesAddressListResponse ¶
type CtecsDescribeInstancesReturnObjResultsAddressesAddressListResponse struct {
Addr string `json:"addr,omitempty"` /* IP地址 */
Version int32 `json:"version,omitempty"` /* IP版本 */
RawType string `json:"type,omitempty"` /* 网络类型,取值范围:<br />fixed(内网),<br />floating(弹性公网) */
IsMaster *bool `json:"isMaster"` /* 是否为主网卡 */
MacAddress string `json:"macAddress,omitempty"` /* mac地址 */
}
type CtecsDescribeInstancesReturnObjResultsAddressesResponse ¶
type CtecsDescribeInstancesReturnObjResultsAddressesResponse struct {
VpcName string `json:"vpcName,omitempty"` /* vpc名称 */
AddressList []*CtecsDescribeInstancesReturnObjResultsAddressesAddressListResponse `json:"addressList"` /* 网络地址列表 */
}
type CtecsDescribeInstancesReturnObjResultsFlavorResponse ¶
type CtecsDescribeInstancesReturnObjResultsFlavorResponse struct {
FlavorID string `json:"flavorID,omitempty"` /* 规格ID */
FlavorName string `json:"flavorName,omitempty"` /* 规格名称 */
FlavorCPU int32 `json:"flavorCPU,omitempty"` /* VCPU */
FlavorRAM int32 `json:"flavorRAM,omitempty"` /* 内存 */
GpuType string `json:"gpuType,omitempty"` /* GPU类型,取值范围:T4、V100、V100S、A10、A100、atlas 300i pro、mlu370-s4,支持类型会随着功能升级增加 */
GpuCount int32 `json:"gpuCount,omitempty"` /* GPU数目 */
GpuVendor string `json:"gpuVendor,omitempty"` /* GPU名称 */
VideoMemSize int32 `json:"videoMemSize,omitempty"` /* 显存大小 */
}
type CtecsDescribeInstancesReturnObjResultsNetworkInfoBoundTypeResponse ¶
type CtecsDescribeInstancesReturnObjResultsNetworkInfoBoundTypeResponse struct{}
type CtecsDescribeInstancesReturnObjResultsResponse ¶
type CtecsDescribeInstancesReturnObjResultsResponse struct {
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID */
AzName string `json:"azName,omitempty"` /* 可用区名称 */
AzDisplayName string `json:"azDisplayName,omitempty"` /* 可用区展示名称 */
AttachedVolume []string `json:"attachedVolume"` /* 云硬盘ID列表 */
Addresses []*CtecsDescribeInstancesReturnObjResultsAddressesResponse `json:"addresses"` /* 网络地址信息 */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
DisplayName string `json:"displayName,omitempty"` /* 云主机显示名称 */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称 */
OsType int32 `json:"osType,omitempty"` /* 操作系统类型,详见枚举值表 */
InstanceStatus string `json:"instanceStatus,omitempty"` /* 云主机状态,请通过<a href="https://www.ctyun.cn/document/10026730/10741614">状态枚举值</a>查看云主机使用状态 */
ExpiredTime string `json:"expiredTime,omitempty"` /* 到期时间 */
CreatedTime string `json:"createdTime,omitempty"` /* 创建时间 */
SecGroupList []*CtecsDescribeInstancesReturnObjResultsSecGroupListResponse `json:"secGroupList"` /* 安全组信息列表 */
VipInfoList []*CtecsDescribeInstancesReturnObjResultsVipInfoListResponse `json:"vipInfoList"` /* 虚拟IP信息列表 */
AffinityGroup *CtecsDescribeInstancesReturnObjResultsAffinityGroupResponse `json:"affinityGroup"` /* 云主机组信息 */
Image *CtecsDescribeInstancesReturnObjResultsImageResponse `json:"image"` /* 镜像信息 */
Flavor *CtecsDescribeInstancesReturnObjResultsFlavorResponse `json:"flavor"` /* 云主机规格信息 */
OnDemand *bool `json:"onDemand"` /* 付费方式,取值范围:<br />true(按量付费),<br />false(包周期) */
KeypairName string `json:"keypairName,omitempty"` /* 密钥对名称 */
NetworkInfo []*CtecsDescribeInstancesReturnObjResultsNetworkInfoResponse `json:"networkInfo"` /* 网络信息 */
DelegateName string `json:"delegateName,omitempty"` /* 委托名称,注:委托绑定目前仅支持多可用区类型资源池,非可用区资源池为空字符串 */
DeletionProtection *bool `json:"deletionProtection"` /* 是否开启实例删除保护 */
InstanceDescription string `json:"instanceDescription,omitempty"` /* 云主机描述信息 */
}
type CtecsDescribeInstancesReturnObjResultsVipInfoListResponse ¶
type CtecsDescribeInstancesReturnObjResultsVipInfoListResponse struct {
VipID string `json:"vipID,omitempty"` /* 虚拟IP的ID */
VipAddress string `json:"vipAddress,omitempty"` /* 虚拟IP地址 */
VipBindNicIP string `json:"vipBindNicIP,omitempty"` /* 虚拟IP绑定的网卡对应IPv4地址 */
VipBindNicIPv6 string `json:"vipBindNicIPv6,omitempty"` /* 虚拟IP绑定的网卡对应IPv6地址 */
NicID string `json:"nicID,omitempty"` /* 网卡ID */
}
type CtecsDescribeSecurityGroupAttributeV41Api ¶
type CtecsDescribeSecurityGroupAttributeV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsDescribeSecurityGroupAttributeV41Api ¶
func NewCtecsDescribeSecurityGroupAttributeV41Api(client *core.CtyunClient) *CtecsDescribeSecurityGroupAttributeV41Api
func (*CtecsDescribeSecurityGroupAttributeV41Api) Do ¶
func (a *CtecsDescribeSecurityGroupAttributeV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsDescribeSecurityGroupAttributeV41Request) (*CtecsDescribeSecurityGroupAttributeV41Response, error)
type CtecsDescribeSecurityGroupAttributeV41Request ¶
type CtecsDescribeSecurityGroupAttributeV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SecurityGroupID string /* 安全组ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>了解安全组相关信息 <br />获取: <br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4817&data=94">查询用户安全组列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4821&data=94">创建安全组</a> */
ProjectID string /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目 */
Direction string /* 安全组规则授权方向,取值范围:</br> egress(出方向), </br> ingress(入方向), </br> all(不区分方向)<br />注:默认值为all */
}
type CtecsDescribeSecurityGroupAttributeV41Response ¶
type CtecsDescribeSecurityGroupAttributeV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsDescribeSecurityGroupAttributeV41ReturnObjResponse `json:"returnObj"` /* 返回结果 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
}
type CtecsDescribeSecurityGroupAttributeV41ReturnObjResponse ¶
type CtecsDescribeSecurityGroupAttributeV41ReturnObjResponse struct {
SecurityGroupName string `json:"securityGroupName,omitempty"` /* 安全组名称 */
Id string `json:"id,omitempty"` /* 安全组id */
VmNum int32 `json:"vmNum,omitempty"` /* 相关云主机 */
Origin string `json:"origin,omitempty"` /* 表示是否是默认安全组 */
VpcName string `json:"vpcName,omitempty"` /* vpc名称 */
VpcID string `json:"vpcID,omitempty"` /* 安全组所属的专有网络 */
CreationTime string `json:"creationTime,omitempty"` /* 创建时间 */
Description string `json:"description,omitempty"` /* 安全组描述信息 */
SecurityGroupRuleList []*CtecsDescribeSecurityGroupAttributeV41ReturnObjSecurityGroupRuleListResponse `json:"securityGroupRuleList"` /* 安全组规则信息 */
}
type CtecsDescribeSecurityGroupAttributeV41ReturnObjSecurityGroupRuleListResponse ¶
type CtecsDescribeSecurityGroupAttributeV41ReturnObjSecurityGroupRuleListResponse struct {
Direction string `json:"direction,omitempty"` /* 出方向-egress、入方向-ingress */
Action string `json:"action,omitempty"` /* 拒绝策略:允许-accept 拒绝-drop */
Origin string `json:"origin,omitempty"` /* 来源 */
Priority int32 `json:"priority,omitempty"` /* 优先级:0~100 */
Ethertype string `json:"ethertype,omitempty"` /* IP类型:IPv4、IPv6 */
Protocol string `json:"protocol,omitempty"` /* 协议: ANY、TCP、UDP、ICMP、ICMP6 */
RawRange string `json:"range,omitempty"` /* 接口范围/ICMP类型:1-65535 */
DestCidrIp string `json:"destCidrIp,omitempty"` /* 远端地址:0.0.0.0/0 */
Description string `json:"description,omitempty"` /* 安全组规则描述信息 */
CreateTime string `json:"createTime,omitempty"` /* 创建时间,UTC时间 */
Id string `json:"id,omitempty"` /* 唯一标识ID */
SecurityGroupID string `json:"securityGroupID,omitempty"` /* 安全组ID */
RemoteSecurityGroupID string `json:"remoteSecurityGroupID,omitempty"` /* 远端安全组id */
PrefixListID string `json:"prefixListID,omitempty"` /* 前缀列表id */
}
type CtecsDescribeSendFileResultsApi ¶
type CtecsDescribeSendFileResultsApi struct {
// contains filtered or unexported fields
}
func NewCtecsDescribeSendFileResultsApi ¶
func NewCtecsDescribeSendFileResultsApi(client *core.CtyunClient) *CtecsDescribeSendFileResultsApi
func (*CtecsDescribeSendFileResultsApi) Do ¶
func (a *CtecsDescribeSendFileResultsApi) Do(ctx context.Context, credential core.Credential, req *CtecsDescribeSendFileResultsRequest) (*CtecsDescribeSendFileResultsResponse, error)
type CtecsDescribeSendFileResultsRequest ¶
type CtecsDescribeSendFileResultsRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
FileName string `json:"fileName,omitempty"` /* 文件名称 */
InvokedID string `json:"invokedID,omitempty"` /* 执行ID */
PageNo int32 `json:"pageNo,omitempty"` /* 当前页码,默认值为1 */
PageSize int32 `json:"pageSize,omitempty"` /* 分页查询时设置的每页行数,最大值为100,默认为10 */
}
type CtecsDescribeSendFileResultsResponse ¶
type CtecsDescribeSendFileResultsResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800 为成功,900 为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,详见错误码说明。 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述。 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述。 */
ReturnObj *CtecsDescribeSendFileResultsReturnObjResponse `json:"returnObj"` /* 成功时返回的数据。 */
}
type CtecsDescribeSendFileResultsReturnObjResponse ¶
type CtecsDescribeSendFileResultsReturnObjResponse struct {
Results *CtecsDescribeSendFileResultsReturnObjResultsResponse `json:"results"` /* 命令执行结果集合 */
PageNo int32 `json:"pageNo,omitempty"` /* 当前页码 */
TotalCount int32 `json:"totalCount,omitempty"` /* 命令总个数 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页行数 */
}
type CtecsDescribeSendFileResultsReturnObjResultsInvokeInstancesResponse ¶
type CtecsDescribeSendFileResultsReturnObjResultsInvokeInstancesResponse struct {
CreateTime string `json:"createTime,omitempty"` /* 文件下发任务创建时间 */
UpdateTime string `json:"updateTime,omitempty"` /* 文件下发任务完成时间 */
InvocationStatus string `json:"invocationStatus,omitempty"` /* 单台云主机的文件下发执行状态,可能值:<br />Pending:系统正在下发文件;<br />Running:文件下发中;<br />Success:文件下发成功;<br />Failed:文件下发失败; */
ExitCode string `json:"exitCode,omitempty"` /* 命令退出码 */
ErrorInfo string `json:"errorInfo,omitempty"` /* 错误信息 */
InstanceID string `json:"instanceID,omitempty"` /* 实例ID */
}
type CtecsDescribeSendFileResultsReturnObjResultsResponse ¶
type CtecsDescribeSendFileResultsReturnObjResultsResponse struct {
CreateTime string `json:"createTime,omitempty"` /* 文件下发任务创建时间 */
InvocationRecordStatus string `json:"invocationRecordStatus,omitempty"` /* 文件下发总的执行状态,取值范围:<br />Pending:下发中,有一台云主机未下发,则总的状态为下发中;<br />Running:运行中,有云主机中文件下发进程为运行中,则总的执行状态为运行中;<br />Finished:已完成,所有云主机文件下发全部完成执行;<br />Failed:执行失败,所有云主机文件下发全部执行失败 */
InvokedID string `json:"invokedID,omitempty"` /* 命令执行ID */
FileName string `json:"fileName,omitempty"` /* 文件名称,长度不超过128个字符 */
Description string `json:"description,omitempty"` /* 文件描述,长度不超过512个字符 */
FileContent string `json:"fileContent,omitempty"` /* 文件内容 */
TargetDirectory string `json:"targetDirectory,omitempty"` /* 下发文件的目标路径 */
Timeout int32 `json:"timeout,omitempty"` /* 下发文件的超时时间。默认值60秒 */
FileOwner string `json:"fileOwner,omitempty"` /* 文件所属用户,只针对linux实例,默认root */
FileGroup string `json:"fileGroup,omitempty"` /* 文件用户组,只针对linux实例,默认root */
FileMode string `json:"fileMode,omitempty"` /* 文件权限,只针对linux实例,默认0644 */
Overwrite *bool `json:"overwrite"` /* 是否覆盖,如果目标路径下同名文件已经存在,true:覆盖;false:不覆盖。默认false */
VmCount int32 `json:"vmCount,omitempty"` /* 文件下发的实例数量 */
InvokeInstances *CtecsDescribeSendFileResultsReturnObjResultsInvokeInstancesResponse `json:"invokeInstances"` /* 实例列表 */
}
type CtecsDestroyInstanceApi ¶
type CtecsDestroyInstanceApi struct {
// contains filtered or unexported fields
}
func NewCtecsDestroyInstanceApi ¶
func NewCtecsDestroyInstanceApi(client *core.CtyunClient) *CtecsDestroyInstanceApi
func (*CtecsDestroyInstanceApi) Do ¶
func (a *CtecsDestroyInstanceApi) Do(ctx context.Context, credential core.Credential, req *CtecsDestroyInstanceRequest) (*CtecsDestroyInstanceResponse, error)
type CtecsDestroyInstanceRequest ¶
type CtecsDestroyInstanceRequest struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个ClientToken值,其他请求参数相同时,则代表为同一个请求。保留时间为24小时 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a> */
}
type CtecsDestroyInstanceResponse ¶
type CtecsDestroyInstanceResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsDestroyInstanceReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsDetachVolumeV41Api ¶
type CtecsDetachVolumeV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsDetachVolumeV41Api ¶
func NewCtecsDetachVolumeV41Api(client *core.CtyunClient) *CtecsDetachVolumeV41Api
func (*CtecsDetachVolumeV41Api) Do ¶
func (a *CtecsDetachVolumeV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsDetachVolumeV41Request) (*CtecsDetachVolumeV41Response, error)
type CtecsDetachVolumeV41ErrorDetailResponse ¶
type CtecsDetachVolumeV41ErrorDetailResponse struct {
BssErrCode string `json:"bssErrCode,omitempty"` /* bss错误明细码,包含于bss格式化JSON错误信息中 */
BssErrMsg string `json:"bssErrMsg,omitempty"` /* bss错误信息,包含于bss格式化JSON错误信息中 */
BssOrigErr string `json:"bssOrigErr,omitempty"` /* 无法明确解码bss错误信息时,原样透出的bss错误信息 */
BssErrPrefixHint string `json:"bssErrPrefixHint,omitempty"` /* bss格式化JSON错误信息的前置提示信息 */
}
type CtecsDetachVolumeV41Request ¶
type CtecsDetachVolumeV41Request struct {
DiskID string `json:"diskID,omitempty"` /* 磁盘ID,您可以查看<a href="https://www.ctyun.cn/document/10027696/10027930">产品定义-云硬盘</a>来了解云硬盘 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=35&api=7338&data=48">云硬盘列表查询</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=35&api=7332&data=48&isNormal=1&vid=45">创建云硬盘</a> */
RegionID string `json:"regionID,omitempty"` /* 如如本地语境支持保存regionID,那么建议传递。资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,用于共享盘指定卸载某个主机。 */
}
type CtecsDetachVolumeV41Response ¶
type CtecsDetachVolumeV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ErrorDetail *CtecsDetachVolumeV41ErrorDetailResponse `json:"errorDetail"` /* 错误明细。一般情况下,会对订单侧(bss)的云硬盘订单业务相关的错误做明确的错误映射和提升,有唯一对应的errorCode<br />其他订单侧(bss)的错误,以Ebs.Order.ProcFailed的errorCode统一映射返回,并在errorDetail中返回订单侧的详细错误信息 */
ReturnObj *CtecsDetachVolumeV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsDetachVolumeV41ReturnObjResponse ¶
type CtecsDetachVolumeV41ReturnObjResponse struct {
DiskJobID string `json:"diskJobID,omitempty"` /* 异步任务ID,可通过公共接口<a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5865&data=87&isNormal=1&vid=81">通用任务状态查询</a>该jobID的异步任务最终执行结果 */
DiskRequestID string `json:"diskRequestID,omitempty"` /* 异步任务ID,可通过公共接口<a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5865&data=87&isNormal=1&vid=81">通用任务状态查询</a>该jobID的异步任务最终执行结果 */
}
type CtecsDetailsBackupInstanceV41Api ¶
type CtecsDetailsBackupInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsDetailsBackupInstanceV41Api ¶
func NewCtecsDetailsBackupInstanceV41Api(client *core.CtyunClient) *CtecsDetailsBackupInstanceV41Api
func (*CtecsDetailsBackupInstanceV41Api) Do ¶
func (a *CtecsDetailsBackupInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsDetailsBackupInstanceV41Request) (*CtecsDetailsBackupInstanceV41Response, error)
type CtecsDetailsBackupInstanceV41Request ¶
type CtecsDetailsBackupInstanceV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a> */
}
type CtecsDetailsBackupInstanceV41Response ¶
type CtecsDetailsBackupInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsDetailsBackupInstanceV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsDetailsBackupInstanceV41ReturnObjAddressesAddressListResponse ¶
type CtecsDetailsBackupInstanceV41ReturnObjAddressesAddressListResponse struct {
Addr string `json:"addr,omitempty"` /* IP地址 */
Version int32 `json:"version,omitempty"` /* IP版本 */
RawType string `json:"type,omitempty"` /* 网络类型,取值范围:<br />fixed:内网,<br />floating:公网 */
IsMaster *bool `json:"isMaster"` /* 网络地址对应网卡是否为主网卡 */
MacAddress string `json:"macAddress,omitempty"` /* 网络地址对应网卡的mac地址 */
}
type CtecsDetailsBackupInstanceV41ReturnObjAddressesResponse ¶
type CtecsDetailsBackupInstanceV41ReturnObjAddressesResponse struct {
VpcName string `json:"vpcName,omitempty"` /* vpc名称 */
AddressList []*CtecsDetailsBackupInstanceV41ReturnObjAddressesAddressListResponse `json:"addressList"` /* 网络地址列表 */
}
type CtecsDetailsBackupInstanceV41ReturnObjFlavorResponse ¶
type CtecsDetailsBackupInstanceV41ReturnObjFlavorResponse struct {
FlavorID string `json:"flavorID,omitempty"` /* 规格ID */
FlavorName string `json:"flavorName,omitempty"` /* 规格名称 */
FlavorCPU int32 `json:"flavorCPU,omitempty"` /* VCPU */
FlavorRAM int32 `json:"flavorRAM,omitempty"` /* 内存 */
GpuType string `json:"gpuType,omitempty"` /* GPU类型,取值范围:T4\V100\V100S\A10\A100\atlas 300i pro\mlu370-s4,支持类型会随着功能升级增加 */
GpuCount int32 `json:"gpuCount,omitempty"` /* GPU数目 */
GpuVendor string `json:"gpuVendor,omitempty"` /* GPU名称 */
VideoMemSize int32 `json:"videoMemSize,omitempty"` /* GPU显存大小 */
}
type CtecsDetailsBackupInstanceV41ReturnObjNetworkCardListResponse ¶
type CtecsDetailsBackupInstanceV41ReturnObjNetworkCardListResponse struct {
IPv4Address string `json:"IPv4Address,omitempty"` /* IPv4地址 */
IPv6Address []string `json:"IPv6Address"` /* IPv6地址列表 */
SubnetID string `json:"subnetID,omitempty"` /* 子网ID */
SubnetCidr string `json:"subnetCidr,omitempty"` /* 子网CIDR信息 */
IsMaster *bool `json:"isMaster"` /* 是否主网卡,取值范围:<br />true:主网卡,<br />false:扩展网卡 */
Gateway string `json:"gateway,omitempty"` /* 网关地址 */
NetworkCardID string `json:"networkCardID,omitempty"` /* 网卡ID */
SecurityGroup []string `json:"securityGroup"` /* 安全组ID列表 */
}
type CtecsDetailsBackupInstanceV41ReturnObjResponse ¶
type CtecsDetailsBackupInstanceV41ReturnObjResponse struct {
ProjectID string `json:"projectID,omitempty"` /* 企业项目id */
AzName string `json:"azName,omitempty"` /* 可用区名称 */
AttachedVolume []string `json:"attachedVolume"` /* 云硬盘ID列表 */
Addresses []*CtecsDetailsBackupInstanceV41ReturnObjAddressesResponse `json:"addresses"` /* 网络地址信息 */
ResourceID string `json:"resourceID,omitempty"` /* 资源ID */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
DisplayName string `json:"displayName,omitempty"` /* 云主机显示名称 */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称 */
OsType int32 `json:"osType,omitempty"` /* 操作系统类型,取值范围:<br />1: linux,<br />2: windows,<br />3: redhat,<br />4: ubuntu,<br />5: centos,<br />6: oracle */
InstanceStatus string `json:"instanceStatus,omitempty"` /* 云主机状态,取值范围:<br />backingup: 备份中,<br />creating: 创建中,<br />expired: 已到期,<br />freezing: 冻结中,<br />rebuild: 重装,<br />restarting: 重启中,<br />running: 运行中,<br />starting: 开机中,<br />stopped: 已关机,<br />stopping: 关机中,<br />error: 错误,<br />snapshotting: 快照创建中 */
ExpiredTime string `json:"expiredTime,omitempty"` /* 到期时间 */
AvailableDay int32 `json:"availableDay,omitempty"` /* 可用(天) */
UpdatedTime string `json:"updatedTime,omitempty"` /* 更新时间 */
CreatedTime string `json:"createdTime,omitempty"` /* 创建时间 */
ZabbixName string `json:"zabbixName,omitempty"` /* 监控对象名称 */
SecGroupList []*CtecsDetailsBackupInstanceV41ReturnObjSecGroupListResponse `json:"secGroupList"` /* 安全组信息 */
PrivateIP string `json:"privateIP,omitempty"` /* 内网IPv4地址 */
PrivateIPv6 string `json:"privateIPv6,omitempty"` /* 内网IPv6址 */
NetworkCardList []*CtecsDetailsBackupInstanceV41ReturnObjNetworkCardListResponse `json:"networkCardList"` /* 网卡信息 */
VipInfoList []*CtecsDetailsBackupInstanceV41ReturnObjVipInfoListResponse `json:"vipInfoList"` /* 虚拟IP信息列表 */
VipCount int32 `json:"vipCount,omitempty"` /* vip数目 */
AffinityGroup *CtecsDetailsBackupInstanceV41ReturnObjAffinityGroupResponse `json:"affinityGroup"` /* 云主机组信息 */
Image *CtecsDetailsBackupInstanceV41ReturnObjImageResponse `json:"image"` /* 镜像信息 */
Flavor *CtecsDetailsBackupInstanceV41ReturnObjFlavorResponse `json:"flavor"` /* 云主机规格信息 */
OnDemand *bool `json:"onDemand"` /* 付费方式。取值范围:<br>false:包周期。<br>true:按量付费。 */
VpcName string `json:"vpcName,omitempty"` /* vpc名称 */
VpcID string `json:"vpcID,omitempty"` /* vpc ID */
FixedIP []string `json:"fixedIP"` /* 内网IP */
FloatingIP string `json:"floatingIP,omitempty"` /* 公网IP */
SubnetIDList []string `json:"subnetIDList"` /* 子网ID列表 */
KeypairName string `json:"keypairName,omitempty"` /* 密钥对名称 */
Volumes []*CtecsDetailsBackupInstanceV41ReturnObjVolumesResponse `json:"volumes"` /* 云硬盘信息 */
}
type CtecsDetailsBackupInstanceV41ReturnObjVipInfoListResponse ¶
type CtecsDetailsBackupInstanceV41ReturnObjVipInfoListResponse struct {
VipID string `json:"vipID,omitempty"` /* 虚拟IP的ID */
VipAddress string `json:"vipAddress,omitempty"` /* 虚拟IP地址 */
VipBindNicIP string `json:"vipBindNicIP,omitempty"` /* 虚拟IP绑定的网卡对应IPv4地址 */
VipBindNicIPv6 string `json:"vipBindNicIPv6,omitempty"` /* 虚拟IP绑定的网卡对应IPv6地址 */
NicID string `json:"nicID,omitempty"` /* 网卡ID */
}
type CtecsDetailsBackupInstanceV41ReturnObjVolumesResponse ¶
type CtecsDetailsBackupInstanceV41ReturnObjVolumesResponse struct {
IsBootable *bool `json:"isBootable"` /* 是否启动盘 */
DiskSize int32 `json:"diskSize,omitempty"` /* 云硬盘大小,单位为GB */
DiskType string `json:"diskType,omitempty"` /* 云硬盘类型,取值范围:<br />SATA:普通IO,<br />SAS:高IO,<br />SSD:超高IO,<br />FAST-SSD:极速型SSD */
DiskID string `json:"diskID,omitempty"` /* 云硬盘ID */
DiskName string `json:"diskName,omitempty"` /* 云硬盘名称 */
}
type CtecsDetailsInstanceBackupV41Api ¶
type CtecsDetailsInstanceBackupV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsDetailsInstanceBackupV41Api ¶
func NewCtecsDetailsInstanceBackupV41Api(client *core.CtyunClient) *CtecsDetailsInstanceBackupV41Api
func (*CtecsDetailsInstanceBackupV41Api) Do ¶
func (a *CtecsDetailsInstanceBackupV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsDetailsInstanceBackupV41Request) (*CtecsDetailsInstanceBackupV41Response, error)
type CtecsDetailsInstanceBackupV41Request ¶
type CtecsDetailsInstanceBackupV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceBackupID string /* 云主机备份ID,您可以查看<a href="https://www.ctyun.cn/document/10026751/10033738">产品定义-云主机备份</a>来了解云主机备份<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8354&data=87&isNormal=1&vid=81">查询云主机备份列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8332&data=87&isNormal=1&vid=81">创建云主机备份</a> */
}
type CtecsDetailsInstanceBackupV41Response ¶
type CtecsDetailsInstanceBackupV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsDetailsInstanceBackupV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsDetailsInstanceBackupV41ReturnObjResponse ¶
type CtecsDetailsInstanceBackupV41ReturnObjResponse struct {
InstanceBackupID string `json:"instanceBackupID,omitempty"` /* 云主机备份ID */
InstanceBackupName string `json:"instanceBackupName,omitempty"` /* 云主机备份名称 */
InstanceBackupStatus string `json:"instanceBackupStatus,omitempty"` /* 备份状态,取值范围:<br />CREATING: 备份创建中, <br />ACTIVE: 可用, <br />RESTORING: 备份恢复中,<br />DELETING: 删除中,<br />EXPIRED:到期,<br />ERROR:错误 */
InstanceBackupDescription string `json:"instanceBackupDescription,omitempty"` /* 云主机备份描述 */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称 */
RepositoryID string `json:"repositoryID,omitempty"` /* 云主机备份存储库ID */
RepositoryName string `json:"repositoryName,omitempty"` /* 云主机备份存储库名称 */
RepositoryExpired *bool `json:"repositoryExpired"` /* 云主机备份存储库是否过期 */
RepositoryFreeze *bool `json:"repositoryFreeze"` /* 存储库是否冻结 */
DiskTotalSize int32 `json:"diskTotalSize,omitempty"` /* 云硬盘总容量大小 */
UsedSize int64 `json:"usedSize,omitempty"` /* 磁盘备份已使用大小 */
DiskCount int32 `json:"diskCount,omitempty"` /* 云硬盘数目 */
RestoreFinishedTime string `json:"restoreFinishedTime,omitempty"` /* 备份恢复完成时间 */
CreatedTime string `json:"createdTime,omitempty"` /* 创建时间 */
FinishedTime string `json:"finishedTime,omitempty"` /* 完成时间 */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID */
BackupType string `json:"backupType,omitempty"` /* 备份类型,取值范围:●FULL:全量备份。●INCREMENT:增量备份。只有4.0资源池此参数有效 */
}
type CtecsDetailsInstanceV41Api ¶
type CtecsDetailsInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsDetailsInstanceV41Api ¶
func NewCtecsDetailsInstanceV41Api(client *core.CtyunClient) *CtecsDetailsInstanceV41Api
func (*CtecsDetailsInstanceV41Api) Do ¶
func (a *CtecsDetailsInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsDetailsInstanceV41Request) (*CtecsDetailsInstanceV41Response, error)
type CtecsDetailsInstanceV41Request ¶
type CtecsDetailsInstanceV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
}
type CtecsDetailsInstanceV41Response ¶
type CtecsDetailsInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsDetailsInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsDetailsInstanceV41ReturnObjAddressesAddressListResponse ¶
type CtecsDetailsInstanceV41ReturnObjAddressesAddressListResponse struct {
Addr string `json:"addr,omitempty"` /* IP地址 */
Version int32 `json:"version,omitempty"` /* IP版本 */
RawType string `json:"type,omitempty"` /* 网络类型,取值范围:<br />fixed:内网,<br />floating:弹性公网 */
IsMaster *bool `json:"isMaster"` /* 网络地址对应网卡是否为主网卡 */
MacAddress string `json:"macAddress,omitempty"` /* 网络地址对应网卡的mac地址 */
}
type CtecsDetailsInstanceV41ReturnObjAddressesResponse ¶
type CtecsDetailsInstanceV41ReturnObjAddressesResponse struct {
VpcName string `json:"vpcName,omitempty"` /* vpc名称 */
AddressList []*CtecsDetailsInstanceV41ReturnObjAddressesAddressListResponse `json:"addressList"` /* 网络地址列表 */
}
type CtecsDetailsInstanceV41ReturnObjFlavorResponse ¶
type CtecsDetailsInstanceV41ReturnObjFlavorResponse struct {
FlavorID string `json:"flavorID,omitempty"` /* 规格ID */
FlavorName string `json:"flavorName,omitempty"` /* 规格名称 */
FlavorCPU int32 `json:"flavorCPU,omitempty"` /* VCPU */
FlavorRAM int32 `json:"flavorRAM,omitempty"` /* 内存 */
GpuType string `json:"gpuType,omitempty"` /* GPU类型,取值范围:T4、V100、V100S、A10、A100、atlas 300i pro、mlu370-s4,支持类型会随着功能升级增加 */
GpuCount int32 `json:"gpuCount,omitempty"` /* GPU数目 */
GpuVendor string `json:"gpuVendor,omitempty"` /* GPU名称 */
VideoMemSize int32 `json:"videoMemSize,omitempty"` /* GPU显存大小 */
}
type CtecsDetailsInstanceV41ReturnObjMetadataResponse ¶
type CtecsDetailsInstanceV41ReturnObjMetadataResponse struct{}
type CtecsDetailsInstanceV41ReturnObjNetworkCardListResponse ¶
type CtecsDetailsInstanceV41ReturnObjNetworkCardListResponse struct {
IPv4Address string `json:"IPv4Address,omitempty"` /* IPv4地址 */
IPv6Address []string `json:"IPv6Address"` /* IPv6地址列表 */
SubnetID string `json:"subnetID,omitempty"` /* 子网ID */
SubnetCidr string `json:"subnetCidr,omitempty"` /* 子网网段信息 */
IsMaster *bool `json:"isMaster"` /* 是否主网卡,取值范围:<br />true:主网卡,<br />false:扩展网卡 */
Gateway string `json:"gateway,omitempty"` /* 网关地址 */
NetworkCardID string `json:"networkCardID,omitempty"` /* 网卡ID */
SecurityGroup []string `json:"securityGroup"` /* 安全组ID列表 */
}
type CtecsDetailsInstanceV41ReturnObjResponse ¶
type CtecsDetailsInstanceV41ReturnObjResponse struct {
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID */
AzName string `json:"azName,omitempty"` /* 可用区名称 */
AttachedVolume []string `json:"attachedVolume"` /* 云硬盘ID列表 */
Addresses []*CtecsDetailsInstanceV41ReturnObjAddressesResponse `json:"addresses"` /* 网络地址信息 */
ResourceID string `json:"resourceID,omitempty"` /* 云主机资源ID */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
DisplayName string `json:"displayName,omitempty"` /* 云主机显示名称 */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称 */
OsType int32 `json:"osType,omitempty"` /* 操作系统类型,详见枚举值表 */
InstanceStatus string `json:"instanceStatus,omitempty"` /* 云主机状态,,请通过状态<a href="https://www.ctyun.cn/document/10026730/10741614">状态枚举值</a>查看云主机使用状态 */
ExpiredTime string `json:"expiredTime,omitempty"` /* 到期时间 */
AvailableDay int32 `json:"availableDay,omitempty"` /* 可用天数 */
UpdatedTime string `json:"updatedTime,omitempty"` /* 更新时间 */
CreatedTime string `json:"createdTime,omitempty"` /* 创建时间 */
ZabbixName string `json:"zabbixName,omitempty"` /* 监控对象名称 */
SecGroupList []*CtecsDetailsInstanceV41ReturnObjSecGroupListResponse `json:"secGroupList"` /* 安全组信息 */
PrivateIP string `json:"privateIP,omitempty"` /* 内网IPv4地址 */
PrivateIPv6 string `json:"privateIPv6,omitempty"` /* 内网IPv6地址 */
NetworkCardList []*CtecsDetailsInstanceV41ReturnObjNetworkCardListResponse `json:"networkCardList"` /* 网卡信息 */
VipInfoList []*CtecsDetailsInstanceV41ReturnObjVipInfoListResponse `json:"vipInfoList"` /* 虚拟IP信息列表 */
VipCount int32 `json:"vipCount,omitempty"` /* vip数目 */
AffinityGroup *CtecsDetailsInstanceV41ReturnObjAffinityGroupResponse `json:"affinityGroup"` /* 云主机组信息 */
Image *CtecsDetailsInstanceV41ReturnObjImageResponse `json:"image"` /* 镜像信息 */
Flavor *CtecsDetailsInstanceV41ReturnObjFlavorResponse `json:"flavor"` /* 云主机规格信息 */
OnDemand *bool `json:"onDemand"` /* 付费方式,取值范围:<br />true:表示按量付费 <br />false:表示包周期 */
VpcName string `json:"vpcName,omitempty"` /* 虚拟私有云名称 */
VpcID string `json:"vpcID,omitempty"` /* 虚拟私有云ID */
FixedIPList []string `json:"fixedIPList"` /* 内网IP列表 */
FloatingIP string `json:"floatingIP,omitempty"` /* 公网IP */
SubnetIDList []string `json:"subnetIDList"` /* 子网ID列表 */
KeypairName string `json:"keypairName,omitempty"` /* 密钥对名称 */
DeletionProtection *bool `json:"deletionProtection"` /* 是否开启实例删除保护 */
DelegateName string `json:"delegateName,omitempty"` /* 委托名称,注:委托绑定目前仅支持多可用区类型资源池,非可用区资源池为空字符串 */
RemainingDay int32 `json:"remainingDay,omitempty"` /* 距离释放剩余天数 */
ReleaseTime string `json:"releaseTime,omitempty"` /* 释放时间 */
Metadata *CtecsDetailsInstanceV41ReturnObjMetadataResponse `json:"metadata"` /* 用户自定义元数据,注:仅多可用区类型资源池支持返回,非可用区资源池请调用查询元数据接口 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8319&data=87&isNormal=1">云主机元数据查询</a> */
}
type CtecsDetailsInstanceV41ReturnObjVipInfoListResponse ¶
type CtecsDetailsInstanceV41ReturnObjVipInfoListResponse struct {
VipID string `json:"vipID,omitempty"` /* 虚拟IP的ID */
VipAddress string `json:"vipAddress,omitempty"` /* 虚拟IP地址 */
VipBindNicIP string `json:"vipBindNicIP,omitempty"` /* 虚拟IP绑定的网卡对应IPv4地址 */
VipBindNicIPv6 string `json:"vipBindNicIPv6,omitempty"` /* 虚拟IP绑定的网卡对应IPv6地址 */
NicID string `json:"nicID,omitempty"` /* 网卡ID */
}
type CtecsDetailsKeypairV41Api ¶
type CtecsDetailsKeypairV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsDetailsKeypairV41Api ¶
func NewCtecsDetailsKeypairV41Api(client *core.CtyunClient) *CtecsDetailsKeypairV41Api
func (*CtecsDetailsKeypairV41Api) Do ¶
func (a *CtecsDetailsKeypairV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsDetailsKeypairV41Request) (*CtecsDetailsKeypairV41Response, error)
type CtecsDetailsKeypairV41Request ¶
type CtecsDetailsKeypairV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目 */
KeyPairName string `json:"keyPairName,omitempty"` /* 密钥对名称。满足以下规则:只能由数字、字母、-组成,不能以数字和-开头、以-结尾,且长度为2-63字符. */
QueryContent string `json:"queryContent,omitempty"` /* 模糊匹配查询内容(匹配字段:keyPairName、keyPairID) */
PageNo int32 `json:"pageNo,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目,取值范围:[1, 50],注:默认值为10 */
}
type CtecsDetailsKeypairV41Response ¶
type CtecsDetailsKeypairV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为处理中或失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsDetailsKeypairV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsDetailsKeypairV41ReturnObjResponse ¶
type CtecsDetailsKeypairV41ReturnObjResponse struct {
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
Results []*CtecsDetailsKeypairV41ReturnObjResultsResponse `json:"results"` /* 分页明细 */
}
type CtecsDetailsKeypairV41ReturnObjResultsResponse ¶
type CtecsDetailsKeypairV41ReturnObjResultsResponse struct {
PublicKey string `json:"publicKey,omitempty"` /* 密钥对的公钥 */
KeyPairName string `json:"keyPairName,omitempty"` /* 密钥对名称 */
FingerPrint string `json:"fingerPrint,omitempty"` /* 密钥对的指纹,采用MD5信息摘要算法 */
KeyPairID string `json:"keyPairID,omitempty"` /* 密钥对的ID */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID */
}
type CtecsDetailsLiteInstanceV41Api ¶
type CtecsDetailsLiteInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsDetailsLiteInstanceV41Api ¶
func NewCtecsDetailsLiteInstanceV41Api(client *core.CtyunClient) *CtecsDetailsLiteInstanceV41Api
func (*CtecsDetailsLiteInstanceV41Api) Do ¶
func (a *CtecsDetailsLiteInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsDetailsLiteInstanceV41Request) (*CtecsDetailsLiteInstanceV41Response, error)
type CtecsDetailsLiteInstanceV41Request ¶
type CtecsDetailsLiteInstanceV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string /* 轻量型云主机ID,您可以查看<a href="https://www.ctyun.cn/products/lite-ecs">轻量型云主机</a>了解轻量型云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11981&data=87">查询轻量型云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11980&data=87">创建轻量型云主机</a> */
}
type CtecsDetailsLiteInstanceV41Response ¶
type CtecsDetailsLiteInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsDetailsLiteInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsDetailsLiteInstanceV41ReturnObjAddressesResponse ¶
type CtecsDetailsLiteInstanceV41ReturnObjAddressesResponse struct {
AddressList []*CtecsDetailsLiteInstanceV41ReturnObjAddressesAddressListResponse `json:"addressList"` /* 网络地址列表 */
}
type CtecsDetailsLiteInstanceV41ReturnObjResponse ¶
type CtecsDetailsLiteInstanceV41ReturnObjResponse struct {
ResourceID string `json:"resourceID,omitempty"` /* 云主机资源ID */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
DisplayName string `json:"displayName,omitempty"` /* 云主机显示名称 */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称 */
OsType int32 `json:"osType,omitempty"` /* 操作系统类型,详见枚举值表格 */
InstanceStatus string `json:"instanceStatus,omitempty"` /* 云主机状态,请通过<a href="https://www.ctyun.cn/document/10026730/10741614">状态枚举值</a>查看云主机使用状态 */
ExpiredTime string `json:"expiredTime,omitempty"` /* 到期时间 */
UpdatedTime string `json:"updatedTime,omitempty"` /* 更新时间 */
CreatedTime string `json:"createdTime,omitempty"` /* 创建时间 */
AttachedVolume []string `json:"attachedVolume"` /* 附加卷 */
Addresses *CtecsDetailsLiteInstanceV41ReturnObjAddressesResponse `json:"addresses"` /* 网络地址信息 */
SecGroupList []*CtecsDetailsLiteInstanceV41ReturnObjSecGroupListResponse `json:"secGroupList"` /* 安全组信息 */
NetworkCardList []*CtecsDetailsLiteInstanceV41ReturnObjNetworkCardListResponse `json:"networkCardList"` /* 网卡信息 */
Image *CtecsDetailsLiteInstanceV41ReturnObjImageResponse `json:"image"` /* 镜像信息 */
Flavor *CtecsDetailsLiteInstanceV41ReturnObjFlavorResponse `json:"flavor"` /* 规格信息 */
VpcID string `json:"vpcID,omitempty"` /* vpc ID */
VpcName string `json:"vpcName,omitempty"` /* vpc名称 */
ZabbixName string `json:"zabbixName,omitempty"` /* 监控对象名称 */
Bandwidth int32 `json:"bandwidth,omitempty"` /* 带宽 */
BootDiskSize int32 `json:"bootDiskSize,omitempty"` /* 系统盘大小 */
}
type CtecsDetailsMetadataV41Api ¶
type CtecsDetailsMetadataV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsDetailsMetadataV41Api ¶
func NewCtecsDetailsMetadataV41Api(client *core.CtyunClient) *CtecsDetailsMetadataV41Api
func (*CtecsDetailsMetadataV41Api) Do ¶
func (a *CtecsDetailsMetadataV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsDetailsMetadataV41Request) (*CtecsDetailsMetadataV41Response, error)
type CtecsDetailsMetadataV41MetadataKeyRequest ¶
type CtecsDetailsMetadataV41MetadataKeyRequest struct{}
type CtecsDetailsMetadataV41Request ¶
type CtecsDetailsMetadataV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
MetadataKey *CtecsDetailsMetadataV41MetadataKeyRequest /* 元数据的键。缺省为查询云主机所有的元数据信息 */
}
type CtecsDetailsMetadataV41Response ¶
type CtecsDetailsMetadataV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsDetailsMetadataV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsDetailsMetadataV41ReturnObjMetadataResponse ¶
type CtecsDetailsMetadataV41ReturnObjMetadataResponse struct{}
type CtecsDetailsMetadataV41ReturnObjResponse ¶
type CtecsDetailsMetadataV41ReturnObjResponse struct {
Metadata *CtecsDetailsMetadataV41ReturnObjMetadataResponse `json:"metadata"` /* 云主机元数据,未设置情况下元数据则返回{} */
}
type CtecsDetailsSnapshotpolicyV41Api ¶
type CtecsDetailsSnapshotpolicyV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsDetailsSnapshotpolicyV41Api ¶
func NewCtecsDetailsSnapshotpolicyV41Api(client *core.CtyunClient) *CtecsDetailsSnapshotpolicyV41Api
func (*CtecsDetailsSnapshotpolicyV41Api) Do ¶
func (a *CtecsDetailsSnapshotpolicyV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsDetailsSnapshotpolicyV41Request) (*CtecsDetailsSnapshotpolicyV41Response, error)
type CtecsDetailsSnapshotpolicyV41Request ¶
type CtecsDetailsSnapshotpolicyV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SnapshotPolicyID string /* 云主机快照策略ID,32字节<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9600&data=87">查询云主机快照策略列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9588&data=87">创建云主机快照策略</a> */
}
type CtecsDetailsSnapshotpolicyV41Response ¶
type CtecsDetailsSnapshotpolicyV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsDetailsSnapshotpolicyV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsDetailsSnapshotpolicyV41ReturnObjResponse ¶
type CtecsDetailsSnapshotpolicyV41ReturnObjResponse struct {
SnapshotPolicyID string `json:"snapshotPolicyID,omitempty"` /* 云主机快照策略ID,32字节<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9600&data=87">查询云主机快照策略列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9588&data=87">创建云主机快照策略</a> */
SnapshotPolicyStatus int32 `json:"snapshotPolicyStatus,omitempty"` /* 快照策略状态,是否启用,取值范围:<br />0:不启用,<br />1:启用<br />注:默认值1(启用) */
SnapshotPolicyName string `json:"snapshotPolicyName,omitempty"` /* 云主机快照策略名称,满足以下规则:长度为2~63字符,由数字、字母、-组成,只能以字母开头,以数字和字母结尾 */
SnapshotTime string `json:"snapshotTime,omitempty"` /* 快照整点时间,时间取值范围:0~23<br />注:如果一天内多个时间节点备份,以逗号隔开(如11点15点进行快照,则填写"11,15"),默认值0 */
RetentionType string `json:"retentionType,omitempty"` /* 云主机快照保留类型,取值范围:<br />date:按时间保存,<br />num:按数量保存 */
RetentionDay string `json:"retentionDay,omitempty"` /* 云主机快照保留天数,快照保留类型为date时返回,否则为空字符串 */
RetentionNum string `json:"retentionNum,omitempty"` /* 云主机快照保留数量,快照保留类型为num时返回,否则为空字符串 */
CycleType string `json:"cycleType,omitempty"` /* 云主机快照周期类型,取值范围:<br />day:天,<br />week:周 */
CycleDay int32 `json:"cycleDay,omitempty"` /* 周期天数,周期类型为day时返回,表示多少天进行快照 */
CycleWeek string `json:"cycleWeek,omitempty"` /* 周期星期,周期类型为week时返回,表示周几进行快照,由逗号拼接,由0~6组成,0表示周日 */
ResourceCount int32 `json:"resourceCount,omitempty"` /* 绑定云主机数量 */
}
type CtecsDetailsVncLiteInstanceV41Api ¶
type CtecsDetailsVncLiteInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsDetailsVncLiteInstanceV41Api ¶
func NewCtecsDetailsVncLiteInstanceV41Api(client *core.CtyunClient) *CtecsDetailsVncLiteInstanceV41Api
func (*CtecsDetailsVncLiteInstanceV41Api) Do ¶
func (a *CtecsDetailsVncLiteInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsDetailsVncLiteInstanceV41Request) (*CtecsDetailsVncLiteInstanceV41Response, error)
type CtecsDetailsVncLiteInstanceV41Request ¶
type CtecsDetailsVncLiteInstanceV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string /* 轻量型云主机ID,您可以查看<a href="https://www.ctyun.cn/products/lite-ecs">轻量型云主机</a>了解轻量型云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11981&data=87">查询轻量型云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11980&data=87">创建轻量型云主机</a> */
}
type CtecsDetailsVncLiteInstanceV41Response ¶
type CtecsDetailsVncLiteInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsDetailsVncLiteInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsDetailsVncLiteInstanceV41ReturnObjResponse ¶
type CtecsDetailsVncLiteInstanceV41ReturnObjResponse struct {
Token string `json:"token,omitempty"` /* token */
}
type CtecsDisableSnapshotPolicyV41Api ¶
type CtecsDisableSnapshotPolicyV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsDisableSnapshotPolicyV41Api ¶
func NewCtecsDisableSnapshotPolicyV41Api(client *core.CtyunClient) *CtecsDisableSnapshotPolicyV41Api
func (*CtecsDisableSnapshotPolicyV41Api) Do ¶
func (a *CtecsDisableSnapshotPolicyV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsDisableSnapshotPolicyV41Request) (*CtecsDisableSnapshotPolicyV41Response, error)
type CtecsDisableSnapshotPolicyV41Request ¶
type CtecsDisableSnapshotPolicyV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SnapshotPolicyID string `json:"snapshotPolicyID,omitempty"` /* 云主机快照策略ID,32字节<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9600&data=87">查询云主机快照策略列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9588&data=87">创建云主机快照策略</a> */
}
type CtecsDisableSnapshotPolicyV41Response ¶
type CtecsDisableSnapshotPolicyV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsDisableSnapshotPolicyV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsDisableSnapshotPolicyV41ReturnObjResponse ¶
type CtecsDisableSnapshotPolicyV41ReturnObjResponse struct {
SnapshotPolicyStatus int32 `json:"snapshotPolicyStatus,omitempty"` /* 快照策略状态,是否启用,取值范围:<br />0:不启用,<br />1:启用<br /> */
SnapshotPolicyName string `json:"snapshotPolicyName,omitempty"` /* 云主机快照策略名称,满足以下规则:长度为2~63字符,由数字、字母、-组成,只能以字母开头,以数字和字母结尾 */
RetentionType string `json:"retentionType,omitempty"` /* 云主机快照保留类型,取值范围:<br />date:按时间保存,<br />num:按数量保存 */
RetentionDay string `json:"retentionDay,omitempty"` /* 保留天数,当retentionType为date时返回,否则为空字符串 */
RetentionNum string `json:"retentionNum,omitempty"` /* 保留数量,当retentionType为num时返回,否则为空字符串 */
CycleType string `json:"cycleType,omitempty"` /* 备份周期类型,取值范围:<br />day:按天备份,<br />week:按星期备份 */
CycleDay int32 `json:"cycleDay,omitempty"` /* 快照周期值,cycleType为day时返回 */
CycleWeek string `json:"cycleWeek,omitempty"` /* 快照周期值,cycleType为week时返回,则取值范围0-6代表星期日-星期六,如果一周有多天备份,以逗号隔开 */
SnapshotPolicyID string `json:"snapshotPolicyID,omitempty"` /* 云主机快照策略ID,32字节<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9600&data=87">查询云主机快照策略列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9588&data=87">创建云主机快照策略</a> */
SnapshotTime string `json:"snapshotTime,omitempty"` /* 快照整点时间,时间取值范围:0~23<br />注:如果一天内多个时间节点备份,以逗号隔开(如11点15点进行快照,则填写"11,15"),默认值0 */
}
type CtecsEcsAttachDelegateApi ¶
type CtecsEcsAttachDelegateApi struct {
// contains filtered or unexported fields
}
func NewCtecsEcsAttachDelegateApi ¶
func NewCtecsEcsAttachDelegateApi(client *core.CtyunClient) *CtecsEcsAttachDelegateApi
func (*CtecsEcsAttachDelegateApi) Do ¶
func (a *CtecsEcsAttachDelegateApi) Do(ctx context.Context, credential core.Credential, req *CtecsEcsAttachDelegateRequest) (*CtecsEcsAttachDelegateResponse, error)
type CtecsEcsAttachDelegateRequest ¶
type CtecsEcsAttachDelegateRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
DelegateName string `json:"delegateName,omitempty"` /* 委托名称,注:委托名称只支持字母和数字组合 */
}
type CtecsEcsAttachDelegateResponse ¶
type CtecsEcsAttachDelegateResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsEcsAttachDelegateReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsEcsDeleteDelegateApi ¶
type CtecsEcsDeleteDelegateApi struct {
// contains filtered or unexported fields
}
func NewCtecsEcsDeleteDelegateApi ¶
func NewCtecsEcsDeleteDelegateApi(client *core.CtyunClient) *CtecsEcsDeleteDelegateApi
func (*CtecsEcsDeleteDelegateApi) Do ¶
func (a *CtecsEcsDeleteDelegateApi) Do(ctx context.Context, credential core.Credential, req *CtecsEcsDeleteDelegateRequest) (*CtecsEcsDeleteDelegateResponse, error)
type CtecsEcsDeleteDelegateRequest ¶
type CtecsEcsDeleteDelegateRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
}
type CtecsEcsDeleteDelegateResponse ¶
type CtecsEcsDeleteDelegateResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsEcsDeleteDelegateReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsEcsDeleteDelegateReturnObjResponse ¶
type CtecsEcsDeleteDelegateReturnObjResponse struct {
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
}
type CtecsEcsJoinSecurityGroupV41Api ¶
type CtecsEcsJoinSecurityGroupV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsEcsJoinSecurityGroupV41Api ¶
func NewCtecsEcsJoinSecurityGroupV41Api(client *core.CtyunClient) *CtecsEcsJoinSecurityGroupV41Api
func (*CtecsEcsJoinSecurityGroupV41Api) Do ¶
func (a *CtecsEcsJoinSecurityGroupV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsEcsJoinSecurityGroupV41Request) (*CtecsEcsJoinSecurityGroupV41Response, error)
type CtecsEcsJoinSecurityGroupV41Request ¶
type CtecsEcsJoinSecurityGroupV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SecurityGroupID string `json:"securityGroupID,omitempty"` /* 安全组ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>了解安全组相关信息 <br />获取: <br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4817&data=94">查询用户安全组列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4821&data=94">创建安全组</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
NetworkInterfaceID string `json:"networkInterfaceID,omitempty"` /* 弹性网卡ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10197673">弹性网卡基本知识</a>快速了解弹性网卡相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5802&data=94">查询弹性网卡列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5789&data=94">创建弹性网卡</a> */
Action string `json:"action,omitempty"` /* 系统规定参数,绑定安全组填写joinSecurityGroup */
}
type CtecsEcsJoinSecurityGroupV41Response ¶
type CtecsEcsJoinSecurityGroupV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
}
type CtecsEcsSnapshotBatchDeleteApi ¶
type CtecsEcsSnapshotBatchDeleteApi struct {
// contains filtered or unexported fields
}
func NewCtecsEcsSnapshotBatchDeleteApi ¶
func NewCtecsEcsSnapshotBatchDeleteApi(client *core.CtyunClient) *CtecsEcsSnapshotBatchDeleteApi
func (*CtecsEcsSnapshotBatchDeleteApi) Do ¶
func (a *CtecsEcsSnapshotBatchDeleteApi) Do(ctx context.Context, credential core.Credential, req *CtecsEcsSnapshotBatchDeleteRequest) (*CtecsEcsSnapshotBatchDeleteResponse, error)
type CtecsEcsSnapshotBatchDeleteRequest ¶
type CtecsEcsSnapshotBatchDeleteRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SnapshotIDList string `json:"snapshotIDList,omitempty"` /* 云主机快照ID列表,多个使用英文逗号分割 */
}
type CtecsEcsSnapshotBatchDeleteResponse ¶
type CtecsEcsSnapshotBatchDeleteResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsEcsSnapshotBatchDeleteReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsEcsSnapshotBatchDeleteReturnObjResponse ¶
type CtecsEcsSnapshotBatchDeleteReturnObjResponse struct {
SnapshotIDList string `json:"snapshotIDList,omitempty"` /* 云主机快照ID列表,多个使用英文逗号分割 */
}
type CtecsEcsSnapshotTaskListApi ¶
type CtecsEcsSnapshotTaskListApi struct {
// contains filtered or unexported fields
}
func NewCtecsEcsSnapshotTaskListApi ¶
func NewCtecsEcsSnapshotTaskListApi(client *core.CtyunClient) *CtecsEcsSnapshotTaskListApi
func (*CtecsEcsSnapshotTaskListApi) Do ¶
func (a *CtecsEcsSnapshotTaskListApi) Do(ctx context.Context, credential core.Credential, req *CtecsEcsSnapshotTaskListRequest) (*CtecsEcsSnapshotTaskListResponse, error)
type CtecsEcsSnapshotTaskListRequest ¶
type CtecsEcsSnapshotTaskListRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
TaskID string `json:"taskID,omitempty"` /* 任务ID */
TaskType string `json:"taskType,omitempty"` /* 任务类型,取值范围:<br />create:生成快照任务,<br />restore:恢复快照数据任务,<br />apply:申请云主机任务,<br />delete:删除快照任务<br />注:不传默认全部 */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称 */
SnapshotID string `json:"snapshotID,omitempty"` /* 云主机快照ID,<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8349&data=87">查询云主机快照列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8352&data=87">创建云主机快照</a> */
SnapshotName string `json:"snapshotName,omitempty"` /* 快照名称 */
StrategyID string `json:"strategyID,omitempty"` /* 快照策略ID */
QueryContent string `json:"queryContent,omitempty"` /* 模糊查询,可匹配查询字段:任务ID、快照ID、快照名称、云主机ID、云主机名称 */
PageNo int32 `json:"pageNo,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目,取值范围:[1, 50],注:默认值为10 */
}
type CtecsEcsSnapshotTaskListResponse ¶
type CtecsEcsSnapshotTaskListResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsEcsSnapshotTaskListReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsEcsSnapshotTaskListReturnObjResponse ¶
type CtecsEcsSnapshotTaskListReturnObjResponse struct {
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
Results []*CtecsEcsSnapshotTaskListReturnObjResultsResponse `json:"results"` /* 分页明细 */
}
type CtecsEcsSnapshotTaskListReturnObjResultsResponse ¶
type CtecsEcsSnapshotTaskListReturnObjResultsResponse struct {
TaskID string `json:"taskID,omitempty"` /* 任务ID */
TaskStatus string `json:"taskStatus,omitempty"` /* 任务状态 */
TaskType string `json:"taskType,omitempty"` /* 任务类型 */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称 */
SnapshotID string `json:"snapshotID,omitempty"` /* 快照ID */
SnapshotName string `json:"snapshotName,omitempty"` /* 快照名称 */
StrategyID string `json:"strategyID,omitempty"` /* 策略的ID,非策略触发执行时为空 */
StrategyName string `json:"strategyName,omitempty"` /* 策略的名称,非策略触发执行时为空 */
StartTime string `json:"startTime,omitempty"` /* 开始时间 */
FinishTime string `json:"finishTime,omitempty"` /* 完成时间 */
TaskDetailDesc string `json:"taskDetailDesc,omitempty"` /* 任务详情 */
}
type CtecsEcsleaveSecurityGroupV41Api ¶
type CtecsEcsleaveSecurityGroupV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsEcsleaveSecurityGroupV41Api ¶
func NewCtecsEcsleaveSecurityGroupV41Api(client *core.CtyunClient) *CtecsEcsleaveSecurityGroupV41Api
func (*CtecsEcsleaveSecurityGroupV41Api) Do ¶
func (a *CtecsEcsleaveSecurityGroupV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsEcsleaveSecurityGroupV41Request) (*CtecsEcsleaveSecurityGroupV41Response, error)
type CtecsEcsleaveSecurityGroupV41Request ¶
type CtecsEcsleaveSecurityGroupV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SecurityGroupID string `json:"securityGroupID,omitempty"` /* 安全组ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>了解安全组相关信息 <br />获取: <br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4817&data=94">查询用户安全组列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4821&data=94">创建安全组</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
}
type CtecsEcsleaveSecurityGroupV41Response ¶
type CtecsEcsleaveSecurityGroupV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
}
type CtecsEnableSnapshotPolicyV41Api ¶
type CtecsEnableSnapshotPolicyV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsEnableSnapshotPolicyV41Api ¶
func NewCtecsEnableSnapshotPolicyV41Api(client *core.CtyunClient) *CtecsEnableSnapshotPolicyV41Api
func (*CtecsEnableSnapshotPolicyV41Api) Do ¶
func (a *CtecsEnableSnapshotPolicyV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsEnableSnapshotPolicyV41Request) (*CtecsEnableSnapshotPolicyV41Response, error)
type CtecsEnableSnapshotPolicyV41Request ¶
type CtecsEnableSnapshotPolicyV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SnapshotPolicyID string `json:"snapshotPolicyID,omitempty"` /* 云主机快照策略ID,32字节<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9600&data=87">查询云主机快照策略列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9588&data=87">创建云主机快照策略</a> */
}
type CtecsEnableSnapshotPolicyV41Response ¶
type CtecsEnableSnapshotPolicyV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsEnableSnapshotPolicyV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsEnableSnapshotPolicyV41ReturnObjResponse ¶
type CtecsEnableSnapshotPolicyV41ReturnObjResponse struct {
SnapshotPolicyStatus int32 `json:"snapshotPolicyStatus,omitempty"` /* 快照策略状态,是否启用,取值范围:<br />0:不启用,<br />1:启用 */
SnapshotPolicyName string `json:"snapshotPolicyName,omitempty"` /* 云主机快照策略名称,满足以下规则:长度为2~63字符,由数字、字母、-组成,只能以字母开头,以数字和字母结尾 */
RetentionType string `json:"retentionType,omitempty"` /* 云主机快照保留类型,取值范围:<br />date:按时间保存,<br />num:按数量保存 */
RetentionDay string `json:"retentionDay,omitempty"` /* 保留天数,当retentionType为date时返回,否则为空字符串 */
RetentionNum string `json:"retentionNum,omitempty"` /* 保留数量,当retentionType为num时返回,否则为空字符串 */
CycleType string `json:"cycleType,omitempty"` /* 备份周期类型,day-按天备份,week-按星期备份 */
CycleDay int32 `json:"cycleDay,omitempty"` /* 快照周期值,cycleType为day时返回 */
CycleWeek string `json:"cycleWeek,omitempty"` /* 快照周期值,cycleType为week时返回,则取值范围0-6代表星期日-星期六,如果一周有多天备份,以逗号隔开 */
SnapshotPolicyID string `json:"snapshotPolicyID,omitempty"` /* 云主机快照策略ID,32字节<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9600&data=87">查询云主机快照策略列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9588&data=87">创建云主机快照策略</a> */
SnapshotTime string `json:"snapshotTime,omitempty"` /* 快照整点时间,时间取值范围:0~23<br />注:如果一天内多个时间节点备份,以逗号隔开(如11点15点进行快照,则填写"11,15"),默认值0 */
}
type CtecsExecuteInstanceBackupPolicyApi ¶
type CtecsExecuteInstanceBackupPolicyApi struct {
// contains filtered or unexported fields
}
func NewCtecsExecuteInstanceBackupPolicyApi ¶
func NewCtecsExecuteInstanceBackupPolicyApi(client *core.CtyunClient) *CtecsExecuteInstanceBackupPolicyApi
func (*CtecsExecuteInstanceBackupPolicyApi) Do ¶
func (a *CtecsExecuteInstanceBackupPolicyApi) Do(ctx context.Context, credential core.Credential, req *CtecsExecuteInstanceBackupPolicyRequest) (*CtecsExecuteInstanceBackupPolicyResponse, error)
type CtecsExecuteInstanceBackupPolicyRequest ¶
type CtecsExecuteInstanceBackupPolicyRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
PolicyID string `json:"policyID,omitempty"` /* 云主机备份策略ID,32字节<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=14&api=6924&data=100">查询云主机备份策略列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=14&api=6914&data=100">创建云主机备份策略</a> */
}
type CtecsExecuteInstanceBackupPolicyResponse ¶
type CtecsExecuteInstanceBackupPolicyResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsExecuteInstanceBackupPolicyReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsExecuteInstanceBackupPolicyReturnObjResponse ¶
type CtecsExecuteInstanceBackupPolicyReturnObjResponse struct {
PolicyID string `json:"policyID,omitempty"` /* 云主机备份策略ID */
}
type CtecsExecuteSnapshotPolicyV41Api ¶
type CtecsExecuteSnapshotPolicyV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsExecuteSnapshotPolicyV41Api ¶
func NewCtecsExecuteSnapshotPolicyV41Api(client *core.CtyunClient) *CtecsExecuteSnapshotPolicyV41Api
func (*CtecsExecuteSnapshotPolicyV41Api) Do ¶
func (a *CtecsExecuteSnapshotPolicyV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsExecuteSnapshotPolicyV41Request) (*CtecsExecuteSnapshotPolicyV41Response, error)
type CtecsExecuteSnapshotPolicyV41Request ¶
type CtecsExecuteSnapshotPolicyV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SnapshotPolicyID string `json:"snapshotPolicyID,omitempty"` /* 云主机快照策略ID,32字节<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9600&data=87">查询云主机快照策略列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9588&data=87">创建云主机快照策略</a> */
}
type CtecsExecuteSnapshotPolicyV41Response ¶
type CtecsExecuteSnapshotPolicyV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsExecuteSnapshotPolicyV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsExecuteSnapshotPolicyV41ReturnObjResponse ¶
type CtecsExecuteSnapshotPolicyV41ReturnObjResponse struct {
SnapshotPolicyID string `json:"snapshotPolicyID,omitempty"` /* 执行的云主机快照策略ID */
}
type CtecsExtendVolumeV41Api ¶
type CtecsExtendVolumeV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsExtendVolumeV41Api ¶
func NewCtecsExtendVolumeV41Api(client *core.CtyunClient) *CtecsExtendVolumeV41Api
func (*CtecsExtendVolumeV41Api) Do ¶
func (a *CtecsExtendVolumeV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsExtendVolumeV41Request) (*CtecsExtendVolumeV41Response, error)
type CtecsExtendVolumeV41ErrorDetailResponse ¶
type CtecsExtendVolumeV41ErrorDetailResponse struct {
BssErrCode string `json:"bssErrCode,omitempty"` /* bss错误明细码,包含于bss格式化JSON错误信息中 */
BssErrMsg string `json:"bssErrMsg,omitempty"` /* bss错误信息,包含于bss格式化JSON错误信息中 */
BssOrigErr string `json:"bssOrigErr,omitempty"` /* 无法明确解码bss错误信息时,原样透出的bss错误信息 */
BssErrPrefixHint string `json:"bssErrPrefixHint,omitempty"` /* bss格式化JSON错误信息的前置提示信息 */
}
type CtecsExtendVolumeV41Request ¶
type CtecsExtendVolumeV41Request struct {
DiskSize int32 `json:"diskSize,omitempty"` /* 变配后的云硬盘大小,数据盘的取值范围为:<br />●超高IO/高IO/极速型SSD/普通IO:10GB~32768GB<br />●XSSD-0:10GB-65536GB<br />●XSSD-1:20GB-65536GB<br />●XSSD-2:512GB-65536GB<br />系统盘的取值范围为:<br />●超高IO/高IO/极速型SSD/普通IO:40GB~2048GB<br />●XSSD-0:40GB-2048GB<br />●XSSD-1:40GB-2048GB<br />●XSSD-2:512GB-2048GB */
DiskID string `json:"diskID,omitempty"` /* 磁盘ID。您可以查看<a href="https://www.ctyun.cn/document/10027696/10027930">产品定义-云硬盘</a>来了解云硬盘 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=35&api=7338&data=48">云硬盘列表查询</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=35&api=7332&data=48&isNormal=1&vid=45">创建云硬盘</a> */
RegionID string `json:"regionID,omitempty"` /* 如本地语境支持保存regionID,那么建议传递。资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个ClientToken值,则代表为同一个请求。保留时间为24小时 */
}
type CtecsExtendVolumeV41Response ¶
type CtecsExtendVolumeV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为处理中或失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ErrorDetail *CtecsExtendVolumeV41ErrorDetailResponse `json:"errorDetail"` /* 错误明细。一般情况下,会对订单侧(bss)的云硬盘订单业务相关的错误做明确的错误映射和提升,有唯一对应的errorCode。<br />其他订单侧(bss)的错误,以Ebs.Order.ProcFailed的errorCode统一映射返回,并在errorDetail中返回订单侧的详细错误信息 */
ReturnObj *CtecsExtendVolumeV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsExtendVolumeV41ReturnObjResponse ¶
type CtecsExtendVolumeV41ReturnObjResponse struct {
MasterOrderID string `json:"masterOrderID,omitempty"` /* 订单ID。调用方在拿到masterOrderID之后,在若干错误情况下,可以使用masterOrderID进一步确认订单状态及资源状态 */
MasterOrderNO string `json:"masterOrderNO,omitempty"` /* 订单号 */
MasterResourceID string `json:"masterResourceID,omitempty"` /* 主资源ID。云硬盘场景下,无需关心 */
MasterResourceStatus string `json:"masterResourceStatus,omitempty"` /* 主资源状态。只有主订单资源会返回 */
}
type CtecsGetAffinityGroupV41Api ¶
type CtecsGetAffinityGroupV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsGetAffinityGroupV41Api ¶
func NewCtecsGetAffinityGroupV41Api(client *core.CtyunClient) *CtecsGetAffinityGroupV41Api
func (*CtecsGetAffinityGroupV41Api) Do ¶
func (a *CtecsGetAffinityGroupV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsGetAffinityGroupV41Request) (*CtecsGetAffinityGroupV41Response, error)
type CtecsGetAffinityGroupV41Request ¶
type CtecsGetAffinityGroupV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
}
type CtecsGetAffinityGroupV41Response ¶
type CtecsGetAffinityGroupV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsGetAffinityGroupV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsGetCaAgentApi ¶
type CtecsGetCaAgentApi struct {
// contains filtered or unexported fields
}
func NewCtecsGetCaAgentApi ¶
func NewCtecsGetCaAgentApi(client *core.CtyunClient) *CtecsGetCaAgentApi
func (*CtecsGetCaAgentApi) Do ¶
func (a *CtecsGetCaAgentApi) Do(ctx context.Context, credential core.Credential, req *CtecsGetCaAgentRequest) (*CtecsGetCaAgentResponse, error)
type CtecsGetCaAgentRequest ¶
type CtecsGetCaAgentRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
InstanceIDs string `json:"instanceIDs,omitempty"` /* 待执行命令的云主机、物理机ID列表, 使用英文 , 分割 */
PageNo int32 `json:"pageNo,omitempty"` /* 当前页码,默认值为1 */
PageSize int32 `json:"pageSize,omitempty"` /* 分页查询时设置的每页行数,最大值为100,默认为10 */
}
type CtecsGetCaAgentResponse ¶
type CtecsGetCaAgentResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800 为成功,900 为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,详见错误码说明 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsGetCaAgentReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsGetCaAgentReturnObjCaAgentStatusSetResponse ¶
type CtecsGetCaAgentReturnObjCaAgentStatusSetResponse struct {
Status string `json:"status,omitempty"` /* agent当前状态,取值范围:<br />Error:异常;<br />Running:运行中; */
AgentName string `json:"agentName,omitempty"` /* agent名称 */
Version string `json:"version,omitempty"` /* 版本 */
InstanceID string `json:"instanceID,omitempty"` /* 实例ID */
}
type CtecsGetCaAgentReturnObjResponse ¶
type CtecsGetCaAgentReturnObjResponse struct {
CaAgentStatusSet []*CtecsGetCaAgentReturnObjCaAgentStatusSetResponse `json:"caAgentStatusSet"` /* 状态列表 */
TotalCount int32 `json:"totalCount,omitempty"` /* 命令总个数 */
PageNo int32 `json:"pageNo,omitempty"` /* 当前页码 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页行数 */
}
type CtecsGetCommandApi ¶
type CtecsGetCommandApi struct {
// contains filtered or unexported fields
}
func NewCtecsGetCommandApi ¶
func NewCtecsGetCommandApi(client *core.CtyunClient) *CtecsGetCommandApi
func (*CtecsGetCommandApi) Do ¶
func (a *CtecsGetCommandApi) Do(ctx context.Context, credential core.Credential, req *CtecsGetCommandRequest) (*CtecsGetCommandResponse, error)
type CtecsGetCommandRequest ¶
type CtecsGetCommandResponse ¶
type CtecsGetCommandResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800 为成功,900 为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,详见错误码说明 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsGetCommandReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsGetCommandReturnObjResponse ¶
type CtecsGetCommandReturnObjResponse struct {
CommandID string `json:"commandID,omitempty"` /* 命令ID */
CommandName string `json:"commandName,omitempty"` /* 命令名称 */
Description string `json:"description,omitempty"` /* 命令描述 */
CommandType string `json:"commandType,omitempty"` /* 命令类型 */
CommandContent string `json:"commandContent,omitempty"` /* 命令内容明文 */
WorkingDirectory string `json:"workingDirectory,omitempty"` /* 命令在实例中的运行目录 */
Timeout int32 `json:"timeout,omitempty"` /* 命令超时时间 */
IsPublic *bool `json:"isPublic"` /* 是否是公共市场命令 */
Version string `json:"version,omitempty"` /* 公共市场命令的版本,仅公共市场命令有该字段 */
Owner string `json:"owner,omitempty"` /* 公共市场命令的提供者,仅公共市场命令有该字段 */
EnabledParameter *bool `json:"enabledParameter"` /* 是否使能自定义参数 */
DefaultParameter string `json:"defaultParameter,omitempty"` /* 自定义参数默认值 */
CreateTime string `json:"createTime,omitempty"` /* 创建时间 */
UpdateTime string `json:"updateTime,omitempty"` /* 更新时间 */
}
type CtecsGetCommandsApi ¶
type CtecsGetCommandsApi struct {
// contains filtered or unexported fields
}
func NewCtecsGetCommandsApi ¶
func NewCtecsGetCommandsApi(client *core.CtyunClient) *CtecsGetCommandsApi
func (*CtecsGetCommandsApi) Do ¶
func (a *CtecsGetCommandsApi) Do(ctx context.Context, credential core.Credential, req *CtecsGetCommandsRequest) (*CtecsGetCommandsResponse, error)
type CtecsGetCommandsRequest ¶
type CtecsGetCommandsRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
Filters []*CtecsGetCommandsFiltersRequest `json:"filters"` /* 过滤条件,json形式数组 */
IsPublic *bool `json:"isPublic"` /* 是否为公共市场命令 */
PageNo int32 `json:"pageNo,omitempty"` /* 当前页码,默认值为1 */
PageSize int32 `json:"pageSize,omitempty"` /* 分页查询时设置的每页行数,最大值为100,默认为10 */
}
type CtecsGetCommandsResponse ¶
type CtecsGetCommandsResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800 为成功,900 为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,详见错误码说明 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsGetCommandsReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsGetCommandsReturnObjCommandsResponse ¶
type CtecsGetCommandsReturnObjCommandsResponse struct {
CommandID string `json:"commandID,omitempty"` /* 命令ID */
CommandName string `json:"commandName,omitempty"` /* 命令名称 */
Description string `json:"description,omitempty"` /* 命令描述 */
CommandType string `json:"commandType,omitempty"` /* 命令类型 */
CommandContent string `json:"commandContent,omitempty"` /* 命令内容 */
WorkingDirectory string `json:"workingDirectory,omitempty"` /* 命令在实例中的运行目录 */
Timeout int32 `json:"timeout,omitempty"` /* 命令超时时间 */
IsPublic *bool `json:"isPublic"` /* 是否是公共市场命令 */
Version string `json:"version,omitempty"` /* 公共市场命令的版本,仅公共市场命令有该字段 */
Owner string `json:"owner,omitempty"` /* 公共市场命令的提供者,仅公共市场命令有该字段 */
EnabledParameter *bool `json:"enabledParameter"` /* 是否使能自定义参数 */
DefaultParameter string `json:"defaultParameter,omitempty"` /* 自定义参数默认值 */
CreateTime string `json:"createTime,omitempty"` /* 创建时间 */
UpdateTime string `json:"updateTime,omitempty"` /* 更新时间 */
}
type CtecsGetCommandsReturnObjResponse ¶
type CtecsGetCommandsReturnObjResponse struct {
PageNo int32 `json:"pageNo,omitempty"` /* 当前页码 */
TotalCount int32 `json:"totalCount,omitempty"` /* 命令总个数 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页行数 */
Commands []*CtecsGetCommandsReturnObjCommandsResponse `json:"commands"` /* 命令列表 */
}
type CtecsGetEcsFlavorsApi ¶
type CtecsGetEcsFlavorsApi struct {
// contains filtered or unexported fields
}
func NewCtecsGetEcsFlavorsApi ¶
func NewCtecsGetEcsFlavorsApi(client *core.CtyunClient) *CtecsGetEcsFlavorsApi
func (*CtecsGetEcsFlavorsApi) Do ¶
func (a *CtecsGetEcsFlavorsApi) Do(ctx context.Context, credential core.Credential, req *CtecsGetEcsFlavorsRequest) (*CtecsGetEcsFlavorsResponse, error)
type CtecsGetEcsFlavorsResponse ¶
type CtecsGetEcsFlavorsResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 具体错误码标志 */
Message string `json:"message,omitempty"` /* 失败时的错误信息 */
Description string `json:"description,omitempty"` /* 失败时的错误描述 */
ReturnObj *CtecsGetEcsFlavorsReturnObjResponse `json:"returnObj"` /* 返回对象,成功时返回的数据 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码。请求成功时不返回该字段 */
}
type CtecsGetEcsFlavorsReturnObjResponse ¶
type CtecsGetEcsFlavorsReturnObjResponse struct {
TotalCount int32 `json:"totalCount,omitempty"` /* 总条数 */
Results []*CtecsGetEcsFlavorsReturnObjResultsResponse `json:"results"` /* 规格列表 */
}
type CtecsGetEcsFlavorsReturnObjResultsResponse ¶
type CtecsGetEcsFlavorsReturnObjResultsResponse struct {
FlavorID string `json:"flavorID,omitempty"` /* 规格id */
SpecName string `json:"specName,omitempty"` /* 规格名称 */
FlavorType string `json:"flavorType,omitempty"` /* 规格类型 */
FlavorName string `json:"flavorName,omitempty"` /* 规格类型名称 */
CpuNum int32 `json:"cpuNum,omitempty"` /* cpu核数 */
MemSize int32 `json:"memSize,omitempty"` /* 内存大小 */
MultiQueue int32 `json:"multiQueue,omitempty"` /* 网卡多队列数 */
Pps int32 `json:"pps,omitempty"` /* 网络最大收发包能力 (万PPS) */
BandwidthBase float64 `json:"bandwidthBase"` /* 基准带宽 (Gbps) */
BandwidthMax float64 `json:"bandwidthMax"` /* 最大带宽 (Gbps) */
CpuArch string `json:"cpuArch,omitempty"` /* cpu架构 (x86架构、arm架构) */
Series string `json:"series,omitempty"` /* 系列 */
AzList []string `json:"azList"` /* 支持的az名称列表(4.0场景)(未传azName情况) */
NicCount int32 `json:"nicCount,omitempty"` /* 当前规格主机最大可挂载网卡数 (cpu类型的会返回,其他类型没有,且非必返回字段) */
CtLimitCount int32 `json:"ctLimitCount,omitempty"` /* 最大连接数 (cpu类型的会返回,其他类型没有,且非必返回字段) */
}
type CtecsGetVolumeStatisticsV41Api ¶
type CtecsGetVolumeStatisticsV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsGetVolumeStatisticsV41Api ¶
func NewCtecsGetVolumeStatisticsV41Api(client *core.CtyunClient) *CtecsGetVolumeStatisticsV41Api
func (*CtecsGetVolumeStatisticsV41Api) Do ¶
func (a *CtecsGetVolumeStatisticsV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsGetVolumeStatisticsV41Request) (*CtecsGetVolumeStatisticsV41Response, error)
type CtecsGetVolumeStatisticsV41Request ¶
type CtecsGetVolumeStatisticsV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
ProjectID string /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目 */
}
type CtecsGetVolumeStatisticsV41Response ¶
type CtecsGetVolumeStatisticsV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsGetVolumeStatisticsV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsGetVolumeStatisticsV41ReturnObjResponse ¶
type CtecsGetVolumeStatisticsV41ReturnObjResponse struct {
VolumeStatistics *CtecsGetVolumeStatisticsV41ReturnObjVolumeStatisticsResponse `json:"volumeStatistics"` /* 统计明细 */
}
type CtecsGetVolumeStatisticsV41ReturnObjVolumeStatisticsResponse ¶
type CtecsGetVolumeStatisticsV41ReturnObjVolumeStatisticsResponse struct {
TotalCount int32 `json:"totalCount,omitempty"` /* 云硬盘总数 */
RootDiskCount int32 `json:"rootDiskCount,omitempty"` /* 系统盘数量 */
DataDiskCount int32 `json:"dataDiskCount,omitempty"` /* 数据盘数量 */
TotalSize int32 `json:"totalSize,omitempty"` /* 云硬盘总大小,单位为GB */
RootDiskSize int32 `json:"rootDiskSize,omitempty"` /* 系统盘大小,单位为GB */
DataDiskSize int32 `json:"dataDiskSize,omitempty"` /* 数据盘大小,单位为GB */
}
type CtecsImportKeypairV41Api ¶
type CtecsImportKeypairV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsImportKeypairV41Api ¶
func NewCtecsImportKeypairV41Api(client *core.CtyunClient) *CtecsImportKeypairV41Api
func (*CtecsImportKeypairV41Api) Do ¶
func (a *CtecsImportKeypairV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsImportKeypairV41Request) (*CtecsImportKeypairV41Response, error)
type CtecsImportKeypairV41Request ¶
type CtecsImportKeypairV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
KeyPairName string `json:"keyPairName,omitempty"` /* 密钥对名称。满足以下规则:只能由数字、字母、-组成,不能以数字和-开头、以-结尾,且长度为2-63字符 */
PublicKey string `json:"publicKey,omitempty"` /* 导入的公钥信息。最多支持1024字符长度(包括1024字符)的公钥导入;仅支持RSA类型的密钥 */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目<br />注:默认值为"0" */
}
type CtecsImportKeypairV41Response ¶
type CtecsImportKeypairV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsImportKeypairV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsInstanceAttachSfsV41Api ¶
type CtecsInstanceAttachSfsV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsInstanceAttachSfsV41Api ¶
func NewCtecsInstanceAttachSfsV41Api(client *core.CtyunClient) *CtecsInstanceAttachSfsV41Api
func (*CtecsInstanceAttachSfsV41Api) Do ¶
func (a *CtecsInstanceAttachSfsV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsInstanceAttachSfsV41Request) (*CtecsInstanceAttachSfsV41Response, error)
type CtecsInstanceAttachSfsV41Request ¶
type CtecsInstanceAttachSfsV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
SysInfoList []*CtecsInstanceAttachSfsV41SysInfoListRequest `json:"sysInfoList"` /* 所绑定的文件系统详细信息 */
}
type CtecsInstanceAttachSfsV41Response ¶
type CtecsInstanceAttachSfsV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsInstanceAttachSfsV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsInstanceAttachSfsV41ReturnObjResponse ¶
type CtecsInstanceAttachSfsV41ReturnObjResponse struct {
JobID string `json:"jobID,omitempty"` /* 任务ID */
}
type CtecsInstanceAttachSfsV41SysInfoListRequest ¶
type CtecsInstanceAttachSfsV41SysInfoListRequest struct {
FileSysID string `json:"fileSysID,omitempty"` /* 文件系统id */
FileSysRoute string `json:"fileSysRoute,omitempty"` /* 文件系统地址(固定值,每一个文件都有相对应的文件系统地址) */
MountPoint string `json:"mountPoint,omitempty"` /* 挂载点,即:本地挂载路径(云主机上用于挂载文件系统的本地路径)<br />linux镜像云主机使用限制:<br />1、单目录的长度不超过255个字符,总长度不能超过4095个字符; <br />2、必须以/开头,由数字,字母,点,下划线,减号组成,通过/(斜杠)分割<br />3、不能是系统路径:/, /bin, /usr, /boot, /dev, /etc, /lib, /lib64, /proc, /run, /sys, /var,/tmp,/sbin<br />推荐在/mnt下新建本地路径作为挂载路径,如:/mnt/docs. <br />windows镜像云主机实用限制:<br />只能输入E~Z(大写)内的单个字母作为盘符 */
Option string `json:"option,omitempty"` /* 挂载参数:<br />linux云主机对应两个挂载参数(vers表示文件系统版本,可选3和4,建议取值3)vers=3,async,nolock,noatime,nodiratime,wsize=1048576,rsize=1048576,timeo=600 vers=4,async,nolock,noatime,nodiratime,wsize=1048576,rsize=1048576,timeo=600<br />windows云主机对应一个挂载参数:net use<br />注:<br />当linux云主机的协议类型选择NFSv3时,对应的option为vers3,当其协议类型选择NFSv4时,option应选vers4(即 protocol和option为对应关系)<br />windows云主机的协议类型CIFS,对应的option为:net use */
AutoMount *bool `json:"autoMount"` /* 是否开机自动挂载(true/false),<br />当云主机重启时会自动挂载文件系统,默认为false */
Protocol string `json:"protocol,omitempty"` /* 文件协议类型,linux协议类型为:NFSv3、NFSv4,<br />windows协议类型为:CIFS */
}
type CtecsInstanceAttachShareInterfaceV41Api ¶
type CtecsInstanceAttachShareInterfaceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsInstanceAttachShareInterfaceV41Api ¶
func NewCtecsInstanceAttachShareInterfaceV41Api(client *core.CtyunClient) *CtecsInstanceAttachShareInterfaceV41Api
func (*CtecsInstanceAttachShareInterfaceV41Api) Do ¶
func (a *CtecsInstanceAttachShareInterfaceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsInstanceAttachShareInterfaceV41Request) (*CtecsInstanceAttachShareInterfaceV41Response, error)
type CtecsInstanceAttachShareInterfaceV41Request ¶
type CtecsInstanceAttachShareInterfaceV41Request struct {
}
type CtecsInstanceAttachShareInterfaceV41Response ¶
type CtecsInstanceAttachShareInterfaceV41Response struct {
}
type CtecsInstanceAttachShareInterfaceV41ReturnObjResponse ¶
type CtecsInstanceAttachShareInterfaceV41ReturnObjResponse struct {
}
type CtecsInstanceBackupPolicyBindInstancesApi ¶
type CtecsInstanceBackupPolicyBindInstancesApi struct {
// contains filtered or unexported fields
}
func NewCtecsInstanceBackupPolicyBindInstancesApi ¶
func NewCtecsInstanceBackupPolicyBindInstancesApi(client *core.CtyunClient) *CtecsInstanceBackupPolicyBindInstancesApi
func (*CtecsInstanceBackupPolicyBindInstancesApi) Do ¶
func (a *CtecsInstanceBackupPolicyBindInstancesApi) Do(ctx context.Context, credential core.Credential, req *CtecsInstanceBackupPolicyBindInstancesRequest) (*CtecsInstanceBackupPolicyBindInstancesResponse, error)
type CtecsInstanceBackupPolicyBindInstancesRequest ¶
type CtecsInstanceBackupPolicyBindInstancesRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
PolicyID string `json:"policyID,omitempty"` /* 云主机备份策略ID,32字节<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=14&api=6924&data=100">查询云主机备份策略列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=14&api=6914&data=100">创建云主机备份策略</a> */
InstanceIDList string `json:"instanceIDList,omitempty"` /* 云主机ID列表,多台使用英文逗号分割,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
}
type CtecsInstanceBackupPolicyBindInstancesResponse ¶
type CtecsInstanceBackupPolicyBindInstancesResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败)。 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsInstanceBackupPolicyBindInstancesReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsInstanceBackupPolicyBindRepoApi ¶
type CtecsInstanceBackupPolicyBindRepoApi struct {
// contains filtered or unexported fields
}
func NewCtecsInstanceBackupPolicyBindRepoApi ¶
func NewCtecsInstanceBackupPolicyBindRepoApi(client *core.CtyunClient) *CtecsInstanceBackupPolicyBindRepoApi
func (*CtecsInstanceBackupPolicyBindRepoApi) Do ¶
func (a *CtecsInstanceBackupPolicyBindRepoApi) Do(ctx context.Context, credential core.Credential, req *CtecsInstanceBackupPolicyBindRepoRequest) (*CtecsInstanceBackupPolicyBindRepoResponse, error)
type CtecsInstanceBackupPolicyBindRepoRequest ¶
type CtecsInstanceBackupPolicyBindRepoRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
RepositoryID string `json:"repositoryID,omitempty"` /* 云主机备份存储库ID,您可以查看<a href="https://www.ctyun.cn/document/10026751/10033742">产品定义-存储库</a>来了解存储库<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=6909&data=87&isNormal=1&vid=81">查询存储库列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=6910&data=87&isNormal=1&vid=81">创建存储库</a> */
PolicyID string `json:"policyID,omitempty"` /* 云主机备份策略ID,32字节<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=6924&data=87&isNormal=1&vid=81">查询云主机备份策略列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=6914&data=87&isNormal=1&vid=81">创建云主机备份策略</a> */
}
type CtecsInstanceBackupPolicyBindRepoResponse ¶
type CtecsInstanceBackupPolicyBindRepoResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800 为成功,900 为失败)。 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsInstanceBackupPolicyBindRepoReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsInstanceBackupPolicyUnbindInstancesApi ¶
type CtecsInstanceBackupPolicyUnbindInstancesApi struct {
// contains filtered or unexported fields
}
func NewCtecsInstanceBackupPolicyUnbindInstancesApi ¶
func NewCtecsInstanceBackupPolicyUnbindInstancesApi(client *core.CtyunClient) *CtecsInstanceBackupPolicyUnbindInstancesApi
func (*CtecsInstanceBackupPolicyUnbindInstancesApi) Do ¶
func (a *CtecsInstanceBackupPolicyUnbindInstancesApi) Do(ctx context.Context, credential core.Credential, req *CtecsInstanceBackupPolicyUnbindInstancesRequest) (*CtecsInstanceBackupPolicyUnbindInstancesResponse, error)
type CtecsInstanceBackupPolicyUnbindInstancesRequest ¶
type CtecsInstanceBackupPolicyUnbindInstancesRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
PolicyID string `json:"policyID,omitempty"` /* 云主机备份策略ID,32字节<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=6924&data=87&isNormal=1&vid=81">查询云主机备份策略列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=6914&data=87&isNormal=1&vid=81">创建云主机备份策略</a> */
InstanceIDList string `json:"instanceIDList,omitempty"` /* 云主机ID列表,多台使用英文逗号分割,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
}
type CtecsInstanceBackupPolicyUnbindInstancesResponse ¶
type CtecsInstanceBackupPolicyUnbindInstancesResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsInstanceBackupPolicyUnbindInstancesReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsInstanceBackupPolicyUnbindRepoApi ¶
type CtecsInstanceBackupPolicyUnbindRepoApi struct {
// contains filtered or unexported fields
}
func NewCtecsInstanceBackupPolicyUnbindRepoApi ¶
func NewCtecsInstanceBackupPolicyUnbindRepoApi(client *core.CtyunClient) *CtecsInstanceBackupPolicyUnbindRepoApi
func (*CtecsInstanceBackupPolicyUnbindRepoApi) Do ¶
func (a *CtecsInstanceBackupPolicyUnbindRepoApi) Do(ctx context.Context, credential core.Credential, req *CtecsInstanceBackupPolicyUnbindRepoRequest) (*CtecsInstanceBackupPolicyUnbindRepoResponse, error)
type CtecsInstanceBackupPolicyUnbindRepoRequest ¶
type CtecsInstanceBackupPolicyUnbindRepoRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
PolicyID string `json:"policyID,omitempty"` /* 云主机备份策略ID,32字节<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=6924&data=87&isNormal=1&vid=81">查询云主机备份策略列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=6914&data=87&isNormal=1&vid=81">创建云主机备份策略</a> */
}
type CtecsInstanceBackupPolicyUnbindRepoResponse ¶
type CtecsInstanceBackupPolicyUnbindRepoResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800 为成功,900 为失败)。 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsInstanceBackupPolicyUnbindRepoReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsInstanceBackupPolicyUnbindRepoReturnObjResponse ¶
type CtecsInstanceBackupPolicyUnbindRepoReturnObjResponse struct {
PolicyID string `json:"policyID,omitempty"` /* 云主机备份策略ID */
}
type CtecsInstanceDetachKeypairV41Api ¶
type CtecsInstanceDetachKeypairV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsInstanceDetachKeypairV41Api ¶
func NewCtecsInstanceDetachKeypairV41Api(client *core.CtyunClient) *CtecsInstanceDetachKeypairV41Api
func (*CtecsInstanceDetachKeypairV41Api) Do ¶
func (a *CtecsInstanceDetachKeypairV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsInstanceDetachKeypairV41Request) (*CtecsInstanceDetachKeypairV41Response, error)
type CtecsInstanceDetachKeypairV41Request ¶
type CtecsInstanceDetachKeypairV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
KeyPairName string `json:"keyPairName,omitempty"` /* 密钥对名称。满足以下规则:只能由数字、字母、-组成,不能以数字和-开头、以-结尾,且长度为2-63字符 */
}
type CtecsInstanceDetachKeypairV41Response ¶
type CtecsInstanceDetachKeypairV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsInstanceDetachKeypairV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsInstanceDetachKeypairV41ReturnObjResponse ¶
type CtecsInstanceDetachKeypairV41ReturnObjResponse struct {
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
}
type CtecsInstanceDetachSfsV41Api ¶
type CtecsInstanceDetachSfsV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsInstanceDetachSfsV41Api ¶
func NewCtecsInstanceDetachSfsV41Api(client *core.CtyunClient) *CtecsInstanceDetachSfsV41Api
func (*CtecsInstanceDetachSfsV41Api) Do ¶
func (a *CtecsInstanceDetachSfsV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsInstanceDetachSfsV41Request) (*CtecsInstanceDetachSfsV41Response, error)
type CtecsInstanceDetachSfsV41Request ¶
type CtecsInstanceDetachSfsV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
SysInfoList []*CtecsInstanceDetachSfsV41SysInfoListRequest `json:"sysInfoList"` /* 所解绑的文件系统详细信息 */
ForceDel *bool `json:"forceDel"` /* 是否强制解绑 (true/false),默认非强制 */
}
type CtecsInstanceDetachSfsV41Response ¶
type CtecsInstanceDetachSfsV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsInstanceDetachSfsV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsInstanceDetachSfsV41ReturnObjResponse ¶
type CtecsInstanceDetachSfsV41ReturnObjResponse struct {
JobID string `json:"jobID,omitempty"` /* 任务ID */
}
type CtecsInvokeCommandApi ¶
type CtecsInvokeCommandApi struct {
// contains filtered or unexported fields
}
func NewCtecsInvokeCommandApi ¶
func NewCtecsInvokeCommandApi(client *core.CtyunClient) *CtecsInvokeCommandApi
func (*CtecsInvokeCommandApi) Do ¶
func (a *CtecsInvokeCommandApi) Do(ctx context.Context, credential core.Credential, req *CtecsInvokeCommandRequest) (*CtecsInvokeCommandResponse, error)
type CtecsInvokeCommandParameterRequest ¶
type CtecsInvokeCommandParameterRequest struct{}
type CtecsInvokeCommandRequest ¶
type CtecsInvokeCommandRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
InstanceIDs string `json:"instanceIDs,omitempty"` /* 待执行命令的云主机、物理机ID列表, 使用英文, 分割 */
CommandID string `json:"commandID,omitempty"` /* 命令ID */
Timeout int32 `json:"timeout,omitempty"` /* 执行命令的超时时间 */
WorkingDirectory string `json:"workingDirectory,omitempty"` /* 命令在云主机中运行目录。说明:若在Windows系统云主机下执行Python命令,需传Python安装全路径 */
Parameter *CtecsInvokeCommandParameterRequest `json:"parameter"` /* 自定义参数,说明:key仅支持大小写字母(A-a)、数字(0-9)、横线(-)和下划线(_),key和value均只支持string */
}
type CtecsInvokeCommandResponse ¶
type CtecsInvokeCommandResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800 为成功,900 为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,详见错误码说明 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsInvokeCommandReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsInvokeCommandReturnObjResponse ¶
type CtecsInvokeCommandReturnObjResponse struct {
InvokedID string `json:"invokedID,omitempty"` /* 命令执行ID */
}
type CtecsKeypairAttachInstanceV41Api ¶
type CtecsKeypairAttachInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsKeypairAttachInstanceV41Api ¶
func NewCtecsKeypairAttachInstanceV41Api(client *core.CtyunClient) *CtecsKeypairAttachInstanceV41Api
func (*CtecsKeypairAttachInstanceV41Api) Do ¶
func (a *CtecsKeypairAttachInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsKeypairAttachInstanceV41Request) (*CtecsKeypairAttachInstanceV41Response, error)
type CtecsKeypairAttachInstanceV41Request ¶
type CtecsKeypairAttachInstanceV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
KeyPairName string `json:"keyPairName,omitempty"` /* 密钥对名称。满足以下规则:只能由数字、字母、-组成,不能以数字和-开头、以-结尾,且长度为2-63字符 */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
}
type CtecsKeypairAttachInstanceV41Response ¶
type CtecsKeypairAttachInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为处理中或失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsKeypairAttachInstanceV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsKeypairAttachInstanceV41ReturnObjResponse ¶
type CtecsKeypairAttachInstanceV41ReturnObjResponse struct {
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
}
type CtecsListAffinityGroupInstanceV41Api ¶
type CtecsListAffinityGroupInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsListAffinityGroupInstanceV41Api ¶
func NewCtecsListAffinityGroupInstanceV41Api(client *core.CtyunClient) *CtecsListAffinityGroupInstanceV41Api
func (*CtecsListAffinityGroupInstanceV41Api) Do ¶
func (a *CtecsListAffinityGroupInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsListAffinityGroupInstanceV41Request) (*CtecsListAffinityGroupInstanceV41Response, error)
type CtecsListAffinityGroupInstanceV41Request ¶
type CtecsListAffinityGroupInstanceV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
AffinityGroupID string `json:"affinityGroupID,omitempty"` /* 云主机组ID,获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8324&data=87">查询云主机组列表或者详情</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8316&data=87">创建云主机组</a><br /> */
PageNo int32 `json:"pageNo,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目,取值范围:[1, 50],注:默认值为10 */
}
type CtecsListAffinityGroupInstanceV41Response ¶
type CtecsListAffinityGroupInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsListAffinityGroupInstanceV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsListAffinityGroupInstanceV41ReturnObjResponse ¶
type CtecsListAffinityGroupInstanceV41ReturnObjResponse struct {
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
Results []*CtecsListAffinityGroupInstanceV41ReturnObjResultsResponse `json:"results"` /* 分页明细 */
}
type CtecsListAffinityGroupInstanceV41ReturnObjResultsAddressesResponse ¶
type CtecsListAffinityGroupInstanceV41ReturnObjResultsAddressesResponse struct {
VpcName string `json:"vpcName,omitempty"` /* vpc名称 */
AddressList []*CtecsListAffinityGroupInstanceV41ReturnObjResultsAddressesAddressListResponse `json:"addressList"` /* 网络地址列表 */
}
type CtecsListAffinityGroupInstanceV41ReturnObjResultsAffinityGroupResponse ¶
type CtecsListAffinityGroupInstanceV41ReturnObjResultsAffinityGroupResponse struct {
AffinityGroupPolicy string `json:"affinityGroupPolicy,omitempty"` /* 云主机组策略 */
AffinityGroupName string `json:"affinityGroupName,omitempty"` /* 云主机组名称,满足以下规则:长度在2~63个字符,只能由数字、英文字母、中划线-、下划线_、点.组成 */
AffinityGroupID string `json:"affinityGroupID,omitempty"` /* 云主机组ID,获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8324&data=87">查询云主机组列表或者详情</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8316&data=87">创建云主机组</a><br /> */
}
type CtecsListAffinityGroupInstanceV41ReturnObjResultsFlavorResponse ¶
type CtecsListAffinityGroupInstanceV41ReturnObjResultsFlavorResponse struct {
FlavorID string `json:"flavorID,omitempty"` /* 云主机规格ID,您可以调用<a href="https://www.ctyun.cn/document/10026730/10118193">规格说明</a>了解弹性云主机的选型基本信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8327&data=87">查询一个或多个云主机规格资源</a><br /> */
FlavorName string `json:"flavorName,omitempty"` /* 规格名称 */
FlavorCPU int32 `json:"flavorCPU,omitempty"` /* VCPU数量 */
FlavorRAM int32 `json:"flavorRAM,omitempty"` /* 内存大小,单位为GB */
GpuType string `json:"gpuType,omitempty"` /* GPU类型,取值范围:T4、V100、V100S、A10、A100、atlas 300i pro、mlu370-s4,支持类型会随着功能升级增加 */
GpuCount int32 `json:"gpuCount,omitempty"` /* GPU数目 */
GpuVendor string `json:"gpuVendor,omitempty"` /* GPU名称 */
VideoMemSize int32 `json:"videoMemSize,omitempty"` /* 显存大小 */
}
type CtecsListAffinityGroupInstanceV41ReturnObjResultsImageResponse ¶
type CtecsListAffinityGroupInstanceV41ReturnObjResultsImageResponse struct {
ImageID string `json:"imageID,omitempty"` /* 镜像ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10030151">镜像概述</a>来了解云主机镜像<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=23&api=4763&data=89">查询可以使用的镜像资源</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=23&api=4765&data=89">创建私有镜像(云主机系统盘)</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=23&api=5230&data=89">创建私有镜像(云主机数据盘)</a> */
ImageName string `json:"imageName,omitempty"` /* 镜像名称 */
}
type CtecsListAffinityGroupInstanceV41ReturnObjResultsNetworkCardListResponse ¶
type CtecsListAffinityGroupInstanceV41ReturnObjResultsNetworkCardListResponse struct {
IPv4Address string `json:"IPv4Address,omitempty"` /* IPv4地址 */
IPv6Address []string `json:"IPv6Address"` /* IPv6地址列表 */
SubnetID string `json:"subnetID,omitempty"` /* 子网ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028310">产品定义-子网</a>来了解子网<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=8659&data=94">查询子网列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4812&data=94">创建子网</a> */
SubnetCidr string `json:"subnetCidr,omitempty"` /* 子网网段信息 */
IsMaster *bool `json:"isMaster"` /* 是否主网卡,取值范围:<br />true:表示主网卡,<br />false:表示扩展网卡<br />注:只能含有一个主网卡 */
Gateway string `json:"gateway,omitempty"` /* 网关地址 */
NetworkCardID string `json:"networkCardID,omitempty"` /* 网卡ID */
SecurityGroup []string `json:"securityGroup"` /* 安全组ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>了解安全组相关信息 <br />获取: <br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4817&data=94">查询用户安全组列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4821&data=94">创建安全组</a> */
}
type CtecsListAffinityGroupInstanceV41ReturnObjResultsResponse ¶
type CtecsListAffinityGroupInstanceV41ReturnObjResultsResponse struct {
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目 */
AzName string `json:"azName,omitempty"` /* 可用区名称,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解可用区 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5855&data=87">资源池可用区查询</a><br />注:查询结果中zoneList内返回存在可用区名称(即多可用区,本字段填写实际可用区名称),若查询结果中zoneList为空(即为单可用区,本字段填写default) */
AttachedVolume []string `json:"attachedVolume"` /* 云主机挂载的云硬盘列表 */
Addresses []*CtecsListAffinityGroupInstanceV41ReturnObjResultsAddressesResponse `json:"addresses"` /* 网络地址信息 */
ResourceID string `json:"resourceID,omitempty"` /* 资源ID,非资源的UUID,该ID为订单的资源ID(创建云主机接口为异步接口,订单先返回一个该资源ID方便后续查找)<br />获取:<br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
DisplayName string `json:"displayName,omitempty"` /* 云主机显示名称,长度为2-63字符 */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称,不同操作系统下,云主机名称规则有差异<br />Windows:长度为2~15个字符,允许使用大小写字母、数字或连字符(-)。不能以连字符(-)开头或结尾,不能连续使用连字符(-),也不能仅使用数字;<br />其他操作系统:长度为2-64字符,允许使用点(.)分隔字符成多段,每段允许使用大小写字母、数字或连字符(-),但不能连续使用点号(.)或连字符(-),不能以点号(.)或连字符(-)开头或结尾 */
OsType int32 `json:"osType,omitempty"` /* 操作系统类型,详见枚举值表格 */
InstanceStatus string `json:"instanceStatus,omitempty"` /* 云主机状态,请通过<a href="https://www.ctyun.cn/document/10026730/10741614">状态枚举值</a>查看云主机使用状态 */
ExpiredTime string `json:"expiredTime,omitempty"` /* 到期时间 */
AvailableDay int32 `json:"availableDay,omitempty"` /* 可用(天) */
UpdatedTime string `json:"updatedTime,omitempty"` /* 更新时间 */
CreatedTime string `json:"createdTime,omitempty"` /* 创建时间 */
ZabbixName string `json:"zabbixName,omitempty"` /* 监控对象名称 */
SecGroupList []*CtecsListAffinityGroupInstanceV41ReturnObjResultsSecGroupListResponse `json:"secGroupList"` /* 安全组ID列表,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>了解安全组相关信息 <br />获取: <br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4817&data=94">查询用户安全组列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4821&data=94">创建安全组</a><br />注:在多可用区类型资源池下,安全组ID通常以“sg-”开头,非多可用区类型资源池安全组ID为uuid格式 */
PrivateIP string `json:"privateIP,omitempty"` /* 内网IPv4地址 */
PrivateIPv6 string `json:"privateIPv6,omitempty"` /* 内网IPv6址 */
NetworkCardList []*CtecsListAffinityGroupInstanceV41ReturnObjResultsNetworkCardListResponse `json:"networkCardList"` /* 网卡信息列表,您可以查看<a href="https://www.ctyun.cn/document/10026730/10225195">弹性网卡概述</a>了解弹性网卡相关信息 */
VipInfoList []*CtecsListAffinityGroupInstanceV41ReturnObjResultsVipInfoListResponse `json:"vipInfoList"` /* 虚拟IP信息列表 */
VipCount int32 `json:"vipCount,omitempty"` /* vip数目 */
AffinityGroup *CtecsListAffinityGroupInstanceV41ReturnObjResultsAffinityGroupResponse `json:"affinityGroup"` /* 云主机组信息 */
Image *CtecsListAffinityGroupInstanceV41ReturnObjResultsImageResponse `json:"image"` /* 镜像信息 */
Flavor *CtecsListAffinityGroupInstanceV41ReturnObjResultsFlavorResponse `json:"flavor"` /* 规格信息 */
OnDemand *bool `json:"onDemand"` /* 购买方式,取值范围:<br />false:按周期,<br />true:按需<br />您可以查看<a href="https://www.ctyun.cn/document/10026730/10030877">计费模式</a>了解云主机的计费模式<br />注:按周期(false)创建云主机需要同时指定cycleCount和cycleType参数 */
VpcName string `json:"vpcName,omitempty"` /* vpc名称 */
VpcID string `json:"vpcID,omitempty"` /* 虚拟私有云ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028310">产品定义-虚拟私有云</a>来了解虚拟私有云<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4814&data=94">查询VPC列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4811&data=94">创建VPC</a><br />注:在多可用区类型资源池下,vpcID通常以“vpc-”开头,非多可用区类型资源池vpcID为uuid格式 */
FixedIPList []string `json:"fixedIPList"` /* 内网IP */
FloatingIP string `json:"floatingIP,omitempty"` /* 公网IP */
SubnetIDList []string `json:"subnetIDList"` /* 子网ID列表 */
KeypairName string `json:"keypairName,omitempty"` /* 密钥对名称。满足以下规则:只能由数字、字母、-组成,不能以数字和-开头、以-结尾,且长度为2-63字符 */
}
type CtecsListAffinityGroupInstanceV41ReturnObjResultsSecGroupListResponse ¶
type CtecsListAffinityGroupInstanceV41ReturnObjResultsSecGroupListResponse struct {
SecurityGroupID string `json:"securityGroupID,omitempty"` /* 安全组ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>了解安全组相关信息 <br />获取: <br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4817&data=94">查询用户安全组列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4821&data=94">创建安全组</a> */
SecurityGroupName string `json:"securityGroupName,omitempty"` /* 安全组名称 */
}
type CtecsListAffinityGroupInstanceV41ReturnObjResultsVipInfoListResponse ¶
type CtecsListAffinityGroupInstanceV41ReturnObjResultsVipInfoListResponse struct {
VipID string `json:"vipID,omitempty"` /* 虚拟IP的ID */
VipAddress string `json:"vipAddress,omitempty"` /* 虚拟IP地址 */
VipBindNicIP string `json:"vipBindNicIP,omitempty"` /* 虚拟IP绑定的网卡对应IPv4地址 */
VipBindNicIPv6 string `json:"vipBindNicIPv6,omitempty"` /* 虚拟IP绑定的网卡对应IPv6地址 */
NicID string `json:"nicID,omitempty"` /* 网卡ID */
}
type CtecsListAffinityGroupV41Api ¶
type CtecsListAffinityGroupV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsListAffinityGroupV41Api ¶
func NewCtecsListAffinityGroupV41Api(client *core.CtyunClient) *CtecsListAffinityGroupV41Api
func (*CtecsListAffinityGroupV41Api) Do ¶
func (a *CtecsListAffinityGroupV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsListAffinityGroupV41Request) (*CtecsListAffinityGroupV41Response, error)
type CtecsListAffinityGroupV41Request ¶
type CtecsListAffinityGroupV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
AffinityGroupID string `json:"affinityGroupID,omitempty"` /* 云主机组ID,获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8324&data=87">查询云主机组列表或者详情</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8316&data=87">创建云主机组</a><br /> */
QueryContent string `json:"queryContent,omitempty"` /* 模糊匹配查询内容(匹配字段:affinityGroupID、affinityGroupName) */
PageNo int32 `json:"pageNo,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目,取值范围:[1, 50],注:默认值为10 */
}
type CtecsListAffinityGroupV41Response ¶
type CtecsListAffinityGroupV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsListAffinityGroupV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsListAffinityGroupV41ReturnObjResponse ¶
type CtecsListAffinityGroupV41ReturnObjResponse struct {
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
Results []*CtecsListAffinityGroupV41ReturnObjResultsResponse `json:"results"` /* 分页明细 */
}
type CtecsListAffinityGroupV41ReturnObjResultsAffinityGroupPolicyResponse ¶
type CtecsListAffinityGroupV41ReturnObjResultsAffinityGroupPolicyResponse struct {
PolicyType int32 `json:"policyType,omitempty"` /* 云主机组策略类型<br />取值范围:<br />0:强制反亲和,<br />1:强制亲和,<br />2:软反亲和,<br />3:软亲和,<br />4:电力反亲和性 */
PolicyTypeName string `json:"policyTypeName,omitempty"` /* 云主机组策略类型名称<br />取值范围:<br />anti-affinity:强制反亲和性,<br />affinity:强制亲和性,<br />soft-anti-affinity:反亲和性,<br />soft-affinity:亲和性,<br />power-anti-affinity:电力反亲和性 */
}
type CtecsListAffinityGroupV41ReturnObjResultsResponse ¶
type CtecsListAffinityGroupV41ReturnObjResultsResponse struct {
AffinityGroupID string `json:"affinityGroupID,omitempty"` /* 云主机组ID */
AffinityGroupName string `json:"affinityGroupName,omitempty"` /* 云主机组名称 */
AffinityGroupPolicy *CtecsListAffinityGroupV41ReturnObjResultsAffinityGroupPolicyResponse `json:"affinityGroupPolicy"` /* 云主机组策略 */
CreatedTime string `json:"createdTime,omitempty"` /* 创建时间 */
UpdatedTime string `json:"updatedTime,omitempty"` /* 更新时间 */
Deleted *bool `json:"deleted"` /* 是否删除 */
}
type CtecsListBackupTaskApi ¶
type CtecsListBackupTaskApi struct {
// contains filtered or unexported fields
}
func NewCtecsListBackupTaskApi ¶
func NewCtecsListBackupTaskApi(client *core.CtyunClient) *CtecsListBackupTaskApi
func (*CtecsListBackupTaskApi) Do ¶
func (a *CtecsListBackupTaskApi) Do(ctx context.Context, credential core.Credential, req *CtecsListBackupTaskRequest) (*CtecsListBackupTaskResponse, error)
type CtecsListBackupTaskRequest ¶
type CtecsListBackupTaskRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
TaskID string `json:"taskID,omitempty"` /* 任务ID */
TaskType string `json:"taskType,omitempty"` /* 任务类型,取值范围:create(生成备份副本任务),restore(恢复备份数据任务),delete(删除备份副本任务)<br />注:不传默认全部 */
TaskStatus string `json:"taskStatus,omitempty"` /* 任务状态,取值范围:successed(成功),failed(失败),in-progress(执行中),canceling(取消中),canceled(已取消)<br />注:不传默认全部 */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a> */
BackupID string `json:"backupID,omitempty"` /* 备份ID */
BackupName string `json:"backupName,omitempty"` /* 备份名称 */
QueryContent string `json:"queryContent,omitempty"` /* 模糊查询,可匹配查询字段:任务ID、备份副本ID、备份副本名称、云主机ID、云主机名称、存储库ID、存储库名称 */
PageNo int32 `json:"pageNo,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目,取值范围:[1, 50],注:默认值为10 */
}
type CtecsListBackupTaskResponse ¶
type CtecsListBackupTaskResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsListBackupTaskReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsListBackupTaskReturnObjResponse ¶
type CtecsListBackupTaskReturnObjResponse struct {
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
Results []*CtecsListBackupTaskReturnObjResultsResponse `json:"results"` /* 分页明细 */
}
type CtecsListBackupTaskReturnObjResultsResponse ¶
type CtecsListBackupTaskReturnObjResultsResponse struct {
TaskID string `json:"taskID,omitempty"` /* 任务ID */
TaskStatus string `json:"taskStatus,omitempty"` /* 任务状态 */
TaskType string `json:"taskType,omitempty"` /* 任务类型 */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称 */
BackupID string `json:"backupID,omitempty"` /* 备份ID */
BackupName string `json:"backupName,omitempty"` /* 备份名称 */
RepositoryID string `json:"repositoryID,omitempty"` /* 存储库ID */
RepositoryName string `json:"repositoryName,omitempty"` /* 存储库名称 */
StrategyID string `json:"strategyID,omitempty"` /* 策略的ID,非策略触发执行时为空 */
StrategyName string `json:"strategyName,omitempty"` /* 策略的名称,非策略触发执行时为空 */
StartTime string `json:"startTime,omitempty"` /* 开始时间 */
FinishTime string `json:"finishTime,omitempty"` /* 完成时间 */
TaskDetailDesc string `json:"taskDetailDesc,omitempty"` /* 任务详情 */
}
type CtecsListFixedIpV41Api ¶
type CtecsListFixedIpV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsListFixedIpV41Api ¶
func NewCtecsListFixedIpV41Api(client *core.CtyunClient) *CtecsListFixedIpV41Api
func (*CtecsListFixedIpV41Api) Do ¶
func (a *CtecsListFixedIpV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsListFixedIpV41Request) (*CtecsListFixedIpV41Response, error)
type CtecsListFixedIpV41Request ¶
type CtecsListFixedIpV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
}
type CtecsListFixedIpV41Response ¶
type CtecsListFixedIpV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsListFixedIpV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsListFixedIpV41ReturnObjResponse ¶
type CtecsListFixedIpV41ReturnObjResponse struct {
FixedIPList []string `json:"fixedIPList"` /* 固定IP列表 */
}
type CtecsListFlavorFamiliesV41Api ¶
type CtecsListFlavorFamiliesV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsListFlavorFamiliesV41Api ¶
func NewCtecsListFlavorFamiliesV41Api(client *core.CtyunClient) *CtecsListFlavorFamiliesV41Api
func (*CtecsListFlavorFamiliesV41Api) Do ¶
func (a *CtecsListFlavorFamiliesV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsListFlavorFamiliesV41Request) (*CtecsListFlavorFamiliesV41Response, error)
type CtecsListFlavorFamiliesV41Request ¶
type CtecsListFlavorFamiliesV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
AzName string /* 可用区名称,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解可用区 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5855&data=87">资源池可用区查询</a><br />注:查询结果中zoneList内返回存在可用区名称(即多可用区,本字段填写实际可用区名称),若查询结果中zoneList为空(即为单可用区,本字段填写default) */
}
type CtecsListFlavorFamiliesV41Response ¶
type CtecsListFlavorFamiliesV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsListFlavorFamiliesV41ReturnObjResponse `json:"returnObj"` /* 返回内容 */
}
type CtecsListFlavorFamiliesV41ReturnObjResponse ¶
type CtecsListFlavorFamiliesV41ReturnObjResponse struct {
FlavorFamilyList []string `json:"flavorFamilyList"` /* 规格族列表 */
}
type CtecsListFlavorLiteInstanceV41Api ¶
type CtecsListFlavorLiteInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsListFlavorLiteInstanceV41Api ¶
func NewCtecsListFlavorLiteInstanceV41Api(client *core.CtyunClient) *CtecsListFlavorLiteInstanceV41Api
func (*CtecsListFlavorLiteInstanceV41Api) Do ¶
func (a *CtecsListFlavorLiteInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsListFlavorLiteInstanceV41Request) (*CtecsListFlavorLiteInstanceV41Response, error)
type CtecsListFlavorLiteInstanceV41Request ¶
type CtecsListFlavorLiteInstanceV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
AzName string /* 可用区名称,如果是4.0资源池,必须提供可用区名称。您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解可用区 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5855&data=87">资源池可用区查询</a><br />注:查询结果中zoneList内返回存在可用区名称(即多可用区,本字段填写实际可用区名称),若查询结果中zoneList为空(即为单可用区,无需填写本字段) */
FlavorSetType string /* 规格套餐类型,取值范围:<br />fix:固定套餐,<br />band:带宽套餐 */
}
type CtecsListFlavorLiteInstanceV41Response ¶
type CtecsListFlavorLiteInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsListFlavorLiteInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsListFlavorLiteInstanceV41ReturnObjResponse ¶
type CtecsListFlavorLiteInstanceV41ReturnObjResponse struct {
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
Results []*CtecsListFlavorLiteInstanceV41ReturnObjResultsResponse `json:"results"` /* 规格列表 */
}
type CtecsListFlavorLiteInstanceV41ReturnObjResultsResponse ¶
type CtecsListFlavorLiteInstanceV41ReturnObjResultsResponse struct {
FlavorSetType string `json:"flavorSetType,omitempty"` /* 规格套餐类型,取值范围:<br />fix:固定套餐,<br />band:带宽套餐 */
FlavorName string `json:"flavorName,omitempty"` /* 规格套餐名称 */
FlavorSeries string `json:"flavorSeries,omitempty"` /* 规格系列 */
FlavorType string `json:"flavorType,omitempty"` /* 规格类型 */
FlavorRAM int32 `json:"flavorRAM,omitempty"` /* 内存大小,单位为G */
FlavorCPU int32 `json:"flavorCPU,omitempty"` /* VCPU个数 */
FlavorBandwidth int32 `json:"flavorBandwidth,omitempty"` /* 固定套餐带宽大小,当flavorSetType为fix时展示 */
FlavorBootDiskSize int32 `json:"flavorBootDiskSize,omitempty"` /* 固定套餐系统盘大小,当flavorSetType为fix时展示 */
FlavorBandwidthList []int32 `json:"flavorBandwidthList"` /* 带宽套餐带宽大小取值列表,当flavorSetType为band时展示 */
FlavorBootDiskSizeList []int32 `json:"flavorBootDiskSizeList"` /* 带宽套餐系统盘大小取值列表,当flavorSetType为band时展示 */
}
type CtecsListFlavorV41Api ¶
type CtecsListFlavorV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsListFlavorV41Api ¶
func NewCtecsListFlavorV41Api(client *core.CtyunClient) *CtecsListFlavorV41Api
func (*CtecsListFlavorV41Api) Do ¶
func (a *CtecsListFlavorV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsListFlavorV41Request) (*CtecsListFlavorV41Response, error)
type CtecsListFlavorV41Request ¶
type CtecsListFlavorV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
AzName string `json:"azName,omitempty"` /* 可用区名称,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解可用区 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5855&data=87">资源池可用区查询</a><br />注:查询结果中zoneList内返回存在可用区名称(即多可用区,本字段填写实际可用区名称),若查询结果中zoneList为空(即为单可用区,本字段填写default) */
FlavorType string `json:"flavorType,omitempty"` /* 规格类型,取值范围:[CPU、CPU_C3、CPU_C6、CPU_C7、CPU_c7ne、CPU_C8、CPU_D3、CPU_FC1、CPU_FM1、CPU_FS1、CPU_HC1、CPU_HM1、CPU_HS1、CPU_IP3、CPU_IR3、CPU_IP3_2、CPU_IR3_2、CPU_KC1、CPU_KM1、CPU_KS1、CPU_M2、CPU_M3、CPU_M6、CPU_M7、CPU_M8、CPU_S2、CPU_S3、CPU_S6、CPU_S7、CPU_S8、CPU_s8r、GPU_N_V100_V_FMGQ、GPU_N_V100_V、GPU_N_V100S_V、GPU_N_V100S_V_FMGQ、GPU_N_T4_V、GPU_N_G7_V、GPU_N_V100、GPU_N_V100_SHIPINYUN、GPU_N_V100_SUANFA、GPU_N_P2V_RENMIN、GPU_N_V100S、GPU_N_T4、GPU_N_T4_AIJISUAN、GPU_N_T4_ASR、GPU_N_T4_JX、GPU_N_T4_SHIPINYUN、GPU_N_T4_SUANFA、GPU_N_T4_YUNYOUXI、GPU_N_PI7、GPU_N_P8A、GPU_A_PAK1、GPU_C_PCH1],支持类型会随着功能升级增加 */
FlavorName string `json:"flavorName,omitempty"` /* 规格名称 */
FlavorCPU int32 `json:"flavorCPU,omitempty"` /* VCPU个数 */
FlavorRAM int32 `json:"flavorRAM,omitempty"` /* 内存大小,单位为GB */
FlavorArch string `json:"flavorArch,omitempty"` /* 指令集架构 */
FlavorSeries string `json:"flavorSeries,omitempty"` /* 规格系列 */
FlavorID string `json:"flavorID,omitempty"` /* 云主机规格ID,您可以通过<a href="https://www.ctyun.cn/document/10026730/10118193">规格说明</a>了解弹性云主机的选型基本信息<br /> */
}
type CtecsListFlavorV41Response ¶
type CtecsListFlavorV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsListFlavorV41ReturnObjResponse `json:"returnObj"` /* 返回内容 */
}
type CtecsListFlavorV41ReturnObjFlavorListResponse ¶
type CtecsListFlavorV41ReturnObjFlavorListResponse struct {
CpuInfo string `json:"cpuInfo,omitempty"` /* cpu架构 */
BaseBandwidth float32 `json:"baseBandwidth"` /* 基准带宽 */
FlavorName string `json:"flavorName,omitempty"` /* 云主机规格名称 */
FlavorType string `json:"flavorType,omitempty"` /* 规格类型,取值范围:[CPU、CPU_C3、CPU_C6、CPU_C7、CPU_c7ne、CPU_C8、CPU_D3、CPU_FC1、CPU_FM1、CPU_FS1、CPU_HC1、CPU_HM1、CPU_HS1、CPU_IP3、CPU_IR3、CPU_IP3_2、CPU_IR3_2、CPU_KC1、CPU_KM1、CPU_KS1、CPU_M2、CPU_M3、CPU_M6、CPU_M7、CPU_M8、CPU_S2、CPU_S3、CPU_S6、CPU_S7、CPU_S8、CPU_s8r、GPU_N_V100_V_FMGQ、GPU_N_V100_V、GPU_N_V100S_V、GPU_N_V100S_V_FMGQ、GPU_N_T4_V、GPU_N_G7_V、GPU_N_V100、GPU_N_V100_SHIPINYUN、GPU_N_V100_SUANFA、GPU_N_P2V_RENMIN、GPU_N_V100S、GPU_N_T4、GPU_N_T4_AIJISUAN、GPU_N_T4_ASR、GPU_N_T4_JX、GPU_N_T4_SHIPINYUN、GPU_N_T4_SUANFA、GPU_N_T4_YUNYOUXI、GPU_N_PI7、GPU_N_P8A、GPU_A_PAK1、GPU_C_PCH1],支持类型会随着功能升级增加 */
FlavorSeries string `json:"flavorSeries,omitempty"` /* 云主机规格系列,详见枚举值表 */
NicMultiQueue int32 `json:"nicMultiQueue,omitempty"` /* 网卡多队列数目 */
Pps int32 `json:"pps,omitempty"` /* 最大收发包限制 */
FlavorCPU int32 `json:"flavorCPU,omitempty"` /* VCPU个数 */
FlavorRAM int32 `json:"flavorRAM,omitempty"` /* 内存 */
Bandwidth float32 `json:"bandwidth"` /* 带宽 */
FlavorID string `json:"flavorID,omitempty"` /* 云主机规格ID */
GpuVendor string `json:"gpuVendor,omitempty"` /* GPU厂商 */
VideoMemSize int32 `json:"videoMemSize,omitempty"` /* GPU显存大小 */
GpuType string `json:"gpuType,omitempty"` /* GPU类型,取值范围:T4、V100、V100S、A10、A100、atlas 300i pro、mlu370-s4,支持类型会随着功能升级增加 */
GpuCount int32 `json:"gpuCount,omitempty"` /* GPU设备数量 */
Available *bool `json:"available"` /* 是否可用<br />true:可用<br />false:不可用,已售罄 */
AzList []string `json:"azList"` /* 多az名称列表(非多可用区为\["default"\]) */
FlavorSeriesName string `json:"flavorSeriesName,omitempty"` /* 规格系列名称,参照参数flavorSeries说明 */
NicCount int32 `json:"nicCount,omitempty"` /* 可支持挂载的网卡数 */
}
type CtecsListFlavorV41ReturnObjResponse ¶
type CtecsListFlavorV41ReturnObjResponse struct {
FlavorList []*CtecsListFlavorV41ReturnObjFlavorListResponse `json:"flavorList"` /* 规格列表 */
}
type CtecsListGpuDriverV41Api ¶
type CtecsListGpuDriverV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsListGpuDriverV41Api ¶
func NewCtecsListGpuDriverV41Api(client *core.CtyunClient) *CtecsListGpuDriverV41Api
func (*CtecsListGpuDriverV41Api) Do ¶
func (a *CtecsListGpuDriverV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsListGpuDriverV41Request) (*CtecsListGpuDriverV41Response, error)
type CtecsListGpuDriverV41Request ¶
type CtecsListGpuDriverV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
FlavorID string `json:"flavorID,omitempty"` /* 云主机规格ID,您可以调用<a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8327&data=87&isNormal=1&vid=81">云主机规格资源查询</a>来查看最新的天翼云具体资源池的云主机规格列表 */
}
type CtecsListGpuDriverV41Response ¶
type CtecsListGpuDriverV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsListGpuDriverV41ReturnObjResponse `json:"returnObj"` /* 返回内容 */
}
type CtecsListGpuDriverV41ReturnObjResponse ¶
type CtecsListGpuDriverV41ReturnObjResponse struct {
GpuDriverList []string `json:"gpuDriverList"` /* 驱动列表 */
}
type CtecsListInstanceBackupPolicyApi ¶
type CtecsListInstanceBackupPolicyApi struct {
// contains filtered or unexported fields
}
func NewCtecsListInstanceBackupPolicyApi ¶
func NewCtecsListInstanceBackupPolicyApi(client *core.CtyunClient) *CtecsListInstanceBackupPolicyApi
func (*CtecsListInstanceBackupPolicyApi) Do ¶
func (a *CtecsListInstanceBackupPolicyApi) Do(ctx context.Context, credential core.Credential, req *CtecsListInstanceBackupPolicyRequest) (*CtecsListInstanceBackupPolicyResponse, error)
type CtecsListInstanceBackupPolicyBindInstancesApi ¶
type CtecsListInstanceBackupPolicyBindInstancesApi struct {
// contains filtered or unexported fields
}
func NewCtecsListInstanceBackupPolicyBindInstancesApi ¶
func NewCtecsListInstanceBackupPolicyBindInstancesApi(client *core.CtyunClient) *CtecsListInstanceBackupPolicyBindInstancesApi
func (*CtecsListInstanceBackupPolicyBindInstancesApi) Do ¶
func (a *CtecsListInstanceBackupPolicyBindInstancesApi) Do(ctx context.Context, credential core.Credential, req *CtecsListInstanceBackupPolicyBindInstancesRequest) (*CtecsListInstanceBackupPolicyBindInstancesResponse, error)
type CtecsListInstanceBackupPolicyBindInstancesRequest ¶
type CtecsListInstanceBackupPolicyBindInstancesRequest struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
PolicyID string /* 云主机备份策略ID,32字节<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=6924&data=87&isNormal=1&vid=81">查询云主机备份策略列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=6914&data=87&isNormal=1&vid=81">创建云主机备份策略</a> */
InstanceName string /* 云主机名称,模糊过滤 */
PageNo int32 /* 页码,取值范围:正整数(≥1),注:默认值为1 */
PageSize int32 /* 每页记录数目,取值范围:[1, 50],注:默认值为10 */
}
type CtecsListInstanceBackupPolicyBindInstancesResponse ¶
type CtecsListInstanceBackupPolicyBindInstancesResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 错误信息的英文描述 */
Description string `json:"description,omitempty"` /* 错误信息的本地化描述(中文) */
ReturnObj *CtecsListInstanceBackupPolicyBindInstancesReturnObjResponse `json:"returnObj"` /* 返回对象 */
}
type CtecsListInstanceBackupPolicyBindInstancesReturnObjInstancePoliciesResponse ¶
type CtecsListInstanceBackupPolicyBindInstancesReturnObjInstancePoliciesResponse struct {
Status string `json:"status,omitempty"` /* 云主机状态 */
AttachedVolumes []string `json:"attachedVolumes"` /* 云主机所关联的云硬盘ID列表 */
DisplayName string `json:"displayName,omitempty"` /* 云主机显示名称 */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称 */
CreateTime string `json:"createTime,omitempty"` /* 创建时间 */
UpdateTime string `json:"updateTime,omitempty"` /* 更新时间 */
}
type CtecsListInstanceBackupPolicyBindInstancesReturnObjResponse ¶
type CtecsListInstanceBackupPolicyBindInstancesReturnObjResponse struct {
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
CurrentPage int32 `json:"currentPage,omitempty"` /* 当前页码 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
InstancePolicies []*CtecsListInstanceBackupPolicyBindInstancesReturnObjInstancePoliciesResponse `json:"instancePolicies"` /* 分页明细 */
}
type CtecsListInstanceBackupPolicyRequest ¶
type CtecsListInstanceBackupPolicyRequest struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
PolicyID string /* 云主机备份策略ID,32字节<br />获取:<br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=6914&data=87&isNormal=1&vid=81">创建云主机备份策略</a> */
PolicyName string /* 云主机备份策略名称。满足以下规则:只能由数字、英文字母、中划线-、下划线_、点.组成,长度为2-64字符<br />注:在所有资源池不可重复。模糊过滤,存在policyID过滤参数时此参数无效 */
ProjectID string /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目 */
PageNo int32 /* 页码,取值范围:正整数(≥1),注:默认值为1 */
PageSize int32 /* 每页记录数目,取值范围:[1, 50],注:默认值为10 */
}
type CtecsListInstanceBackupPolicyResponse ¶
type CtecsListInstanceBackupPolicyResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 错误信息的英文描述 */
Description string `json:"description,omitempty"` /* 错误信息的本地化描述(中文) */
ReturnObj *CtecsListInstanceBackupPolicyReturnObjResponse `json:"returnObj"` /* 返回对象 */
}
type CtecsListInstanceBackupPolicyReturnObjPolicyListResponse ¶
type CtecsListInstanceBackupPolicyReturnObjPolicyListResponse struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以调用[regionID](https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87)查看最新的天翼云资源池列表 */
Status int32 `json:"status,omitempty"` /* 是否启用策略,取值范围:<br />0:停用,<br />1:启用 */
PolicyID string `json:"policyID,omitempty"` /* 云主机备份策略ID */
PolicyName string `json:"policyName,omitempty"` /* 云主机备份策略名称 */
CycleType string `json:"cycleType,omitempty"` /* 云主机备份周期类型,取值范围: <br />day:按天备份<br />week:按星期备份 */
CycleDay int32 `json:"cycleDay,omitempty"` /* 只有cycleType为day时返回备份周期值 */
CycleWeek string `json:"cycleWeek,omitempty"` /* 只有cycleType为week时返回备份周期,取值范围:0-6代表星期日-星期六,如果一周有多天备份,以逗号隔开 */
Time string `json:"time,omitempty"` /* 备份整点时间,取值范围:0-23,如果一天内多个时间节点备份,以逗号隔开 */
RetentionType string `json:"retentionType,omitempty"` /* 云主机备份保留类型,取值范围:<br />date:按时间保留,<br />num:按数量保留,<br />all:永久保留 */
RetentionNum int32 `json:"retentionNum,omitempty"` /* 只有retentionType为num时返回保留数量值 */
RetentionDay int32 `json:"retentionDay,omitempty"` /* 只有retentionType为date时返回保留天数值 */
ResourceCount int32 `json:"resourceCount,omitempty"` /* 策略已绑定的云主机数量 */
//TODO openapi返回字段多了个空格,待修复后修改
ResourceIDs string `json:"resourceIDs ,omitempty"` /* 策略已绑定的云主机ID,以逗号分隔 */
RepositoryList []*CtecsListInstanceBackupPolicyReturnObjPolicyListRepositoryListResponse `json:"repositoryList"` /* 策略已绑定的云主机备份库列表 */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID */
FullBackupInterval int32 `json:"fullBackupInterval,omitempty"` /* 是否启用周期性全量备份。-1代表不开启,默认为-1;取值范围为[-1,100],即每执行n次增量备份后,执行一次全量备份;若传入为0,代表每一次均为全量备份。 */
AdvRetentionStatus bool `json:"advRetentionStatus,omitempty"` /* 是否开启高级保留策略,false(不启用),true(启用),默认值为false。需校验云主机备份保留类型(retentionType),若保留类型为按数量保存(num),可开启高级保留策略;若保留类型为date(按时间保存)或all(永久保存),不可开启高级保留策略。 */
AdvRetention *AdvRetention `json:"advRetention,omitempty"` /* 高级保留策略内容,只有retentionType为num且advRetentionStatus为true才生效 */
}
type CtecsListInstanceBackupPolicyReturnObjResponse ¶
type CtecsListInstanceBackupPolicyReturnObjResponse struct {
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
CurrentPage int32 `json:"currentPage,omitempty"` /* 当前页码 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
PolicyList []*CtecsListInstanceBackupPolicyReturnObjPolicyListResponse `json:"policyList"` /* 策略列表 */
}
type CtecsListInstanceBackupRepoApi ¶
type CtecsListInstanceBackupRepoApi struct {
// contains filtered or unexported fields
}
func NewCtecsListInstanceBackupRepoApi ¶
func NewCtecsListInstanceBackupRepoApi(client *core.CtyunClient) *CtecsListInstanceBackupRepoApi
func (*CtecsListInstanceBackupRepoApi) Do ¶
func (a *CtecsListInstanceBackupRepoApi) Do(ctx context.Context, credential core.Credential, req *CtecsListInstanceBackupRepoRequest) (*CtecsListInstanceBackupRepoResponse, error)
type CtecsListInstanceBackupRepoRequest ¶
type CtecsListInstanceBackupRepoRequest struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
ProjectID string /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目 */
RepositoryName string /* 云主机备份存储库名称,满足以下规则:只能由数字、字母、-组成,不能以数字和-开头、且不能以-结尾,长度为2-63字符 */
RepositoryID string /* 云主机备份存储库ID,您可以查看<a href="https://www.ctyun.cn/document/10026751/10033742">产品定义-存储库</a>来了解存储库<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=6909&data=87&isNormal=1&vid=81">查询存储库列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=6910&data=87&isNormal=1&vid=81">创建存储库</a> */
Status string /* 存储库状态 */
PageNo int32 /* 页码,取值范围:正整数(≥1),注:默认值为1 */
PageSize int32 /* 每页记录数目,取值范围:[1~50],默认值:10,单页最大记录不超过50 */
}
type CtecsListInstanceBackupRepoResponse ¶
type CtecsListInstanceBackupRepoResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsListInstanceBackupRepoReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsListInstanceBackupRepoReturnObjResponse ¶
type CtecsListInstanceBackupRepoReturnObjResponse struct {
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
Results []*CtecsListInstanceBackupRepoReturnObjResultsResponse `json:"results"` /* 分页明细 */
}
type CtecsListInstanceBackupRepoReturnObjResultsResponse ¶
type CtecsListInstanceBackupRepoReturnObjResultsResponse struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
RepositoryID string `json:"repositoryID,omitempty"` /* 存储库ID */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID */
RepositoryName string `json:"repositoryName,omitempty"` /* 存储库名称 */
Status string `json:"status,omitempty"` /* 云主机存储库状态,<br />expired: 已到期,<br />active: 可用 */
Size int32 `json:"size,omitempty"` /* 云主机存储库总容量,单位GB */
FreeSize float32 `json:"freeSize"` /* 云主机存储库剩余大小,单位GB(废弃该字段) */
RemainingSize float32 `json:"remainingSize"` /* 云主机存储库剩余大小,单位GB */
UsedSize int64 `json:"usedSize,omitempty"` /* 云主机存储库使用大小,单位Byte */
CreatedAt string `json:"createdAt,omitempty"` /* 创建时间 */
ExpiredAt string `json:"expiredAt,omitempty"` /* 到期时间 */
Expired bool `json:"expired"` /* 存储库是否到期 */
Freeze *bool `json:"freeze"` /* 是否冻结 */
Paas *bool `json:"paas"` /* 是否支持PAAS */
BackupList []string `json:"backupList"` /* 存储库下可用的备份ID列表 */
BackupCount int32 `json:"backupCount,omitempty"` /* 存储库中备份数量 */
}
type CtecsListInstanceBackupV41Api ¶
type CtecsListInstanceBackupV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsListInstanceBackupV41Api ¶
func NewCtecsListInstanceBackupV41Api(client *core.CtyunClient) *CtecsListInstanceBackupV41Api
func (*CtecsListInstanceBackupV41Api) Do ¶
func (a *CtecsListInstanceBackupV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsListInstanceBackupV41Request) (*CtecsListInstanceBackupV41Response, error)
type CtecsListInstanceBackupV41Request ¶
type CtecsListInstanceBackupV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
PageNo int32 `json:"pageNo,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目,取值范围:[1, 50],注:默认值为10 */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
RepositoryID string `json:"repositoryID,omitempty"` /* 云主机备份存储库ID,您可以查看<a href="https://www.ctyun.cn/document/10026751/10033742">产品定义-存储库</a>来了解存储库<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=14&api=6909&data=100">查询存储库列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=14&api=6910&data=100">创建存储库</a> */
InstanceBackupID string `json:"instanceBackupID,omitempty"` /* 云主机备份ID,您可以查看<a href="https://www.ctyun.cn/document/10051003/10051023">产品定义-云主机备份</a>来了解云主机备份<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=14&api=6910&data=100">查询云主机备份列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=14&api=8332&data=100">创建云主机备份</a> */
QueryContent string `json:"queryContent,omitempty"` /* 模糊匹配查询内容(匹配字段:instanceBackupName、instanceBackupID、instanceBackupStatus、instanceName) */
InstanceBackupStatus string `json:"instanceBackupStatus,omitempty"` /* 云主机备份状态 */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目 */
}
type CtecsListInstanceBackupV41Response ¶
type CtecsListInstanceBackupV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsListInstanceBackupV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsListInstanceBackupV41ReturnObjResponse ¶
type CtecsListInstanceBackupV41ReturnObjResponse struct {
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
Results []*CtecsListInstanceBackupV41ReturnObjResultsResponse `json:"results"` /* 分页明细 */
}
type CtecsListInstanceBackupV41ReturnObjResultsResponse ¶
type CtecsListInstanceBackupV41ReturnObjResultsResponse struct {
InstanceBackupID string `json:"instanceBackupID,omitempty"` /* 云主机备份ID */
InstanceBackupName string `json:"instanceBackupName,omitempty"` /* 云主机备份名称 */
InstanceBackupStatus string `json:"instanceBackupStatus,omitempty"` /* 云主机备份状态,取值范围:<br />CREATING: 备份创建中, <br />ACTIVE: 可用, <br />RESTORING: 备份恢复中,<br />DELETING: 删除中,<br />EXPIRED:到期,<br />ERROR:错误 */
InstanceBackupDescription string `json:"instanceBackupDescription,omitempty"` /* 云主机备份描述 */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称 */
RepositoryID string `json:"repositoryID,omitempty"` /* 云主机备份存储库ID */
RepositoryName string `json:"repositoryName,omitempty"` /* 云主机备份存储库名称 */
RepositoryExpired *bool `json:"repositoryExpired"` /* 云主机备份存储库是否过期 */
RepositoryFreeze *bool `json:"repositoryFreeze"` /* 存储库是否冻结 */
DiskTotalSize int32 `json:"diskTotalSize,omitempty"` /* 云盘总容量大小,单位为GB */
UsedSize int64 `json:"usedSize,omitempty"` /* 磁盘备份已使用大小 */
DiskCount int32 `json:"diskCount,omitempty"` /* 云盘数目 */
RestoreFinishedTime string `json:"restoreFinishedTime,omitempty"` /* 备份恢复完成时间 */
CreatedTime string `json:"createdTime,omitempty"` /* 创建时间 */
FinishedTime string `json:"finishedTime,omitempty"` /* 完成时间 */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID */
BackupType string `json:"backupType,omitempty"` /* 备份类型,取值范围:●FULL:全量备份。●INCREMENT:增量备份。只有4.0资源池此参数有效 */
}
type CtecsListInstanceFlavorFamiliesV41Api ¶
type CtecsListInstanceFlavorFamiliesV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsListInstanceFlavorFamiliesV41Api ¶
func NewCtecsListInstanceFlavorFamiliesV41Api(client *core.CtyunClient) *CtecsListInstanceFlavorFamiliesV41Api
func (*CtecsListInstanceFlavorFamiliesV41Api) Do ¶
func (a *CtecsListInstanceFlavorFamiliesV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsListInstanceFlavorFamiliesV41Request) (*CtecsListInstanceFlavorFamiliesV41Response, error)
type CtecsListInstanceFlavorFamiliesV41Request ¶
type CtecsListInstanceFlavorFamiliesV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
AzName string `json:"azName,omitempty"` /* 可用区名称,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解可用区 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5855&data=87">资源池可用区查询</a><br />注:查询结果中zoneList内返回存在可用区名称(即多可用区,本字段填写实际可用区名称),若查询结果中zoneList为空(即为单可用区,本字段填写default) */
FlavorFamily string `json:"flavorFamily,omitempty"` /* 规格族名称,您可以查看<a href="https://www.ctyun.cn/document/10026730/10138523">规格族</a>来了解规格族信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8326&data=87">查询云主机规格族列表<a> */
PageNo int32 `json:"pageNo,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目,取值范围:[1, 50],注:默认值为10 */
}
type CtecsListInstanceFlavorFamiliesV41Response ¶
type CtecsListInstanceFlavorFamiliesV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败)默认值:800 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsListInstanceFlavorFamiliesV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsListInstanceFlavorFamiliesV41ReturnObjResponse ¶
type CtecsListInstanceFlavorFamiliesV41ReturnObjResponse struct {
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
Results []*CtecsListInstanceFlavorFamiliesV41ReturnObjResultsResponse `json:"results"` /* 云主机列表 */
}
type CtecsListInstanceFlavorFamiliesV41ReturnObjResultsFlavorResponse ¶
type CtecsListInstanceFlavorFamiliesV41ReturnObjResultsFlavorResponse struct {
FlavorID string `json:"flavorID,omitempty"` /* 规格ID */
FlavorName string `json:"flavorName,omitempty"` /* 规格名称 */
FlavorCPU int32 `json:"flavorCPU,omitempty"` /* VCPU个数 */
FlavorRAM int32 `json:"flavorRAM,omitempty"` /* 内存 */
GpuType string `json:"gpuType,omitempty"` /* GPU类型,取值范围:T4、V100、V100S、A10、A100、atlas 300i pro、mlu370-s4,支持类型会随着功能升级增加 */
GpuCount int32 `json:"gpuCount,omitempty"` /* GPU数目 */
GpuVendor string `json:"gpuVendor,omitempty"` /* GPU厂商 */
VideoMemSize int32 `json:"videoMemSize,omitempty"` /* GPU显存大小 */
}
type CtecsListInstanceFlavorFamiliesV41ReturnObjResultsResponse ¶
type CtecsListInstanceFlavorFamiliesV41ReturnObjResultsResponse struct {
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称 */
Flavor *CtecsListInstanceFlavorFamiliesV41ReturnObjResultsFlavorResponse `json:"flavor"` /* 云主机规格详情 */
}
type CtecsListInstanceSfsV41Api ¶
type CtecsListInstanceSfsV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsListInstanceSfsV41Api ¶
func NewCtecsListInstanceSfsV41Api(client *core.CtyunClient) *CtecsListInstanceSfsV41Api
func (*CtecsListInstanceSfsV41Api) Do ¶
func (a *CtecsListInstanceSfsV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsListInstanceSfsV41Request) (*CtecsListInstanceSfsV41Response, error)
type CtecsListInstanceSfsV41Request ¶
type CtecsListInstanceSfsV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
FileSysID string /* 文件系统ID */
}
type CtecsListInstanceSfsV41Response ¶
type CtecsListInstanceSfsV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsListInstanceSfsV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsListInstanceSfsV41ReturnObjResponse ¶
type CtecsListInstanceSfsV41ReturnObjResponse struct {
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页码 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
Results []*CtecsListInstanceSfsV41ReturnObjResultsResponse `json:"results"` /* 分页明细 */
}
type CtecsListInstanceSfsV41ReturnObjResultsResponse ¶
type CtecsListInstanceSfsV41ReturnObjResultsResponse struct {
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
Option string `json:"option,omitempty"` /* 挂载参数 */
FileSysRoute string `json:"fileSysRoute,omitempty"` /* 文件系统绝对路径 */
MountPoint string `json:"mountPoint,omitempty"` /* 挂载点 */
AutoMount *bool `json:"autoMount"` /* 是否开机自动挂载 */
Protocol string `json:"protocol,omitempty"` /* 挂载协议 */
FileSysID string `json:"fileSysID,omitempty"` /* 文件系统ID */
VmInfo *CtecsListInstanceSfsV41ReturnObjResultsVmInfoResponse `json:"vmInfo"` /* 虚机信息 */
}
type CtecsListInstanceSfsV41ReturnObjResultsVmInfoResponse ¶
type CtecsListInstanceSfsV41ReturnObjResultsVmInfoResponse struct {
InstanceStatus string `json:"instanceStatus,omitempty"` /* 虚机状态 */
DisplayName string `json:"displayName,omitempty"` /* 虚机展示名称 */
InstanceName string `json:"instanceName,omitempty"` /* 名称 */
ImageName string `json:"imageName,omitempty"` /* 镜像名称 */
InstanceID string `json:"instanceID,omitempty"` /* 虚机ID */
ProjectID string `json:"projectID,omitempty"` /* 项目ID */
}
type CtecsListInstanceSnapshotPolicyV41Api ¶
type CtecsListInstanceSnapshotPolicyV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsListInstanceSnapshotPolicyV41Api ¶
func NewCtecsListInstanceSnapshotPolicyV41Api(client *core.CtyunClient) *CtecsListInstanceSnapshotPolicyV41Api
func (*CtecsListInstanceSnapshotPolicyV41Api) Do ¶
func (a *CtecsListInstanceSnapshotPolicyV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsListInstanceSnapshotPolicyV41Request) (*CtecsListInstanceSnapshotPolicyV41Response, error)
type CtecsListInstanceSnapshotPolicyV41Request ¶
type CtecsListInstanceSnapshotPolicyV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SnapshotPolicyID string `json:"snapshotPolicyID,omitempty"` /* 云主机快照策略ID,32字节<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9600&data=87">查询云主机快照策略列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9588&data=87">创建云主机快照策略</a> */
PageNo int32 `json:"pageNo,omitempty"` /* 页码,取值范围:正整数(≥1)注:默认值为1 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目,取值范围:[1, 50]注:默认值为10 */
}
type CtecsListInstanceSnapshotPolicyV41Response ¶
type CtecsListInstanceSnapshotPolicyV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsListInstanceSnapshotPolicyV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsListInstanceSnapshotPolicyV41ReturnObjInstanceListResponse ¶
type CtecsListInstanceSnapshotPolicyV41ReturnObjInstanceListResponse struct {
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称,不同操作系统下,云主机名称规则有差异<br />Windows:长度为2~15个字符,允许使用大小写字母、数字或连字符(-)。不能以连字符(-)开头或结尾,不能连续使用连字符(-),也不能仅使用数字;<br />其他操作系统:长度为2-64字符,允许使用点(.)分隔字符成多段,每段允许使用大小写字母、数字或连字符(-),但不能连续使用点号(.)或连字符(-),不能以点号(.)或连字符(-)开头或结尾 */
DisplayName string `json:"displayName,omitempty"` /* 云主机显示名称,长度为2-63字符 */
InstanceStatus string `json:"instanceStatus,omitempty"` /* 云主机状态,请通过<a href="https://www.ctyun.cn/document/10026730/10741614">状态枚举值</a>查看云主机使用状态 */
VolumeCount int32 `json:"volumeCount,omitempty"` /* 磁盘数量 */
}
type CtecsListInstanceSnapshotPolicyV41ReturnObjResponse ¶
type CtecsListInstanceSnapshotPolicyV41ReturnObjResponse struct {
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
InstanceList []*CtecsListInstanceSnapshotPolicyV41ReturnObjInstanceListResponse `json:"instanceList"` /* 分页明细 */
}
type CtecsListInstanceStatusV41Api ¶
type CtecsListInstanceStatusV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsListInstanceStatusV41Api ¶
func NewCtecsListInstanceStatusV41Api(client *core.CtyunClient) *CtecsListInstanceStatusV41Api
func (*CtecsListInstanceStatusV41Api) Do ¶
func (a *CtecsListInstanceStatusV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsListInstanceStatusV41Request) (*CtecsListInstanceStatusV41Response, error)
type CtecsListInstanceStatusV41Request ¶
type CtecsListInstanceStatusV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
AzName string `json:"azName,omitempty"` /* 可用区名称,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解可用区 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5855&data=87">资源池可用区查询</a><br />注:查询结果中zoneList内返回存在可用区名称(即多可用区,本字段填写实际可用区名称),若查询结果中zoneList为空(即为单可用区,本字段填写default) */
InstanceIDList string `json:"instanceIDList,omitempty"` /* 云主机ID列表,多台使用英文逗号分割,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
PageNo int32 `json:"pageNo,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目,取值范围:[1, 50],注:默认值为10 */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目 */
}
type CtecsListInstanceStatusV41Response ¶
type CtecsListInstanceStatusV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsListInstanceStatusV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsListInstanceStatusV41ReturnObjResponse ¶
type CtecsListInstanceStatusV41ReturnObjResponse struct {
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
StatusList []*CtecsListInstanceStatusV41ReturnObjStatusListResponse `json:"statusList"` /* 分页明细 */
}
type CtecsListInstanceStatusV41ReturnObjStatusListResponse ¶
type CtecsListInstanceStatusV41ReturnObjStatusListResponse struct {
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
InstanceStatus string `json:"instanceStatus,omitempty"` /* 云主机状态,请通过<a href="https://www.ctyun.cn/document/10026730/10741614">状态枚举值</a>查看云主机使用状态 */
}
type CtecsListInstanceV41Api ¶
type CtecsListInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsListInstanceV41Api ¶
func NewCtecsListInstanceV41Api(client *core.CtyunClient) *CtecsListInstanceV41Api
func (*CtecsListInstanceV41Api) Do ¶
func (a *CtecsListInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsListInstanceV41Request) (*CtecsListInstanceV41Response, error)
type CtecsListInstanceV41Request ¶
type CtecsListInstanceV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
AzName string `json:"azName,omitempty"` /* 可用区名称,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解可用区 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5855&data=87">资源池可用区查询</a><br />注:查询结果中zoneList内返回存在可用区名称(即多可用区,本字段填写实际可用区名称),若查询结果中zoneList为空(即为单可用区,本字段填写default) */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目 */
PageNo int32 `json:"pageNo,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目,取值范围:[1, 50],注:默认值为10 */
State string `json:"state,omitempty"` /* 云主机状态,详见枚举值表<br />注:该参数大小写不敏感(如active可填写为ACTIVE) */
Keyword string `json:"keyword,omitempty"` /* 关键字,对部分参数进行模糊查询,包含:instanceName、displayName、instanceID、privateIP */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称,精准匹配 */
InstanceIDList string `json:"instanceIDList,omitempty"` /* 云主机ID列表,多台使用英文逗号分割,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br/><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
SecurityGroupID string `json:"securityGroupID,omitempty"` /* 安全组ID,模糊匹配,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>了解安全组相关信息 <br />获取: <br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4817&data=94">查询用户安全组列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4821&data=94">创建安全组</a> */
VpcID string `json:"vpcID,omitempty"` /* 虚拟私有云ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028310">产品定义-虚拟私有云</a>来了解虚拟私有云<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4814&data=94">查询VPC列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4811&data=94">创建VPC</a><br />注:在多可用区类型资源池下,vpcID通常以“vpc-”开头,非多可用区类型资源池vpcID为uuid格式 */
ResourceID string `json:"resourceID,omitempty"` /* 资源ID,非资源的UUID,该ID为订单的资源ID(创建云主机接口为异步接口,订单先返回一个该资源ID方便后续查找)<br />获取:<br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
LabelList []*CtecsListInstanceV41LabelListRequest `json:"labelList"` /* 标签信息列表 */
Sort string `json:"sort,omitempty"` /* 排序关键字,与asc配合使用,可选字段:expiredTime */
Asc *bool `json:"asc"` /* 排序方向,升序或降序,与sort配合使用。当sort不为空时,asc才生效<br />注:默认为false */
}
type CtecsListInstanceV41Response ¶
type CtecsListInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsListInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsListInstanceV41ReturnObjResponse ¶
type CtecsListInstanceV41ReturnObjResponse struct {
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
Results []*CtecsListInstanceV41ReturnObjResultsResponse `json:"results"` /* 分页明细 */
}
type CtecsListInstanceV41ReturnObjResultsAddressesAddressListResponse ¶
type CtecsListInstanceV41ReturnObjResultsAddressesAddressListResponse struct {
Addr string `json:"addr,omitempty"` /* IP地址 */
Version int32 `json:"version,omitempty"` /* IP版本 */
RawType string `json:"type,omitempty"` /* 网络类型,取值范围:<br />fixed:内网,<br />floating:弹性公网 */
IsMaster *bool `json:"isMaster"` /* 是否为主网卡 */
MacAddress string `json:"macAddress,omitempty"` /* mac地址 */
}
type CtecsListInstanceV41ReturnObjResultsAddressesResponse ¶
type CtecsListInstanceV41ReturnObjResultsAddressesResponse struct {
VpcName string `json:"vpcName,omitempty"` /* vpc名称 */
AddressList []*CtecsListInstanceV41ReturnObjResultsAddressesAddressListResponse `json:"addressList"` /* 网络地址列表 */
}
type CtecsListInstanceV41ReturnObjResultsFlavorResponse ¶
type CtecsListInstanceV41ReturnObjResultsFlavorResponse struct {
FlavorID string `json:"flavorID,omitempty"` /* 规格ID */
FlavorName string `json:"flavorName,omitempty"` /* 规格名称 */
FlavorCPU int32 `json:"flavorCPU,omitempty"` /* VCPU */
FlavorRAM int32 `json:"flavorRAM,omitempty"` /* 内存 */
GpuType string `json:"gpuType,omitempty"` /* GPU类型,取值范围:T4、V100、V100S、A10、A100、atlas 300i pro、mlu370-s4,支持类型会随着功能升级增加 */
GpuCount int32 `json:"gpuCount,omitempty"` /* GPU数目 */
GpuVendor string `json:"gpuVendor,omitempty"` /* GPU名称 */
VideoMemSize int32 `json:"videoMemSize,omitempty"` /* GPU显存大小 */
}
type CtecsListInstanceV41ReturnObjResultsMetadataResponse ¶
type CtecsListInstanceV41ReturnObjResultsMetadataResponse struct{}
type CtecsListInstanceV41ReturnObjResultsNetworkCardListResponse ¶
type CtecsListInstanceV41ReturnObjResultsNetworkCardListResponse struct {
IPv4Address string `json:"IPv4Address,omitempty"` /* IPv4地址 */
IPv6Address []string `json:"IPv6Address"` /* IPv6地址列表 */
SubnetID string `json:"subnetID,omitempty"` /* 子网ID */
SubnetCidr string `json:"subnetCidr,omitempty"` /* 子网网段信息 */
IsMaster *bool `json:"isMaster"` /* 是否主网卡,取值范围:<br />true:主网卡,<br />false:扩展网卡 */
Gateway string `json:"gateway,omitempty"` /* 网关地址 */
NetworkCardID string `json:"networkCardID,omitempty"` /* 网卡ID */
SecurityGroup []string `json:"securityGroup"` /* 安全组ID列表 */
}
type CtecsListInstanceV41ReturnObjResultsResponse ¶
type CtecsListInstanceV41ReturnObjResultsResponse struct {
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID */
AzName string `json:"azName,omitempty"` /* 可用区名称 */
AttachedVolume []string `json:"attachedVolume"` /* 云硬盘ID列表 */
Addresses []*CtecsListInstanceV41ReturnObjResultsAddressesResponse `json:"addresses"` /* 网络地址信息 */
ResourceID string `json:"resourceID,omitempty"` /* 云主机资源ID */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
DisplayName string `json:"displayName,omitempty"` /* 云主机显示名称 */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称 */
OsType int32 `json:"osType,omitempty"` /* 操作系统类型,详见枚举值表 */
InstanceStatus string `json:"instanceStatus,omitempty"` /* 云主机状态,请通过<a href="https://www.ctyun.cn/document/10026730/10741614">状态枚举值</a>查看云主机使用状态 */
ExpiredTime string `json:"expiredTime,omitempty"` /* 到期时间 */
AvailableDay int32 `json:"availableDay,omitempty"` /* 可用天数 */
UpdatedTime string `json:"updatedTime,omitempty"` /* 更新时间 */
CreatedTime string `json:"createdTime,omitempty"` /* 创建时间 */
ZabbixName string `json:"zabbixName,omitempty"` /* 监控对象名称 */
SecGroupList []*CtecsListInstanceV41ReturnObjResultsSecGroupListResponse `json:"secGroupList"` /* 安全组信息 */
PrivateIP string `json:"privateIP,omitempty"` /* 内网IPv4地址 */
PrivateIPv6 string `json:"privateIPv6,omitempty"` /* 内网IPv6地址 */
NetworkCardList []*CtecsListInstanceV41ReturnObjResultsNetworkCardListResponse `json:"networkCardList"` /* 网卡信息 */
VipInfoList []*CtecsListInstanceV41ReturnObjResultsVipInfoListResponse `json:"vipInfoList"` /* 虚拟IP信息列表 */
VipCount int32 `json:"vipCount,omitempty"` /* 虚拟IP数目 */
AffinityGroup *CtecsListInstanceV41ReturnObjResultsAffinityGroupResponse `json:"affinityGroup"` /* 云主机组信息 */
Image *CtecsListInstanceV41ReturnObjResultsImageResponse `json:"image"` /* 镜像信息 */
Flavor *CtecsListInstanceV41ReturnObjResultsFlavorResponse `json:"flavor"` /* 云主机规格信息 */
OnDemand *bool `json:"onDemand"` /* 付费方式,取值范围:<br />true:表示按量付费,<br />false:表示包周期 */
VpcName string `json:"vpcName,omitempty"` /* 虚拟私有云名称 */
VpcID string `json:"vpcID,omitempty"` /* 虚拟私有云ID */
FixedIPList []string `json:"fixedIPList"` /* 内网IP列表 */
FloatingIP string `json:"floatingIP,omitempty"` /* 公网IP */
SubnetIDList []string `json:"subnetIDList"` /* 子网ID列表 */
KeypairName string `json:"keypairName,omitempty"` /* 密钥对名称 */
DelegateName string `json:"delegateName,omitempty"` /* 委托名称,注:委托绑定目前仅支持多可用区类型资源池,非可用区资源池为空字符串 */
DeletionProtection *bool `json:"deletionProtection"` /* 是否开启实例删除保护 */
RemainingDay int32 `json:"remainingDay,omitempty"` /* 距离释放剩余天数 */
ReleaseTime string `json:"releaseTime,omitempty"` /* 释放时间 */
InstanceDescription string `json:"instanceDescription,omitempty"` /* 云主机描述信息 */
Metadata *CtecsListInstanceV41ReturnObjResultsMetadataResponse `json:"metadata"` /* 用户自定义元数据,注:仅多可用区类型资源池支持返回,非可用区资源池请调用查询元数据接口 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8319&data=87&isNormal=1">云主机元数据查询</a> */
}
type CtecsListInstanceV41ReturnObjResultsVipInfoListResponse ¶
type CtecsListInstanceV41ReturnObjResultsVipInfoListResponse struct {
VipID string `json:"vipID,omitempty"` /* 虚拟IP的ID */
VipAddress string `json:"vipAddress,omitempty"` /* 虚拟IP地址 */
VipBindNicIP string `json:"vipBindNicIP,omitempty"` /* 虚拟IP绑定的网卡对应IPv4地址 */
VipBindNicIPv6 string `json:"vipBindNicIPv6,omitempty"` /* 虚拟IP绑定的网卡对应IPv6地址 */
NicID string `json:"nicID,omitempty"` /* 网卡ID */
}
type CtecsListLiteInstanceV41Api ¶
type CtecsListLiteInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsListLiteInstanceV41Api ¶
func NewCtecsListLiteInstanceV41Api(client *core.CtyunClient) *CtecsListLiteInstanceV41Api
func (*CtecsListLiteInstanceV41Api) Do ¶
func (a *CtecsListLiteInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsListLiteInstanceV41Request) (*CtecsListLiteInstanceV41Response, error)
type CtecsListLiteInstanceV41Request ¶
type CtecsListLiteInstanceV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
PageNo int32 `json:"pageNo,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目,取值范围:[1, 50],注:默认值为10 */
}
type CtecsListLiteInstanceV41Response ¶
type CtecsListLiteInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsListLiteInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsListLiteInstanceV41ReturnObjResponse ¶
type CtecsListLiteInstanceV41ReturnObjResponse struct {
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
Results []*CtecsListLiteInstanceV41ReturnObjResultsResponse `json:"results"` /* 分页明细 */
}
type CtecsListLiteInstanceV41ReturnObjResultsAddressesResponse ¶
type CtecsListLiteInstanceV41ReturnObjResultsAddressesResponse struct {
AddressList []*CtecsListLiteInstanceV41ReturnObjResultsAddressesAddressListResponse `json:"addressList"` /* 网络地址列表 */
}
type CtecsListLiteInstanceV41ReturnObjResultsResponse ¶
type CtecsListLiteInstanceV41ReturnObjResultsResponse struct {
ResourceID string `json:"resourceID,omitempty"` /* 云主机资源ID */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
DisplayName string `json:"displayName,omitempty"` /* 云主机显示名称 */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称 */
OsType int32 `json:"osType,omitempty"` /* 操作系统类型,详见枚举值表格 */
InstanceStatus string `json:"instanceStatus,omitempty"` /* 云主机状态,请通过<a href="https://www.ctyun.cn/document/10026730/10741614">状态枚举值</a>查看云主机使用状态 */
ExpiredTime string `json:"expiredTime,omitempty"` /* 到期时间 */
CreatedTime string `json:"createdTime,omitempty"` /* 创建时间 */
Addresses *CtecsListLiteInstanceV41ReturnObjResultsAddressesResponse `json:"addresses"` /* 网络地址信息 */
Image *CtecsListLiteInstanceV41ReturnObjResultsImageResponse `json:"image"` /* 镜像信息 */
Flavor *CtecsListLiteInstanceV41ReturnObjResultsFlavorResponse `json:"flavor"` /* 规格信息 */
Bandwidth int32 `json:"bandwidth,omitempty"` /* 带宽 */
BootDiskSize int32 `json:"bootDiskSize,omitempty"` /* 系统盘大小 */
}
type CtecsListLiveResizeFlavorV41Api ¶
type CtecsListLiveResizeFlavorV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsListLiveResizeFlavorV41Api ¶
func NewCtecsListLiveResizeFlavorV41Api(client *core.CtyunClient) *CtecsListLiveResizeFlavorV41Api
func (*CtecsListLiveResizeFlavorV41Api) Do ¶
func (a *CtecsListLiveResizeFlavorV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsListLiveResizeFlavorV41Request) (*CtecsListLiveResizeFlavorV41Response, error)
type CtecsListLiveResizeFlavorV41Request ¶
type CtecsListLiveResizeFlavorV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
}
type CtecsListLiveResizeFlavorV41Response ¶
type CtecsListLiveResizeFlavorV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,详见错误码说明 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsListLiveResizeFlavorV41ReturnObjResponse `json:"returnObj"` /* 返回内容 */
}
type CtecsListLiveResizeFlavorV41ReturnObjFlavorListResponse ¶
type CtecsListLiveResizeFlavorV41ReturnObjFlavorListResponse struct {
CpuInfo string `json:"cpuInfo,omitempty"` /* cpu架构 */
BaseBandwidth float32 `json:"baseBandwidth"` /* 基准带宽 */
FlavorName string `json:"flavorName,omitempty"` /* 云主机规格名称 */
FlavorType string `json:"flavorType,omitempty"` /* 规格类型,取值范围:[CPU、CPU_S6、CPU_C6、CPU_M6、CPU_S3、CPU_C3、CPU_M3、CPU_IP3、GPU_N_T4_V、GPU_N_V100、GPU_N_V100_V、GPU_N_P2V_RENMIN、GPU_N_PI7、GPU_N_G7_V、GPU_N_V100、GPU_N_T4_JX],支持类型会随着功能升级增加 */
FlavorSeries string `json:"flavorSeries,omitempty"` /* 云主机规格系列,详见枚举值表 */
NicMultiQueue int32 `json:"nicMultiQueue,omitempty"` /* 网卡多队列数目 */
Pps int32 `json:"pps,omitempty"` /* 最大收发包限制 */
FlavorCPU int32 `json:"flavorCPU,omitempty"` /* VCPU个数 */
FlavorRAM int32 `json:"flavorRAM,omitempty"` /* 内存 */
Bandwidth float32 `json:"bandwidth"` /* 带宽 */
FlavorID string `json:"flavorID,omitempty"` /* 云主机规格ID */
}
type CtecsListLiveResizeFlavorV41ReturnObjResponse ¶
type CtecsListLiveResizeFlavorV41ReturnObjResponse struct {
FlavorList []*CtecsListLiveResizeFlavorV41ReturnObjFlavorListResponse `json:"flavorList"` /* 规格列表 */
}
type CtecsListPortsV41Api ¶
type CtecsListPortsV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsListPortsV41Api ¶
func NewCtecsListPortsV41Api(client *core.CtyunClient) *CtecsListPortsV41Api
func (*CtecsListPortsV41Api) Do ¶
func (a *CtecsListPortsV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsListPortsV41Request) (*CtecsListPortsV41Response, error)
type CtecsListPortsV41Request ¶
type CtecsListPortsV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
VpcID string /* 虚拟私有云ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028310">产品定义-虚拟私有云</a>来了解虚拟私有云<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4814&data=94">查询VPC列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4811&data=94">创建VPC</a><br />注:在多可用区类型资源池下,vpcID通常以“vpc-”开头,非多可用区类型资源池vpcID为uuid格式 */
DeviceID string /* 关联设备id,即云主机id,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a> */
SubnetID string /* 所属子网ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028310">产品定义-子网</a>来了解子网<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=8659&data=94">查询子网列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4812&data=94">创建子网</a> */
PageNumber int32 /* 页码,取值范围:正整数(≥1),注:默认值为1。建议使用pageNo,该字段未来将会下线。 */
PageSize int32 /* 每页记录数目,取值范围:[1, 50],注:默认值为10 */
PageNo int32 /* 页码,取值范围:正整数(≥1),注:默认值为1 */
}
type CtecsListPortsV41Response ¶
type CtecsListPortsV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj []*CtecsListPortsV41ReturnObjResponse `json:"returnObj"` /* 接口业务数据 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
}
type CtecsListPortsV41ReturnObjResponse ¶
type CtecsListPortsV41ReturnObjResponse struct {
NetworkInterfaceName string `json:"networkInterfaceName,omitempty"` /* 虚拟网名称 */
NetworkInterfaceID string `json:"networkInterfaceID,omitempty"` /* 虚拟网id */
VpcID string `json:"vpcID,omitempty"` /* 所属vpc */
SubnetID string `json:"subnetID,omitempty"` /* 所属子网id */
Role int32 `json:"role,omitempty"` /* 网卡类型: 0 主网卡, 1 弹性网卡 */
MacAddress string `json:"macAddress,omitempty"` /* mac地址 */
PrimaryPrivateIp string `json:"primaryPrivateIp,omitempty"` /* 主ip */
Ipv6Addresses []string `json:"ipv6Addresses"` /* ipv6地址 */
InstanceID string `json:"instanceID,omitempty"` /* 关联的设备id */
InstanceType string `json:"instanceType,omitempty"` /* 设备类型 VM, BM, Other */
Description string `json:"description,omitempty"` /* 描述 */
SecurityGroupIds []string `json:"securityGroupIds"` /* 安全组ID列表 */
SecondaryPrivateIps []string `json:"secondaryPrivateIps"` /* 辅助私网IP */
AdminStatus string `json:"adminStatus,omitempty"` /* 是否启用DOWN, UP */
AssociatedEip string `json:"associatedEip,omitempty"` /* 绑定弹性IP的信息 */
}
type CtecsListRegionsV41Api ¶
type CtecsListRegionsV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsListRegionsV41Api ¶
func NewCtecsListRegionsV41Api(client *core.CtyunClient) *CtecsListRegionsV41Api
func (*CtecsListRegionsV41Api) Do ¶
func (a *CtecsListRegionsV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsListRegionsV41Request) (*CtecsListRegionsV41Response, error)
type CtecsListRegionsV41Request ¶
type CtecsListRegionsV41Request struct {
RegionName string /* 资源池名称 */
}
type CtecsListRegionsV41Response ¶
type CtecsListRegionsV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码('800为成功,900为失败) ,默认值:800 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码。为空表示成功。 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsListRegionsV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码。请求成功时不返回该字段 */
}
type CtecsListRegionsV41ReturnObjRegionListResponse ¶
type CtecsListRegionsV41ReturnObjRegionListResponse struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
RegionParent string `json:"regionParent,omitempty"` /* 资源池所属省份 */
RegionName string `json:"regionName,omitempty"` /* 资源池名称 */
RegionType string `json:"regionType,omitempty"` /* 资源池类型 */
IsMultiZones *bool `json:"isMultiZones"` /* 是否多可用区资源池 */
ZoneList []string `json:"zoneList"` /* 可用区列表 */
RegionCode string `json:"regionCode,omitempty"` /* 地域编号 */
OpenapiAvailable *bool `json:"openapiAvailable"` /* 是否支持通过OpenAPI访问 */
}
type CtecsListRegionsV41ReturnObjResponse ¶
type CtecsListRegionsV41ReturnObjResponse struct {
RegionList []*CtecsListRegionsV41ReturnObjRegionListResponse `json:"regionList"` /* 资源池对象 */
}
type CtecsListSfsInstanceV41Api ¶
type CtecsListSfsInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsListSfsInstanceV41Api ¶
func NewCtecsListSfsInstanceV41Api(client *core.CtyunClient) *CtecsListSfsInstanceV41Api
func (*CtecsListSfsInstanceV41Api) Do ¶
func (a *CtecsListSfsInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsListSfsInstanceV41Request) (*CtecsListSfsInstanceV41Response, error)
type CtecsListSfsInstanceV41Request ¶
type CtecsListSfsInstanceV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
}
type CtecsListSfsInstanceV41Response ¶
type CtecsListSfsInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsListSfsInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsListSfsInstanceV41ReturnObjResponse ¶
type CtecsListSfsInstanceV41ReturnObjResponse struct {
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
Results []*CtecsListSfsInstanceV41ReturnObjResultsResponse `json:"results"` /* 分页明细 */
}
type CtecsListSfsInstanceV41ReturnObjResultsResponse ¶
type CtecsListSfsInstanceV41ReturnObjResultsResponse struct {
FileSysID string `json:"fileSysID,omitempty"` /* 文件系统ID */
FileSysName string `json:"fileSysName,omitempty"` /* 文件系统名称 */
FileSysStatus string `json:"fileSysStatus,omitempty"` /* 文件系统状态 */
StorageType string `json:"storageType,omitempty"` /* 存储类型 */
ExpireTime string `json:"expireTime,omitempty"` /* 到期时间 */
CephID string `json:"cephID,omitempty"` /* 文件系统ID(底层) */
ResourceID string `json:"resourceID,omitempty"` /* 文件系统资源ID(IT) */
}
type CtecsListSnapshotPolicyTaskV41Api ¶
type CtecsListSnapshotPolicyTaskV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsListSnapshotPolicyTaskV41Api ¶
func NewCtecsListSnapshotPolicyTaskV41Api(client *core.CtyunClient) *CtecsListSnapshotPolicyTaskV41Api
func (*CtecsListSnapshotPolicyTaskV41Api) Do ¶
func (a *CtecsListSnapshotPolicyTaskV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsListSnapshotPolicyTaskV41Request) (*CtecsListSnapshotPolicyTaskV41Response, error)
type CtecsListSnapshotPolicyTaskV41Request ¶
type CtecsListSnapshotPolicyTaskV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SnapshotPolicyID string `json:"snapshotPolicyID,omitempty"` /* 云主机快照策略ID,32字节<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9600&data=87">查询云主机快照策略列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9588&data=87">创建云主机快照策略</a> */
PageNo int32 `json:"pageNo,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目,取值范围:[1, 50],注:默认值为10 */
}
type CtecsListSnapshotPolicyTaskV41Response ¶
type CtecsListSnapshotPolicyTaskV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsListSnapshotPolicyTaskV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsListSnapshotPolicyTaskV41ReturnObjResponse ¶
type CtecsListSnapshotPolicyTaskV41ReturnObjResponse struct {
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
TaskList []*CtecsListSnapshotPolicyTaskV41ReturnObjTaskListResponse `json:"taskList"` /* 分页明细 */
}
type CtecsListSnapshotPolicyTaskV41ReturnObjTaskListResponse ¶
type CtecsListSnapshotPolicyTaskV41ReturnObjTaskListResponse struct {
TaskID string `json:"taskID,omitempty"` /* 任务ID */
TaskStatus string `json:"taskStatus,omitempty"` /* 任务状态,范围:<br />createSucceeded:创建成功,<br />createFailed:创建失败,<br />deleteSucceeded:删除成功,<br />deleteFailed:删除失败 */
SnapshotStatus string `json:"snapshotStatus,omitempty"` /* 快照状态,范围:<br />pending:创建中,<br />available:可用,<br />unavailable:不可用,<br />error:错误,<br />deleted:已删除 */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
SnapshotID string `json:"snapshotID,omitempty"` /* 云主机快照ID */
SnapshotName string `json:"snapshotName,omitempty"` /* 云主机快照名称。满足以下规则:不能使用中文,且长度为2-63字符 */
CreateTime string `json:"createTime,omitempty"` /* 任务创建时间 */
CompleteTime string `json:"completeTime,omitempty"` /* 任务完成时间 */
}
type CtecsListSnapshotPolicyV41Api ¶
type CtecsListSnapshotPolicyV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsListSnapshotPolicyV41Api ¶
func NewCtecsListSnapshotPolicyV41Api(client *core.CtyunClient) *CtecsListSnapshotPolicyV41Api
func (*CtecsListSnapshotPolicyV41Api) Do ¶
func (a *CtecsListSnapshotPolicyV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsListSnapshotPolicyV41Request) (*CtecsListSnapshotPolicyV41Response, error)
type CtecsListSnapshotPolicyV41Request ¶
type CtecsListSnapshotPolicyV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
PageNo int32 `json:"pageNo,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目,取值范围:[1, 50],注:默认值为10 */
SnapshotPolicyStatus int32 `json:"snapshotPolicyStatus,omitempty"` /* 快照策略状态,是否启用,取值范围:<br />0:不启用,<br />1:启用<br />注:默认值1(启用) */
QueryContent string `json:"queryContent,omitempty"` /* 模糊匹配查询内容(匹配字段:snapshotPolicyID、snapshotPolicyName) */
}
type CtecsListSnapshotPolicyV41Response ¶
type CtecsListSnapshotPolicyV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsListSnapshotPolicyV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsListSnapshotPolicyV41ReturnObjResponse ¶
type CtecsListSnapshotPolicyV41ReturnObjResponse struct {
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
SnapshotPolicyList []*CtecsListSnapshotPolicyV41ReturnObjSnapshotPolicyListResponse `json:"snapshotPolicyList"` /* 分页明细 */
}
type CtecsListSnapshotPolicyV41ReturnObjSnapshotPolicyListResponse ¶
type CtecsListSnapshotPolicyV41ReturnObjSnapshotPolicyListResponse struct {
SnapshotPolicyID string `json:"snapshotPolicyID,omitempty"` /* 云主机快照策略ID */
SnapshotPolicyStatus int32 `json:"snapshotPolicyStatus,omitempty"` /* 快照策略状态,是否启用,取值范围:<br />0:不启用,<br />1:启用<br />注:默认值1(启用) */
SnapshotPolicyName string `json:"snapshotPolicyName,omitempty"` /* 云主机快照策略名称,满足以下规则:长度为2~63字符,由数字、字母、-组成,只能以字母开头,以数字和字母结尾 */
SnapshotTime string `json:"snapshotTime,omitempty"` /* 快照整点时间,时间取值范围:<br />0~23<br />注:如果一天内多个时间节点备份,以逗号隔开(如11点15点进行快照,则填写"11,15"),默认值0 */
RetentionType string `json:"retentionType,omitempty"` /* 云主机快照保留类型,取值范围:<br />date:按时间保存,<br />num:按数量保存 */
RetentionDay string `json:"retentionDay,omitempty"` /* 云主机快照保留天数,快照保留类型为date时返回,否则为空字符串 */
RetentionNum string `json:"retentionNum,omitempty"` /* 云主机快照保留数量,快照保留类型为num时返回,否则为空字符串 */
CycleType string `json:"cycleType,omitempty"` /* 云主机快照周期类型,取值范围:<br />day:天,<br />week:周 */
CycleDay int32 `json:"cycleDay,omitempty"` /* 周期天数,周期类型为day时返回,表示多少天进行快照 */
CycleWeek string `json:"cycleWeek,omitempty"` /* 周期星期,周期类型为week时返回,表示周几进行快照,由逗号拼接,由0~6组成,0表示周日 */
ResourceCount int32 `json:"resourceCount,omitempty"` /* 绑定云主机数量 */
}
type CtecsListUpdateSpecFlavorV41Api ¶
type CtecsListUpdateSpecFlavorV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsListUpdateSpecFlavorV41Api ¶
func NewCtecsListUpdateSpecFlavorV41Api(client *core.CtyunClient) *CtecsListUpdateSpecFlavorV41Api
func (*CtecsListUpdateSpecFlavorV41Api) Do ¶
func (a *CtecsListUpdateSpecFlavorV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsListUpdateSpecFlavorV41Request) (*CtecsListUpdateSpecFlavorV41Response, error)
type CtecsListUpdateSpecFlavorV41Request ¶
type CtecsListUpdateSpecFlavorV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
}
type CtecsListUpdateSpecFlavorV41Response ¶
type CtecsListUpdateSpecFlavorV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsListUpdateSpecFlavorV41ReturnObjResponse `json:"returnObj"` /* 返回内容 */
}
type CtecsListUpdateSpecFlavorV41ReturnObjFlavorListResponse ¶
type CtecsListUpdateSpecFlavorV41ReturnObjFlavorListResponse struct {
CpuInfo string `json:"cpuInfo,omitempty"` /* cpu架构 */
BaseBandwidth float32 `json:"baseBandwidth"` /* 基准带宽 */
FlavorName string `json:"flavorName,omitempty"` /* 云主机规格名称 */
FlavorType string `json:"flavorType,omitempty"` /* 规格类型,取值范围:[CPU、CPU_C3、CPU_C6、CPU_C7、CPU_c7ne、CPU_C8、CPU_D3、CPU_FC1、CPU_FM1、CPU_FS1、CPU_HC1、CPU_HM1、CPU_HS1、CPU_IP3、CPU_IR3、CPU_IP3_2、CPU_IR3_2、CPU_KC1、CPU_KM1、CPU_KS1、CPU_M2、CPU_M3、CPU_M6、CPU_M7、CPU_M8、CPU_S2、CPU_S3、CPU_S6、CPU_S7、CPU_S8、CPU_s8r、GPU_N_V100_V_FMGQ、GPU_N_V100_V、GPU_N_V100S_V、GPU_N_V100S_V_FMGQ、GPU_N_T4_V、GPU_N_G7_V、GPU_N_V100、GPU_N_V100_SHIPINYUN、GPU_N_V100_SUANFA、GPU_N_P2V_RENMIN、GPU_N_V100S、GPU_N_T4、GPU_N_T4_AIJISUAN、GPU_N_T4_ASR、GPU_N_T4_JX、GPU_N_T4_SHIPINYUN、GPU_N_T4_SUANFA、GPU_N_T4_YUNYOUXI、GPU_N_PI7、GPU_N_P8A、GPU_A_PAK1、GPU_C_PCH1],支持类型会随着功能升级增加 */
FlavorSeries string `json:"flavorSeries,omitempty"` /* 云主机规格系列,详见枚举值表 */
NicMultiQueue int32 `json:"nicMultiQueue,omitempty"` /* 网卡多队列数目 */
Pps int32 `json:"pps,omitempty"` /* 最大收发包限制 */
FlavorCPU int32 `json:"flavorCPU,omitempty"` /* VCPU个数 */
FlavorRAM int32 `json:"flavorRAM,omitempty"` /* 内存 */
Bandwidth float32 `json:"bandwidth"` /* 带宽 */
FlavorID string `json:"flavorID,omitempty"` /* 云主机规格ID */
GpuVendor string `json:"gpuVendor,omitempty"` /* GPU厂商 */
VideoMemSize int32 `json:"videoMemSize,omitempty"` /* GPU显存大小 */
GpuType string `json:"gpuType,omitempty"` /* GPU类型,取值范围:T4、V100、V100S、A10、A100、atlas 300i pro、mlu370-s4,支持类型会随着功能升级增加 */
GpuCount int32 `json:"gpuCount,omitempty"` /* GPU设备数量 */
Available *bool `json:"available"` /* 是否可用<br />true:可用,<br />false:不可用,已售罄 */
AzList []string `json:"azList"` /* 多az名称列表(非多可用区为\["default"\]) */
FlavorSeriesName string `json:"flavorSeriesName,omitempty"` /* 规格系列名称,参照参数flavorSeries说明 */
DedicatedAreaZone string `json:"dedicatedAreaZone,omitempty"` /* 可用分区ID */
DedicatedAreaZoneName string `json:"dedicatedAreaZoneName,omitempty"` /* 可用分区名称 */
}
type CtecsListUpdateSpecFlavorV41ReturnObjResponse ¶
type CtecsListUpdateSpecFlavorV41ReturnObjResponse struct {
FlavorList []*CtecsListUpdateSpecFlavorV41ReturnObjFlavorListResponse `json:"flavorList"` /* 规格列表 */
}
type CtecsLiteEcsCreateVolumeApi ¶
type CtecsLiteEcsCreateVolumeApi struct {
// contains filtered or unexported fields
}
func NewCtecsLiteEcsCreateVolumeApi ¶
func NewCtecsLiteEcsCreateVolumeApi(client *core.CtyunClient) *CtecsLiteEcsCreateVolumeApi
func (*CtecsLiteEcsCreateVolumeApi) Do ¶
func (a *CtecsLiteEcsCreateVolumeApi) Do(ctx context.Context, credential core.Credential, req *CtecsLiteEcsCreateVolumeRequest) (*CtecsLiteEcsCreateVolumeResponse, error)
type CtecsLiteEcsCreateVolumeRequest ¶
type CtecsLiteEcsCreateVolumeRequest struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性,保留时间为24小时 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 轻量型云主机ID,您可以查看<a href="https://www.ctyun.cn/products/lite-ecs">轻量型云主机</a>了解轻量型云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11981&data=87">查询轻量型云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11980&data=87">创建轻量型云主机</a> */
DiskName string `json:"diskName,omitempty"` /* 磁盘名称,名称规则:长度2~63,不支持中文。注:当创建多块云硬盘时(即参数diskCount的值大于1时),第二块盘起名称会追加序号 */
DiskType string `json:"diskType,omitempty"` /* 磁盘类型,取值范围:<br />SATA:普通IO,<br />SAS:高IO,<br />SSD:超高IO<br />您可以查看<a href="https://www.ctyun.cn/document/10027696/10162918">磁盘类型及性能介绍</a>磁盘类型相关信息 */
DiskSize int32 `json:"diskSize,omitempty"` /* 磁盘容量,单位为GB,取值范围:[10, 32768] */
DiskCount int32 `json:"diskCount,omitempty"` /* 本地订购磁盘数量。注:不填写默认为1块盘,创建多块盘时填写多个;该参数值受单台轻量型云主机挂载硬盘上限值限制 */
}
type CtecsLiteEcsCreateVolumeResponse ¶
type CtecsLiteEcsCreateVolumeResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsLiteEcsCreateVolumeReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsLiteEcsCreateVolumeReturnObjResponse ¶
type CtecsLiteEcsCreateVolumeReturnObjResponse struct {
MasterOrderID string `json:"masterOrderID,omitempty"` /* 订单ID。调用方在拿到masterOrderID之后,在若干错误情况下,可以使用materOrderID进一步确认订单状态及资源状态 */
MasterOrderNO string `json:"masterOrderNO,omitempty"` /* 订单号 */
RegionID string `json:"regionID,omitempty"` /* 资源所属资源池ID */
}
type CtecsLiteEcsUnsubscribeVolumeApi ¶
type CtecsLiteEcsUnsubscribeVolumeApi struct {
// contains filtered or unexported fields
}
func NewCtecsLiteEcsUnsubscribeVolumeApi ¶
func NewCtecsLiteEcsUnsubscribeVolumeApi(client *core.CtyunClient) *CtecsLiteEcsUnsubscribeVolumeApi
func (*CtecsLiteEcsUnsubscribeVolumeApi) Do ¶
func (a *CtecsLiteEcsUnsubscribeVolumeApi) Do(ctx context.Context, credential core.Credential, req *CtecsLiteEcsUnsubscribeVolumeRequest) (*CtecsLiteEcsUnsubscribeVolumeResponse, error)
type CtecsLiteEcsUnsubscribeVolumeRequest ¶
type CtecsLiteEcsUnsubscribeVolumeRequest struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性,保留时间为24小时 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11981&data=87">查询轻量型云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11980&data=87">创建轻量型云主机</a> */
DiskID string `json:"diskID,omitempty"` /* 云硬盘ID */
}
type CtecsLiteEcsUnsubscribeVolumeResponse ¶
type CtecsLiteEcsUnsubscribeVolumeResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsLiteEcsUnsubscribeVolumeReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsLiteEcsUnsubscribeVolumeReturnObjResponse ¶
type CtecsLiteEcsUnsubscribeVolumeReturnObjResponse struct {
MasterOrderID string `json:"masterOrderID,omitempty"` /* 订单ID。调用方在拿到masterOrderID之后,在若干错误情况下,可以使用materOrderID进一步确认订单状态及资源状态 */
MasterOrderNO string `json:"masterOrderNO,omitempty"` /* 订单号 */
RegionID string `json:"regionID,omitempty"` /* 资源所属资源池ID */
}
type CtecsLiveResizeInstanceV41Api ¶
type CtecsLiveResizeInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsLiveResizeInstanceV41Api ¶
func NewCtecsLiveResizeInstanceV41Api(client *core.CtyunClient) *CtecsLiveResizeInstanceV41Api
func (*CtecsLiveResizeInstanceV41Api) Do ¶
func (a *CtecsLiveResizeInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsLiveResizeInstanceV41Request) (*CtecsLiveResizeInstanceV41Response, error)
type CtecsLiveResizeInstanceV41Request ¶
type CtecsLiveResizeInstanceV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
FlavorID string `json:"flavorID,omitempty"` /* 云主机规格ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10118193">规格说明</a>了解弹性云主机的选型基本信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=13078&data=87">查询云主机支持的热变配规格信息</a> */
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个clientToken值,则代表为同一个请求。保留时间为24小时 */
PayVoucherPrice float32 `json:"payVoucherPrice"` /* 代金券,满足以下规则:<br />两位小数,不足两位自动补0,超过两位小数无效;<br />不可为负数;<br />注:字段为0时表示不使用代金券,默认不使用 */
}
type CtecsLiveResizeInstanceV41Response ¶
type CtecsLiveResizeInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,详见错误码部分 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码,详见错误码部分 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsLiveResizeInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsModifyCommandApi ¶
type CtecsModifyCommandApi struct {
// contains filtered or unexported fields
}
func NewCtecsModifyCommandApi ¶
func NewCtecsModifyCommandApi(client *core.CtyunClient) *CtecsModifyCommandApi
func (*CtecsModifyCommandApi) Do ¶
func (a *CtecsModifyCommandApi) Do(ctx context.Context, credential core.Credential, req *CtecsModifyCommandRequest) (*CtecsModifyCommandResponse, error)
type CtecsModifyCommandRequest ¶
type CtecsModifyCommandRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
CommandID string `json:"commandID,omitempty"` /* 命令ID */
CommandName string `json:"commandName,omitempty"` /* 命令名称,长度不超过128个字符 */
Description string `json:"description,omitempty"` /* 命令描述,长度不超过512个字符 */
CommandType string `json:"commandType,omitempty"` /* 命令类型,取值范围:<br />Shell:适用于Linux云主机、物理机的Shell命令;<br />Bat:适用于Windows云主机的Bat命令;<br />PowerShell:适用于Windows云主机的PowerShell命令;<br />Python:适用于Python命令 */
CommandContent string `json:"commandContent,omitempty"` /* 加密后的命令内容,base64编码长度不可超过24KB */
WorkingDirectory string `json:"workingDirectory,omitempty"` /* 命令在云主机中运行目录 */
Timeout int32 `json:"timeout,omitempty"` /* 命令超时时间 */
EnabledParameter *bool `json:"enabledParameter"` /* 是否启用自定义参数,若传true,则必须传defaultParameter,若enabledParameter为false,则defaultParameter不能传 */
DefaultParameter []*CtecsModifyCommandDefaultParameterRequest `json:"defaultParameter"` /* 自定义参数使能时,修改自定义参数默认值 */
}
type CtecsModifyCommandResponse ¶
type CtecsModifyCommandResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800 为成功,900 为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsModifyCommandReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsModifyCommandReturnObjResponse ¶
type CtecsModifyCommandReturnObjResponse struct {
CommandID string `json:"commandID,omitempty"` /* 命令ID */
}
type CtecsModifySecurityGroupEgressV41Api ¶
type CtecsModifySecurityGroupEgressV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsModifySecurityGroupEgressV41Api ¶
func NewCtecsModifySecurityGroupEgressV41Api(client *core.CtyunClient) *CtecsModifySecurityGroupEgressV41Api
func (*CtecsModifySecurityGroupEgressV41Api) Do ¶
func (a *CtecsModifySecurityGroupEgressV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsModifySecurityGroupEgressV41Request) (*CtecsModifySecurityGroupEgressV41Response, error)
type CtecsModifySecurityGroupEgressV41Request ¶
type CtecsModifySecurityGroupEgressV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SecurityGroupID string `json:"securityGroupID,omitempty"` /* 安全组ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>了解安全组相关信息 <br />获取: <br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4817&data=94">查询用户安全组列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4821&data=94">创建安全组</a> */
SecurityGroupRuleID string `json:"securityGroupRuleID,omitempty"` /* 安全组出向规则ID,获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4818&data=94">查询用户安全组详情</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4824&data=94">创建安全组出向规则</a><br />注:在多可用区类型资源池下,安全组ID通常以“sg-”开头,非多可用区类型资源池安全组ID为uuid格式 */
Description string `json:"description,omitempty"` /* 安全组规则描述信息,满足以下规则:<br />① 长度0-128字符,<br />② 支持拉丁字母、中文、数字, 特殊字符:~!@#$%^&*()_-+= <>?:{},./;'[]·~!@#¥%……&*() —— -+={}\|《》?:“”【】、;‘',。、,不能以 http: / https: 开头 */
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。长度为1-64字符,要求单个云平台账户内唯一,使用同一个clientToken值,其他请求参数相同时,则代表为同一个请求。保留时间为24小时 */
Action string `json:"action,omitempty"` /* 拒绝策略:允许-accept 拒绝-drop */
Priority int32 `json:"priority,omitempty"` /* 优先级:1~100,取值越小优先级越大 */
Protocol string `json:"protocol,omitempty"` /* 协议: ANY、TCP、UDP、ICMP(v4) */
RemoteSecurityGroupID string `json:"remoteSecurityGroupID,omitempty"` /* 远端安全组id */
DestCidrIp string `json:"destCidrIp,omitempty"` /* cidr */
RemoteType int32 `json:"remoteType,omitempty"` /* 远端类型,0 表示 destCidrIp,1 表示 remoteSecurityGroupID, 2 表示 prefixlistID,默认为 0 */
PrefixListID string `json:"prefixListID,omitempty"` /* 前缀列表 */
}
type CtecsModifySecurityGroupEgressV41Response ¶
type CtecsModifySecurityGroupEgressV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
}
type CtecsModifySecurityGroupIngressV41Api ¶
type CtecsModifySecurityGroupIngressV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsModifySecurityGroupIngressV41Api ¶
func NewCtecsModifySecurityGroupIngressV41Api(client *core.CtyunClient) *CtecsModifySecurityGroupIngressV41Api
func (*CtecsModifySecurityGroupIngressV41Api) Do ¶
func (a *CtecsModifySecurityGroupIngressV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsModifySecurityGroupIngressV41Request) (*CtecsModifySecurityGroupIngressV41Response, error)
type CtecsModifySecurityGroupIngressV41Request ¶
type CtecsModifySecurityGroupIngressV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SecurityGroupID string `json:"securityGroupID,omitempty"` /* 安全组ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>了解安全组相关信息 <br />获取: <br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4817&data=94">查询用户安全组列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4821&data=94">创建安全组</a> */
SecurityGroupRuleID string `json:"securityGroupRuleID,omitempty"` /* 安全组入向规则ID,获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4818&data=94">查询用户安全组详情</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4823&data=94">创建安全组入向规则</a><br />注:在多可用区类型资源池下,安全组ID通常以“sg-”开头,非多可用区类型资源池安全组ID为uuid格式 */
Description string `json:"description,omitempty"` /* 安全组规则描述信息,满足以下规则:<br />① 长度0-128字符,<br />② 支持拉丁字母、中文、数字, 特殊字符<br />!@#¥%……&*()——-+={}《》?:“”【】、;‘',。、<br />不能以 http: / https: 开头 */
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。长度为1-64字符,要求单个云平台账户内唯一,使用同一个clientToken值,其他请求参数相同时,则代表为同一个请求。保留时间为24小时 */
Action string `json:"action,omitempty"` /* 拒绝策略:允许-accept 拒绝-drop */
Priority int32 `json:"priority,omitempty"` /* 优先级:1~100,取值越小优先级越大 */
Protocol string `json:"protocol,omitempty"` /* 协议: ANY、TCP、UDP、ICMP(v4) */
RemoteSecurityGroupID string `json:"remoteSecurityGroupID,omitempty"` /* 远端安全组id */
DestCidrIp string `json:"destCidrIp,omitempty"` /* cidr */
RemoteType int32 `json:"remoteType,omitempty"` /* 远端类型,0 表示 destCidrIp,1 表示 remoteSecurityGroupID, 2 表示 prefixlistID,默认为 0 */
PrefixListID string `json:"prefixListID,omitempty"` /* 前缀列表 */
}
type CtecsModifySecurityGroupIngressV41Response ¶
type CtecsModifySecurityGroupIngressV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
}
type CtecsOperateAllInstancesV41Api ¶
type CtecsOperateAllInstancesV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsOperateAllInstancesV41Api ¶
func NewCtecsOperateAllInstancesV41Api(client *core.CtyunClient) *CtecsOperateAllInstancesV41Api
func (*CtecsOperateAllInstancesV41Api) Do ¶
func (a *CtecsOperateAllInstancesV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsOperateAllInstancesV41Request) (*CtecsOperateAllInstancesV41Response, error)
type CtecsOperateAllInstancesV41Request ¶
type CtecsOperateAllInstancesV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
OperateType string `json:"operateType,omitempty"` /* 操作类型,可选值:start(全部开机)、stop(全部关机)、reboot(全部重启) */
}
type CtecsOperateAllInstancesV41Response ¶
type CtecsOperateAllInstancesV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsOperateAllInstancesV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsOperateAllInstancesV41ReturnObjJobIDListResponse ¶
type CtecsOperateAllInstancesV41ReturnObjJobIDListResponse struct {
JobID string `json:"jobID,omitempty"` /* 任务ID,您可以调用<a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9271&data=87">查询多个异步任务的结果</a>来查询操作是否成功 */
InstanceID string `json:"instanceID,omitempty"` /* 对应任务云主机ID */
}
type CtecsOperateAllInstancesV41ReturnObjResponse ¶
type CtecsOperateAllInstancesV41ReturnObjResponse struct {
JobIDList []*CtecsOperateAllInstancesV41ReturnObjJobIDListResponse `json:"jobIDList"` /* 任务列表 */
}
type CtecsPortsAssignIpv6V41Api ¶
type CtecsPortsAssignIpv6V41Api struct {
// contains filtered or unexported fields
}
func NewCtecsPortsAssignIpv6V41Api ¶
func NewCtecsPortsAssignIpv6V41Api(client *core.CtyunClient) *CtecsPortsAssignIpv6V41Api
func (*CtecsPortsAssignIpv6V41Api) Do ¶
func (a *CtecsPortsAssignIpv6V41Api) Do(ctx context.Context, credential core.Credential, req *CtecsPortsAssignIpv6V41Request) (*CtecsPortsAssignIpv6V41Response, error)
type CtecsPortsAssignIpv6V41Request ¶
type CtecsPortsAssignIpv6V41Request struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个clientToken值,则代表为同一个请求。保留时间为24小时 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
NetworkInterfaceID string `json:"networkInterfaceID,omitempty"` /* 网卡ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10197673">弹性网卡-弹性网卡基本知识</a>来了解弹性网卡<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5802&data=94">查询弹性网卡列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5789&data=94">创建弹性网卡</a> */
Ipv6AddressesCount int32 `json:"ipv6AddressesCount,omitempty"` /* Ipv6地址数量,新增自动分配地址的IPv6的数量,与ipv6Addresses二选一 */
Ipv6Addresses []string `json:"ipv6Addresses"` /* IPv6地址列表,新增指定地址的IPv6列表,与ipv6AddressesCount二选一 */
}
type CtecsPortsAssignIpv6V41Response ¶
type CtecsPortsAssignIpv6V41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
}
type CtecsPortsAssignSecondaryprivateipsV41Api ¶
type CtecsPortsAssignSecondaryprivateipsV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsPortsAssignSecondaryprivateipsV41Api ¶
func NewCtecsPortsAssignSecondaryprivateipsV41Api(client *core.CtyunClient) *CtecsPortsAssignSecondaryprivateipsV41Api
func (*CtecsPortsAssignSecondaryprivateipsV41Api) Do ¶
func (a *CtecsPortsAssignSecondaryprivateipsV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsPortsAssignSecondaryprivateipsV41Request) (*CtecsPortsAssignSecondaryprivateipsV41Response, error)
type CtecsPortsAssignSecondaryprivateipsV41Request ¶
type CtecsPortsAssignSecondaryprivateipsV41Request struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个clientToken值,则代表为同一个请求。保留时间为24小时 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
NetworkInterfaceID string `json:"networkInterfaceID,omitempty"` /* 网卡ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10197673">弹性网卡-弹性网卡基本知识</a>来了解弹性网卡<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5802&data=94">查询弹性网卡列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5789&data=94">创建弹性网卡</a> */
SecondaryPrivateIps []string `json:"secondaryPrivateIps"` /* 辅助私网IP列表,新增辅助私网IP,与secondaryPrivateIpCount二选一 */
SecondaryPrivateIpCount int32 `json:"secondaryPrivateIpCount,omitempty"` /* 辅助私网IP数量,新增自动分配辅助私网IP的数量,与secondaryPrivateIps二选一 */
}
type CtecsPortsAssignSecondaryprivateipsV41Response ¶
type CtecsPortsAssignSecondaryprivateipsV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj string `json:"returnObj,omitempty"` /* 成功时返回的数据 */
}
type CtecsPortsAttachInstanceV41Api ¶
type CtecsPortsAttachInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsPortsAttachInstanceV41Api ¶
func NewCtecsPortsAttachInstanceV41Api(client *core.CtyunClient) *CtecsPortsAttachInstanceV41Api
func (*CtecsPortsAttachInstanceV41Api) Do ¶
func (a *CtecsPortsAttachInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsPortsAttachInstanceV41Request) (*CtecsPortsAttachInstanceV41Response, error)
type CtecsPortsAttachInstanceV41Request ¶
type CtecsPortsAttachInstanceV41Request struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个clientToken值,则代表为同一个请求。保留时间为24小时 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
AzName string `json:"azName,omitempty"` /* 可用区名称,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解可用区 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5855&data=87">资源池可用区查询</a><br />注:查询结果中zoneList内返回存在可用区名称(即多可用区,本字段填写实际可用区名称),若查询结果中zoneList为空(即为单可用区,本字段填写default) */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目 */
NetworkInterfaceID string `json:"networkInterfaceID,omitempty"` /* 弹性网卡ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10197673">弹性网卡-弹性网卡基本知识</a>来了解弹性网卡<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5802&data=94">查询弹性网卡列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5789&data=94">创建弹性网卡</a><br />注:多可用区时,为弹性网卡ID;非多可用区时,为子网ID。 */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
InstanceType int32 `json:"instanceType,omitempty"` /* 实例类型:3-虚拟机 */
}
type CtecsPortsAttachInstanceV41Response ¶
type CtecsPortsAttachInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
}
type CtecsPortsDetachInstanceV41Api ¶
type CtecsPortsDetachInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsPortsDetachInstanceV41Api ¶
func NewCtecsPortsDetachInstanceV41Api(client *core.CtyunClient) *CtecsPortsDetachInstanceV41Api
func (*CtecsPortsDetachInstanceV41Api) Do ¶
func (a *CtecsPortsDetachInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsPortsDetachInstanceV41Request) (*CtecsPortsDetachInstanceV41Response, error)
type CtecsPortsDetachInstanceV41Request ¶
type CtecsPortsDetachInstanceV41Request struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个clientToken值,则代表为同一个请求。保留时间为24小时 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
NetworkInterfaceID string `json:"networkInterfaceID,omitempty"` /* 网卡ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10197673">弹性网卡-弹性网卡基本知识</a>来了解弹性网卡<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5802&data=94">查询弹性网卡列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5789&data=94">创建弹性网卡</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a><br />注:多可用区时,云主机ID非必填;非多可用区,云主机ID必填。 */
}
type CtecsPortsDetachInstanceV41Response ¶
type CtecsPortsDetachInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
}
type CtecsPortsUnassignIpv6V41Api ¶
type CtecsPortsUnassignIpv6V41Api struct {
// contains filtered or unexported fields
}
func NewCtecsPortsUnassignIpv6V41Api ¶
func NewCtecsPortsUnassignIpv6V41Api(client *core.CtyunClient) *CtecsPortsUnassignIpv6V41Api
func (*CtecsPortsUnassignIpv6V41Api) Do ¶
func (a *CtecsPortsUnassignIpv6V41Api) Do(ctx context.Context, credential core.Credential, req *CtecsPortsUnassignIpv6V41Request) (*CtecsPortsUnassignIpv6V41Response, error)
type CtecsPortsUnassignIpv6V41Request ¶
type CtecsPortsUnassignIpv6V41Request struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个clientToken值,则代表为同一个请求。保留时间为24小时 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br />查 <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
NetworkInterfaceID string `json:"networkInterfaceID,omitempty"` /* 网卡ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10197673">弹性网卡-弹性网卡基本知识</a>来了解弹性网卡<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5802&data=94">查询弹性网卡列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5789&data=94">创建弹性网卡</a> */
Ipv6Addresses []string `json:"ipv6Addresses"` /* 解绑的IPv6地址列表 */
}
type CtecsPortsUnassignIpv6V41Response ¶
type CtecsPortsUnassignIpv6V41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
}
type CtecsPortsUnassignSecondaryprivateipsV41Api ¶
type CtecsPortsUnassignSecondaryprivateipsV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsPortsUnassignSecondaryprivateipsV41Api ¶
func NewCtecsPortsUnassignSecondaryprivateipsV41Api(client *core.CtyunClient) *CtecsPortsUnassignSecondaryprivateipsV41Api
func (*CtecsPortsUnassignSecondaryprivateipsV41Api) Do ¶
func (a *CtecsPortsUnassignSecondaryprivateipsV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsPortsUnassignSecondaryprivateipsV41Request) (*CtecsPortsUnassignSecondaryprivateipsV41Response, error)
type CtecsPortsUnassignSecondaryprivateipsV41Request ¶
type CtecsPortsUnassignSecondaryprivateipsV41Request struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个clientToken值,其他请求参数相同时,则代表为同一个请求。保留时间为24小时 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
NetworkInterfaceID string `json:"networkInterfaceID,omitempty"` /* 网卡ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10197673">弹性网卡-弹性网卡基本知识</a>来了解弹性网卡<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5802&data=94">查询弹性网卡列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5789&data=94">创建弹性网卡</a> */
SecondaryPrivateIps []string `json:"secondaryPrivateIps"` /* 辅助私网IP列表 */
}
type CtecsPortsUnassignSecondaryprivateipsV41Response ¶
type CtecsPortsUnassignSecondaryprivateipsV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
}
type CtecsQueryAsyncResultV41Api ¶
type CtecsQueryAsyncResultV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryAsyncResultV41Api ¶
func NewCtecsQueryAsyncResultV41Api(client *core.CtyunClient) *CtecsQueryAsyncResultV41Api
func (*CtecsQueryAsyncResultV41Api) Do ¶
func (a *CtecsQueryAsyncResultV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryAsyncResultV41Request) (*CtecsQueryAsyncResultV41Response, error)
type CtecsQueryAsyncResultV41Request ¶
type CtecsQueryAsyncResultV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
JobID string /* 异步任务ID */
}
type CtecsQueryAsyncResultV41Response ¶
type CtecsQueryAsyncResultV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsQueryAsyncResultV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsQueryAsyncResultV41ReturnObjResponse ¶
type CtecsQueryAsyncResultV41ReturnObjResponse struct {
JobStatus int32 `json:"jobStatus,omitempty"` /* 任务执行状态,取值范围:<br />0:执行中,<br />1:执行成功,<br />2:执行失败 */
}
type CtecsQueryCustomerQuotasInRegionV41Api ¶
type CtecsQueryCustomerQuotasInRegionV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryCustomerQuotasInRegionV41Api ¶
func NewCtecsQueryCustomerQuotasInRegionV41Api(client *core.CtyunClient) *CtecsQueryCustomerQuotasInRegionV41Api
func (*CtecsQueryCustomerQuotasInRegionV41Api) Do ¶
func (a *CtecsQueryCustomerQuotasInRegionV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryCustomerQuotasInRegionV41Request) (*CtecsQueryCustomerQuotasInRegionV41Response, error)
type CtecsQueryCustomerQuotasInRegionV41Request ¶
type CtecsQueryCustomerQuotasInRegionV41Request struct {
RegionID string /* 资源池ID */
}
type CtecsQueryCustomerQuotasInRegionV41Response ¶
type CtecsQueryCustomerQuotasInRegionV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码('800为成功,900为失败) ,默认值:800 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码。为空表示成功。 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsQueryCustomerQuotasInRegionV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsQueryCustomerQuotasInRegionV41ReturnObjGlobal_quotaResponse ¶
type CtecsQueryCustomerQuotasInRegionV41ReturnObjGlobal_quotaResponse struct {
Global_public_ip_limit int32 `json:"global_public_ip_limit,omitempty"` /* 弹性公网IP个数上限 */
}
type CtecsQueryCustomerQuotasInRegionV41ReturnObjQuotasResponse ¶
type CtecsQueryCustomerQuotasInRegionV41ReturnObjQuotasResponse struct {
Network_acl_limit int32 `json:"network_acl_limit,omitempty"` /* ACL规则个数 */
Max_capacity_of_disk_creation_cs int32 `json:"max_capacity_of_disk_creation_cs,omitempty"` /* 单块磁盘创建时的最大容量-CS(GB) */
Disk_backup_capacity_limit int32 `json:"disk_backup_capacity_limit,omitempty"` /* 云硬盘备份容量上限-OS(GB) */
Storage_limit int32 `json:"storage_limit,omitempty"` /* 存储总容量上限(GB) */
Network_limit_each_vpc int32 `json:"network_limit_each_vpc,omitempty"` /* 单个VPC下子网个数上限-CS */
Load_balancer_limit_each_ip_os int32 `json:"load_balancer_limit_each_ip_os,omitempty"` /* 单个负载均衡下的监听器个数上限-OS */
Monitoring_item_limit int32 `json:"monitoring_item_limit,omitempty"` /* 单个监控视图下的监控项个数上限 */
Monitor_alerm_rules_limit int32 `json:"monitor_alerm_rules_limit,omitempty"` /* 告警规则个数上限 */
Vm_limit_each_load_balancer_os int32 `json:"vm_limit_each_load_balancer_os,omitempty"` /* 单个监听器下可绑定的主机个数上限 */
Network_limit_each_vpc_os int32 `json:"network_limit_each_vpc_os,omitempty"` /* 单个VPC下的子网个数上限-OS */
Pm_limit_per_platform int32 `json:"pm_limit_per_platform,omitempty"` /* 单资源池下物理机个数上限 */
Snapshot_limit_per_cloud_server_os int32 `json:"snapshot_limit_per_cloud_server_os,omitempty"` /* 单台云服务器快照上限-OS */
Max_duration_of_elastic_ip_creation string `json:"max_duration_of_elastic_ip_creation,omitempty"` /* 创建弹性IP可选的最大时长(年) */
Vpc_limit_os int32 `json:"vpc_limit_os,omitempty"` /* VPC上限-OS */
Memory_limit int32 `json:"memory_limit,omitempty"` /* 内存上限(GB) */
Max_bandwidth_of_elastic_ip_creation int32 `json:"max_bandwidth_of_elastic_ip_creation,omitempty"` /* 创建弹性IP时的带宽上限 */
Network_cards_limit int32 `json:"network_cards_limit,omitempty"` /* 单个主机网卡个数上限 */
Private_image_limit int32 `json:"private_image_limit,omitempty"` /* 私有镜像上限-CS */
Snapshot_limit_os int32 `json:"snapshot_limit_os,omitempty"` /* 快照个数上限-OS */
Vm_limit_each_time int32 `json:"vm_limit_each_time,omitempty"` /* 单次创建云主机个数上限 */
Vpc_limit int32 `json:"vpc_limit,omitempty"` /* VPC上限-CS */
Pm_mem_total_limit_per_platform int32 `json:"pm_mem_total_limit_per_platform,omitempty"` /* 单资源池物理机内存总额上限 */
Load_balancer_limit_each_ip int32 `json:"load_balancer_limit_each_ip,omitempty"` /* 单个负载均衡下监听器个数上限-CS */
Volume_limit_each_time int32 `json:"volume_limit_each_time,omitempty"` /* 单次创建磁盘个数上限 */
Load_balancer_limit int32 `json:"load_balancer_limit,omitempty"` /* 负载均衡个数上限-CS */
Disk_backup_amount_limit int32 `json:"disk_backup_amount_limit,omitempty"` /* 云硬盘备份的数量上限-OS */
Max_capacity_of_disk_creation_os int32 `json:"max_capacity_of_disk_creation_os,omitempty"` /* 创建单块磁盘时最大容量-OS */
Key_pair_limit int32 `json:"key_pair_limit,omitempty"` /* 密匙对上限 */
Max_duration_of_host_creation string `json:"max_duration_of_host_creation,omitempty"` /* 创建主机时可选的最大时长(年) */
Security_group_rules_limit int32 `json:"security_group_rules_limit,omitempty"` /* 安全组规则个数上限 */
Pm_cpu_total_limit_per_platform int32 `json:"pm_cpu_total_limit_per_platform,omitempty"` /* 单资源池物理机CPU总配额 */
Max_duration_of_disk_product_creation string `json:"max_duration_of_disk_product_creation,omitempty"` /* 磁盘产品创建时可选最大时长(年) */
Max_capacity_of_sys_disk_creation_os int32 `json:"max_capacity_of_sys_disk_creation_os,omitempty"` /* 创建系统盘时可选的最大容量-OS(GB) */
Snapshot_limit_per_cloud_server int32 `json:"snapshot_limit_per_cloud_server,omitempty"` /* 单台云服务器快照个数上限-cs */
Network_acl_limit_os int32 `json:"network_acl_limit_os,omitempty"` /* ACL规则个数上限-OS */
Volume_limit_each_vm int32 `json:"volume_limit_each_vm,omitempty"` /* 单台云主机可挂载磁盘块数上限 */
Volume_size_limit int32 `json:"volume_size_limit,omitempty"` /* 磁盘总容量上限(GB) */
Snapshot_limit int32 `json:"snapshot_limit,omitempty"` /* 快照总个数上限-CS */
Public_ip_limit_each_time int32 `json:"public_ip_limit_each_time,omitempty"` /* 单次创建公网IP个数上限 */
Private_image_limit_os int32 `json:"private_image_limit_os,omitempty"` /* 私有镜像上限-OS */
Load_balancer_limit_os int32 `json:"load_balancer_limit_os,omitempty"` /* 负载均衡个数上限-OS */
Volume_size_lower_limit int32 `json:"volume_size_lower_limit,omitempty"` /* 单块磁盘创建时可选的最小容量(GB) */
Monitor_view_limit int32 `json:"monitor_view_limit,omitempty"` /* 单个监控面板下可添加的监控视图个数上限 */
Vcpu_limit int32 `json:"vcpu_limit,omitempty"` /* VCPU总核数 */
Self_customized_alerm_model_limit int32 `json:"self_customized_alerm_model_limit,omitempty"` /* 自定义告警模板个数上限 */
Monitor_panel_limit int32 `json:"monitor_panel_limit,omitempty"` /* 监控面板个数上限 */
Vm_limit_each_load_balancer int32 `json:"vm_limit_each_load_balancer,omitempty"` /* 单个监听器可绑定的主机个数上限-CS */
Public_ip_limit int32 `json:"public_ip_limit,omitempty"` /* 弹性公网IP个数上限 */
Security_groups_limit int32 `json:"security_groups_limit,omitempty"` /* 安全组个数上限 */
Total_volume_limit int32 `json:"total_volume_limit,omitempty"` /* 磁盘总块数 */
Backup_policy_limit int32 `json:"backup_policy_limit,omitempty"` /* 云硬盘备份策略个数上限 */
Vm_limit int32 `json:"vm_limit,omitempty"` /* 云主机总数上限 */
Rule_limit_of_direction_out_per_acl_cs int32 `json:"rule_limit_of_direction_out_per_acl_cs,omitempty"` /* 单ACL下出方向规则个数上限-CS */
Rule_limit_of_direction_out_per_acl_os int32 `json:"rule_limit_of_direction_out_per_acl_os,omitempty"` /* 单ACL下出方向规则个数上限-OS */
Rule_limit_of_direction_in_per_acl_os int32 `json:"rule_limit_of_direction_in_per_acl_os,omitempty"` /* 单ACL下入方向规则个数上限-OS */
Rule_limit_of_direction_in_per_acl_cs int32 `json:"rule_limit_of_direction_in_per_acl_cs,omitempty"` /* 单ACL下入方向规则个数上限-CS */
Public_ip_v6_os_limit int32 `json:"public_ip_v6_os_limit,omitempty"` /* ipv6带宽包上限-OS */
Csbs_backup_policy_limit int32 `json:"csbs_backup_policy_limit,omitempty"` /* 云主机备份策略上限 */
Csbs_backup_policy_instance_limit int32 `json:"csbs_backup_policy_instance_limit,omitempty"` /* 云主机备份策略绑定云主机个数上限 */
Csbs_backup_amount_limit int32 `json:"csbs_backup_amount_limit,omitempty"` /* 云主机备份上限 */
Csbs_backup_amount_limit_os int32 `json:"csbs_backup_amount_limit_os,omitempty"` /* OS资源池云主机备份上限 */
Csbs_backup_capacity_limit int32 `json:"csbs_backup_capacity_limit,omitempty"` /* 云主机备份磁盘容量上限(GB) */
Csbs_backup_capacity_limit_os int32 `json:"csbs_backup_capacity_limit_os,omitempty"` /* OS资源池云主机备份磁盘容量上限(GB) */
Max_count_of_nic_per_vm int32 `json:"max_count_of_nic_per_vm,omitempty"` /* 单台虚机可添加网卡数量上限 */
Max_num_of_vm_per_vip int32 `json:"max_num_of_vm_per_vip,omitempty"` /* 单虚IP可绑定的主机数量上限 */
Volume_limit_each_vm_os int32 `json:"volume_limit_each_vm_os,omitempty"` /* 单台云主机可挂载磁盘块数上限-OS */
Vm_group_limit int32 `json:"vm_group_limit,omitempty"` /* 云主机反亲和组个数上限 */
Vm_limit_per_group int32 `json:"vm_limit_per_group,omitempty"` /* 单个云主机反亲和组可绑定的主机数量上限 */
Sdwan_limit int32 `json:"sdwan_limit,omitempty"` /* sdwan总数上限 */
Sdwan_limit_each_edge int32 `json:"sdwan_limit_each_edge,omitempty"` /* 单个sdwan可包含的翼云edge个数上限 */
Sdwan_limit_each_site int32 `json:"sdwan_limit_each_site,omitempty"` /* 单个sdwan可包含的站点个数上限 */
Edge_limit int32 `json:"edge_limit,omitempty"` /* edge个数上限 */
Site_limit int32 `json:"site_limit,omitempty"` /* 站点个数上限 */
Max_buckets_of_oss int32 `json:"max_buckets_of_oss,omitempty"` /* 单个资源池下对象存储可创建的存储桶个数 */
Max_capacity_of_csbs_repo int32 `json:"max_capacity_of_csbs_repo,omitempty"` /* 单个云主机备份存储库最大容量(GB) */
Min_capacity_of_csbs_repo int32 `json:"min_capacity_of_csbs_repo,omitempty"` /* 单个云主机备份存储库最小容量(GB) */
Csbs_repo_limit int32 `json:"csbs_repo_limit,omitempty"` /* 云主机备份存储库个数 */
Max_duration_of_csbs_repo_creation string `json:"max_duration_of_csbs_repo_creation,omitempty"` /* 云主机备份存储库创建的最大时长(年) */
Csbs_backup_policy_repository_limit int32 `json:"csbs_backup_policy_repository_limit,omitempty"` /* 单个策略可绑定存储库上限 */
Scaling_group_limit int32 `json:"scaling_group_limit,omitempty"` /* 弹性伸缩组上限 */
Scaling_config_limit int32 `json:"scaling_config_limit,omitempty"` /* 弹性伸缩配置上限 */
Scaling_rule_limit int32 `json:"scaling_rule_limit,omitempty"` /* 弹性伸缩策略上限 */
Max_bandwidth_of_elastic_ip_v6_creation int32 `json:"max_bandwidth_of_elastic_ip_v6_creation,omitempty"` /* 创建IPV6时的带宽上限 */
Site_limit_each_time int32 `json:"site_limit_each_time,omitempty"` /* 单次创建站点个数上限 */
Address_limit int32 `json:"address_limit,omitempty"` /* 收货地址个数上限 */
Address_limit_each_time int32 `json:"address_limit_each_time,omitempty"` /* 单次创建收货地址个数上限 */
Sdwan_acl_limit int32 `json:"sdwan_acl_limit,omitempty"` /* SDWAN_ACL个数上限 */
Sdwan_acl_rule_limit int32 `json:"sdwan_acl_rule_limit,omitempty"` /* SDWAN_ACL规则个数上限 */
Pm_create_num_limit_per_time int32 `json:"pm_create_num_limit_per_time,omitempty"` /* 单次物理机创建个数最大值 */
Ch_network_instance_limit int32 `json:"ch_network_instance_limit,omitempty"` /* 云间高速加载网络实例个数上限 */
Ch_network_instance_region_limit int32 `json:"ch_network_instance_region_limit,omitempty"` /* 云间高速加载网络实例区域个数上限 */
Ch_limit int32 `json:"ch_limit,omitempty"` /* 云间高速个数上限 */
SiteTmpl_limit int32 `json:"siteTmpl_limit,omitempty"` /* 站点模板数量上限 */
Max_bandwidth_of_elastic_ip_creation_os int32 `json:"max_bandwidth_of_elastic_ip_creation_os,omitempty"` /* 创建弹性IP时的带宽上限-OS */
Max_num_of_vip_per_vm int32 `json:"max_num_of_vip_per_vm,omitempty"` /* 单台虚机可绑定的虚IP数量上限 */
Sdwan_monitor_alarm_rules_limit int32 `json:"sdwan_monitor_alarm_rules_limit,omitempty"` /* SDWAN告警规则个数上限 */
Max_num_of_vip_per_pm int32 `json:"max_num_of_vip_per_pm,omitempty"` /* 单台物理机可绑定的虚IP数量上限 */
Max_num_of_pm_per_vip int32 `json:"max_num_of_pm_per_vip,omitempty"` /* 单个虚IP可绑定的物理机数量上限 */
Sfs_fs_count_limit int32 `json:"sfs_fs_count_limit,omitempty"` /* 弹性文件系统个数上限 */
Sfs_fs_volume_limit int32 `json:"sfs_fs_volume_limit,omitempty"` /* 弹性文件系统总容量上限(TB) */
Sfs_fs_mount_point_count_limit int32 `json:"sfs_fs_mount_point_count_limit,omitempty"` /* 弹性文件系统挂载点个数上限 */
Sfs_permission_group_count_limit int32 `json:"sfs_permission_group_count_limit,omitempty"` /* 弹性文件系统权限组个数上限 */
Sfs_permission_rule_count_limit int32 `json:"sfs_permission_rule_count_limit,omitempty"` /* 弹性文件系统权限组规则个数上限 */
Elb_cert_limit int32 `json:"elb_cert_limit,omitempty"` /* 负载均衡证书总个数 */
Vpc_router_limit_per_table int32 `json:"vpc_router_limit_per_table,omitempty"` /* 单个VPC下路由规则个数上限 */
Bks_repo_limit int32 `json:"bks_repo_limit,omitempty"` /* 云硬盘备份存储库个数 */
Max_capacity_of_bks_repo int32 `json:"max_capacity_of_bks_repo,omitempty"` /* 单个云硬盘备份存储库最大容量 */
Min_capacity_of_bks_repo int32 `json:"min_capacity_of_bks_repo,omitempty"` /* 单个硬盘备份存储库最小容量(GB) */
Max_duration_of_bks_repo_creation string `json:"max_duration_of_bks_repo_creation,omitempty"` /* 云硬盘备份存储库创建的最大时长(年) */
Bks_backup_policy_repository_limit int32 `json:"bks_backup_policy_repository_limit,omitempty"` /* 单个云硬盘备份策略可绑定存储库上限 */
Bks_backup_policy_disk_limit int32 `json:"bks_backup_policy_disk_limit,omitempty"` /* 云硬盘备份策略绑定云硬盘个数上限 */
Routing_table_limit int32 `json:"routing_table_limit,omitempty"` /* 路由表默认配额 */
P2p_router_count_limit_per_connection int32 `json:"p2p_router_count_limit_per_connection,omitempty"` /* 对等连接内路由数量上限 */
P2p_connection_count_limit int32 `json:"p2p_connection_count_limit,omitempty"` /* 对等连接数量上限 */
P2p_router_count_limit_per_batch int32 `json:"p2p_router_count_limit_per_batch,omitempty"` /* 对等连接单次创建路由数量上限 */
Ch_order_bandwidth_limit int32 `json:"ch_order_bandwidth_limit,omitempty"` /* 云间高速购买带宽包带宽值上限 */
Ch_order_bandwidth_num_limit int32 `json:"ch_order_bandwidth_num_limit,omitempty"` /* 云间高速购买带宽包个数上限 */
Oss_bucket_count_limit int32 `json:"oss_bucket_count_limit,omitempty"` /* 对象存储默认配额 */
Vpn_user_gate_count_limit int32 `json:"vpn_user_gate_count_limit,omitempty"` /* VPN用户网关个数上限 */
Vpn_connection_count_limit int32 `json:"vpn_connection_count_limit,omitempty"` /* VPN连接个数上限 */
Vpn_gate_count_limit int32 `json:"vpn_gate_count_limit,omitempty"` /* VPN网关个数上限 */
Route_limit_per_table int32 `json:"route_limit_per_table,omitempty"` /* 路由规则 */
Vpce_limit_per_vpc int32 `json:"vpce_limit_per_vpc,omitempty"` /* 单个VPC下终端节点个数上限 */
Vpce_server_limit_per_vpc int32 `json:"vpce_service_limit_per_vpc,omitempty"` /* 单个VPC下终端服务节点个数上限 */
Total_traffic_mirror_limit int32 `json:"total_traffic_mirror_limit,omitempty"` /* 流量镜像产品筛选条件配额 */
Total_traffic_session_limit int32 `json:"total_traffic_session_limit,omitempty"` /* 流量镜像产品镜像会话配额 */
Volume_limit_each_vm_ElasticPM int32 `json:"volume_limit_each_vm_ElasticPM,omitempty"` /* 裸金属单块磁盘创建时可选的最小容量(GB) */
Max_capacity_of_disk_creation_ElasticPM int32 `json:"max_capacity_of_disk_creation_ElasticPM,omitempty"` /* 单块磁盘创建时的最大容量-裸金属(GB) */
Cnssl_site_limit int32 `json:"cnssl_site_limit,omitempty"` /* 云网超级专线站点数量 */
Total_intranet_dns_limit int32 `json:"total_intranet_dns_limit,omitempty"` /* DNS域名配额 */
Max_count_of_nic_per_pm int32 `json:"max_count_of_nic_per_pm,omitempty"` /* 单台物理机可添加网卡数量上限 */
Cnssl_physicsLine_route_limit int32 `json:"cnssl_physicsLine_route_limit,omitempty"` /* SD-WANoe0 0i */
Snapshot_policy_limit int32 `json:"snapshot_policy_limit,omitempty"` /* 云主机快照策略上限 */
Snapshot_policy_instance_limit int32 `json:"snapshot_policy_instance_limit,omitempty"` /* 云主机快照策略绑定云主机上限 */
Cnssl_physicsLine_snat_limit int32 `json:"cnssl_physicsLine_snat_limit,omitempty"` /* SD-WAN(尊享版)-物理专线SNAT数量 */
Cnssl_physicsLine_dnat_limit int32 `json:"cnssl_physicsLine_dnat_limit,omitempty"` /* SD-WAN(尊享版)-物理专线DNAT数量 */
Cnssl_physicsLine_vpc_limit int32 `json:"cnssl_physicsLine_vpc_limit,omitempty"` /* SD-WAN(尊享版)-物理专线入云数量 */
Cnssl_route_ip_limit int32 `json:"cnssl_route_ip_limit,omitempty"` /* SD-WAN(尊享版)-客户侧路由ipv4个数限制 */
Cnssl_edge_route_limit int32 `json:"cnssl_edge_route_limit,omitempty"` /* SD-WAN(尊享版)-智能网关-路由数量 */
Cnssl_edge_vpc_limit int32 `json:"cnssl_edge_vpc_limit,omitempty"` /* SD-WAN(尊享版)-智能网关-入云限制数量 */
Cnssl_edge_subnet_limit int32 `json:"cnssl_edge_subnet_limit,omitempty"` /* SD-WAN(尊享版)-智能网关-子网IP限制数量 */
Cnssl_physicsLine_app_vpc_limit int32 `json:"cnssl_physicsLine_app_vpc_limit,omitempty"` /* SD-WAN(尊享版)-物理专线应用保障添加VPC数量 */
Load_balancer_policy_limit_per_listener int32 `json:"load_balancer_policy_limit_per_listener,omitempty"` /* 单个监听器下创建的负载均衡转发策略上限 */
Edge_limit_each_pnet int32 `json:"edge_limit_each_pnet,omitempty"` /* 单个edge下可配置子网数量 */
Sdwan_qos_rule_limt int32 `json:"sdwan_qos_rule_limt,omitempty"` /* sdwan下Qos规则数量 */
Sdwan_qos_rule_group_limt int32 `json:"sdwan_qos_rule_group_limt,omitempty"` /* sdwan下Qos规则下五元组数量 */
Sdwan_qos_limit int32 `json:"sdwan_qos_limit,omitempty"` /* sdwan下的qos数量 */
Sdwan_edge_mpls_ip_limit int32 `json:"sdwan_edge_mpls_ip_limit,omitempty"` /* sdwan下edge的过载保护目标检测ip数量上限 */
Sfs_single_fs_volume_limit int32 `json:"sfs_single_fs_volume_limit,omitempty"` /* 单个弹性文件系统容量上限(TB) */
Sfs_single_exclusive_fs_volume_limit int32 `json:"sfs_single_exclusive_fs_volume_limit,omitempty"` /* 单个专属型文件系统容量上限 */
Max_duration_of_host_new_creation string `json:"max_duration_of_host_new_creation,omitempty"` /* 创建非GPU主机时可选的最大时长(年) */
Max_duration_of_network_creation string `json:"max_duration_of_network_creation,omitempty"` /* 创建VPN和文件系统时可选的最大时长(年) */
Sdwan_edge_static_router_limit int32 `json:"sdwan_edge_static_router_limit,omitempty"` /* sdwan下单个edge里可创建的静态路由数量 */
Dr_client_limit int32 `json:"dr_client_limit,omitempty"` /* 单用户单个资源池客户端数 */
Ch_create_limit int32 `json:"ch_create_limit,omitempty"` /* 创建云间高速默认配额 */
Ch_create_net_manage_limit int32 `json:"ch_create_net_manage_limit,omitempty"` /* 创建云网关默认配额 */
Ch_netmanagement_vpc_limit int32 `json:"ch_netmanagement_vpc_limit,omitempty"` /* vpc网络实例默认配额 */
Ch_netmanagement_cda_limit int32 `json:"ch_netmanagement_cda_limit,omitempty"` /* cda网络实例默认配额 */
Ch_netmanagement_accountvpc_limit int32 `json:"ch_netmanagement_accountvpc_limit,omitempty"` /* 授权vpc网络实例默认配额 */
Ch_reconsitution_accredit_limit int32 `json:"ch_reconsitution_accredit_limit,omitempty"` /* 云间高速(标准版)跨账号授权配额上限 */
Ch_create_route_limit int32 `json:"ch_create_route_limit,omitempty"` /* 云间高速(标准版)路由管理创建自定义路由表配额上限 */
Ch_cda_subnet_limit int32 `json:"ch_cda_subnet_limit,omitempty"` /* 云间高速(标准版)cda子网选择上限配额 */
Ch_create_route_num_limit int32 `json:"ch_create_route_num_limit,omitempty"` /* 云间高速(标准版)路由条目配额 */
Ch_vpc_subnet_limit int32 `json:"ch_vpc_subnet_limit,omitempty"` /* 云间高速(标准版)vpc子网选择上限配额 */
Ch_vpc_instance_bind_limit int32 `json:"ch_vpc_instance_bind_limit,omitempty"` /* 云间高速(标准版)单个vpc被相同云间高速加载次数 */
Ch_order_bandwidth_num_limit_v2 int32 `json:"ch_order_bandwidth_num_limit_v2,omitempty"` /* 云间高速购买带宽包个数上限2.0 */
Ch_order_bandwidth_limit_v2 int32 `json:"ch_order_bandwidth_limit_v2,omitempty"` /* 云间高速(标准版)2.0订单带宽值上限 */
Elb_cidr_policy_limit int32 `json:"elb_cidr_policy_limit,omitempty"` /* 负载均衡访问策略组配额 */
Elb_cidr_ip_count_limit int32 `json:"elb_cidr_ip_count_limit,omitempty"` /* 访问策略组-每个IP地址组中IP地址数量 */
Nic_relate_security_group_limit int32 `json:"nic_relate_security_group_limit,omitempty"` /* 网卡可绑定的安全组数量上限 */
Ssl_vpn_server_limit int32 `json:"ssl_vpn_server_limit,omitempty"` /* ssl服务端默认配额 */
Ssl_vpn_client_limit int32 `json:"ssl_vpn_client_limit,omitempty"` /* ssl客户端默认配额 */
Snap_volume_limit int32 `json:"snap_volume_limit,omitempty"` /* 快照创建云硬盘个数 */
Ssl_vpn_gate_count_limit int32 `json:"ssl_vpn_gate_count_limit,omitempty"` /* sslvpn网关个数上限 */
Sfs_oceanfs_volume_limit int32 `json:"sfs_oceanfs_volume_limit,omitempty"` /* 海量文件系统总容量上限(TB) */
Sfs_oceanfs_count_limit int32 `json:"sfs_oceanfs_count_limit,omitempty"` /* 海量文件系统个数上限 */
Sfs_hpfs_volume_limit int32 `json:"sfs_hpfs_volume_limit,omitempty"` /* 并行文件系统总容量上限(TB) */
Sfs_hpfs_count_limit int32 `json:"sfs_hpfs_count_limit,omitempty"` /* 并行文件系统个数上限 */
Cbr_ecs_limit int32 `json:"cbr_ecs_limit,omitempty"` /* 云备份客户端配额 */
Cbr_vault_limit int32 `json:"cbr_vault_limit,omitempty"` /* 云备份存储库配额 */
Vip_limit int32 `json:"vip_limit,omitempty"` /* 单用户单资源池可创建虚拟IP个数 */
Vpc_create_vip_limit int32 `json:"vpc_create_vip_limit,omitempty"` /* 单VPC支持创建的VIP数量 */
Public_ip_cn2_limit int32 `json:"public_ip_cn2_limit,omitempty"` /* cn2列表 */
Rules_limit_of_per_security_group int32 `json:"rules_limit_of_per_security_group,omitempty"` /* 单安全组的规则个数上限(不分出入) */
Public_ip_v6_limit int32 `json:"public_ip_v6_limit,omitempty"` /* 4.0创建ipv6带宽的个数上限 */
}
type CtecsQueryCustomerQuotasInRegionV41ReturnObjResponse ¶
type CtecsQueryCustomerQuotasInRegionV41ReturnObjResponse struct {
Quotas *CtecsQueryCustomerQuotasInRegionV41ReturnObjQuotasResponse `json:"quotas"` /* 本资源池配额信息 */
Global_quota *CtecsQueryCustomerQuotasInRegionV41ReturnObjGlobal_quotaResponse `json:"global_quota"` /* 全局配额信息 */
}
type CtecsQueryCustomerResourcesInRegionV41Api ¶
type CtecsQueryCustomerResourcesInRegionV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryCustomerResourcesInRegionV41Api ¶
func NewCtecsQueryCustomerResourcesInRegionV41Api(client *core.CtyunClient) *CtecsQueryCustomerResourcesInRegionV41Api
func (*CtecsQueryCustomerResourcesInRegionV41Api) Do ¶
func (a *CtecsQueryCustomerResourcesInRegionV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryCustomerResourcesInRegionV41Request) (*CtecsQueryCustomerResourcesInRegionV41Response, error)
type CtecsQueryCustomerResourcesInRegionV41Request ¶
type CtecsQueryCustomerResourcesInRegionV41Request struct {
RegionID string /* 资源池ID */
}
type CtecsQueryCustomerResourcesInRegionV41Response ¶
type CtecsQueryCustomerResourcesInRegionV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码('800为成功,900为失败) ,默认值:800 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码。为空表示成功。 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsQueryCustomerResourcesInRegionV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码。请求成功时不返回该字段 */
}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesACLLISTDetailResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesACLLISTDetailResponse struct{}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesACLLISTResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesACLLISTResponse struct {
Total_count int32 `json:"total_count,omitempty"` /* ACL总数 */
Detail *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesACLLISTDetailResponse `json:"detail"` /* 对应资源池id下的数量 */
}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesBMSResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesBMSResponse struct {
Total_count int32 `json:"total_count,omitempty"` /* 物理机总数 */
Detail_total_count int32 `json:"detail_total_count,omitempty"` /* 物理机总数 */
Memory_count int32 `json:"memory_count,omitempty"` /* 固定为0 */
Cpu_count int32 `json:"cpu_count,omitempty"` /* 固定为0 */
Bm_shutd_count int32 `json:"bm_shutd_count,omitempty"` /* 固定为0 */
Expire_running_count int32 `json:"expire_running_count,omitempty"` /* 固定为0 */
Bm_running_count int32 `json:"bm_running_count,omitempty"` /* 固定为0 */
Expire_count int32 `json:"expire_count,omitempty"` /* 固定为0 */
Expire_shutd_count int32 `json:"expire_shutd_count,omitempty"` /* 固定为0 */
}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesCBRDetailResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesCBRDetailResponse struct{}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesCBRResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesCBRResponse struct {
Total_count int32 `json:"total_count,omitempty"` /* 云主机备份总数 */
Detail_total_count int32 `json:"detail_total_count,omitempty"` /* 云主机备份总数 */
Total_size int32 `json:"total_size,omitempty"` /* 云主机备份总大小 */
Detail *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesCBRDetailResponse `json:"detail"` /* 对应资源池id下的数量 */
}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesCBR_VBSDetailResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesCBR_VBSDetailResponse struct{}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesCBR_VBSResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesCBR_VBSResponse struct {
Total_count int32 `json:"total_count,omitempty"` /* 磁盘存储备份总数 */
Detail_total_count int32 `json:"detail_total_count,omitempty"` /* 磁盘存储备份总数 */
Detail *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesCBR_VBSDetailResponse `json:"detail"` /* 对应资源池id下的数量 */
}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesCERTDetailResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesCERTDetailResponse struct{}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesCERTResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesCERTResponse struct {
Total_count int32 `json:"total_count,omitempty"` /* 负载均衡证书总数 */
Detail *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesCERTDetailResponse `json:"detail"` /* 对应资源池id下的数量 */
}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesDisk_BackupDetailResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesDisk_BackupDetailResponse struct{}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesDisk_BackupResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesDisk_BackupResponse struct {
Total_count int32 `json:"total_count,omitempty"` /* 磁盘备份总数 */
Detail_total_count int32 `json:"detail_total_count,omitempty"` /* 磁盘备份总数 */
Detail *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesDisk_BackupDetailResponse `json:"detail"` /* 对应资源池id下的数量 */
}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesIMAGEDetailResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesIMAGEDetailResponse struct{}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesIMAGEResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesIMAGEResponse struct {
Total_count int32 `json:"total_count,omitempty"` /* 私有镜像总数 */
Detail *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesIMAGEDetailResponse `json:"detail"` /* 对应资源池id下的数量 */
}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesIP_POOLDetailResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesIP_POOLDetailResponse struct{}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesIP_POOLResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesIP_POOLResponse struct {
Total_count int32 `json:"total_count,omitempty"` /* 共享带宽总数 */
Detail *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesIP_POOLDetailResponse `json:"detail"` /* 对应资源池id下的数量 */
}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesLB_LISTENERDetailResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesLB_LISTENERDetailResponse struct{}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesLB_LISTENERResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesLB_LISTENERResponse struct {
Total_count int32 `json:"total_count,omitempty"` /* 负载均衡监听器总数 */
Detail *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesLB_LISTENERDetailResponse `json:"detail"` /* 对应资源池id下的数量 */
}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesLOADBALANCERDetailResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesLOADBALANCERDetailResponse struct{}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesLOADBALANCERResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesLOADBALANCERResponse struct {
Total_count int32 `json:"total_count,omitempty"` /* 负载均衡总数 */
Detail *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesLOADBALANCERDetailResponse `json:"detail"` /* 对应资源池id下的数量 */
}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesNATDetailResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesNATDetailResponse struct{}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesNATResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesNATResponse struct {
Total_count int32 `json:"total_count,omitempty"` /* nat总数 */
Detail_total_count int32 `json:"detail_total_count,omitempty"` /* nat总数 */
Detail *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesNATDetailResponse `json:"detail"` /* 对应资源池id下的数量 */
}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesResponse struct {
VM *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesVMResponse `json:"VM"` /* 云主机 */
Volume *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesVolumeResponse `json:"Volume"` /* 磁盘 */
VOLUME_SNAPSHOT *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesVOLUME_SNAPSHOTResponse `json:"VOLUME_SNAPSHOT"` /* 磁盘快照 */
VPC *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesVPCResponse `json:"VPC"` /* VPC */
Public_IP *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesPublic_IPResponse `json:"Public_IP"` /* 公网IP */
BMS *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesBMSResponse `json:"BMS"` /* 物理机 */
NAT *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesNATResponse `json:"NAT"` /* NAT */
Disk_Backup *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesDisk_BackupResponse `json:"Disk_Backup"` /* 磁盘备份 */
Vm_Group *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesVm_GroupResponse `json:"Vm_Group"` /* 云主机组 */
SNAPSHOT *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesSNAPSHOTResponse `json:"SNAPSHOT"` /* 云主机快照 */
ACLLIST *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesACLLISTResponse `json:"ACLLIST"` /* ACL */
IP_POOL *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesIP_POOLResponse `json:"IP_POOL"` /* 共享带宽 */
IMAGE *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesIMAGEResponse `json:"IMAGE"` /* 私有镜像 */
LB_LISTENER *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesLB_LISTENERResponse `json:"LB_LISTENER"` /* 负载均衡监听器 */
LOADBALANCER *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesLOADBALANCERResponse `json:"LOADBALANCER"` /* 负载均衡 */
OS_Backup *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesOS_BackupResponse `json:"OS_Backup"` /* 操作系统备份 */
CBR *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesCBRResponse `json:"CBR"` /* 云主机备份 */
CERT *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesCERTResponse `json:"CERT"` /* 负载均衡证书 */
CBR_VBS *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesCBR_VBSResponse `json:"CBR_VBS"` /* 磁盘存储备份 */
}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesSNAPSHOTDetailResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesSNAPSHOTDetailResponse struct{}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesSNAPSHOTResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesSNAPSHOTResponse struct {
Total_count int32 `json:"total_count,omitempty"` /* 云主机快照总数 */
Detail *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesSNAPSHOTDetailResponse `json:"detail"` /* 对应资源池id下的数量 */
}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesVMResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesVMResponse struct {
Vm_shutd_count int32 `json:"vm_shutd_count,omitempty"` /* 已关机云主机数量 */
Expire_count int32 `json:"expire_count,omitempty"` /* 过期云主机数量 */
Expire_running_count int32 `json:"expire_running_count,omitempty"` /* 已过期的运行中云主机数量 */
Expire_shutd_count int32 `json:"expire_shutd_count,omitempty"` /* 已过期的关机云主机数量 */
Vm_running_count int32 `json:"vm_running_count,omitempty"` /* 运行中云主机数量 */
Total_count int32 `json:"total_count,omitempty"` /* 云主机总数 */
Cpu_count int32 `json:"cpu_count,omitempty"` /* CPU总数 */
Memory_count int32 `json:"memory_count,omitempty"` /* 总内存大小 */
Detail_total_count int32 `json:"detail_total_count,omitempty"` /* 云主机总数 */
}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesVm_GroupDetailResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesVm_GroupDetailResponse struct{}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesVm_GroupResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesVm_GroupResponse struct {
Total_count int32 `json:"total_count,omitempty"` /* 云主机组总数 */
Detail *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesVm_GroupDetailResponse `json:"detail"` /* 对应资源池id下的数量 */
}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesVolumeResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesVolumeResponse struct {
Vo_root_count int32 `json:"vo_root_count,omitempty"` /* 系统盘数量 */
Vo_disk_count int32 `json:"vo_disk_count,omitempty"` /* 数据盘数量 */
Total_count int32 `json:"total_count,omitempty"` /* 磁盘总数 */
Detail_total_count int32 `json:"detail_total_count,omitempty"` /* 磁盘总数 */
Total_size int32 `json:"total_size,omitempty"` /* 磁盘总大小 */
Vo_disk_size int32 `json:"vo_disk_size,omitempty"` /* 数据盘大小 */
Vo_root_size int32 `json:"vo_root_size,omitempty"` /* 系统盘大小 */
}
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResponse ¶
type CtecsQueryCustomerResourcesInRegionV41ReturnObjResponse struct {
Resources *CtecsQueryCustomerResourcesInRegionV41ReturnObjResourcesResponse `json:"resources"` /* 资源信息 */
}
type CtecsQueryInstancIDV41Api ¶
type CtecsQueryInstancIDV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryInstancIDV41Api ¶
func NewCtecsQueryInstancIDV41Api(client *core.CtyunClient) *CtecsQueryInstancIDV41Api
func (*CtecsQueryInstancIDV41Api) Do ¶
func (a *CtecsQueryInstancIDV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryInstancIDV41Request) (*CtecsQueryInstancIDV41Response, error)
type CtecsQueryInstancIDV41Request ¶
type CtecsQueryInstancIDV41Request struct {
MasterOrderID string /* 订单ID */
}
type CtecsQueryInstancIDV41Response ¶
type CtecsQueryInstancIDV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsQueryInstancIDV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsQueryInstanceStatisticsV41Api ¶
type CtecsQueryInstanceStatisticsV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryInstanceStatisticsV41Api ¶
func NewCtecsQueryInstanceStatisticsV41Api(client *core.CtyunClient) *CtecsQueryInstanceStatisticsV41Api
func (*CtecsQueryInstanceStatisticsV41Api) Do ¶
func (a *CtecsQueryInstanceStatisticsV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryInstanceStatisticsV41Request) (*CtecsQueryInstanceStatisticsV41Response, error)
type CtecsQueryInstanceStatisticsV41Request ¶
type CtecsQueryInstanceStatisticsV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
ProjectID string /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目 */
}
type CtecsQueryInstanceStatisticsV41Response ¶
type CtecsQueryInstanceStatisticsV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsQueryInstanceStatisticsV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsQueryInstanceStatisticsV41ReturnObjInstanceStatisticsResponse ¶
type CtecsQueryInstanceStatisticsV41ReturnObjInstanceStatisticsResponse struct {
TotalCount int32 `json:"totalCount,omitempty"` /* 云主机总数 */
RunningCount int32 `json:"RunningCount,omitempty"` /* 运行中的云主机数量 */
ShutdownCount int32 `json:"shutdownCount,omitempty"` /* 关机数量 */
ExpireCount int32 `json:"expireCount,omitempty"` /* 过期数量 */
ExpireRunningCount int32 `json:"expireRunningCount,omitempty"` /* 过期运行中数量 */
ExpireShutdownCount int32 `json:"expireShutdownCount,omitempty"` /* 过期已关机数量 */
CpuCount int32 `json:"cpuCount,omitempty"` /* cpu数量 */
MemoryCount int32 `json:"memoryCount,omitempty"` /* 内存总量,单位为GB */
}
type CtecsQueryInstanceStatisticsV41ReturnObjResponse ¶
type CtecsQueryInstanceStatisticsV41ReturnObjResponse struct {
InstanceStatistics *CtecsQueryInstanceStatisticsV41ReturnObjInstanceStatisticsResponse `json:"instanceStatistics"` /* 分页明细 */
}
type CtecsQueryJobInfoV41Api ¶
type CtecsQueryJobInfoV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryJobInfoV41Api ¶
func NewCtecsQueryJobInfoV41Api(client *core.CtyunClient) *CtecsQueryJobInfoV41Api
func (*CtecsQueryJobInfoV41Api) Do ¶
func (a *CtecsQueryJobInfoV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryJobInfoV41Request) (*CtecsQueryJobInfoV41Response, error)
type CtecsQueryJobInfoV41Response ¶
type CtecsQueryJobInfoV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码('800为成功,900为失败) ,默认值:800 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码。为空表示成功。 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsQueryJobInfoV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码。请求成功时不返回该字段 */
}
type CtecsQueryJobInfoV41ReturnObjFieldsResponse ¶
type CtecsQueryJobInfoV41ReturnObjFieldsResponse struct {
TaskName string `json:"taskName,omitempty"` /* 任务名 */
}
type CtecsQueryJobInfoV41ReturnObjResponse ¶
type CtecsQueryJobInfoV41ReturnObjResponse struct {
JobID string `json:"jobID,omitempty"` /* 异步任务ID */
Status int32 `json:"status,omitempty"` /* 任务状态 (0:执行中 1:执行成功 2:执行失败) */
JobStatus string `json:"jobStatus,omitempty"` /* job任务状态(executing:执行中, success:执行成功, fail:执行失败) */
ResourceId string `json:"resourceId,omitempty"`
Fields *CtecsQueryJobInfoV41ReturnObjFieldsResponse `json:"fields"` /* 任务信息 */
ID string `json:"ID"` /* 资源ID */
}
type CtecsQueryJobV41Api ¶
type CtecsQueryJobV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryJobV41Api ¶
func NewCtecsQueryJobV41Api(client *core.CtyunClient) *CtecsQueryJobV41Api
func (*CtecsQueryJobV41Api) Do ¶
func (a *CtecsQueryJobV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryJobV41Request) (*CtecsQueryJobV41Response, error)
type CtecsQueryJobV41Request ¶
type CtecsQueryJobV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
JobIDs string `json:"jobIDs,omitempty"` /* 异步任务ID列表,以英文逗号分隔每个ID */
}
type CtecsQueryJobV41Response ¶
type CtecsQueryJobV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败),默认值:800 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsQueryJobV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsQueryJobV41ReturnObjResponse ¶
type CtecsQueryJobV41ReturnObjResponse struct {
JobList []*CtecsQueryJobV41ReturnObjJobListResponse `json:"jobList"` /* 异步任务列表 */
}
type CtecsQueryNewOrderPriceV41Api ¶
type CtecsQueryNewOrderPriceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryNewOrderPriceV41Api ¶
func NewCtecsQueryNewOrderPriceV41Api(client *core.CtyunClient) *CtecsQueryNewOrderPriceV41Api
func (*CtecsQueryNewOrderPriceV41Api) Do ¶
func (a *CtecsQueryNewOrderPriceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryNewOrderPriceV41Request) (*CtecsQueryNewOrderPriceV41Response, error)
type CtecsQueryNewOrderPriceV41Request ¶
type CtecsQueryNewOrderPriceV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
ResourceType string `json:"resourceType,omitempty"` /* 资源类型 */
Count int32 `json:"count,omitempty"` /* 订购数量 */
OnDemand bool `json:"onDemand"` /* 是否按需资源,true 按需 / false 包周期 */
CycleType string `json:"cycleType,omitempty"` /* 订购周期类型,当onDemand为false时为必填,可选值:MONTH 月/YEAR 年 */
CycleCount int32 `json:"cycleCount,omitempty"` /* 订购周期大小,订购周期类型为MONTH时范围[1,60],订购周期类型为YEAR时范围[1,5],当onDemand为false时为必填 */
FlavorName string `json:"flavorName,omitempty"` /* 云主机规格,当resourceType为VM时必填 */
ImageUUID string `json:"imageUUID,omitempty"` /* 云主机镜像UUID,当resourceType为VM时必填 */
SysDiskType string `json:"sysDiskType,omitempty"` /* 云主机系统盘类型,当resourceType为VM时必填 */
SysDiskSize int32 `json:"sysDiskSize,omitempty"` /* 云主机系统盘大小,范围[40,2048],当resourceType为VM时必填 */
Disks []*CtecsQueryNewOrderPriceV41DisksRequest `json:"disks"` /* 数据盘信息,当resourceType为VM选填,订购云主机时如果成套订购数据盘时需要该字段 */
Bandwidth int32 `json:"bandwidth,omitempty"` /* 带宽大小,范围[1,2000],当resourceType为IP时必填;当resourceType为VM时,如果成套订购弹性公网IP时需要该字段 */
DiskType string `json:"diskType,omitempty"` /* 磁盘类型,当resourceType为EBS时必填 */
DiskSize int32 `json:"diskSize,omitempty"` /* 磁盘大小,范围[5,2000],当resourceType为EBS时必填 */
DiskMode string `json:"diskMode,omitempty"` /* 磁盘模式(VBD/ISCSI/FCSAN),当resourceType为EBS时必填 */
NatType string `json:"natType,omitempty"` /* nat规格,当resourceType为NAT时必填 */
IpPoolBandwidth int32 `json:"ipPoolBandwidth,omitempty"` /* 共享带宽大小,范围[5,2000],当resourceType为IP_POOL时必填 */
DeviceType string `json:"deviceType,omitempty"` /* 物理机规格,当resourceType为BMS时必填 */
AzName string `json:"azName,omitempty"` /* 物理机规格可用区,当resourceType为BMS时必填 */
OrderDisks []*CtecsQueryNewOrderPriceV41OrderDisksRequest `json:"orderDisks"` /* 物理机云硬盘信息,当resourceType为BMS选填 */
ElbType string `json:"elbType,omitempty"` /* 性能保障型负载均衡类型(支持standardI/standardII/enhancedI/enhancedII/higherI),当resourceType为PGELB时必填 */
CbrValue int32 `json:"cbrValue,omitempty"` /* 存储库大小,100-1024000GB,当resourceType为CBR_VM或CBR_VBS时必填 */
}
type CtecsQueryNewOrderPriceV41Response ¶
type CtecsQueryNewOrderPriceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 具体错误码标志 */
Message string `json:"message,omitempty"` /* 失败时的错误信息 */
Description string `json:"description,omitempty"` /* 失败时的错误描述 */
ReturnObj *CtecsQueryNewOrderPriceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据,参见returnObj对象结构 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码。请求成功时不返回该字段 */
}
type CtecsQueryNewOrderPriceV41ReturnObjResponse ¶
type CtecsQueryNewOrderPriceV41ReturnObjResponse struct {
TotalPrice float32 `json:"totalPrice"` /* 总价格,单位CNY */
DiscountPrice float32 `json:"discountPrice"` /* 折后价格,云主机相关产品有,单位CNY */
FinalPrice float32 `json:"finalPrice"` /* 最终价格,单位CNY */
SubOrderPrices []*CtecsQueryNewOrderPriceV41ReturnObjSubOrderPricesResponse `json:"subOrderPrices"` /* 子订单价格信息 */
}
type CtecsQueryNewOrderPriceV41ReturnObjSubOrderPricesResponse ¶
type CtecsQueryNewOrderPriceV41ReturnObjSubOrderPricesResponse struct {
ServiceTag string `json:"serviceTag,omitempty"` /* 服务类型 */
TotalPrice float32 `json:"totalPrice"` /* 子订单总价格,单位CNY */
OrderItemPrices []*CtecsQueryNewOrderPriceV41ReturnObjSubOrderPricesOrderItemPricesResponse `json:"orderItemPrices"` /* item价格信息 */
}
type CtecsQueryNewOrderPriceV42Api ¶
type CtecsQueryNewOrderPriceV42Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryNewOrderPriceV42Api ¶
func NewCtecsQueryNewOrderPriceV42Api(client *core.CtyunClient) *CtecsQueryNewOrderPriceV42Api
func (*CtecsQueryNewOrderPriceV42Api) Do ¶
func (a *CtecsQueryNewOrderPriceV42Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryNewOrderPriceV42Request) (*CtecsQueryNewOrderPriceV42Response, error)
type CtecsQueryNewOrderPriceV42Request ¶
type CtecsQueryNewOrderPriceV42Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
ResourceType string `json:"resourceType,omitempty"` /* 资源类型(VM:云主机,EBS:云硬盘,IP:弹性公网IP,IP_POOL:共享带宽,NAT:NAT网关,BMS:物理机,PGELB:性能保障型负载均衡,CBR_VM:云主机备份存储库,CBR_VBS:云硬盘备份存储库) */
Count int32 `json:"count,omitempty"` /* 订购数量 */
OnDemand bool `json:"onDemand"` /* 是否按需资源,true 按需 / false 包周期 */
CycleType string `json:"cycleType,omitempty"` /* 订购周期类型,当onDemand为false时为必填,可选值:MONTH 月,YEAR 年 */
CycleCount int32 `json:"cycleCount,omitempty"` /* 订购周期大小,订购周期类型为MONTH时范围[1,60],订购周期类型为YEAR时范围[1,5],当onDemand为false时为必填 */
FlavorName string `json:"flavorName,omitempty"` /* 云主机规格,当resourceType为VM时必填 */
ImageUUID string `json:"imageUUID,omitempty"` /* 云主机镜像UUID,当resourceType为VM时必填 */
SysDiskType string `json:"sysDiskType,omitempty"` /* 云主机系统盘类型(SAS:高IO,SATA:普通IO,SSD:超高IO,FAST-SSD:极速型SSD),当resourceType为VM时必填 */
SysDiskSize int32 `json:"sysDiskSize,omitempty"` /* 云主机系统盘大小,范围[40,2048],当resourceType为VM时必填 */
Disks []*CtecsQueryNewOrderPriceV42DisksRequest `json:"disks"` /* 数据盘信息,当resourceType为VM选填,订购云主机时如果成套订购数据盘时需要该字段 */
Bandwidth int32 `json:"bandwidth,omitempty"` /* 带宽大小,范围[1,2000],当resourceType为IP时必填;当resourceType为VM时,如果成套订购弹性公网IP时需要该字段 */
DiskType string `json:"diskType,omitempty"` /* 磁盘类型(SAS:高IO,SATA:普通IO,SSD:超高IO,FAST-SSD:极速型SSD),当resourceType为EBS时必填 */
DiskSize int32 `json:"diskSize,omitempty"` /* 磁盘大小,范围[5,2000],当resourceType为EBS时必填 */
DiskMode string `json:"diskMode,omitempty"` /* 磁盘模式(VBD/ISCSI/FCSAN),当resourceType为EBS时必填 */
NatType string `json:"natType,omitempty"` /* nat规格(small:小型,medium:中型,large:大型,xlarge:超大型),当resourceType为NAT时必填 */
IpPoolBandwidth int32 `json:"ipPoolBandwidth,omitempty"` /* 共享带宽大小,范围[5,2000],当resourceType为IP_POOL时必填 */
DeviceType string `json:"deviceType,omitempty"` /* 物理机规格,当resourceType为BMS时必填 */
AzName string `json:"azName,omitempty"` /* 物理机规格可用区,当resourceType为BMS时必填 */
OrderDisks []*CtecsQueryNewOrderPriceV42OrderDisksRequest `json:"orderDisks"` /* 物理机云硬盘信息,当resourceType为BMS选填 */
ElbType string `json:"elbType,omitempty"` /* 性能保障型负载均衡类型(支持standardI/standardII/enhancedI/enhancedII/higherI),当resourceType为PGELB时必填 */
CbrValue int32 `json:"cbrValue,omitempty"` /* 存储库大小,100-1024000GB,当resourceType为CBR_VM或CBR_VBS时必填 */
}
type CtecsQueryNewOrderPriceV42Response ¶
type CtecsQueryNewOrderPriceV42Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 具体错误码标志 */
Message string `json:"message,omitempty"` /* 失败时的错误信息 */
Description string `json:"description,omitempty"` /* 失败时的错误描述 */
ReturnObj *CtecsQueryNewOrderPriceV42ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据,参见returnObj对象结构 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码。请求成功时不返回该字段 */
}
type CtecsQueryNewOrderPriceV42ReturnObjResponse ¶
type CtecsQueryNewOrderPriceV42ReturnObjResponse struct {
TotalPrice float32 `json:"totalPrice"` /* 总价格,单位CNY */
DiscountPrice float32 `json:"discountPrice"` /* 折后价格,云主机相关产品有,单位CNY */
FinalPrice float32 `json:"finalPrice"` /* 最终价格,单位CNY */
SubOrderPrices []*CtecsQueryNewOrderPriceV42ReturnObjSubOrderPricesResponse `json:"subOrderPrices"` /* 子订单价格信息 */
}
type CtecsQueryNewOrderPriceV42ReturnObjSubOrderPricesResponse ¶
type CtecsQueryNewOrderPriceV42ReturnObjSubOrderPricesResponse struct {
ServiceTag string `json:"serviceTag,omitempty"` /* 服务类型 */
TotalPrice float32 `json:"totalPrice"` /* 子订单总价格,单位CNY */
OrderItemPrices []*CtecsQueryNewOrderPriceV42ReturnObjSubOrderPricesOrderItemPricesResponse `json:"orderItemPrices"` /* item价格信息 */
}
type CtecsQueryOrderUuidV41Api ¶
type CtecsQueryOrderUuidV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryOrderUuidV41Api ¶
func NewCtecsQueryOrderUuidV41Api(client *core.CtyunClient) *CtecsQueryOrderUuidV41Api
func (*CtecsQueryOrderUuidV41Api) Do ¶
func (a *CtecsQueryOrderUuidV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryOrderUuidV41Request) (*CtecsQueryOrderUuidV41Response, error)
type CtecsQueryOrderUuidV41Request ¶
type CtecsQueryOrderUuidV41Request struct {
MasterOrderId string /* 订单id */
}
type CtecsQueryOrderUuidV41Response ¶
type CtecsQueryOrderUuidV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码('800为成功,900为失败) ,默认值:800 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码。为空表示成功。 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsQueryOrderUuidV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码。请求成功时不返回该字段 */
}
type CtecsQueryProductsInRegionV41Api ¶
type CtecsQueryProductsInRegionV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryProductsInRegionV41Api ¶
func NewCtecsQueryProductsInRegionV41Api(client *core.CtyunClient) *CtecsQueryProductsInRegionV41Api
func (*CtecsQueryProductsInRegionV41Api) Do ¶
func (a *CtecsQueryProductsInRegionV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryProductsInRegionV41Request) (*CtecsQueryProductsInRegionV41Response, error)
type CtecsQueryProductsInRegionV41Request ¶
type CtecsQueryProductsInRegionV41Request struct {
RegionID string /* 资源池ID */
}
type CtecsQueryProductsInRegionV41Response ¶
type CtecsQueryProductsInRegionV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码('800为成功,900为失败) ,默认值:800 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码。为空表示成功。 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsQueryProductsInRegionV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码。请求成功时不返回该字段 */
}
type CtecsQueryProductsInRegionV41ReturnObjAzListDetailsResponse ¶
type CtecsQueryProductsInRegionV41ReturnObjAzListDetailsResponse struct {
StorageType []*CtecsQueryProductsInRegionV41ReturnObjAzListDetailsStorageTypeResponse `json:"storageType"` /* 不同az可用区的存储类型 */
}
type CtecsQueryProductsInRegionV41ReturnObjAzListResponse ¶
type CtecsQueryProductsInRegionV41ReturnObjAzListResponse struct {
AzName string `json:"azName,omitempty"` /* 可用区名称 */
AzDisplayName string `json:"azDisplayName,omitempty"` /* 可用区展示名 */
Details *CtecsQueryProductsInRegionV41ReturnObjAzListDetailsResponse `json:"details"` /* 可用区详细信息 */
}
type CtecsQueryProductsInRegionV41ReturnObjResponse ¶
type CtecsQueryProductsInRegionV41ReturnObjResponse struct {
AzList []*CtecsQueryProductsInRegionV41ReturnObjAzListResponse `json:"azList"` /* az分区列表 */
}
type CtecsQueryRenewOrderPriceV41Api ¶
type CtecsQueryRenewOrderPriceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryRenewOrderPriceV41Api ¶
func NewCtecsQueryRenewOrderPriceV41Api(client *core.CtyunClient) *CtecsQueryRenewOrderPriceV41Api
func (*CtecsQueryRenewOrderPriceV41Api) Do ¶
func (a *CtecsQueryRenewOrderPriceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryRenewOrderPriceV41Request) (*CtecsQueryRenewOrderPriceV41Response, error)
type CtecsQueryRenewOrderPriceV41Request ¶
type CtecsQueryRenewOrderPriceV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
ResourceType string `json:"resourceType,omitempty"` /* 资源类型 */
ResourceUUID string `json:"resourceUUID,omitempty"` /* 资源uuid */
CycleType string `json:"cycleType,omitempty"` /* 订购周期类型,可选值:MONTH 月,YEAR 年 */
CycleCount int32 `json:"cycleCount,omitempty"` /* 订购周期大小,订购周期类型为MONTH时范围[1,36],订购周期类型为YEAR时范围[1,3] */
}
type CtecsQueryRenewOrderPriceV41Response ¶
type CtecsQueryRenewOrderPriceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 具体错误码标志 */
Message string `json:"message,omitempty"` /* 失败时的错误信息 */
Description string `json:"description,omitempty"` /* 失败时的错误描述 */
ReturnObj *CtecsQueryRenewOrderPriceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据,参见returnObj对象结构 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码。请求成功时不返回该字段 */
}
type CtecsQueryRenewOrderPriceV41ReturnObjResponse ¶
type CtecsQueryRenewOrderPriceV41ReturnObjResponse struct {
TotalPrice float32 `json:"totalPrice"` /* 总价格,单位CNY */
FinalPrice float32 `json:"finalPrice"` /* 最终价格,单位CNY */
SubOrderPrices []*CtecsQueryRenewOrderPriceV41ReturnObjSubOrderPricesResponse `json:"subOrderPrices"` /* 子订单价格信息 */
}
type CtecsQueryRenewOrderPriceV41ReturnObjSubOrderPricesResponse ¶
type CtecsQueryRenewOrderPriceV41ReturnObjSubOrderPricesResponse struct {
ServiceTag string `json:"serviceTag,omitempty"` /* 服务类型 */
TotalPrice float32 `json:"totalPrice"` /* 总价格,单位CNY */
FinalPrice float32 `json:"finalPrice"` /* 最终价格,单位CNY */
OrderItemPrices []*CtecsQueryRenewOrderPriceV41ReturnObjSubOrderPricesOrderItemPricesResponse `json:"orderItemPrices"` /* 资源价格信息 */
}
type CtecsQueryRenewOrderPriceV42Api ¶
type CtecsQueryRenewOrderPriceV42Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryRenewOrderPriceV42Api ¶
func NewCtecsQueryRenewOrderPriceV42Api(client *core.CtyunClient) *CtecsQueryRenewOrderPriceV42Api
func (*CtecsQueryRenewOrderPriceV42Api) Do ¶
func (a *CtecsQueryRenewOrderPriceV42Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryRenewOrderPriceV42Request) (*CtecsQueryRenewOrderPriceV42Response, error)
type CtecsQueryRenewOrderPriceV42Request ¶
type CtecsQueryRenewOrderPriceV42Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
ResourceType string `json:"resourceType,omitempty"` /* 资源类型 */
ResourceID string `json:"resourceID,omitempty"` /* 资源ID */
CycleType string `json:"cycleType,omitempty"` /* 订购周期类型,可选值:MONTH 月,YEAR 年 */
CycleCount int32 `json:"cycleCount,omitempty"` /* 订购周期大小,订购周期类型为MONTH时范围[1,36],订购周期类型为YEAR时范围[1,3] */
}
type CtecsQueryRenewOrderPriceV42Response ¶
type CtecsQueryRenewOrderPriceV42Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 具体错误码标志 */
Message string `json:"message,omitempty"` /* 失败时的错误信息 */
Description string `json:"description,omitempty"` /* 失败时的错误描述 */
ReturnObj *CtecsQueryRenewOrderPriceV42ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据,参见returnObj对象结构 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码。请求成功时不返回该字段 */
}
type CtecsQueryRenewOrderPriceV42ReturnObjResponse ¶
type CtecsQueryRenewOrderPriceV42ReturnObjResponse struct {
TotalPrice float32 `json:"totalPrice"` /* 总价格,单位CNY */
FinalPrice float32 `json:"finalPrice"` /* 最终价格,单位CNY */
SubOrderPrices []*CtecsQueryRenewOrderPriceV42ReturnObjSubOrderPricesResponse `json:"subOrderPrices"` /* 子订单价格信息 */
}
type CtecsQueryRenewOrderPriceV42ReturnObjSubOrderPricesResponse ¶
type CtecsQueryRenewOrderPriceV42ReturnObjSubOrderPricesResponse struct {
ServiceTag string `json:"serviceTag,omitempty"` /* 服务类型 */
TotalPrice float32 `json:"totalPrice"` /* 总价格,单位CNY */
FinalPrice float32 `json:"finalPrice"` /* 最终价格,单位CNY */
OrderItemPrices []*CtecsQueryRenewOrderPriceV42ReturnObjSubOrderPricesOrderItemPricesResponse `json:"orderItemPrices"` /* 资源价格信息 */
}
type CtecsQuerySecurityGroupsV41Api ¶
type CtecsQuerySecurityGroupsV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQuerySecurityGroupsV41Api ¶
func NewCtecsQuerySecurityGroupsV41Api(client *core.CtyunClient) *CtecsQuerySecurityGroupsV41Api
func (*CtecsQuerySecurityGroupsV41Api) Do ¶
func (a *CtecsQuerySecurityGroupsV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQuerySecurityGroupsV41Request) (*CtecsQuerySecurityGroupsV41Response, error)
type CtecsQuerySecurityGroupsV41Request ¶
type CtecsQuerySecurityGroupsV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
VpcID string /* 虚拟私有云ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028310">产品定义-虚拟私有云</a>来了解虚拟私有云<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4814&data=94">查询VPC列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4811&data=94">创建VPC</a><br />注:在多可用区类型资源池下,vpcID通常以“vpc-”开头,非多可用区类型资源池vpcID为uuid格式 */
QueryContent string /* 模糊匹配查询内容(匹配字段:id、name) */
ProjectID string /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目 */
InstanceID string /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
PageNumber int32 /* 页码,取值范围:正整数(≥1),注:旧字段,后续可能废弃;默认值为1 */
PageNo int32 /* 页码,取值范围:正整数(≥1),注:默认值为1 */
PageSize int32 /* 每页记录数目,取值范围:[1, 50],注:默认值为10 */
}
type CtecsQuerySecurityGroupsV41Response ¶
type CtecsQuerySecurityGroupsV41Response struct {
TotalCount int32 `json:"totalCount,omitempty"` /* 列表条目数 */
CurrentCount int32 `json:"currentCount,omitempty"` /* 分页查询时每页的行数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ReturnObj []*CtecsQuerySecurityGroupsV41ReturnObjResponse `json:"returnObj"` /* 详细结果 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
}
type CtecsQuerySecurityGroupsV41ReturnObjResponse ¶
type CtecsQuerySecurityGroupsV41ReturnObjResponse struct {
SecurityGroupName string `json:"securityGroupName,omitempty"` /* 安全组名称 */
Id string `json:"id,omitempty"` /* 安全组id */
VmNum string `json:"vmNum,omitempty"` /* 相关云主机 */
Origin string `json:"origin,omitempty"` /* 表示是否是默认安全组 */
VpcName string `json:"vpcName,omitempty"` /* vpc名称 */
VpcID string `json:"vpcID,omitempty"` /* 安全组所属的专有网络 */
CreationTime string `json:"creationTime,omitempty"` /* 创建时间 */
Description string `json:"description,omitempty"` /* 安全组描述信息 */
SecurityGroupRuleList []*CtecsQuerySecurityGroupsV41ReturnObjSecurityGroupRuleListResponse `json:"securityGroupRuleList"` /* 安全组规则信息 */
}
type CtecsQuerySecurityGroupsV41ReturnObjSecurityGroupRuleListResponse ¶
type CtecsQuerySecurityGroupsV41ReturnObjSecurityGroupRuleListResponse struct {
Direction string `json:"direction,omitempty"` /* 出方向-egress、入方向-ingress */
Action string `json:"action,omitempty"` /* 拒绝策略:允许-accept 拒绝-drop */
Origin string `json:"origin,omitempty"` /* 来源 */
Priority int32 `json:"priority,omitempty"` /* 优先级:0~100 */
Ethertype string `json:"ethertype,omitempty"` /* IP类型:IPv4、IPv6 */
Protocol string `json:"protocol,omitempty"` /* 协议: ANY、TCP、UDP、ICMP、ICMP6 */
RawRange string `json:"range,omitempty"` /* 接口范围/ICMP类型:1-65535 */
DestCidrIp string `json:"destCidrIp,omitempty"` /* 远端地址:0.0.0.0/0 */
Description string `json:"description,omitempty"` /* 安全组规则描述信息 */
CreateTime string `json:"createTime,omitempty"` /* 创建时间,UTC时间 */
Id string `json:"id,omitempty"` /* 唯一标识ID */
SecurityGroupID string `json:"securityGroupID,omitempty"` /* 安全组ID */
RemoteSecurityGroupID string `json:"remoteSecurityGroupID,omitempty"` /* 远端安全组id */
PrefixListID string `json:"prefixListID,omitempty"` /* 前缀列表id */
}
type CtecsQuerySnapshotDetailsV41Api ¶
type CtecsQuerySnapshotDetailsV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQuerySnapshotDetailsV41Api ¶
func NewCtecsQuerySnapshotDetailsV41Api(client *core.CtyunClient) *CtecsQuerySnapshotDetailsV41Api
func (*CtecsQuerySnapshotDetailsV41Api) Do ¶
func (a *CtecsQuerySnapshotDetailsV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQuerySnapshotDetailsV41Request) (*CtecsQuerySnapshotDetailsV41Response, error)
type CtecsQuerySnapshotDetailsV41Request ¶
type CtecsQuerySnapshotDetailsV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SnapshotID string /* 云主机快照ID,<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8349&data=87">查询云主机快照列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8352&data=87">创建云主机快照</a> */
}
type CtecsQuerySnapshotDetailsV41Response ¶
type CtecsQuerySnapshotDetailsV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsQuerySnapshotDetailsV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsQuerySnapshotDetailsV41ReturnObjResponse ¶
type CtecsQuerySnapshotDetailsV41ReturnObjResponse struct {
Results []*CtecsQuerySnapshotDetailsV41ReturnObjResultsResponse `json:"results"` /* 分页明细 */
}
type CtecsQuerySnapshotDetailsV41ReturnObjResultsMembersResponse ¶
type CtecsQuerySnapshotDetailsV41ReturnObjResultsMembersResponse struct {
DiskType string `json:"diskType,omitempty"` /* 云硬盘类型 SATA/SAS/SSD/FAST-SSD */
DiskID string `json:"diskID,omitempty"` /* 云硬盘ID */
DiskName string `json:"diskName,omitempty"` /* 云硬盘名称 */
IsBootable *bool `json:"isBootable"` /* 是否是可启动磁盘,取值范围:<br /> false:非启动盘,<br /> true:可启动盘<br /> */
IsEncrypt *bool `json:"isEncrypt"` /* 是否加密盘,取值范围:<br /> false:不加密,<br />true:加密,<br /> 默认值为false */
DiskSize int32 `json:"diskSize,omitempty"` /* 云硬盘大小 */
DiskSnapshotID string `json:"diskSnapshotID,omitempty"` /* 云硬盘快照ID */
DiskSnapshotStatus string `json:"diskSnapshotStatus,omitempty"` /* 云硬盘快照状态 */
}
type CtecsQuerySnapshotDetailsV41ReturnObjResultsResponse ¶
type CtecsQuerySnapshotDetailsV41ReturnObjResultsResponse struct {
SnapshotID string `json:"snapshotID,omitempty"` /* 云主机快照ID */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称 */
AzName string `json:"azName,omitempty"` /* 可用区名称 */
SnapshotName string `json:"snapshotName,omitempty"` /* 云主机快照名称 */
InstanceStatus string `json:"instanceStatus,omitempty"` /* 云主机状态,请通过<a href="https://www.ctyun.cn/document/10026730/10741614">状态枚举值</a>查看云主机使用状态 */
SnapshotStatus string `json:"snapshotStatus,omitempty"` /* 云主机快照状态:<br />pending:创建中,<br />available:可用, <br />restoring:恢复中,<br />error:错误 */
SnapshotDescription string `json:"snapshotDescription,omitempty"` /* 云主机快照描述 */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID */
CreatedTime string `json:"createdTime,omitempty"` /* 创建时间 */
UpdatedTime string `json:"updatedTime,omitempty"` /* 更新时间 */
ImageID string `json:"imageID,omitempty"` /* 云主机镜像ID */
Memory int32 `json:"memory,omitempty"` /* 云主机内存大小,单位 MB */
Cpu int32 `json:"cpu,omitempty"` /* 云主机cpu核数 */
FlavorID string `json:"flavorID,omitempty"` /* 云主机规格ID */
Members []*CtecsQuerySnapshotDetailsV41ReturnObjResultsMembersResponse `json:"members"` /* 云主机的云硬盘及其快照详细信息 */
}
type CtecsQuerySnapshotListV41Api ¶
type CtecsQuerySnapshotListV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQuerySnapshotListV41Api ¶
func NewCtecsQuerySnapshotListV41Api(client *core.CtyunClient) *CtecsQuerySnapshotListV41Api
func (*CtecsQuerySnapshotListV41Api) Do ¶
func (a *CtecsQuerySnapshotListV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQuerySnapshotListV41Request) (*CtecsQuerySnapshotListV41Response, error)
type CtecsQuerySnapshotListV41Request ¶
type CtecsQuerySnapshotListV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目 */
PageNo int32 `json:"pageNo,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目,取值范围:[1, 50],注:默认值为10 */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
SnapshotStatus string `json:"snapshotStatus,omitempty"` /* 云主机快照状态,取值范围:<br />pending:创建中,<br /> available:可用,<br /> restoring:恢复中,<br /> error:错误<br>注:该参数大小写敏感 */
SnapshotID string `json:"snapshotID,omitempty"` /* 云主机快照ID,<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8349&data=87">查询云主机快照列表</a><br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8352&data=87">创建云主机快照</a> */
QueryContent string `json:"queryContent,omitempty"` /* 模糊查询查询内容,(匹配字段:instanceID、snapshotID、snapshotName) */
SnapshotName string `json:"snapshotName,omitempty"` /* 云主机快照名称。满足以下规则:不能使用中文,且长度为2-63字符 */
}
type CtecsQuerySnapshotListV41Response ¶
type CtecsQuerySnapshotListV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsQuerySnapshotListV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsQuerySnapshotListV41ReturnObjResponse ¶
type CtecsQuerySnapshotListV41ReturnObjResponse struct {
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
Results []*CtecsQuerySnapshotListV41ReturnObjResultsResponse `json:"results"` /* 分页明细 */
}
type CtecsQuerySnapshotListV41ReturnObjResultsMembersResponse ¶
type CtecsQuerySnapshotListV41ReturnObjResultsMembersResponse struct {
DiskType string `json:"diskType,omitempty"` /* 云硬盘类型,取值范围:<br />SATA:普通IO,<br />SAS:高IO,<br />SSD:超高IO,<br />FAST-SSD:极速型SSD */
DiskID string `json:"diskID,omitempty"` /* 云硬盘ID */
DiskName string `json:"diskName,omitempty"` /* 云硬盘名称 */
IsBootable *bool `json:"isBootable"` /* 是否是可启动磁盘,取值范围:<br />false:非启动盘,<br />true:可启动盘 */
IsEncrypt *bool `json:"isEncrypt"` /* 是否加密盘,取值范围:<br />false:不加密,<br /> true:加密,<br /> 默认值为false */
DiskSize int32 `json:"diskSize,omitempty"` /* 云硬盘大小 */
DiskSnapshotID string `json:"diskSnapshotID,omitempty"` /* 云硬盘快照ID */
DiskSnapshotStatus string `json:"diskSnapshotStatus,omitempty"` /* 云硬盘快照状态,详见枚举值表格 */
}
type CtecsQuerySnapshotListV41ReturnObjResultsResponse ¶
type CtecsQuerySnapshotListV41ReturnObjResultsResponse struct {
SnapshotID string `json:"snapshotID,omitempty"` /* 云主机快照ID */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称 */
AzName string `json:"azName,omitempty"` /* 可用区名称 */
SnapshotName string `json:"snapshotName,omitempty"` /* 云主机快照名称 */
InstanceStatus string `json:"instanceStatus,omitempty"` /* 云主机状态,请通过<a href="https://www.ctyun.cn/document/10026730/10741614">状态枚举值</a>查看云主机使用状态 */
SnapshotStatus string `json:"snapshotStatus,omitempty"` /* 云主机快照状态,<br />pending:创建中, <br />available:可用, <br />restoring:恢复中,<br />error:错误 */
SnapshotDescription string `json:"snapshotDescription,omitempty"` /* 云主机快照描述 */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID */
CreatedTime string `json:"createdTime,omitempty"` /* 创建时间 */
UpdatedTime string `json:"updatedTime,omitempty"` /* 更新时间 */
ImageID string `json:"imageID,omitempty"` /* 云主机镜像ID */
Memory int32 `json:"memory,omitempty"` /* 云主机内存大小,单位 MB */
Cpu int32 `json:"cpu,omitempty"` /* 云主机cpu核数 */
FlavorID string `json:"flavorID,omitempty"` /* 云主机规格ID */
Members []*CtecsQuerySnapshotListV41ReturnObjResultsMembersResponse `json:"members"` /* 云主机的云硬盘及其快照详细信息 */
}
type CtecsQuerySnapshotStatisticsV41Api ¶
type CtecsQuerySnapshotStatisticsV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQuerySnapshotStatisticsV41Api ¶
func NewCtecsQuerySnapshotStatisticsV41Api(client *core.CtyunClient) *CtecsQuerySnapshotStatisticsV41Api
func (*CtecsQuerySnapshotStatisticsV41Api) Do ¶
func (a *CtecsQuerySnapshotStatisticsV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQuerySnapshotStatisticsV41Request) (*CtecsQuerySnapshotStatisticsV41Response, error)
type CtecsQuerySnapshotStatisticsV41Request ¶
type CtecsQuerySnapshotStatisticsV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceIDList string `json:"instanceIDList,omitempty"` /* 云主机ID列表,多台使用英文逗号分割,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
}
type CtecsQuerySnapshotStatisticsV41Response ¶
type CtecsQuerySnapshotStatisticsV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj []*CtecsQuerySnapshotStatisticsV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsQuerySnapshotStatusV41Api ¶
type CtecsQuerySnapshotStatusV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQuerySnapshotStatusV41Api ¶
func NewCtecsQuerySnapshotStatusV41Api(client *core.CtyunClient) *CtecsQuerySnapshotStatusV41Api
func (*CtecsQuerySnapshotStatusV41Api) Do ¶
func (a *CtecsQuerySnapshotStatusV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQuerySnapshotStatusV41Request) (*CtecsQuerySnapshotStatusV41Response, error)
type CtecsQuerySnapshotStatusV41Request ¶
type CtecsQuerySnapshotStatusV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SnapshotID string /* 云主机快照ID,<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8349&data=87">查询云主机快照列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8352&data=87">创建云主机快照</a> */
}
type CtecsQuerySnapshotStatusV41Response ¶
type CtecsQuerySnapshotStatusV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsQuerySnapshotStatusV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsQuerySnapshotStatusV41ReturnObjResponse ¶
type CtecsQuerySnapshotStatusV41ReturnObjResponse struct {
SnapshotStatus string `json:"snapshotStatus,omitempty"` /* 云主机快照状态,<br />pending:创建中, <br />available:可用, <br />restoring:恢复中,<br />error:错误 */
}
type CtecsQuerySummaryInRegionV41Api ¶
type CtecsQuerySummaryInRegionV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQuerySummaryInRegionV41Api ¶
func NewCtecsQuerySummaryInRegionV41Api(client *core.CtyunClient) *CtecsQuerySummaryInRegionV41Api
func (*CtecsQuerySummaryInRegionV41Api) Do ¶
func (a *CtecsQuerySummaryInRegionV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQuerySummaryInRegionV41Request) (*CtecsQuerySummaryInRegionV41Response, error)
type CtecsQuerySummaryInRegionV41Request ¶
type CtecsQuerySummaryInRegionV41Request struct {
RegionID string /* 资源池ID */
}
type CtecsQuerySummaryInRegionV41Response ¶
type CtecsQuerySummaryInRegionV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码('800为成功,900为失败) ,默认值:800 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码。为空表示成功。 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsQuerySummaryInRegionV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码。请求成功时不返回该字段 */
}
type CtecsQuerySummaryInRegionV41ReturnObjResponse ¶
type CtecsQuerySummaryInRegionV41ReturnObjResponse struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
RegionParent string `json:"regionParent,omitempty"` /* 资源池所属省份 */
RegionName string `json:"regionName,omitempty"` /* 资源池名称 */
RegionType string `json:"regionType,omitempty"` /* 资源池类型 */
IsMultiZones *bool `json:"isMultiZones"` /* 是否多可用区资源池 */
ZoneList []string `json:"zoneList"` /* 可用区列表 */
CpuArches []string `json:"cpuArches"` /* 资源池cpu架构信息 */
RegionVersion string `json:"regionVersion,omitempty"` /* 资源池版本 */
Dedicated *bool `json:"dedicated"` /* 是否是专属资源池,账户可能访问的是一个自己可见的专属资源池 */
Province string `json:"province,omitempty"` /* 省份 */
City string `json:"city,omitempty"` /* 城市 */
OpenapiAvailable *bool `json:"openapiAvailable"` /* 是否支持通过OpenAPI访问 */
}
type CtecsQueryUpgradeOrderPriceV41Api ¶
type CtecsQueryUpgradeOrderPriceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryUpgradeOrderPriceV41Api ¶
func NewCtecsQueryUpgradeOrderPriceV41Api(client *core.CtyunClient) *CtecsQueryUpgradeOrderPriceV41Api
func (*CtecsQueryUpgradeOrderPriceV41Api) Do ¶
func (a *CtecsQueryUpgradeOrderPriceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryUpgradeOrderPriceV41Request) (*CtecsQueryUpgradeOrderPriceV41Response, error)
type CtecsQueryUpgradeOrderPriceV41Request ¶
type CtecsQueryUpgradeOrderPriceV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
ResourceUUID string `json:"resourceUUID,omitempty"` /* 资源uuid */
ResourceType string `json:"resourceType,omitempty"` /* 资源类型 */
FlavorName string `json:"flavorName,omitempty"` /* 云主机规格,当resourceType为VM时必填 */
Bandwidth int32 `json:"bandwidth,omitempty"` /* 带宽大小,范围[1,2000],需大于当前带宽,当resourceType为IP时必填 */
DiskSize int32 `json:"diskSize,omitempty"` /* 磁盘大小,范围[10,2000],需大于当前大小,当resourceType为EBS时必填 */
NatType string `json:"natType,omitempty"` /* nat规格,当resourceType为NAT时必填 */
IpPoolBandwidth int32 `json:"ipPoolBandwidth,omitempty"` /* 共享带宽大小,范围[5,2000],需大于当前带宽,当resourceType为IP_POOL时必填 */
ElbType string `json:"elbType,omitempty"` /* 性能保障型负载均衡类型(支持standardI/standardII/enhancedI/enhancedII/higherI),当resourceType为PGELB时必填 */
CbrValue int32 `json:"cbrValue,omitempty"` /* 存储库大小,100-1024000GB,当resourceType为CBR_VM或CBR_VBS时必填 */
}
type CtecsQueryUpgradeOrderPriceV41Response ¶
type CtecsQueryUpgradeOrderPriceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 具体错误码标志 */
Message string `json:"message,omitempty"` /* 失败时的错误信息 */
Description string `json:"description,omitempty"` /* 失败时的错误描述 */
ReturnObj *CtecsQueryUpgradeOrderPriceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据,参见returnObj对象结构 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码。请求成功时不返回该字段 */
}
type CtecsQueryUpgradeOrderPriceV41ReturnObjResponse ¶
type CtecsQueryUpgradeOrderPriceV41ReturnObjResponse struct {
TotalPrice float32 `json:"totalPrice"` /* 总价格,单位CNY */
DiscountPrice float32 `json:"discountPrice"` /* 折后价格,单位CNY */
FinalPrice float32 `json:"finalPrice"` /* 最终价格,单位CNY */
SubOrderPrices []*CtecsQueryUpgradeOrderPriceV41ReturnObjSubOrderPricesResponse `json:"subOrderPrices"` /* 子订单价格信息 */
}
type CtecsQueryUpgradeOrderPriceV41ReturnObjSubOrderPricesResponse ¶
type CtecsQueryUpgradeOrderPriceV41ReturnObjSubOrderPricesResponse struct {
ServiceTag string `json:"serviceTag,omitempty"` /* 服务类型 */
TotalPrice float32 `json:"totalPrice"` /* 总价格,单位CNY */
FinalPrice float32 `json:"finalPrice"` /* 最终价格,单位CNY */
OrderItemPrices []*CtecsQueryUpgradeOrderPriceV41ReturnObjSubOrderPricesOrderItemPricesResponse `json:"orderItemPrices"` /* 资源价格信息 */
}
type CtecsQueryUpgradeOrderPriceV42Api ¶
type CtecsQueryUpgradeOrderPriceV42Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryUpgradeOrderPriceV42Api ¶
func NewCtecsQueryUpgradeOrderPriceV42Api(client *core.CtyunClient) *CtecsQueryUpgradeOrderPriceV42Api
func (*CtecsQueryUpgradeOrderPriceV42Api) Do ¶
func (a *CtecsQueryUpgradeOrderPriceV42Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryUpgradeOrderPriceV42Request) (*CtecsQueryUpgradeOrderPriceV42Response, error)
type CtecsQueryUpgradeOrderPriceV42Request ¶
type CtecsQueryUpgradeOrderPriceV42Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
ResourceID string `json:"resourceID,omitempty"` /* 资源ID */
ResourceType string `json:"resourceType,omitempty"` /* 资源类型 */
FlavorName string `json:"flavorName,omitempty"` /* 云主机规格,当resourceType为VM时必填 */
Bandwidth int32 `json:"bandwidth,omitempty"` /* 带宽大小,范围[1,2000],需大于当前带宽,当resourceType为IP时必填 */
DiskSize int32 `json:"diskSize,omitempty"` /* 磁盘大小,范围[10,2000],需大于当前大小,当resourceType为EBS时必填 */
NatType string `json:"natType,omitempty"` /* nat规格,当resourceType为NAT时必填 */
IpPoolBandwidth int32 `json:"ipPoolBandwidth,omitempty"` /* 共享带宽大小,范围[5,2000],需大于当前带宽,当resourceType为IP_POOL时必填 */
ElbType string `json:"elbType,omitempty"` /* 性能保障型负载均衡类型(支持standardI/standardII/enhancedI/enhancedII/higherI),当resourceType为PGELB时必填 */
CbrValue int32 `json:"cbrValue,omitempty"` /* 存储库大小,100-1024000GB,当resourceType为CBR_VM或CBR_VBS时必填 */
}
type CtecsQueryUpgradeOrderPriceV42Response ¶
type CtecsQueryUpgradeOrderPriceV42Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 具体错误码标志 */
Message string `json:"message,omitempty"` /* 失败时的错误信息 */
Description string `json:"description,omitempty"` /* 失败时的错误描述 */
ReturnObj *CtecsQueryUpgradeOrderPriceV42ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据,参见returnObj对象结构 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码。请求成功时不返回该字段 */
}
type CtecsQueryUpgradeOrderPriceV42ReturnObjResponse ¶
type CtecsQueryUpgradeOrderPriceV42ReturnObjResponse struct {
TotalPrice float32 `json:"totalPrice"` /* 总价格,单位CNY */
DiscountPrice float32 `json:"discountPrice"` /* 折后价格,单位CNY */
FinalPrice float32 `json:"finalPrice"` /* 最终价格,单位CNY */
SubOrderPrices []*CtecsQueryUpgradeOrderPriceV42ReturnObjSubOrderPricesResponse `json:"subOrderPrices"` /* 子订单价格信息 */
}
type CtecsQueryUpgradeOrderPriceV42ReturnObjSubOrderPricesResponse ¶
type CtecsQueryUpgradeOrderPriceV42ReturnObjSubOrderPricesResponse struct {
ServiceTag string `json:"serviceTag,omitempty"` /* 服务类型 */
TotalPrice float32 `json:"totalPrice"` /* 总价格,单位CNY */
FinalPrice float32 `json:"finalPrice"` /* 最终价格,单位CNY */
OrderItemPrices []*CtecsQueryUpgradeOrderPriceV42ReturnObjSubOrderPricesOrderItemPricesResponse `json:"orderItemPrices"` /* 资源价格信息 */
}
type CtecsQueryUserdataDetailsV41Api ¶
type CtecsQueryUserdataDetailsV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryUserdataDetailsV41Api ¶
func NewCtecsQueryUserdataDetailsV41Api(client *core.CtyunClient) *CtecsQueryUserdataDetailsV41Api
func (*CtecsQueryUserdataDetailsV41Api) Do ¶
func (a *CtecsQueryUserdataDetailsV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryUserdataDetailsV41Request) (*CtecsQueryUserdataDetailsV41Response, error)
type CtecsQueryUserdataDetailsV41Request ¶
type CtecsQueryUserdataDetailsV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
}
type CtecsQueryUserdataDetailsV41Response ¶
type CtecsQueryUserdataDetailsV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsQueryUserdataDetailsV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsQueryUserdataDetailsV41ReturnObjResponse ¶
type CtecsQueryUserdataDetailsV41ReturnObjResponse struct {
Userdata string `json:"userdata,omitempty"` /* 用户自定义数据 */
}
type CtecsQueryVmCpuHistoryMetricDataV41Api ¶
type CtecsQueryVmCpuHistoryMetricDataV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryVmCpuHistoryMetricDataV41Api ¶
func NewCtecsQueryVmCpuHistoryMetricDataV41Api(client *core.CtyunClient) *CtecsQueryVmCpuHistoryMetricDataV41Api
func (*CtecsQueryVmCpuHistoryMetricDataV41Api) Do ¶
func (a *CtecsQueryVmCpuHistoryMetricDataV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryVmCpuHistoryMetricDataV41Request) (*CtecsQueryVmCpuHistoryMetricDataV41Response, error)
type CtecsQueryVmCpuHistoryMetricDataV41Request ¶
type CtecsQueryVmCpuHistoryMetricDataV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
DeviceIDList []string `json:"deviceIDList"` /* 云主机ID列表,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
Period int32 `json:"period,omitempty"` /* 聚合周期,单位秒,注:默认值为300 */
StartTime string `json:"startTime,omitempty"` /* 必传参数,查询起始时间戳 */
EndTime string `json:"endTime,omitempty"` /* 必传参数,查询终止时间戳 */
PageNo int32 `json:"pageNo,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1 */
Page int32 `json:"page,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1,后续该字段可能废弃 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目,取值范围:[1, 50],注:默认值为20 */
}
type CtecsQueryVmCpuHistoryMetricDataV41Response ¶
type CtecsQueryVmCpuHistoryMetricDataV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回码状态(800为成功,900为失败),默认值:800 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
MsgDesc string `json:"msgDesc,omitempty"` /* 中文描述信息 */
Description string `json:"description,omitempty"` /* 失败或成功时的描述,一般为中文描述 */
ReturnObj *CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResponse `json:"returnObj"` /* 返回参数,参考表returnObj */
}
type CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResponse ¶
type CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResponse struct {
Result []*CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultResponse `json:"result"` /* result对象 */
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目 */
Page int32 `json:"page,omitempty"` /* 页码 */
}
type CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultItemAggregateListCpu_interrupt_timeResponse ¶
type CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultItemAggregateListResponse ¶
type CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultItemAggregateListResponse struct {
Process_cpu_used []*CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultItemAggregateListProcess_cpu_usedResponse `json:"process_cpu_used"` /* 进程CPU使用率,下级对象中value的单位为(%) */
Cpu_util []*CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultItemAggregateListCpu_utilResponse `json:"cpu_util"` /* CPU使用率,下级对象中value的单位为(%) */
Cpu_user_time []*CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultItemAggregateListCpu_user_timeResponse `json:"cpu_user_time"` /* 用户空间CPU使用率,下级对象中value的单位为(%) */
Cpu_system_time []*CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultItemAggregateListCpu_system_timeResponse `json:"cpu_system_time"` /* 内核空间CPU使用率,下级对象中value的单位为(%) */
Cpu_interrupt_time []*CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultItemAggregateListCpu_interrupt_timeResponse `json:"cpu_interrupt_time"` /* CPU中断时间占比,下级对象中value的单位为(%) */
Cpu_iowait_time []*CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultItemAggregateListCpu_iowait_timeResponse `json:"cpu_iowait_time"` /* iowait状态占比,下级对象中value的单位为(%) */
Cpu_softirq_time []*CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultItemAggregateListCpu_softirq_timeResponse `json:"cpu_softirq_time"` /* CPU软中断时间占比,下级对象中value的单位为(%) */
Cpu_idle_time []*CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultItemAggregateListCpu_idle_timeResponse `json:"cpu_idle_time"` /* CPU空闲时间占比,下级对象中value的单位为(%) */
Other_cpu_util []*CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultItemAggregateListOther_cpu_utilResponse `json:"other_cpu_util"` /* 其他CPU使用率,下级对象中value的单位为(%) */
}
type CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultResponse ¶
type CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultResponse struct {
FUID string `json:"fUID,omitempty"` /* 唯一键 */
FuserLastUpdated string `json:"fuserLastUpdated,omitempty"` /* 用户最近更新时间 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
DeviceUUID string `json:"deviceUUID,omitempty"` /* 云主机ID */
ItemAggregateList *CtecsQueryVmCpuHistoryMetricDataV41ReturnObjResultItemAggregateListResponse `json:"itemAggregateList"` /* 监控信息 */
}
type CtecsQueryVmCpuLatestMetricDataV41Api ¶
type CtecsQueryVmCpuLatestMetricDataV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryVmCpuLatestMetricDataV41Api ¶
func NewCtecsQueryVmCpuLatestMetricDataV41Api(client *core.CtyunClient) *CtecsQueryVmCpuLatestMetricDataV41Api
func (*CtecsQueryVmCpuLatestMetricDataV41Api) Do ¶
func (a *CtecsQueryVmCpuLatestMetricDataV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryVmCpuLatestMetricDataV41Request) (*CtecsQueryVmCpuLatestMetricDataV41Response, error)
type CtecsQueryVmCpuLatestMetricDataV41Request ¶
type CtecsQueryVmCpuLatestMetricDataV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
DeviceIDList []string `json:"deviceIDList"` /* 云主机ID列表,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
PageNo int32 `json:"pageNo,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1 */
Page int32 `json:"page,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1,后续该字段可能废弃 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目,取值范围:[1, 50],注:默认值为20 */
}
type CtecsQueryVmCpuLatestMetricDataV41Response ¶
type CtecsQueryVmCpuLatestMetricDataV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回码状态(800为成功,900为失败),默认值:800 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
MsgDesc string `json:"msgDesc,omitempty"` /* 中文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsQueryVmCpuLatestMetricDataV41ReturnObjResponse `json:"returnObj"` /* 返回参数,参考表returnObj */
}
type CtecsQueryVmCpuLatestMetricDataV41ReturnObjResponse ¶
type CtecsQueryVmCpuLatestMetricDataV41ReturnObjResponse struct {
Result []*CtecsQueryVmCpuLatestMetricDataV41ReturnObjResultResponse `json:"result"` /* result对象 */
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目 */
Page int32 `json:"page,omitempty"` /* 页码 */
}
type CtecsQueryVmCpuLatestMetricDataV41ReturnObjResultItemListResponse ¶
type CtecsQueryVmCpuLatestMetricDataV41ReturnObjResultItemListResponse struct {
SamplingTime int32 `json:"samplingTime,omitempty"` /* 监控获取时间 */
Process_cpu_used string `json:"process_cpu_used,omitempty"` /* 进程CPU使用率(%) */
Cpu_util string `json:"cpu_util,omitempty"` /* CPU使用率(%) */
Cpu_user_time string `json:"cpu_user_time,omitempty"` /* 用户空间CPU使用率(%) */
Cpu_system_time string `json:"cpu_system_time,omitempty"` /* 内核空间CPU使用率(%) */
Cpu_interrupt_time string `json:"cpu_interrupt_time,omitempty"` /* CPU中断时间占比(%) */
Cpu_iowait_time string `json:"cpu_iowait_time,omitempty"` /* iowait状态占比(%) */
Cpu_softirq_time string `json:"cpu_softirq_time,omitempty"` /* CPU软中断时间占比(%) */
Cpu_idle_time string `json:"cpu_idle_time,omitempty"` /* CPU空闲时间占比(%) */
Other_cpu_util string `json:"other_cpu_util,omitempty"` /* 其他CPU使用率(%) */
}
type CtecsQueryVmCpuLatestMetricDataV41ReturnObjResultResponse ¶
type CtecsQueryVmCpuLatestMetricDataV41ReturnObjResultResponse struct {
FUID string `json:"fUID,omitempty"` /* 唯一键 */
FuserLastUpdated string `json:"fuserLastUpdated,omitempty"` /* 用户最近更新时间 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
DeviceUUID string `json:"deviceUUID,omitempty"` /* 云主机ID */
ItemList *CtecsQueryVmCpuLatestMetricDataV41ReturnObjResultItemListResponse `json:"itemList"` /* 监控项值列表 */
}
type CtecsQueryVmDiskHistoryMetricDataV41Api ¶
type CtecsQueryVmDiskHistoryMetricDataV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryVmDiskHistoryMetricDataV41Api ¶
func NewCtecsQueryVmDiskHistoryMetricDataV41Api(client *core.CtyunClient) *CtecsQueryVmDiskHistoryMetricDataV41Api
func (*CtecsQueryVmDiskHistoryMetricDataV41Api) Do ¶
func (a *CtecsQueryVmDiskHistoryMetricDataV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryVmDiskHistoryMetricDataV41Request) (*CtecsQueryVmDiskHistoryMetricDataV41Response, error)
type CtecsQueryVmDiskHistoryMetricDataV41Request ¶
type CtecsQueryVmDiskHistoryMetricDataV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
DeviceIDList []string `json:"deviceIDList"` /* 云主机ID列表,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
Period int32 `json:"period,omitempty"` /* 聚合周期,单位秒,注:默认值为300 */
StartTime string `json:"startTime,omitempty"` /* 必传参数,查询起始时间戳 */
EndTime string `json:"endTime,omitempty"` /* 必传参数,查询终止时间戳 */
PageNo int32 `json:"pageNo,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1 */
Page int32 `json:"page,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1,后续该字段可能废弃 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目,取值范围:[1, 50],注:默认值为20 */
}
type CtecsQueryVmDiskHistoryMetricDataV41Response ¶
type CtecsQueryVmDiskHistoryMetricDataV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回码状态(800为成功,900为失败),默认值:800 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
MsgDesc string `json:"msgDesc,omitempty"` /* 中文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResponse `json:"returnObj"` /* 返回参数,参考表returnObj */
}
type CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResponse ¶
type CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResponse struct {
Result []*CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResultResponse `json:"result"` /* result对象 */
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目 */
Page int32 `json:"page,omitempty"` /* 页码 */
}
type CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResultItemAggregateListDisk_read_bytes_rateResponse ¶
type CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResultItemAggregateListDisk_read_requests_rateResponse ¶
type CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResultItemAggregateListDisk_write_bytes_rateResponse ¶
type CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResultItemAggregateListDisk_write_requests_rateResponse ¶
type CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResultItemAggregateListResponse ¶
type CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResultItemAggregateListResponse struct {
Disk_read_bytes_rate []*CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResultItemAggregateListDisk_read_bytes_rateResponse `json:"disk_read_bytes_rate"` /* 磁盘读速率,下级对象中value的单位为(byte/s) */
Disk_read_requests_rate []*CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResultItemAggregateListDisk_read_requests_rateResponse `json:"disk_read_requests_rate"` /* 磁盘读操作速率,下级对象中value的单位为(请求/秒) */
Disk_write_requests_rate []*CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResultItemAggregateListDisk_write_requests_rateResponse `json:"disk_write_requests_rate"` /* 磁盘写操作速率,下级对象中value的单位为(请求/秒) */
Disk_util []*CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResultItemAggregateListDisk_utilResponse `json:"disk_util"` /* 磁盘分配率,下级对象中value的单位为 (%) */
Disk_write_bytes_rate []*CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResultItemAggregateListDisk_write_bytes_rateResponse `json:"disk_write_bytes_rate"` /* 磁盘写速率,下级对象中value的单位为(byte/s) */
}
type CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResultResponse ¶
type CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResultResponse struct {
FUID string `json:"fUID,omitempty"` /* 唯一键 */
FuserLastUpdated string `json:"fuserLastUpdated,omitempty"` /* 用户最近更新时间 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
DeviceUUID string `json:"deviceUUID,omitempty"` /* 云主机ID */
ItemAggregateList *CtecsQueryVmDiskHistoryMetricDataV41ReturnObjResultItemAggregateListResponse `json:"itemAggregateList"` /* 监控信息 */
}
type CtecsQueryVmDiskLatestMetricDataV41Api ¶
type CtecsQueryVmDiskLatestMetricDataV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryVmDiskLatestMetricDataV41Api ¶
func NewCtecsQueryVmDiskLatestMetricDataV41Api(client *core.CtyunClient) *CtecsQueryVmDiskLatestMetricDataV41Api
func (*CtecsQueryVmDiskLatestMetricDataV41Api) Do ¶
func (a *CtecsQueryVmDiskLatestMetricDataV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryVmDiskLatestMetricDataV41Request) (*CtecsQueryVmDiskLatestMetricDataV41Response, error)
type CtecsQueryVmDiskLatestMetricDataV41Request ¶
type CtecsQueryVmDiskLatestMetricDataV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
DeviceIDList []string `json:"deviceIDList"` /* 云主机ID列表,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
PageNo int32 `json:"pageNo,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1 */
Page int32 `json:"page,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1,后续该字段可能废弃 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目,取值范围:[1, 50],注:默认值为20 */
}
type CtecsQueryVmDiskLatestMetricDataV41Response ¶
type CtecsQueryVmDiskLatestMetricDataV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回码状态(800为成功,900为失败),默认值:800 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
MsgDesc string `json:"msgDesc,omitempty"` /* 中文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsQueryVmDiskLatestMetricDataV41ReturnObjResponse `json:"returnObj"` /* 返回参数,参考表returnObj */
}
type CtecsQueryVmDiskLatestMetricDataV41ReturnObjResponse ¶
type CtecsQueryVmDiskLatestMetricDataV41ReturnObjResponse struct {
Result []*CtecsQueryVmDiskLatestMetricDataV41ReturnObjResultResponse `json:"result"` /* result对象 */
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目 */
Page int32 `json:"page,omitempty"` /* 页码 */
}
type CtecsQueryVmDiskLatestMetricDataV41ReturnObjResultItemListResponse ¶
type CtecsQueryVmDiskLatestMetricDataV41ReturnObjResultItemListResponse struct {
SamplingTime int32 `json:"samplingTime,omitempty"` /* 监控获取时间 */
Disk_read_bytes_rate string `json:"disk_read_bytes_rate,omitempty"` /* 磁盘读速率(byte/s) */
Disk_read_requests_rate string `json:"disk_read_requests_rate,omitempty"` /* 磁盘读操作速率(请求/秒) */
Disk_write_requests_rate string `json:"disk_write_requests_rate,omitempty"` /* 磁盘写操作速率(请求/秒) */
Disk_util string `json:"disk_util,omitempty"` /* 磁盘分配率 (%) */
Disk_write_bytes_rate string `json:"disk_write_bytes_rate,omitempty"` /* 磁盘写速率(byte/s) */
}
type CtecsQueryVmDiskLatestMetricDataV41ReturnObjResultResponse ¶
type CtecsQueryVmDiskLatestMetricDataV41ReturnObjResultResponse struct {
FUID string `json:"fUID,omitempty"` /* 唯一键 */
FuserLastUpdated string `json:"fuserLastUpdated,omitempty"` /* 用户最近更新时间 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
DeviceUUID string `json:"deviceUUID,omitempty"` /* 云主机ID */
ExtendStatus int32 `json:"extendStatus,omitempty"` /* 监控粒度开启状态,无(-1),开启(0),关闭(1) */
ItemList *CtecsQueryVmDiskLatestMetricDataV41ReturnObjResultItemListResponse `json:"itemList"` /* 监控项值列表 */
}
type CtecsQueryVmMemoryHistoryMetricDataV41Api ¶
type CtecsQueryVmMemoryHistoryMetricDataV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryVmMemoryHistoryMetricDataV41Api ¶
func NewCtecsQueryVmMemoryHistoryMetricDataV41Api(client *core.CtyunClient) *CtecsQueryVmMemoryHistoryMetricDataV41Api
func (*CtecsQueryVmMemoryHistoryMetricDataV41Api) Do ¶
func (a *CtecsQueryVmMemoryHistoryMetricDataV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryVmMemoryHistoryMetricDataV41Request) (*CtecsQueryVmMemoryHistoryMetricDataV41Response, error)
type CtecsQueryVmMemoryHistoryMetricDataV41Request ¶
type CtecsQueryVmMemoryHistoryMetricDataV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
DeviceIDList []string `json:"deviceIDList"` /* 云主机ID列表,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
Period int32 `json:"period,omitempty"` /* 聚合周期,单位秒,注:默认值为300 */
StartTime string `json:"startTime,omitempty"` /* 必传参数,查询起始时间戳 */
EndTime string `json:"endTime,omitempty"` /* 必传参数,查询终止时间戳 */
PageNo int32 `json:"pageNo,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1 */
Page int32 `json:"page,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1,后续该字段可能废弃 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目,取值范围:[1, 50],注:默认值为20 */
}
type CtecsQueryVmMemoryHistoryMetricDataV41Response ¶
type CtecsQueryVmMemoryHistoryMetricDataV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回码状态(800为成功,900为失败),默认值:800 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
MsgDesc string `json:"msgDesc,omitempty"` /* 中文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResponse `json:"returnObj"` /* 返回参数,参考表returnObj */
}
type CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResponse ¶
type CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResponse struct {
Result []*CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResultResponse `json:"result"` /* result对象 */
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目 */
Page int32 `json:"page,omitempty"` /* 页码 */
}
type CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResultItemAggregateListProcess_memory_usedResponse ¶
type CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResultItemAggregateListResponse ¶
type CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResultItemAggregateListResponse struct {
Mem_util []*CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResultItemAggregateListMem_utilResponse `json:"mem_util"` /* 进程CPU使用率,下级对象中value的单位为(%) */
Free_memory []*CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResultItemAggregateListFree_memoryResponse `json:"free_memory"` /* 可用内存,下级对象中value的单位为(Byte) */
Used_memory []*CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResultItemAggregateListUsed_memoryResponse `json:"used_memory"` /* 已用内存量,下级对象中value的单位为(Byte) */
Buffer_memory []*CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResultItemAggregateListBuffer_memoryResponse `json:"buffer_memory"` /* Buffers占用量,下级对象中value的单位为(Byte) */
Cache_memory []*CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResultItemAggregateListCache_memoryResponse `json:"cache_memory"` /* Cached占用量,下级对象中value的单位为(Byte) */
Process_memory_used []*CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResultItemAggregateListProcess_memory_usedResponse `json:"process_memory_used"` /* 进程内存使用率,下级对象中value的单位为(%) */
Pused_memory []*CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResultItemAggregateListPused_memoryResponse `json:"pused_memory"` /* 内存使用率(细粒度),下级对象中value的单位为(%) */
}
type CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResultResponse ¶
type CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResultResponse struct {
FUID string `json:"fUID,omitempty"` /* 唯一键 */
FuserLastUpdated string `json:"fuserLastUpdated,omitempty"` /* 用户最近更新时间 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
DeviceUUID string `json:"deviceUUID,omitempty"` /* 云主机ID */
ItemAggregateList *CtecsQueryVmMemoryHistoryMetricDataV41ReturnObjResultItemAggregateListResponse `json:"itemAggregateList"` /* 监控信息 */
}
type CtecsQueryVmMemoryLatestMetricDataV41Api ¶
type CtecsQueryVmMemoryLatestMetricDataV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryVmMemoryLatestMetricDataV41Api ¶
func NewCtecsQueryVmMemoryLatestMetricDataV41Api(client *core.CtyunClient) *CtecsQueryVmMemoryLatestMetricDataV41Api
func (*CtecsQueryVmMemoryLatestMetricDataV41Api) Do ¶
func (a *CtecsQueryVmMemoryLatestMetricDataV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryVmMemoryLatestMetricDataV41Request) (*CtecsQueryVmMemoryLatestMetricDataV41Response, error)
type CtecsQueryVmMemoryLatestMetricDataV41Request ¶
type CtecsQueryVmMemoryLatestMetricDataV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
DeviceIDList []string `json:"deviceIDList"` /* 云主机ID列表,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
PageNo int32 `json:"pageNo,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1 */
Page int32 `json:"page,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1,建议使用pageNo,该参数后续会下线 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目,取值范围:[1, 50],注:默认值为10 */
}
type CtecsQueryVmMemoryLatestMetricDataV41Response ¶
type CtecsQueryVmMemoryLatestMetricDataV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回码状态(800为成功,900为失败),默认值:800 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
MsgDesc string `json:"msgDesc,omitempty"` /* 中文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsQueryVmMemoryLatestMetricDataV41ReturnObjResponse `json:"returnObj"` /* 返回参数,参考表returnObj */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
}
type CtecsQueryVmMemoryLatestMetricDataV41ReturnObjResponse ¶
type CtecsQueryVmMemoryLatestMetricDataV41ReturnObjResponse struct {
Result []*CtecsQueryVmMemoryLatestMetricDataV41ReturnObjResultResponse `json:"result"` /* result对象 */
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目 */
Page int32 `json:"page,omitempty"` /* 页码 */
}
type CtecsQueryVmMemoryLatestMetricDataV41ReturnObjResultItemListResponse ¶
type CtecsQueryVmMemoryLatestMetricDataV41ReturnObjResultItemListResponse struct {
SamplingTime int32 `json:"samplingTime,omitempty"` /* 监控获取时间 */
Mem_util string `json:"mem_util,omitempty"` /* 内存使用率(%) */
Free_memory string `json:"free_memory,omitempty"` /* 可用内存(Byte) */
Used_memory string `json:"used_memory,omitempty"` /* 已用内存量(Byte) */
Buffer_memory string `json:"buffer_memory,omitempty"` /* Buffers占用量(Byte) */
Cache_memory string `json:"cache_memory,omitempty"` /* Cached占用量(Byte) */
Process_memory_used string `json:"process_memory_used,omitempty"` /* 进程内存使用率 */
Pused_memory string `json:"pused_memory,omitempty"` /* 内存使用率(细粒度)(%) */
}
type CtecsQueryVmMemoryLatestMetricDataV41ReturnObjResultResponse ¶
type CtecsQueryVmMemoryLatestMetricDataV41ReturnObjResultResponse struct {
FUID string `json:"fUID,omitempty"` /* 唯一键 */
FuserLastUpdated string `json:"fuserLastUpdated,omitempty"` /* 用户最近更新时间 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
DeviceUUID string `json:"deviceUUID,omitempty"` /* 云主机ID */
ItemList *CtecsQueryVmMemoryLatestMetricDataV41ReturnObjResultItemListResponse `json:"itemList"` /* 监控项值列表 */
}
type CtecsQueryVmNetworkHistoryMetricDataV41Api ¶
type CtecsQueryVmNetworkHistoryMetricDataV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryVmNetworkHistoryMetricDataV41Api ¶
func NewCtecsQueryVmNetworkHistoryMetricDataV41Api(client *core.CtyunClient) *CtecsQueryVmNetworkHistoryMetricDataV41Api
func (*CtecsQueryVmNetworkHistoryMetricDataV41Api) Do ¶
func (a *CtecsQueryVmNetworkHistoryMetricDataV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryVmNetworkHistoryMetricDataV41Request) (*CtecsQueryVmNetworkHistoryMetricDataV41Response, error)
type CtecsQueryVmNetworkHistoryMetricDataV41Request ¶
type CtecsQueryVmNetworkHistoryMetricDataV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
DeviceIDList []string `json:"deviceIDList"` /* 云主机ID列表,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
Period int32 `json:"period,omitempty"` /* 聚合周期,单位秒,注:默认值为300 */
StartTime string `json:"startTime,omitempty"` /* 必传参数,查询起始时间戳 */
EndTime string `json:"endTime,omitempty"` /* 必传参数,查询终止时间戳 */
PageNo int32 `json:"pageNo,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1 */
Page int32 `json:"page,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1,后续该字段可能废弃 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目,取值范围:[1, 50],注:默认值为20 */
}
type CtecsQueryVmNetworkHistoryMetricDataV41Response ¶
type CtecsQueryVmNetworkHistoryMetricDataV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回码状态(800为成功,900为失败),默认值:800 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
MsgDesc string `json:"msgDesc,omitempty"` /* 中文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResponse `json:"returnObj"` /* 返回参数,参考表returnObj */
}
type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResponse ¶
type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResponse struct {
Result []*CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultResponse `json:"result"` /* result对象 */
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目 */
Page int32 `json:"page,omitempty"` /* 页码 */
}
type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListNet_in_bytes_rateResponse ¶
type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListNet_out_bytes_rateResponse ¶
type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListNetwork_incoming_drop_rate_inbandResponse ¶
type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListNetwork_incoming_errs_rate_inbandResponse ¶
type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListNetwork_incoming_packets_rate_inbandResponse ¶
type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListNetwork_outing_drop_rate_inbandResponse ¶
type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListNetwork_outing_errs_rate_inbandResponse ¶
type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListNetwork_outing_packets_rate_inbandResponse ¶
type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListResponse ¶
type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListResponse struct {
Net_in_bytes_rate []*CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListNet_in_bytes_rateResponse `json:"net_in_bytes_rate"` /* 网络流入速率,下级对象中value的单位为(bit/s) */
Net_out_bytes_rate []*CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListNet_out_bytes_rateResponse `json:"net_out_bytes_rate"` /* 网络流出速率,下级对象中value的单位为(bit/s) */
Network_incoming_packets_rate_inband []*CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListNetwork_incoming_packets_rate_inbandResponse `json:"network_incoming_packets_rate_inband"` /* 网卡包接收的正确率,下级对象中value的单位为(%) */
Network_outing_packets_rate_inband []*CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListNetwork_outing_packets_rate_inbandResponse `json:"network_outing_packets_rate_inband"` /* 网卡包发送的正确率,下级对象中value的单位为(%) */
Network_incoming_errs_rate_inband []*CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListNetwork_incoming_errs_rate_inbandResponse `json:"network_incoming_errs_rate_inband"` /* 接收误包率,下级对象中value的单位为(%) */
Network_outing_drop_rate_inband []*CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListNetwork_outing_drop_rate_inbandResponse `json:"network_outing_drop_rate_inband"` /* 发送丢包率,下级对象中value的单位为(%) */
Network_outing_errs_rate_inband []*CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListNetwork_outing_errs_rate_inbandResponse `json:"network_outing_errs_rate_inband"` /* 发送误包率,下级对象中value的单位为(%) */
Network_incoming_drop_rate_inband []*CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListNetwork_incoming_drop_rate_inbandResponse `json:"network_incoming_drop_rate_inband"` /* 接收丢包率,下级对象中value的单位为(%) */
}
type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultResponse ¶
type CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultResponse struct {
FUID string `json:"fUID,omitempty"` /* 唯一键 */
FuserLastUpdated string `json:"fuserLastUpdated,omitempty"` /* 用户最近更新时间 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
DeviceUUID string `json:"deviceUUID,omitempty"` /* 云主机ID */
ItemAggregateList *CtecsQueryVmNetworkHistoryMetricDataV41ReturnObjResultItemAggregateListResponse `json:"itemAggregateList"` /* 监控信息 */
}
type CtecsQueryVmNetworkLatestMetricDataV41Api ¶
type CtecsQueryVmNetworkLatestMetricDataV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryVmNetworkLatestMetricDataV41Api ¶
func NewCtecsQueryVmNetworkLatestMetricDataV41Api(client *core.CtyunClient) *CtecsQueryVmNetworkLatestMetricDataV41Api
func (*CtecsQueryVmNetworkLatestMetricDataV41Api) Do ¶
func (a *CtecsQueryVmNetworkLatestMetricDataV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryVmNetworkLatestMetricDataV41Request) (*CtecsQueryVmNetworkLatestMetricDataV41Response, error)
type CtecsQueryVmNetworkLatestMetricDataV41Request ¶
type CtecsQueryVmNetworkLatestMetricDataV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
DeviceIDList []string `json:"deviceIDList"` /* 云主机ID列表,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
PageNo int32 `json:"pageNo,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1 */
Page int32 `json:"page,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1,后续该字段可能废弃 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目,取值范围:[1, 50],注:默认值为20 */
}
type CtecsQueryVmNetworkLatestMetricDataV41Response ¶
type CtecsQueryVmNetworkLatestMetricDataV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回码状态(800为成功,900为失败),默认值:800 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
MsgDesc string `json:"msgDesc,omitempty"` /* 中文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsQueryVmNetworkLatestMetricDataV41ReturnObjResponse `json:"returnObj"` /* 返回参数,参考表returnObj */
}
type CtecsQueryVmNetworkLatestMetricDataV41ReturnObjResponse ¶
type CtecsQueryVmNetworkLatestMetricDataV41ReturnObjResponse struct {
Result []*CtecsQueryVmNetworkLatestMetricDataV41ReturnObjResultResponse `json:"result"` /* result对象 */
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目 */
Page int32 `json:"page,omitempty"` /* 页码 */
}
type CtecsQueryVmNetworkLatestMetricDataV41ReturnObjResultItemListResponse ¶
type CtecsQueryVmNetworkLatestMetricDataV41ReturnObjResultItemListResponse struct {
SamplingTime int32 `json:"samplingTime,omitempty"` /* 监控获取时间 */
Net_in_bytes_rate string `json:"net_in_bytes_rate,omitempty"` /* 网络流入速率(bit/s) */
Net_out_bytes_rate string `json:"net_out_bytes_rate,omitempty"` /* 网络流出速率(bit/s) */
Network_incoming_packets_rate_inband string `json:"network_incoming_packets_rate_inband,omitempty"` /* 网卡包接收的正确率(%) */
Network_outing_packets_rate_inband string `json:"network_outing_packets_rate_inband,omitempty"` /* 网卡包发送的正确率(%) */
Network_incoming_errs_rate_inband string `json:"network_incoming_errs_rate_inband,omitempty"` /* 接收误包率(%) */
Network_outing_drop_rate_inband string `json:"network_outing_drop_rate_inband,omitempty"` /* 发送丢包率(%) */
Network_outing_errs_rate_inband string `json:"network_outing_errs_rate_inband,omitempty"` /* 发送误包率(%) */
Network_incoming_drop_rate_inband string `json:"network_incoming_drop_rate_inband,omitempty"` /* 接收丢包率(%) */
}
type CtecsQueryVmNetworkLatestMetricDataV41ReturnObjResultResponse ¶
type CtecsQueryVmNetworkLatestMetricDataV41ReturnObjResultResponse struct {
FUID string `json:"fUID,omitempty"` /* 唯一键 */
FuserLastUpdated string `json:"fuserLastUpdated,omitempty"` /* 用户最近更新时间 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
DeviceUUID string `json:"deviceUUID,omitempty"` /* 云主机ID */
ItemList *CtecsQueryVmNetworkLatestMetricDataV41ReturnObjResultItemListResponse `json:"itemList"` /* 监控项值列表 */
}
type CtecsQueryVncDetailsV41Api ¶
type CtecsQueryVncDetailsV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryVncDetailsV41Api ¶
func NewCtecsQueryVncDetailsV41Api(client *core.CtyunClient) *CtecsQueryVncDetailsV41Api
func (*CtecsQueryVncDetailsV41Api) Do ¶
func (a *CtecsQueryVncDetailsV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryVncDetailsV41Request) (*CtecsQueryVncDetailsV41Response, error)
type CtecsQueryVncDetailsV41Request ¶
type CtecsQueryVncDetailsV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
}
type CtecsQueryVncDetailsV41Response ¶
type CtecsQueryVncDetailsV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsQueryVncDetailsV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsQueryVncDetailsV41ReturnObjResponse ¶
type CtecsQueryVncDetailsV41ReturnObjResponse struct {
Token string `json:"token,omitempty"` /* token */
}
type CtecsQueryVolumeListV41Api ¶
type CtecsQueryVolumeListV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryVolumeListV41Api ¶
func NewCtecsQueryVolumeListV41Api(client *core.CtyunClient) *CtecsQueryVolumeListV41Api
func (*CtecsQueryVolumeListV41Api) Do ¶
func (a *CtecsQueryVolumeListV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryVolumeListV41Request) (*CtecsQueryVolumeListV41Response, error)
type CtecsQueryVolumeListV41Request ¶
type CtecsQueryVolumeListV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
PageNo int32 `json:"pageNo,omitempty"` /* 页码,取值范围:正整数(≥1),注:默认值为1 */
PageSize int32 `json:"pageSize,omitempty"` /* 每页记录数目,取值范围:[1, 50],注:默认值为10 */
}
type CtecsQueryVolumeListV41Response ¶
type CtecsQueryVolumeListV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsQueryVolumeListV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsQueryVolumeListV41ReturnObjResponse ¶
type CtecsQueryVolumeListV41ReturnObjResponse struct {
CurrentCount int32 `json:"currentCount,omitempty"` /* 当前页记录数目 */
TotalCount int32 `json:"totalCount,omitempty"` /* 总记录数 */
TotalPage int32 `json:"totalPage,omitempty"` /* 总页数 */
Results []*CtecsQueryVolumeListV41ReturnObjResultsResponse `json:"results"` /* 分页明细 */
}
type CtecsQueryVolumeListV41ReturnObjResultsResponse ¶
type CtecsQueryVolumeListV41ReturnObjResultsResponse struct {
DiskMode string `json:"diskMode,omitempty"` /* 云硬盘属性,取值范围:<br />FCSAN(光纤通道协议的SAN网络),<br />ISCSI(小型计算机系统接口),<br />VBD(虚拟块存储设备) */
DiskID string `json:"diskID,omitempty"` /* 云硬盘ID */
DiskType string `json:"diskType,omitempty"` /* 用途分类,取值范围:<br />数据盘,<br />系统盘 */
IsEncrypt *bool `json:"isEncrypt"` /* 云硬盘加密标志,取值范围:<br />true:加密,<br />false:未加密 */
DiskDataType string `json:"diskDataType,omitempty"` /* 云硬盘类型,取值范围:<br />SATA:普通IO,<br />SAS:高IO,<br />SSD:超高IO,<br />FAST-SSD:极速型SSD */
DiskSize int32 `json:"diskSize,omitempty"` /* 云硬盘容量大小,单位GB */
}
type CtecsQueryZonesInRegionV41Api ¶
type CtecsQueryZonesInRegionV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsQueryZonesInRegionV41Api ¶
func NewCtecsQueryZonesInRegionV41Api(client *core.CtyunClient) *CtecsQueryZonesInRegionV41Api
func (*CtecsQueryZonesInRegionV41Api) Do ¶
func (a *CtecsQueryZonesInRegionV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsQueryZonesInRegionV41Request) (*CtecsQueryZonesInRegionV41Response, error)
type CtecsQueryZonesInRegionV41Request ¶
type CtecsQueryZonesInRegionV41Request struct {
RegionID string /* 资源池ID */
}
type CtecsQueryZonesInRegionV41Response ¶
type CtecsQueryZonesInRegionV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码('800为成功,900为失败) ,默认值:800 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码。为空表示成功。 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsQueryZonesInRegionV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码。请求成功时不返回该字段 */
}
type CtecsQueryZonesInRegionV41ReturnObjResponse ¶
type CtecsQueryZonesInRegionV41ReturnObjResponse struct {
ZoneList []*CtecsQueryZonesInRegionV41ReturnObjZoneListResponse `json:"zoneList"` /* 可用区列表 */
}
type CtecsRebootInstanceV41Api ¶
type CtecsRebootInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsRebootInstanceV41Api ¶
func NewCtecsRebootInstanceV41Api(client *core.CtyunClient) *CtecsRebootInstanceV41Api
func (*CtecsRebootInstanceV41Api) Do ¶
func (a *CtecsRebootInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsRebootInstanceV41Request) (*CtecsRebootInstanceV41Response, error)
type CtecsRebootInstanceV41Request ¶
type CtecsRebootInstanceV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
Force *bool `json:"force"` /* 是否强制重启,取值范围:<br />true:强制重启,<br />false:普通重启<br />注:默认值false */
}
type CtecsRebootInstanceV41Response ¶
type CtecsRebootInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsRebootInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsRebootInstanceV41ReturnObjResponse ¶
type CtecsRebootInstanceV41ReturnObjResponse struct {
JobID string `json:"jobID,omitempty"` /* 重启任务ID,您可以调用<a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5543&data=87">查询一个异步任务的结果</a>来查询操作是否成功 */
}
type CtecsRebootLiteInstanceV41Api ¶
type CtecsRebootLiteInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsRebootLiteInstanceV41Api ¶
func NewCtecsRebootLiteInstanceV41Api(client *core.CtyunClient) *CtecsRebootLiteInstanceV41Api
func (*CtecsRebootLiteInstanceV41Api) Do ¶
func (a *CtecsRebootLiteInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsRebootLiteInstanceV41Request) (*CtecsRebootLiteInstanceV41Response, error)
type CtecsRebootLiteInstanceV41Request ¶
type CtecsRebootLiteInstanceV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 轻量型云主机ID,您可以查看<a href="https://www.ctyun.cn/products/lite-ecs">轻量型云主机</a>了解轻量型云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11981&data=87">查询轻量型云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11980&data=87">创建轻量型云主机</a> */
}
type CtecsRebootLiteInstanceV41Response ¶
type CtecsRebootLiteInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsRebootLiteInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsRebootLiteInstanceV41ReturnObjResponse ¶
type CtecsRebootLiteInstanceV41ReturnObjResponse struct {
JobID string `json:"jobID,omitempty"` /* 重启任务ID */
}
type CtecsRebuildInstanceV41Api ¶
type CtecsRebuildInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsRebuildInstanceV41Api ¶
func NewCtecsRebuildInstanceV41Api(client *core.CtyunClient) *CtecsRebuildInstanceV41Api
func (*CtecsRebuildInstanceV41Api) Do ¶
func (a *CtecsRebuildInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsRebuildInstanceV41Request) (*CtecsRebuildInstanceV41Response, error)
type CtecsRebuildInstanceV41Request ¶
type CtecsRebuildInstanceV41Request struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。保留时间为24小时,使用同一个clientToken值,则代表为同一个请求<br />注:当涉及付费镜像时,该参数必填;当不涉及时,该参数不支持 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
Password string `json:"password,omitempty"` /* 用户密码,满足以下规则:<br />长度在8-30个字符;<br />必须包含大写字母、小写字母、数字以及特殊符号中的三项;<br />特殊符号可选:<br />()\`~!@#$%^&*_-+=\|{}[]:;'<>,.?/ <br />且不能以斜线号/开头用户密码,满足以下规则:<br />长度在8-30个字符;<br />必须包含大写字母、小写字母、数字以及特殊符号中的三项;<br />特殊符号可选:()`~!@#$%^&*_-+=|{}[]:;'<>,.?/\且不能以斜线号 / 开头;<br />不能包含3个及以上连续字符;<br />Linux镜像不能包含镜像用户名(root)、用户名的倒序(toor)、用户名大小写变化(如RoOt、rOot等);<br />Windows镜像不能包含镜像用户名(Administrator)、用户名大小写变化(adminiSTrator等) */
ImageID string `json:"imageID,omitempty"` /* 镜像ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10030151">镜像概述</a>来了解云主机镜像<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=23&api=4763&data=89">查询可以使用的镜像资源</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=23&api=4765&data=89">创建私有镜像(云主机系统盘)</a><br />注:不填默认以原镜像进行重装 */
UserData string `json:"userData,omitempty"` /* 用户自定义数据,需要以Base64方式编码,Base64编码后的长度限制为1-16384字符 */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称。不同操作系统下,云主机名称规则有差异<br />Windows:长度为2-15个字符,允许使用大小写字母、数字或连字符(-)。不能以连字符(-)开头或结尾,不能连续使用连字符(-),也不能仅使用数字;<br />其他操作系统:长度为2-64字符,允许使用点(.)分隔字符成多段,每段允许使用大小写字母、数字或连字符(-),但不能连续使用点号(.)或连字符(-),不能以点号(.)或连字符(-)开头或结尾,也不能仅使用数字<br />注:如果不填,默认值为原来云主机名称 */
MonitorService *bool `json:"monitorService"` /* 监控参数,支持通过该参数指定云主机在创建后是否开启详细监控,取值范围: <br />false:不开启,<br />true:开启<br />若指定该参数为true或不指定该参数,云主机内默认开启最新详细监控服务<br />若指定该参数为false,默认公共镜像不开启最新监控服务;私有镜像使用镜像中保留的监控服务<br />说明:仅部分资源池支持monitorService参数,详细请参考<a href="https://www.ctyun.cn/document/10026730/10325957">监控Agent概览</a> */
PayImage *bool `json:"payImage"` /* 付费镜像,当重装镜像为付费镜像时,该参数为True;当重装镜像为免费镜像时,该参数为False。注:默认为False */
}
type CtecsRebuildInstanceV41Response ¶
type CtecsRebuildInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsRebuildInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsRebuildInstanceV41ReturnObjResponse ¶
type CtecsRebuildInstanceV41ReturnObjResponse struct {
JobID string `json:"jobID,omitempty"` /* 重装任务ID,您可以调用<a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5543&data=87">查询一个异步任务的结果</a>来查询操作是否成功<br />注:当免费镜像重装时,返回该参数;当付费镜像重装时,不返回该参数 */
MasterOrderNO string `json:"masterOrderNO,omitempty"` /* 订单ID。注:当付费镜像重装时,返回该参数;当免费镜像重装时,不返回该参数; */
RegionID string `json:"regionID,omitempty"` /* 资源池ID。注:当付费镜像重装时,返回该参数;当免费镜像重装时,不返回该参数; */
MasterOrderID string `json:"masterOrderID,omitempty"` /* 主订单ID。调用方在拿到masterOrderID之后,可以使用materOrderID进一步确认订单状态及资源状态<br />查询订单状态及资源UUID:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9607&data=87&isNormal=1">根据masterOrderID查询云主机ID</a><br />注:当付费镜像重装时,返回该参数;当免费镜像重装时,不返回该参数 */
}
type CtecsRebuildLiteInstanceApi ¶
type CtecsRebuildLiteInstanceApi struct {
// contains filtered or unexported fields
}
func NewCtecsRebuildLiteInstanceApi ¶
func NewCtecsRebuildLiteInstanceApi(client *core.CtyunClient) *CtecsRebuildLiteInstanceApi
func (*CtecsRebuildLiteInstanceApi) Do ¶
func (a *CtecsRebuildLiteInstanceApi) Do(ctx context.Context, credential core.Credential, req *CtecsRebuildLiteInstanceRequest) (*CtecsRebuildLiteInstanceResponse, error)
type CtecsRebuildLiteInstanceRequest ¶
type CtecsRebuildLiteInstanceRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
Password string `json:"password,omitempty"` /* 用户密码,满足以下规则:<br />长度在8-30个字符;<br />必须包含大写字母、小写字母、数字以及特殊符号中的三项<br />特殊符号可选:()`~!@#$%^&*_-+=|{}[]:;'<>,.?/\且不能以斜线号 / 开头<br />不能包含3个及以上连续字符;<br />Linux镜像不能包含镜像用户名(root)、用户名的倒序(toor)、用户名大小写变化(如RoOt、rOot等)<br />Windows镜像不能包含镜像用户名(Administrator)、用户名大小写变化(adminiSTrator等) */
ImageID string `json:"imageID,omitempty"` /* 镜像ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10030151">镜像概述</a>来了解云主机镜像<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=23&api=4763&data=89">查询可以使用的镜像资源</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=23&api=4765&data=89">创建私有镜像(云主机系统盘)</a><br />注:不填默认以原镜像进行重装 */
}
type CtecsRebuildLiteInstanceResponse ¶
type CtecsRebuildLiteInstanceResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsRebuildLiteInstanceReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsRebuildLiteInstanceReturnObjResponse ¶
type CtecsRebuildLiteInstanceReturnObjResponse struct {
JobID string `json:"jobID,omitempty"` /* 重装任务ID,您可以调用<a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5543&data=87">查询一个异步任务的结果</a>来查询操作是否成功<br />注:当免费镜像重装时,返回该参数;当付费镜像重装时,不返回该参数 */
}
type CtecsRecoverUnsubscribeInstanceV41Api ¶
type CtecsRecoverUnsubscribeInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsRecoverUnsubscribeInstanceV41Api ¶
func NewCtecsRecoverUnsubscribeInstanceV41Api(client *core.CtyunClient) *CtecsRecoverUnsubscribeInstanceV41Api
func (*CtecsRecoverUnsubscribeInstanceV41Api) Do ¶
func (a *CtecsRecoverUnsubscribeInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsRecoverUnsubscribeInstanceV41Request) (*CtecsRecoverUnsubscribeInstanceV41Response, error)
type CtecsRecoverUnsubscribeInstanceV41Request ¶
type CtecsRecoverUnsubscribeInstanceV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceIDList []string `json:"instanceIDList"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br />注:最大操作数量为10台 */
CycleCount int32 `json:"cycleCount,omitempty"` /* 订购时长,该参数需要与cycleType一同使用<br />注:最长订购周期为36个月(3年) */
CycleType string `json:"cycleType,omitempty"` /* 订购周期类型,取值范围:<br />MONTH:按月,<br />YEAR:按年 */
}
type CtecsRecoverUnsubscribeInstanceV41Response ¶
type CtecsRecoverUnsubscribeInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsRecoverUnsubscribeInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsRecoverUnsubscribeInstanceV41ReturnObjOrderInfoResponse ¶
type CtecsRecoverUnsubscribeInstanceV41ReturnObjOrderInfoResponse struct {
MasterOrderID string `json:"masterOrderID,omitempty"` /* 主订单ID。调用方在拿到masterOrderID之后,可以使用masterOrderID进一步确认订单状态及资源状态。 */
MasterOrderNO string `json:"masterOrderNO,omitempty"` /* 订单号 */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
}
type CtecsRecoverUnsubscribeInstanceV41ReturnObjResponse ¶
type CtecsRecoverUnsubscribeInstanceV41ReturnObjResponse struct {
OrderInfo []*CtecsRecoverUnsubscribeInstanceV41ReturnObjOrderInfoResponse `json:"orderInfo"` /* 订单信息 */
}
type CtecsRenewInstanceBackupRepoApi ¶
type CtecsRenewInstanceBackupRepoApi struct {
// contains filtered or unexported fields
}
func NewCtecsRenewInstanceBackupRepoApi ¶
func NewCtecsRenewInstanceBackupRepoApi(client *core.CtyunClient) *CtecsRenewInstanceBackupRepoApi
func (*CtecsRenewInstanceBackupRepoApi) Do ¶
func (a *CtecsRenewInstanceBackupRepoApi) Do(ctx context.Context, credential core.Credential, req *CtecsRenewInstanceBackupRepoRequest) (*CtecsRenewInstanceBackupRepoResponse, error)
type CtecsRenewInstanceBackupRepoRequest ¶
type CtecsRenewInstanceBackupRepoRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87&vid=81">资源池列表查询</a> */
RepositoryID string `json:"repositoryID,omitempty"` /* 云主机备份存储库ID,您可以查看<a href="https://www.ctyun.cn/document/10026751/10033742">产品定义-存储库</a>来了解存储库<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=6909&data=87&isNormal=1&vid=81">查询存储库列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=6910&data=87&isNormal=1&vid=81">创建存储库</a> */
CycleCount int32 `json:"cycleCount,omitempty"` /* 订购时长,该参数需要与cycleType一同使用<br />注:最长订购周期为60个月(5年) */
CycleType string `json:"cycleType,omitempty"` /* 订购周期类型 ,取值范围: <br />MONTH表示按月订购,<br />YEAR表示按年订购 */
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个ClientToken值,则代表为同一个请求。保留时间为24小时 */
PayVoucherPrice float32 `json:"payVoucherPrice"` /* 代金券,满足以下规则:两位小数,不足两位自动补0,超过两位小数无效;不可为负数;字段为0时表示不使用代金券 */
}
type CtecsRenewInstanceBackupRepoResponse ¶
type CtecsRenewInstanceBackupRepoResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800 为成功,900 为失败)。 */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsRenewInstanceBackupRepoReturnObjResponse `json:"returnObj"` /* 返回参数。 */
}
type CtecsRenewInstanceBackupRepoReturnObjResponse ¶
type CtecsRenewInstanceBackupRepoReturnObjResponse struct {
MasterOrderID string `json:"masterOrderID,omitempty"` /* 主订单ID。调用方在拿到masterOrderID之后,可以使用materOrderID进一步确认订单状态及资源状态 */
MasterOrderNO string `json:"masterOrderNO,omitempty"` /* 订单号 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
}
type CtecsResetInstancePasswordV41Api ¶
type CtecsResetInstancePasswordV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsResetInstancePasswordV41Api ¶
func NewCtecsResetInstancePasswordV41Api(client *core.CtyunClient) *CtecsResetInstancePasswordV41Api
func (*CtecsResetInstancePasswordV41Api) Do ¶
func (a *CtecsResetInstancePasswordV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsResetInstancePasswordV41Request) (*CtecsResetInstancePasswordV41Response, error)
type CtecsResetInstancePasswordV41Request ¶
type CtecsResetInstancePasswordV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
NewPassword string `json:"newPassword,omitempty"` /* 新的用户密码,满足以下规则:<br />长度在8~30个字符;<br />必须包含大写字母、小写字母、数字以及特殊符号中的三项;<br />特殊符号可选:()`~!@#$%^&*_-+=|{}[]:;'<>,.?/且不能以斜线号 / 开头;<br />不能包含3个及以上连续字符;<br />Linux镜像不能包含镜像用户名(root)、用户名的倒序(toor)、用户名大小写变化(如RoOt、rOot等);<br />Windows镜像不能包含镜像用户名(Administrator)、用户名大小写变化(adminiSTrator等) */
}
type CtecsResetInstancePasswordV41Response ¶
type CtecsResetInstancePasswordV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,详见错误码部分 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码,详见错误码部分 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsResetInstancePasswordV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsResetInstancePasswordV41ReturnObjResponse ¶
type CtecsResetInstancePasswordV41ReturnObjResponse struct {
InstanceID string `json:"instanceID,omitempty"` /* 被更新密码的云主机ID */
}
type CtecsResetLiteInstancePasswordV41Api ¶
type CtecsResetLiteInstancePasswordV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsResetLiteInstancePasswordV41Api ¶
func NewCtecsResetLiteInstancePasswordV41Api(client *core.CtyunClient) *CtecsResetLiteInstancePasswordV41Api
func (*CtecsResetLiteInstancePasswordV41Api) Do ¶
func (a *CtecsResetLiteInstancePasswordV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsResetLiteInstancePasswordV41Request) (*CtecsResetLiteInstancePasswordV41Response, error)
type CtecsResetLiteInstancePasswordV41Request ¶
type CtecsResetLiteInstancePasswordV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 轻量型云主机ID,您可以查看<a href="https://www.ctyun.cn/products/lite-ecs">轻量型云主机</a>了解轻量型云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11981&data=87">查询轻量型云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11980&data=87">创建轻量型云主机</a> */
NewPassword string `json:"newPassword,omitempty"` /* 用户密码,满足以下规则:<br />长度在8~30个字符;<br />必须包含大写字母、小写字母、数字以及特殊符号中的三项;<br />特殊符号可选:()`~!@#$%^&*_-+=|{}[]:;'<>,.?/\且不能以斜线号 / 开头;<br />不能包含3个及以上连续字符;<br />Linux镜像不能包含镜像用户名(root)、用户名的倒序(toor)、用户名大小写变化(如RoOt、rOot等);<br />Windows镜像不能包含镜像用户名(Administrator)、用户名大小写变化(adminiSTrator等) */
}
type CtecsResetLiteInstancePasswordV41Response ¶
type CtecsResetLiteInstancePasswordV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsResetLiteInstancePasswordV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsResetLiteInstancePasswordV41ReturnObjResponse ¶
type CtecsResetLiteInstancePasswordV41ReturnObjResponse struct {
InstanceID string `json:"instanceID,omitempty"` /* 被更新密码的云主机ID */
}
type CtecsRestoreInstanceBackupApi ¶
type CtecsRestoreInstanceBackupApi struct {
// contains filtered or unexported fields
}
func NewCtecsRestoreInstanceBackupApi ¶
func NewCtecsRestoreInstanceBackupApi(client *core.CtyunClient) *CtecsRestoreInstanceBackupApi
func (*CtecsRestoreInstanceBackupApi) Do ¶
func (a *CtecsRestoreInstanceBackupApi) Do(ctx context.Context, credential core.Credential, req *CtecsRestoreInstanceBackupRequest) (*CtecsRestoreInstanceBackupResponse, error)
type CtecsRestoreInstanceBackupRequest ¶
type CtecsRestoreInstanceBackupRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceBackupID string `json:"instanceBackupID,omitempty"` /* 云主机备份ID,您可以查看<a href="https://www.ctyun.cn/document/10026751/10033738">产品定义-云主机备份</a>来了解云主机备份<br /> 获取:<span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8332&data=87&isNormal=1&vid=81">创建云主机备份</a> */
}
type CtecsRestoreInstanceBackupResponse ¶
type CtecsRestoreInstanceBackupResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsRestoreInstanceBackupReturnObjResponse `json:"returnObj"` /* 返回结果 */
}
type CtecsRestoreInstanceBackupReturnObjResponse ¶
type CtecsRestoreInstanceBackupReturnObjResponse struct {
InstanceBackupID string `json:"instanceBackupID,omitempty"` /* 云主机备份ID */
}
type CtecsRestoreSnapshotV41Api ¶
type CtecsRestoreSnapshotV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsRestoreSnapshotV41Api ¶
func NewCtecsRestoreSnapshotV41Api(client *core.CtyunClient) *CtecsRestoreSnapshotV41Api
func (*CtecsRestoreSnapshotV41Api) Do ¶
func (a *CtecsRestoreSnapshotV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsRestoreSnapshotV41Request) (*CtecsRestoreSnapshotV41Response, error)
type CtecsRestoreSnapshotV41Request ¶
type CtecsRestoreSnapshotV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SnapshotID string `json:"snapshotID,omitempty"` /* 云主机快照ID */
}
type CtecsRestoreSnapshotV41Response ¶
type CtecsRestoreSnapshotV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsRestoreSnapshotV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsRestoreSnapshotV41ReturnObjResponse ¶
type CtecsRestoreSnapshotV41ReturnObjResponse struct {
SnapshotID string `json:"snapshotID,omitempty"` /* 云主机快照ID */
}
type CtecsResubscribeInstanceV41Api ¶
type CtecsResubscribeInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsResubscribeInstanceV41Api ¶
func NewCtecsResubscribeInstanceV41Api(client *core.CtyunClient) *CtecsResubscribeInstanceV41Api
func (*CtecsResubscribeInstanceV41Api) Do ¶
func (a *CtecsResubscribeInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsResubscribeInstanceV41Request) (*CtecsResubscribeInstanceV41Response, error)
type CtecsResubscribeInstanceV41Request ¶
type CtecsResubscribeInstanceV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span><a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a> */
CycleCount int32 `json:"cycleCount,omitempty"` /* 订购时长,该参数需要与cycleType一同使用<br />注:最长订购周期为36个月(3年) */
CycleType string `json:"cycleType,omitempty"` /* 订购周期类型,取值范围:<br />MONTH:按月,<br />YEAR:按年 */
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个clientToken值,其他请求参数相同时,则代表为同一个请求。保留时间为24小时 */
PayVoucherPrice float32 `json:"payVoucherPrice"` /* 代金券,满足以下规则:两位小数,不足两位自动补0,超过两位小数无效;不可为负数;字段为0时表示不使用代金券 */
}
type CtecsResubscribeInstanceV41Response ¶
type CtecsResubscribeInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsResubscribeInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsResubscribeLiteInstanceV41Api ¶
type CtecsResubscribeLiteInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsResubscribeLiteInstanceV41Api ¶
func NewCtecsResubscribeLiteInstanceV41Api(client *core.CtyunClient) *CtecsResubscribeLiteInstanceV41Api
func (*CtecsResubscribeLiteInstanceV41Api) Do ¶
func (a *CtecsResubscribeLiteInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsResubscribeLiteInstanceV41Request) (*CtecsResubscribeLiteInstanceV41Response, error)
type CtecsResubscribeLiteInstanceV41Request ¶
type CtecsResubscribeLiteInstanceV41Request struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性,保留时间为24小时 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 轻量型云主机ID,您可以查看<a href="https://www.ctyun.cn/products/lite-ecs">轻量型云主机</a>了解轻量型云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11981&data=87">查询轻量型云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11980&data=87">创建轻量型云主机</a> */
CycleCount int32 `json:"cycleCount,omitempty"` /* 订购时长,<br />注:最长订购周期为36个月(3年) */
CycleType string `json:"cycleType,omitempty"` /* 订购周期类型,取值范围:<br />MONTH:按月,<br />YEAR:按年 */
}
type CtecsResubscribeLiteInstanceV41Response ¶
type CtecsResubscribeLiteInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsResubscribeLiteInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsResubscribeLiteInstanceV41ReturnObjResponse ¶
type CtecsResubscribeLiteInstanceV41ReturnObjResponse struct {
MasterOrderID string `json:"masterOrderID,omitempty"` /* 订单ID。调用方在拿到masterOrderID之后,在若干错误情况下,可以使用materOrderID进一步确认订单状态及资源状态 */
MasterOrderNO string `json:"masterOrderNO,omitempty"` /* 订单号 */
RegionID string `json:"regionID,omitempty"` /* 资源所属资源池ID */
}
type CtecsRevokeSecurityGroupEgressV41Api ¶
type CtecsRevokeSecurityGroupEgressV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsRevokeSecurityGroupEgressV41Api ¶
func NewCtecsRevokeSecurityGroupEgressV41Api(client *core.CtyunClient) *CtecsRevokeSecurityGroupEgressV41Api
func (*CtecsRevokeSecurityGroupEgressV41Api) Do ¶
func (a *CtecsRevokeSecurityGroupEgressV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsRevokeSecurityGroupEgressV41Request) (*CtecsRevokeSecurityGroupEgressV41Response, error)
type CtecsRevokeSecurityGroupEgressV41Request ¶
type CtecsRevokeSecurityGroupEgressV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SecurityGroupID string `json:"securityGroupID,omitempty"` /* 安全组ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>了解安全组相关信息 <br />获取: <br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4817&data=94">查询用户安全组列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4821&data=94">创建安全组</a> */
SecurityGroupRuleID string `json:"securityGroupRuleID,omitempty"` /* 安全组出向规则ID,获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4818&data=94">查询用户安全组详情</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4824&data=94">创建安全组出向规则</a><br />注:在多可用区类型资源池下,安全组ID通常以“sg-”开头,非多可用区类型资源池安全组ID为uuid格式 */
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。长度为1-64字符,要求单个云平台账户内唯一,使用同一个clientToken值,其他请求参数相同时,则代表为同一个请求。保留时间为24小时 */
}
type CtecsRevokeSecurityGroupEgressV41Response ¶
type CtecsRevokeSecurityGroupEgressV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
}
type CtecsRevokeSecurityGroupIngressV41Api ¶
type CtecsRevokeSecurityGroupIngressV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsRevokeSecurityGroupIngressV41Api ¶
func NewCtecsRevokeSecurityGroupIngressV41Api(client *core.CtyunClient) *CtecsRevokeSecurityGroupIngressV41Api
func (*CtecsRevokeSecurityGroupIngressV41Api) Do ¶
func (a *CtecsRevokeSecurityGroupIngressV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsRevokeSecurityGroupIngressV41Request) (*CtecsRevokeSecurityGroupIngressV41Response, error)
type CtecsRevokeSecurityGroupIngressV41Request ¶
type CtecsRevokeSecurityGroupIngressV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SecurityGroupID string `json:"securityGroupID,omitempty"` /* 安全组ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>了解安全组相关信息 <br />获取: <br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4817&data=94">查询用户安全组列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4821&data=94">创建安全组</a> */
SecurityGroupRuleID string `json:"securityGroupRuleID,omitempty"` /* 安全组入向规则ID,获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4818&data=94">查询用户安全组详情</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4823&data=94">创建安全组入向规则</a><br />注:在多可用区类型资源池下,安全组ID通常以“sg-”开头,非多可用区类型资源池安全组ID为uuid格式 */
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。长度为1-64字符,要求单个云平台账户内唯一,使用同一个clientToken值,其他请求参数相同时,则代表为同一个请求。保留时间为24小时 */
}
type CtecsRevokeSecurityGroupIngressV41Response ¶
type CtecsRevokeSecurityGroupIngressV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
}
type CtecsSendFileApi ¶
type CtecsSendFileApi struct {
// contains filtered or unexported fields
}
func NewCtecsSendFileApi ¶
func NewCtecsSendFileApi(client *core.CtyunClient) *CtecsSendFileApi
func (*CtecsSendFileApi) Do ¶
func (a *CtecsSendFileApi) Do(ctx context.Context, credential core.Credential, req *CtecsSendFileRequest) (*CtecsSendFileResponse, error)
type CtecsSendFileRequest ¶
type CtecsSendFileRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
InstanceIDs string `json:"instanceIDs,omitempty"` /* 待下发文件的弹性云主机、物理机ID列表, 使用 , 分割 */
FileName string `json:"fileName,omitempty"` /* 文件名称,长度不超过128个字符 */
Description string `json:"description,omitempty"` /* 文件描述,长度不超过512个字符 */
FileContent string `json:"fileContent,omitempty"` /* 加密的文件内容,base64编码长度不可超过24KB */
TargetDirectory string `json:"targetDirectory,omitempty"` /* 下发文件的目标路径 */
FileOwner string `json:"fileOwner,omitempty"` /* 文件所属用户,只针对linux实例,默认root */
FileGroup string `json:"fileGroup,omitempty"` /* 文件用户组,只针对linux实例,默认root */
FileMode string `json:"fileMode,omitempty"` /* 文件权限,只针对linux实例,默认644 */
Overwrite *bool `json:"overwrite"` /* 是否覆盖,如果目标路径下同名文件已经存在,true:覆盖,false:不覆盖。默认false */
}
type CtecsSendFileResponse ¶
type CtecsSendFileResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800 为成功,900 为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,详见错误码说明 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsSendFileReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsSendFileReturnObjResponse ¶
type CtecsSendFileReturnObjResponse struct {
InvokedID string `json:"invokedID,omitempty"` /* 执行ID */
}
type CtecsShelveInstanceApi ¶
type CtecsShelveInstanceApi struct {
// contains filtered or unexported fields
}
func NewCtecsShelveInstanceApi ¶
func NewCtecsShelveInstanceApi(client *core.CtyunClient) *CtecsShelveInstanceApi
func (*CtecsShelveInstanceApi) Do ¶
func (a *CtecsShelveInstanceApi) Do(ctx context.Context, credential core.Credential, req *CtecsShelveInstanceRequest) (*CtecsShelveInstanceResponse, error)
type CtecsShelveInstanceRequest ¶
type CtecsShelveInstanceRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
}
type CtecsShelveInstanceResponse ¶
type CtecsShelveInstanceResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsShelveInstanceReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsShelveInstanceReturnObjResponse ¶
type CtecsShelveInstanceReturnObjResponse struct {
JobID string `json:"jobID,omitempty"` /* 关机任务ID,您可以调用<a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5543&data=87">查询一个异步任务的结果</a>来查询操作是否成功 */
}
type CtecsShowPortsV41Api ¶
type CtecsShowPortsV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsShowPortsV41Api ¶
func NewCtecsShowPortsV41Api(client *core.CtyunClient) *CtecsShowPortsV41Api
func (*CtecsShowPortsV41Api) Do ¶
func (a *CtecsShowPortsV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsShowPortsV41Request) (*CtecsShowPortsV41Response, error)
type CtecsShowPortsV41Request ¶
type CtecsShowPortsV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
NetworkInterfaceID string /* 网卡ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10197673">弹性网卡-弹性网卡基本知识</a>来了解弹性网卡<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5802&data=94">查询弹性网卡列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5789&data=94">创建弹性网卡</a> */
}
type CtecsShowPortsV41Response ¶
type CtecsShowPortsV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsShowPortsV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsShowPortsV41ReturnObjResponse ¶
type CtecsShowPortsV41ReturnObjResponse struct {
NetworkInterfaceName string `json:"networkInterfaceName,omitempty"` /* 虚拟网名称 */
NetworkInterfaceID string `json:"networkInterfaceID,omitempty"` /* 虚拟网id */
VpcID string `json:"vpcID,omitempty"` /* 所属vpc */
SubnetID string `json:"subnetID,omitempty"` /* 所属子网id */
Role int32 `json:"role,omitempty"` /* 网卡类型: 0 主网卡, 1 弹性网卡 */
MacAddress string `json:"macAddress,omitempty"` /* mac地址 */
PrimaryPrivateIp string `json:"primaryPrivateIp,omitempty"` /* 主ip */
Ipv6Addresses []string `json:"ipv6Addresses"` /* ipv6地址 */
InstanceID string `json:"instanceID,omitempty"` /* 关联的设备id */
InstanceType string `json:"instanceType,omitempty"` /* 设备类型 VM, BM, Other */
Description string `json:"description,omitempty"` /* 描述 */
SecurityGroupIds []string `json:"securityGroupIds"` /* 安全组ID列表 */
SecondaryPrivateIps []string `json:"secondaryPrivateIps"` /* 辅助私网IP */
AdminStatus string `json:"adminStatus,omitempty"` /* 是否启用DOWN, UP */
AssociatedEip *CtecsShowPortsV41ReturnObjAssociatedEipResponse `json:"associatedEip"` /* 关联的eip信息 */
}
type CtecsShowVolumeV41Api ¶
type CtecsShowVolumeV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsShowVolumeV41Api ¶
func NewCtecsShowVolumeV41Api(client *core.CtyunClient) *CtecsShowVolumeV41Api
func (*CtecsShowVolumeV41Api) Do ¶
func (a *CtecsShowVolumeV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsShowVolumeV41Request) (*CtecsShowVolumeV41Response, error)
type CtecsShowVolumeV41Request ¶
type CtecsShowVolumeV41Request struct {
DiskID string /* 磁盘ID,您可以查看<a href="https://www.ctyun.cn/document/10027696/10027930">产品定义-云硬盘</a>来了解云硬盘 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=35&api=7338&data=48">云硬盘列表查询</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=35&api=7332&data=48&isNormal=1&vid=45">创建云硬盘</a> */
RegionID string /* 如本地语境支持保存regionID,那么建议传递。资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
}
type CtecsShowVolumeV41Response ¶
type CtecsShowVolumeV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为处理中或失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsShowVolumeV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsShowVolumeV41ReturnObjResponse ¶
type CtecsShowVolumeV41ReturnObjResponse struct {
DiskName string `json:"diskName,omitempty"` /* 磁盘名 */
DiskID string `json:"diskID,omitempty"` /* 磁盘ID */
DiskSize int32 `json:"diskSize,omitempty"` /* 磁盘大小,单位为GB */
DiskType string `json:"diskType,omitempty"` /* 云硬盘规格类型,取值为:<br />●SATA:普通IO<br />●SAS:高IO<br />●SSD:超高IO<br />●FAST-SSD:极速型SSD<br />●XSSD-0、XSSD-1、XSSD-2:X系列云硬盘 */
DiskMode string `json:"diskMode,omitempty"` /* 云硬盘磁盘模式,取值为:<br />●VBD(Virtual Block Device):虚拟块存储设备<br />●ISCSI (Internet Small Computer System Interface):小型计算机系统接口<br />●FCSAN(Fibre Channel SAN):光纤通道协议的SAN网络 */
DiskStatus string `json:"diskStatus,omitempty"` /* 云硬盘使用状态 deleting/creating/detaching,具体请参考<a href="https://www.ctyun.cn/document/10027696/10168629">云硬盘使用状态</a> */
CreateTime int32 `json:"createTime,omitempty"` /* 创建时刻,epoch时戳,精度毫秒 */
UpdateTime int32 `json:"updateTime,omitempty"` /* 更新时刻,epoch时戳,精度毫秒 */
ExpireTime int32 `json:"expireTime,omitempty"` /* 过期时刻,epoch时戳,精度毫秒 */
IsSystemVolume *bool `json:"isSystemVolume"` /* 是否系统盘,只有为系统盘时才返回该字段 */
IsPackaged *bool `json:"isPackaged"` /* 是否是云主机成套资源 */
InstanceName string `json:"instanceName,omitempty"` /* 绑定的云主机名,有挂载时才返回 */
InstanceID string `json:"instanceID,omitempty"` /* 绑定云主机resourceUUID,有挂载时才返回 */
InstanceStatus string `json:"instanceStatus,omitempty"` /* 云主机状态 */
MultiAttach *bool `json:"multiAttach"` /* 是否共享云硬盘 */
Attachments []*CtecsShowVolumeV41ReturnObjAttachmentsResponse `json:"attachments"` /* 挂载信息。如果是共享挂载云硬盘,有多项 */
ProjectID string `json:"projectID,omitempty"` /* 资源所属企业项目ID */
IsEncrypt *bool `json:"isEncrypt"` /* 是否加密盘 */
KmsUUID string `json:"kmsUUID,omitempty"` /* 加密盘密钥UUID,是加密盘时才返回 */
OnDemand *bool `json:"onDemand"` /* 是否按需订购,按需时才返回该字段 */
CycleType string `json:"cycleType,omitempty"` /* month/year,非按需时返回 */
CycleCount int32 `json:"cycleCount,omitempty"` /* 包周期数,非按需时返回 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
AzName string `json:"azName,omitempty"` /* 多可用区下的可用区名字 */
DiskFreeze string `json:"diskFreeze,omitempty"` /* 云硬盘是否已冻结 */
ProvisionedIops int32 `json:"provisionedIops,omitempty"` /* XSSD类型盘的预配置iops,未配置返回0,其他类型盘不返回 */
VolumeSource string `json:"volumeSource,omitempty"` /* 云硬盘源快照ID,若不是从快照创建的则返回null */
SnapshotPolicyID string `json:"snapshotPolicyID,omitempty"` /* 云硬盘绑定的快照策略ID,若没有绑定则返回null */
}
type CtecsSnapshotCreateInstanceV41Api ¶
type CtecsSnapshotCreateInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsSnapshotCreateInstanceV41Api ¶
func NewCtecsSnapshotCreateInstanceV41Api(client *core.CtyunClient) *CtecsSnapshotCreateInstanceV41Api
func (*CtecsSnapshotCreateInstanceV41Api) Do ¶
func (a *CtecsSnapshotCreateInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsSnapshotCreateInstanceV41Request) (*CtecsSnapshotCreateInstanceV41Response, error)
type CtecsSnapshotCreateInstanceV41NetworkCardListRequest ¶
type CtecsSnapshotCreateInstanceV41NetworkCardListRequest struct {
NicName string `json:"nicName,omitempty"` /* 长度2~32,支持拉丁字母、中文、数字、下划线、连字符,中文或英文字母开头,不能以http:或https:开头 */
FixedIP string `json:"fixedIP,omitempty"` /* 内网IPv4地址 */
IsMaster bool `json:"isMaster"` /* 是否主网卡,取值范围:<br />true:表示主网卡,<br />false:表示扩展网卡 */
SubnetID string `json:"subnetID,omitempty"` /* 子网ID */
}
type CtecsSnapshotCreateInstanceV41Request ¶
type CtecsSnapshotCreateInstanceV41Request struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个ClientToken值,则代表为同一个请求。保留时间为24小时 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID,企业项目管理服务提供统一的云资源按企业项目管理,以及企业项目内的资源管理,成员管理。您可以通过查看<a href="https://www.ctyun.cn/document/10017248/10017961">创建企业项目</a>了解如何创建企业项目<br />注:默认值为"0" */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称。不同操作系统下,云主机名称规则有差异<br />Windows:长度为2~15个字符,允许使用大小写字母、数字或连字符(-)。不能以连字符(-)开头或结尾,不能连续使用连字符(-),也不能仅使用数字;<br />其他操作系统:长度为2-64字符,允许使用点(.)分隔字符成多段,每段允许使用大小写字母、数字或连字符(-),但不能连续使用点号(.)或连字符(-),不能以点号(.)或连字符(-)开头或结尾,也不能仅使用数字 */
DisplayName string `json:"displayName,omitempty"` /* 云主机显示名称,长度为2-63字符 */
SnapshotID string `json:"snapshotID,omitempty"` /* 云主机快照ID,<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8349&data=87">查询云主机快照列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8352&data=87">创建云主机快照</a> */
VpcID string `json:"vpcID,omitempty"` /* 虚拟私有云ID,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028310">产品定义-虚拟私有云</a>来了解虚拟私有云<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4814&data=94">查询VPC列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4811&data=94">创建VPC</a><br />注:在多可用区类型资源池下,vpcID通常以“vpc-”开头,非多可用区类型资源池vpcID为uuid格式 */
OnDemand bool `json:"onDemand"` /* 购买方式,取值范围:<br />false:按周期,<br />true:按需<br />您可以查看<a href="https://www.ctyun.cn/document/10026730/10030877">计费模式</a>了解云主机的计费模式<br />注:按周期(false)创建云主机需要同时指定cycleCount和cycleType参数 */
SecGroupList []string `json:"secGroupList"` /* 安全组ID列表,您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>了解安全组相关信息 <br />获取: <br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4817&data=94">查询用户安全组列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4821&data=94">创建安全组</a><br />注:在多可用区类型资源池下,安全组ID通常以“sg-”开头,非多可用区类型资源池安全组ID为uuid格式 */
NetworkCardList []*CtecsSnapshotCreateInstanceV41NetworkCardListRequest `json:"networkCardList"` /* 网卡信息列表,您可以查看<a href="https://www.ctyun.cn/document/10026730/10225195">弹性网卡概述</a>了解弹性网卡相关信息 */
ExtIP string `json:"extIP,omitempty"` /* 是否使用弹性公网IP,取值范围:<br />0:不使用,<br />1:自动分配,<br />2使用已有<br />注:自动分配弹性公网,默认分配IPv4弹性公网,需填写带宽大小,如需ipv6请填写弹性IP版本(即参数extIP="1"时,需填写参数bandwidth、ipVersion,ipVersion含默认值ipv4);<br />使用已有弹性公网,请填写弹性公网IP的ID,默认为ipv4版本,如使用已有ipv6,请填写弹性ip版本(即参数extIP="2"时,需填写eipID或ipv6AddressID,同时ipv6情况下请填写ipVersion) */
IpVersion string `json:"ipVersion,omitempty"` /* 弹性IP版本,取值范围:<br />ipv4:v4地址,<br />ipv6:v6地址,<br />不指定默认为ipv4。注:请先确认该资源池是否支持ipv6 */
Bandwidth int32 `json:"bandwidth,omitempty"` /* 带宽大小单位为Mbit/s ,取值范围:[1~2000] <br />注:extIP取值1时,bandWidth生效且必填<br /> */
Ipv6AddressID string `json:"ipv6AddressID,omitempty"` /* 弹性公网IPv6的ID(多可用区类资源池暂不支持) */
EipID string `json:"eipID,omitempty"` /* 弹性公网IP的ID */
AffinityGroupID string `json:"affinityGroupID,omitempty"` /* 云主机组ID,获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8324&data=87">查询云主机组列表或者详情</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8316&data=87">创建云主机组</a><br /> */
KeyPairID string `json:"keyPairID,omitempty"` /* 密钥对ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10230540">密钥对</a>来了解密钥对相关内容 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8342&data=87">查询一个或多个密钥对</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8344&data=87">创建一对SSH密钥对</a> */
UserPassword string `json:"userPassword,omitempty"` /* 用户密码,满足以下规则:<br />长度在8~30个字符;<br />必须包含大写字母、小写字母、数字以及特殊符号中的三项;<br />特殊符号可选:()`~!@#$%^&*_-+=|{}[]:;'<>,.?/且不能以斜线号 / 开头;<br />不能包含3个及以上连续字符;<br />Linux镜像不能包含镜像用户名(root)、用户名的倒序(toor)、用户名大小写变化(如RoOt、rOot等);<br />Windows镜像不能包含镜像用户名(Administrator)、用户名大小写变化(adminiSTrator等) */
CycleCount int32 `json:"cycleCount,omitempty"` /* 订购时长,该参数需要与cycleType一同使用<br />注:最长订购周期为60个月(5年);cycleType与cycleCount一起填写 */
CycleType string `json:"cycleType,omitempty"` /* 订购周期类型,取值范围:<br />MONTH:按月,<br />YEAR:按年<br />最长订购周期为5年 */
AutoRenewStatus int32 `json:"autoRenewStatus,omitempty"` /* 是否自动续订,取值范围:<br />0:不续费,<br />1:自动续费<br />注:按月购买,自动续订周期为1个月;按年购买,自动续订周期为1年 */
UserData string `json:"userData,omitempty"` /* 用户自定义数据,需要以Base64方式编码,Base64编码后的长度限制为1-16384字符 */
LabelList []*CtecsSnapshotCreateInstanceV41LabelListRequest `json:"labelList"` /* 标签信息列表,注:单台云主机最多可绑定10个标签;主机创建完成后,云主机变为运行状态,此时标签仍可能未绑定,需等待一段时间(0~10分钟) */
MonitorService *bool `json:"monitorService"` /* 监控参数,支持通过该参数指定云主机在创建后是否开启详细监控,取值范围: <br />false:不开启,<br />true:开启<br />若指定该参数为true或不指定该参数,云主机内默认开启最新详细监控服务<br />若指定该参数为false,默认不开启最新监控服务,而使用与原快照里保留的监控服务<br />说明:仅部分资源池支持monitorService参数,详细请参考<a href="https://www.ctyun.cn/document/10026730/10325957">监控Agent概览</a> */
}
type CtecsSnapshotCreateInstanceV41Response ¶
type CtecsSnapshotCreateInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsSnapshotCreateInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsSnapshotCreateInstanceV41ReturnObjResponse ¶
type CtecsSnapshotCreateInstanceV41ReturnObjResponse struct {
MasterOrderID string `json:"masterOrderID,omitempty"` /* 主订单ID。调用方在拿到masterOrderID之后,可以使用materOrderID进一步确认订单状态及资源状态 */
MasterOrderNO string `json:"masterOrderNO,omitempty"` /* 订单号 */
MasterResourceID string `json:"masterResourceID,omitempty"` /* 主资源ID */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
}
type CtecsSnapshotPolicyUnbindInstancesV41Api ¶
type CtecsSnapshotPolicyUnbindInstancesV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsSnapshotPolicyUnbindInstancesV41Api ¶
func NewCtecsSnapshotPolicyUnbindInstancesV41Api(client *core.CtyunClient) *CtecsSnapshotPolicyUnbindInstancesV41Api
func (*CtecsSnapshotPolicyUnbindInstancesV41Api) Do ¶
func (a *CtecsSnapshotPolicyUnbindInstancesV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsSnapshotPolicyUnbindInstancesV41Request) (*CtecsSnapshotPolicyUnbindInstancesV41Response, error)
type CtecsSnapshotPolicyUnbindInstancesV41Request ¶
type CtecsSnapshotPolicyUnbindInstancesV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SnapshotPolicyID string `json:"snapshotPolicyID,omitempty"` /* 云主机快照策略ID,32字节<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9600&data=87">查询云主机快照策略列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9588&data=87">创建云主机快照策略</a> */
InstanceIDs string `json:"instanceIDs,omitempty"` /* 云主机ID列表,多台使用英文逗号分割,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
}
type CtecsSnapshotPolicyUnbindInstancesV41Response ¶
type CtecsSnapshotPolicyUnbindInstancesV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsSnapshotPolicyUnbindInstancesV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsSnapshotPolicyUnbindInstancesV41ReturnObjResponse ¶
type CtecsSnapshotPolicyUnbindInstancesV41ReturnObjResponse struct {
InstanceIDList []string `json:"instanceIDList"` /* 本次策略绑定云主机ID列表 */
}
type CtecsSnapshotpolicyBindInstanceV41Api ¶
type CtecsSnapshotpolicyBindInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsSnapshotpolicyBindInstanceV41Api ¶
func NewCtecsSnapshotpolicyBindInstanceV41Api(client *core.CtyunClient) *CtecsSnapshotpolicyBindInstanceV41Api
func (*CtecsSnapshotpolicyBindInstanceV41Api) Do ¶
func (a *CtecsSnapshotpolicyBindInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsSnapshotpolicyBindInstanceV41Request) (*CtecsSnapshotpolicyBindInstanceV41Response, error)
type CtecsSnapshotpolicyBindInstanceV41Request ¶
type CtecsSnapshotpolicyBindInstanceV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SnapshotPolicyID string `json:"snapshotPolicyID,omitempty"` /* 云主机快照策略ID,32字节<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9600&data=87">查询云主机快照策略列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9588&data=87">创建云主机快照策略</a> */
InstanceIDs string `json:"instanceIDs,omitempty"` /* 云主机ID列表,多台使用英文逗号分割,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
}
type CtecsSnapshotpolicyBindInstanceV41Response ¶
type CtecsSnapshotpolicyBindInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsSnapshotpolicyBindInstanceV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsSnapshotpolicyBindInstanceV41ReturnObjResponse ¶
type CtecsSnapshotpolicyBindInstanceV41ReturnObjResponse struct {
InstanceIDList []string `json:"instanceIDList"` /* 本次策略绑定云主机ID列表 */
}
type CtecsStartInstanceV41Api ¶
type CtecsStartInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsStartInstanceV41Api ¶
func NewCtecsStartInstanceV41Api(client *core.CtyunClient) *CtecsStartInstanceV41Api
func (*CtecsStartInstanceV41Api) Do ¶
func (a *CtecsStartInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsStartInstanceV41Request) (*CtecsStartInstanceV41Response, error)
type CtecsStartInstanceV41Request ¶
type CtecsStartInstanceV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
}
type CtecsStartInstanceV41Response ¶
type CtecsStartInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsStartInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsStartInstanceV41ReturnObjResponse ¶
type CtecsStartInstanceV41ReturnObjResponse struct {
JobID string `json:"jobID,omitempty"` /* 开机任务ID,您可以调用<a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5543&data=87">查询一个异步任务的结果</a>来查询操作是否成功 */
}
type CtecsStartLiteInstanceV41Api ¶
type CtecsStartLiteInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsStartLiteInstanceV41Api ¶
func NewCtecsStartLiteInstanceV41Api(client *core.CtyunClient) *CtecsStartLiteInstanceV41Api
func (*CtecsStartLiteInstanceV41Api) Do ¶
func (a *CtecsStartLiteInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsStartLiteInstanceV41Request) (*CtecsStartLiteInstanceV41Response, error)
type CtecsStartLiteInstanceV41Request ¶
type CtecsStartLiteInstanceV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 轻量型云主机ID,您可以查看<a href="https://www.ctyun.cn/products/lite-ecs">轻量型云主机</a>了解轻量型云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11981&data=87">查询轻量型云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11980&data=87">创建轻量型云主机</a> */
}
type CtecsStartLiteInstanceV41Response ¶
type CtecsStartLiteInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsStartLiteInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsStartLiteInstanceV41ReturnObjResponse ¶
type CtecsStartLiteInstanceV41ReturnObjResponse struct {
JobID string `json:"jobID,omitempty"` /* 开机任务ID */
}
type CtecsStatisticsInstanceBackupApi ¶
type CtecsStatisticsInstanceBackupApi struct {
// contains filtered or unexported fields
}
func NewCtecsStatisticsInstanceBackupApi ¶
func NewCtecsStatisticsInstanceBackupApi(client *core.CtyunClient) *CtecsStatisticsInstanceBackupApi
func (*CtecsStatisticsInstanceBackupApi) Do ¶
func (a *CtecsStatisticsInstanceBackupApi) Do(ctx context.Context, credential core.Credential, req *CtecsStatisticsInstanceBackupRequest) (*CtecsStatisticsInstanceBackupResponse, error)
type CtecsStatisticsInstanceBackupRequest ¶
type CtecsStatisticsInstanceBackupRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以调用<a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a>查看最新的天翼云资源池列表 */
}
type CtecsStatisticsInstanceBackupResponse ¶
type CtecsStatisticsInstanceBackupResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsStatisticsInstanceBackupReturnObjResponse `json:"returnObj"` /* 返回参数 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
}
type CtecsStatusInstanceBackupV41Api ¶
type CtecsStatusInstanceBackupV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsStatusInstanceBackupV41Api ¶
func NewCtecsStatusInstanceBackupV41Api(client *core.CtyunClient) *CtecsStatusInstanceBackupV41Api
func (*CtecsStatusInstanceBackupV41Api) Do ¶
func (a *CtecsStatusInstanceBackupV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsStatusInstanceBackupV41Request) (*CtecsStatusInstanceBackupV41Response, error)
type CtecsStatusInstanceBackupV41Request ¶
type CtecsStatusInstanceBackupV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceBackupID string /* 云主机备份ID,您可以查看<a href="https://www.ctyun.cn/document/10026751/10033738">产品定义-云主机备份</a>来了解云主机备份<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8354&data=87&isNormal=1&vid=81">查询云主机备份列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8332&data=87&isNormal=1&vid=81">创建云主机备份</a> */
}
type CtecsStatusInstanceBackupV41Response ¶
type CtecsStatusInstanceBackupV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsStatusInstanceBackupV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsStatusInstanceBackupV41ReturnObjResponse ¶
type CtecsStatusInstanceBackupV41ReturnObjResponse struct {
InstanceBackupStatus string `json:"instanceBackupStatus,omitempty"` /* 备份状态,取值范围:<br />CREATING: 备份创建中, <br />ACTIVE: 可用, <br />RESTORING: 备份恢复中,<br />DELETING: 删除中,<br />EXPIRED:到期,<br />ERROR:错误 */
}
type CtecsStopInstanceV41Api ¶
type CtecsStopInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsStopInstanceV41Api ¶
func NewCtecsStopInstanceV41Api(client *core.CtyunClient) *CtecsStopInstanceV41Api
func (*CtecsStopInstanceV41Api) Do ¶
func (a *CtecsStopInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsStopInstanceV41Request) (*CtecsStopInstanceV41Response, error)
type CtecsStopInstanceV41Request ¶
type CtecsStopInstanceV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
Force *bool `json:"force"` /* 是否强制关机,取值范围:<br />true:强制关机,<br />false:普通关机<br />注:默认值false */
}
type CtecsStopInstanceV41Response ¶
type CtecsStopInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsStopInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsStopInstanceV41ReturnObjResponse ¶
type CtecsStopInstanceV41ReturnObjResponse struct {
JobID string `json:"jobID,omitempty"` /* 关机任务ID,您可以调用<a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5543&data=87">查询一个异步任务的结果</a>来查询操作是否成功 */
}
type CtecsStopLiteInstanceV41Api ¶
type CtecsStopLiteInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsStopLiteInstanceV41Api ¶
func NewCtecsStopLiteInstanceV41Api(client *core.CtyunClient) *CtecsStopLiteInstanceV41Api
func (*CtecsStopLiteInstanceV41Api) Do ¶
func (a *CtecsStopLiteInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsStopLiteInstanceV41Request) (*CtecsStopLiteInstanceV41Response, error)
type CtecsStopLiteInstanceV41Request ¶
type CtecsStopLiteInstanceV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 轻量型云主机ID,您可以查看<a href="https://www.ctyun.cn/products/lite-ecs">轻量型云主机</a>了解轻量型云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11981&data=87">查询轻量型云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11980&data=87">创建轻量型云主机</a> */
}
type CtecsStopLiteInstanceV41Response ¶
type CtecsStopLiteInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsStopLiteInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsStopLiteInstanceV41ReturnObjResponse ¶
type CtecsStopLiteInstanceV41ReturnObjResponse struct {
JobID string `json:"jobID,omitempty"` /* 关机任务ID */
}
type CtecsTotalInstanceBackupVolumeSizeV41Api ¶
type CtecsTotalInstanceBackupVolumeSizeV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsTotalInstanceBackupVolumeSizeV41Api ¶
func NewCtecsTotalInstanceBackupVolumeSizeV41Api(client *core.CtyunClient) *CtecsTotalInstanceBackupVolumeSizeV41Api
func (*CtecsTotalInstanceBackupVolumeSizeV41Api) Do ¶
func (a *CtecsTotalInstanceBackupVolumeSizeV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsTotalInstanceBackupVolumeSizeV41Request) (*CtecsTotalInstanceBackupVolumeSizeV41Response, error)
type CtecsTotalInstanceBackupVolumeSizeV41Request ¶
type CtecsTotalInstanceBackupVolumeSizeV41Request struct {
RegionID string /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a> */
}
type CtecsTotalInstanceBackupVolumeSizeV41Response ¶
type CtecsTotalInstanceBackupVolumeSizeV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsTotalInstanceBackupVolumeSizeV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsTotalInstanceBackupVolumeSizeV41ReturnObjResponse ¶
type CtecsTotalInstanceBackupVolumeSizeV41ReturnObjResponse struct {
TotalDiskSize int32 `json:"totalDiskSize,omitempty"` /* 云主机磁盘占用大小,单位GB */
}
type CtecsUnsubscribeInstanceV41Api ¶
type CtecsUnsubscribeInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsUnsubscribeInstanceV41Api ¶
func NewCtecsUnsubscribeInstanceV41Api(client *core.CtyunClient) *CtecsUnsubscribeInstanceV41Api
func (*CtecsUnsubscribeInstanceV41Api) Do ¶
func (a *CtecsUnsubscribeInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsUnsubscribeInstanceV41Request) (*CtecsUnsubscribeInstanceV41Response, error)
type CtecsUnsubscribeInstanceV41Request ¶
type CtecsUnsubscribeInstanceV41Request struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。保留时间为24小时,使用同一个clientToken值,则代表为同一个请求 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span><a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a> */
}
type CtecsUnsubscribeInstanceV41Response ¶
type CtecsUnsubscribeInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsUnsubscribeInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsUnsubscribeLiteInstanceV41Api ¶
type CtecsUnsubscribeLiteInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsUnsubscribeLiteInstanceV41Api ¶
func NewCtecsUnsubscribeLiteInstanceV41Api(client *core.CtyunClient) *CtecsUnsubscribeLiteInstanceV41Api
func (*CtecsUnsubscribeLiteInstanceV41Api) Do ¶
func (a *CtecsUnsubscribeLiteInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsUnsubscribeLiteInstanceV41Request) (*CtecsUnsubscribeLiteInstanceV41Response, error)
type CtecsUnsubscribeLiteInstanceV41Request ¶
type CtecsUnsubscribeLiteInstanceV41Request struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性,保留时间为24小时 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 轻量型云主机ID,您可以查看<a href="https://www.ctyun.cn/products/lite-ecs">轻量型云主机</a>了解轻量型云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11981&data=87">查询轻量型云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11980&data=87">创建轻量型云主机</a> */
}
type CtecsUnsubscribeLiteInstanceV41Response ¶
type CtecsUnsubscribeLiteInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsUnsubscribeLiteInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsUnsubscribeLiteInstanceV41ReturnObjResponse ¶
type CtecsUnsubscribeLiteInstanceV41ReturnObjResponse struct {
MasterOrderID string `json:"masterOrderID,omitempty"` /* 订单ID。调用方在拿到masterOrderID之后,在若干错误情况下,可以使用materOrderID进一步确认订单状态及资源状态 */
MasterOrderNO string `json:"masterOrderNO,omitempty"` /* 订单号 */
RegionID string `json:"regionID,omitempty"` /* 资源所属资源池ID */
}
type CtecsUpdateAffinityGroupApi ¶
type CtecsUpdateAffinityGroupApi struct {
// contains filtered or unexported fields
}
func NewCtecsUpdateAffinityGroupApi ¶
func NewCtecsUpdateAffinityGroupApi(client *core.CtyunClient) *CtecsUpdateAffinityGroupApi
func (*CtecsUpdateAffinityGroupApi) Do ¶
func (a *CtecsUpdateAffinityGroupApi) Do(ctx context.Context, credential core.Credential, req *CtecsUpdateAffinityGroupRequest) (*CtecsUpdateAffinityGroupResponse, error)
type CtecsUpdateAffinityGroupRequest ¶
type CtecsUpdateAffinityGroupRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
AffinityGroupID string `json:"affinityGroupID,omitempty"` /* 云主机组ID,获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8324&data=87">查询云主机组列表或者详情</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8316&data=87">创建云主机组</a><br /> */
AffinityGroupName string `json:"affinityGroupName,omitempty"` /* 云主机组名称,长度在1-64个字符,只能由中文、英文字母、数字、下划线_、中划线-、点.组成 */
}
type CtecsUpdateAffinityGroupResponse ¶
type CtecsUpdateAffinityGroupResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800 为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsUpdateAffinityGroupReturnObjResponse `json:"returnObj"` /* 返回结果 */
}
type CtecsUpdateAffinityGroupReturnObjResponse ¶
type CtecsUpdateAffinityGroupReturnObjResponse struct {
AffinityGroupID string `json:"affinityGroupID,omitempty"` /* 云主机组ID */
}
type CtecsUpdateDeletionProtectionV41Api ¶
type CtecsUpdateDeletionProtectionV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsUpdateDeletionProtectionV41Api ¶
func NewCtecsUpdateDeletionProtectionV41Api(client *core.CtyunClient) *CtecsUpdateDeletionProtectionV41Api
func (*CtecsUpdateDeletionProtectionV41Api) Do ¶
func (a *CtecsUpdateDeletionProtectionV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsUpdateDeletionProtectionV41Request) (*CtecsUpdateDeletionProtectionV41Response, error)
type CtecsUpdateDeletionProtectionV41Request ¶
type CtecsUpdateDeletionProtectionV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
DeletionProtection bool `json:"deletionProtection"` /* 实例删除保护参数 */
}
type CtecsUpdateDeletionProtectionV41Response ¶
type CtecsUpdateDeletionProtectionV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsUpdateDeletionProtectionV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsUpdateDeletionProtectionV41ReturnObjResponse ¶
type CtecsUpdateDeletionProtectionV41ReturnObjResponse struct {
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
DeletionProtection *bool `json:"deletionProtection"` /* 实例删除保护参数 */
}
type CtecsUpdateEcsLabelV41Api ¶
type CtecsUpdateEcsLabelV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsUpdateEcsLabelV41Api ¶
func NewCtecsUpdateEcsLabelV41Api(client *core.CtyunClient) *CtecsUpdateEcsLabelV41Api
func (*CtecsUpdateEcsLabelV41Api) Do ¶
func (a *CtecsUpdateEcsLabelV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsUpdateEcsLabelV41Request) (*CtecsUpdateEcsLabelV41Response, error)
type CtecsUpdateEcsLabelV41Request ¶
type CtecsUpdateEcsLabelV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
Action string `json:"action,omitempty"` /* 操作类型,可选值:ADD(增加)、UPDATE(修改)、DELETE(删除) */
LabelList []*CtecsUpdateEcsLabelV41LabelListRequest `json:"labelList"` /* 标签列表 */
}
type CtecsUpdateEcsLabelV41Response ¶
type CtecsUpdateEcsLabelV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
}
type CtecsUpdateFlavorSpecV41Api ¶
type CtecsUpdateFlavorSpecV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsUpdateFlavorSpecV41Api ¶
func NewCtecsUpdateFlavorSpecV41Api(client *core.CtyunClient) *CtecsUpdateFlavorSpecV41Api
func (*CtecsUpdateFlavorSpecV41Api) Do ¶
func (a *CtecsUpdateFlavorSpecV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsUpdateFlavorSpecV41Request) (*CtecsUpdateFlavorSpecV41Response, error)
type CtecsUpdateFlavorSpecV41Request ¶
type CtecsUpdateFlavorSpecV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
FlavorID string `json:"flavorID,omitempty"` /* 云主机规格ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10118193">规格说明</a>了解弹性云主机的选型基本信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8327&data=87">查询一个或多个云主机规格资源</a><br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5602&data=87&isNormal=1&vid=81">查询一个或多个云主机规格资源(旧版) */
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个clientToken值,则代表为同一个请求。保留时间为24小时 */
PayVoucherPrice float32 `json:"payVoucherPrice"` /* 代金券,满足以下规则:<br />两位小数,不足两位自动补0,超过两位小数无效<br />不可为负数<br />注:字段为0时表示不使用代金券,默认不使用代金券 */
}
type CtecsUpdateFlavorSpecV41Response ¶
type CtecsUpdateFlavorSpecV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,详见错误码部分 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码,详见错误码部分 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsUpdateFlavorSpecV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsUpdateFlavorSpecV41ReturnObjResponse ¶
type CtecsUpdateFlavorSpecV41ReturnObjResponse struct {
MasterOrderID string `json:"masterOrderID,omitempty"` /* 主订单ID。调用方在拿到masterOrderID之后,可以使用masterOrderID进一步确认订单状态及资源状态 */
MasterOrderNO string `json:"masterOrderNO,omitempty"` /* 订单号 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
}
type CtecsUpdateInstanceBackupPolicyApi ¶
type CtecsUpdateInstanceBackupPolicyApi struct {
// contains filtered or unexported fields
}
func NewCtecsUpdateInstanceBackupPolicyApi ¶
func NewCtecsUpdateInstanceBackupPolicyApi(client *core.CtyunClient) *CtecsUpdateInstanceBackupPolicyApi
func (*CtecsUpdateInstanceBackupPolicyApi) Do ¶
func (a *CtecsUpdateInstanceBackupPolicyApi) Do(ctx context.Context, credential core.Credential, req *CtecsUpdateInstanceBackupPolicyRequest) (*CtecsUpdateInstanceBackupPolicyResponse, error)
type CtecsUpdateInstanceBackupPolicyRequest ¶
type CtecsUpdateInstanceBackupPolicyRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
PolicyID string `json:"policyID,omitempty"` /* 云主机备份策略ID,32字节<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=14&api=6924&data=100">查询云主机备份策略列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=14&api=6914&data=100">创建云主机备份策略</a> */
PolicyName string `json:"policyName,omitempty"` /* 云主机备份策略名称。满足以下规则:只能由数字、英文字母、中划线-、下划线_、点.组成,长度为2-64字符<br />注:在所有资源池不可重复 */
CycleType string `json:"cycleType,omitempty"` /* 云主机备份周期类型,取值范围:day(天),week(周) */
CycleDay int32 `json:"cycleDay,omitempty"` /* 备份周期(天),取值范围:[1, 30],默认值为1 <br />注:cycleType为day时需设置 */
CycleWeek string `json:"cycleWeek,omitempty"` /* 备份周期(星期),星期取值范围:0~6(代表周几,其中0为周日),默认值是0<br />注:只有cycleType为week时需设置;<br />如果一周有多天备份,以逗号隔开(如周日周三进行快照,则填写"0,3") */
Time string `json:"time,omitempty"` /* 备份整点时间,时间取值范围:0~23<br />注:如果一天内多个时间节点备份,以逗号隔开(如11点15点进行快照,则填写"11,15"),默认值12 */
Status int32 `json:"status,omitempty"` /* 备份策略状态,是否启用,取值范围:0(不启用),1(启用)<br />注:默认值0(不启用) */
RetentionType string `json:"retentionType,omitempty"` /* 云主机备份保留类型,取值范围:date(按时间保存),num(按数量保存),all(永久保存) */
RetentionDay int32 `json:"retentionDay,omitempty"` /* 云主机备份保留天数,单位为天,取值范围:[1, 99999] ,默认值1<br />注:retentionType为date时必填 */
RetentionNum int32 `json:"retentionNum,omitempty"` /* 云主机备份保留数量,取值范围:[1, 99999],默认值1<br />注:retentionType为num时必填 */
FullBackupInterval int32 `json:"fullBackupInterval,omitempty"` /* 是否启用周期性全量备份。-1代表不开启,默认为-1;取值范围为[-1,100],即每执行n次增量备份后,执行一次全量备份;若传入为0,代表每一次均为全量备份。 */
AdvRetentionStatus bool `json:"advRetentionStatus,omitempty"` /* 是否开启高级保留策略,false(不启用),true(启用),默认值为false。需校验云主机备份保留类型(retentionType),若保留类型为按数量保存(num),可开启高级保留策略;若保留类型为date(按时间保存)或all(永久保存),不可开启高级保留策略。 */
AdvRetention *AdvRetention `json:"advRetention"` /* 高级保留策略内容 */
}
type CtecsUpdateInstanceBackupPolicyResponse ¶
type CtecsUpdateInstanceBackupPolicyResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 错误信息的英文描述 */
Description string `json:"description,omitempty"` /* 错误信息的本地化描述(中文) */
ReturnObj *CtecsUpdateInstanceBackupPolicyReturnObjResponse `json:"returnObj"` /* 返回对象 */
}
type CtecsUpdateInstanceBackupPolicyReturnObjResponse ¶
type CtecsUpdateInstanceBackupPolicyReturnObjResponse struct {
Status int32 `json:"status,omitempty"` /* 备份策略状态 */
PolicyName string `json:"policyName,omitempty"` /* 备份策略名称 */
RetentionType string `json:"retentionType,omitempty"` /* 云主机备份保留类型 */
RetentionDay int32 `json:"retentionDay,omitempty"` /* 保留时间,当retentionType为date时返回 */
RetentionNum int32 `json:"retentionNum,omitempty"` /* 保留数量,当retentionType为num时返回 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
CycleType string `json:"cycleType,omitempty"` /* 备份周期类型 */
CycleDay int32 `json:"cycleDay,omitempty"` /* cycleType为day时返回备份周期值 */
CycleWeek string `json:"cycleWeek,omitempty"` /* cycleType为week时返回备份周期值 */
PolicyID string `json:"policyID,omitempty"` /* 云主机备份策略ID */
Time string `json:"time,omitempty"` /* 备份整点时间 */
ProjectID string `json:"projectID,omitempty"` /* 企业项目ID */
FullBackupInterval int32 `json:"fullBackupInterval,omitempty"` /* 是否启用周期性全量备份。-1代表不开启,默认为-1;取值范围为[-1,100],即每执行n次增量备份后,执行一次全量备份;若传入为0,代表每一次均为全量备份。 */
AdvRetentionStatus *bool `json:"advRetentionStatus"` /* 是否开启高级保留策略,false(不启用),true(启用) 。 */
AdvRetention *AdvRetention `json:"advRetention"` /* 高级保留策略内容 */
}
type CtecsUpdateInstanceBackupV41Api ¶
type CtecsUpdateInstanceBackupV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsUpdateInstanceBackupV41Api ¶
func NewCtecsUpdateInstanceBackupV41Api(client *core.CtyunClient) *CtecsUpdateInstanceBackupV41Api
func (*CtecsUpdateInstanceBackupV41Api) Do ¶
func (a *CtecsUpdateInstanceBackupV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsUpdateInstanceBackupV41Request) (*CtecsUpdateInstanceBackupV41Response, error)
type CtecsUpdateInstanceBackupV41Request ¶
type CtecsUpdateInstanceBackupV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceBackupID string `json:"instanceBackupID,omitempty"` /* 云主机备份ID,您可以查看<a href="https://www.ctyun.cn/document/10026751/10033738">产品定义-云主机备份</a>来了解云主机备份<br /> 获取:<span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8332&data=87&isNormal=1&vid=81">创建云主机备份</a> */
InstanceBackupName string `json:"instanceBackupName,omitempty"` /* 云主机备份名称。满足以下规则:长度为2-63字符,头尾不支持输入空格 */
InstanceBackupDescription string `json:"instanceBackupDescription,omitempty"` /* 云主机备份描述,字符长度不超过256字符 */
}
type CtecsUpdateInstanceBackupV41Response ¶
type CtecsUpdateInstanceBackupV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsUpdateInstanceBackupV41ReturnObjResponse `json:"returnObj"` /* 返回结果 */
}
type CtecsUpdateInstanceBackupV41ReturnObjResponse ¶
type CtecsUpdateInstanceBackupV41ReturnObjResponse struct {
InstanceBackupID string `json:"instanceBackupID,omitempty"` /* 云主机备份ID */
}
type CtecsUpdateInstanceSpecV41Api ¶
type CtecsUpdateInstanceSpecV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsUpdateInstanceSpecV41Api ¶
func NewCtecsUpdateInstanceSpecV41Api(client *core.CtyunClient) *CtecsUpdateInstanceSpecV41Api
func (*CtecsUpdateInstanceSpecV41Api) Do ¶
func (a *CtecsUpdateInstanceSpecV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsUpdateInstanceSpecV41Request) (*CtecsUpdateInstanceSpecV41Response, error)
type CtecsUpdateInstanceSpecV41Request ¶
type CtecsUpdateInstanceSpecV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
Bandwidth int32 `json:"bandwidth,omitempty"` /* 带宽大小单位为Mbit/s,取值范围:[1~2000]。带宽与规格参数必须2选1,不支持同时传入带宽与规格 */
FlavorID string `json:"flavorID,omitempty"` /* 云主机规格ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10118193">规格说明</a>了解弹性云主机的选型基本信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8327&data=87">查询一个或多个云主机规格资源</a><br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5602&data=87&isNormal=1&vid=81">查询一个或多个云主机规格资源(旧版)</a><br />带宽与规格参数必须2选1,不支持同时传入带宽与规格 */
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个clientToken值,其他请求参数相同时,则代表为同一个请求。保留时间为24小时 */
}
type CtecsUpdateInstanceSpecV41Response ¶
type CtecsUpdateInstanceSpecV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,详见错误码部分 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码,详见错误码部分 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsUpdateInstanceSpecV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsUpdateInstanceV41Api ¶
type CtecsUpdateInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsUpdateInstanceV41Api ¶
func NewCtecsUpdateInstanceV41Api(client *core.CtyunClient) *CtecsUpdateInstanceV41Api
func (*CtecsUpdateInstanceV41Api) Do ¶
func (a *CtecsUpdateInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsUpdateInstanceV41Request) (*CtecsUpdateInstanceV41Response, error)
type CtecsUpdateInstanceV41Request ¶
type CtecsUpdateInstanceV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
DisplayName string `json:"displayName,omitempty"` /* 云主机显示名称,长度为2~63个字符<br />注:displayName、instanceName、instanceDescription不可全为空 */
InstanceName string `json:"instanceName,omitempty"` /* 云主机名称,支持模式串。不同操作系统下,云主机名称规则有差异<br />Windows:长度为2-15个字符,允许使用大小写字母、数字或连字符(-)。不能以连字符(-)开头或结尾,不能连续使用连字符(-),也不能仅使用数字;<br />其他操作系统:长度为2-64字符,允许使用点(.)分隔字符成多段,每段允许使用大小写字母、数字或连字符(-),但不能连续使用点号(.)或连字符(-),不能以点号(.)或连字符(-)开头或结尾,也不能仅使用数字<br />注:displayName、instanceName、instanceDescription不可全为空 */
InstanceDescription string `json:"instanceDescription,omitempty"` /* 云主机描述信息,限制长度为0~255个字符<br />注:displayName、instanceName、instanceDescription不可全为空 */
}
type CtecsUpdateInstanceV41Response ¶
type CtecsUpdateInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,详见错误码部分 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码,详见错误码部分 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsUpdateInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsUpdateInstanceV41ReturnObjResponse ¶
type CtecsUpdateInstanceV41ReturnObjResponse struct {
InstanceID string `json:"instanceID,omitempty"` /* 被更新名称的云主机ID */
DisplayName string `json:"displayName,omitempty"` /* 更新后的云主机显示名称 */
InstanceName string `json:"instanceName,omitempty"` /* 更新后的云主机名称 */
InstanceDescription string `json:"instanceDescription,omitempty"` /* 更新后的云主机描述信息 */
}
type CtecsUpdateMetadataV41Api ¶
type CtecsUpdateMetadataV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsUpdateMetadataV41Api ¶
func NewCtecsUpdateMetadataV41Api(client *core.CtyunClient) *CtecsUpdateMetadataV41Api
func (*CtecsUpdateMetadataV41Api) Do ¶
func (a *CtecsUpdateMetadataV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsUpdateMetadataV41Request) (*CtecsUpdateMetadataV41Response, error)
type CtecsUpdateMetadataV41MetadataRequest ¶
type CtecsUpdateMetadataV41MetadataRequest struct{}
type CtecsUpdateMetadataV41Request ¶
type CtecsUpdateMetadataV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /> <span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
Metadata *CtecsUpdateMetadataV41MetadataRequest `json:"metadata"` /* 元数据信息,用户自定义metadata键值对 */
IsForce *bool `json:"isForce"` /* 是否覆盖原有的元数据信息。缺省为不覆盖,新增元数据信息 */
}
type CtecsUpdateMetadataV41Response ¶
type CtecsUpdateMetadataV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsUpdateMetadataV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsUpdateMetadataV41ReturnObjMetadataResponse ¶
type CtecsUpdateMetadataV41ReturnObjMetadataResponse struct{}
type CtecsUpdateMetadataV41ReturnObjResponse ¶
type CtecsUpdateMetadataV41ReturnObjResponse struct {
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID */
Metadata *CtecsUpdateMetadataV41ReturnObjMetadataResponse `json:"metadata"` /* 元数据信息 */
}
type CtecsUpdateNetworkSpecV41Api ¶
type CtecsUpdateNetworkSpecV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsUpdateNetworkSpecV41Api ¶
func NewCtecsUpdateNetworkSpecV41Api(client *core.CtyunClient) *CtecsUpdateNetworkSpecV41Api
func (*CtecsUpdateNetworkSpecV41Api) Do ¶
func (a *CtecsUpdateNetworkSpecV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsUpdateNetworkSpecV41Request) (*CtecsUpdateNetworkSpecV41Response, error)
type CtecsUpdateNetworkSpecV41Request ¶
type CtecsUpdateNetworkSpecV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8309&data=87">查询云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8281&data=87">创建一台按量付费或包年包月的云主机</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8282&data=87">批量创建按量付费或包年包月云主机</a> */
Bandwidth int32 `json:"bandwidth,omitempty"` /* 带宽大小单位为Mbit/s,取值范围:[1~2000] */
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个clientToken值,其他请求参数相同时,则代表为同一个请求。保留时间为24小时 */
}
type CtecsUpdateNetworkSpecV41Response ¶
type CtecsUpdateNetworkSpecV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,详见错误码部分 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码,详见错误码部分 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsUpdateNetworkSpecV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsUpdatePortsV41Api ¶
type CtecsUpdatePortsV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsUpdatePortsV41Api ¶
func NewCtecsUpdatePortsV41Api(client *core.CtyunClient) *CtecsUpdatePortsV41Api
func (*CtecsUpdatePortsV41Api) Do ¶
func (a *CtecsUpdatePortsV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsUpdatePortsV41Request) (*CtecsUpdatePortsV41Response, error)
type CtecsUpdatePortsV41Request ¶
type CtecsUpdatePortsV41Request struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个clientToken值,则代表为同一个请求。保留时间为24小时 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
NetworkInterfaceID string `json:"networkInterfaceID,omitempty"` /* 可以查看<a href="https://www.ctyun.cn/document/10026755/10197673">弹性网卡-弹性网卡基本知识</a>来了解弹性网卡<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5802&data=94">查询弹性网卡列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=5789&data=94">创建弹性网卡</a> */
Name string `json:"name,omitempty"` /* 网卡名称,满足以下规则:支持拉丁字母、中文、数字,下划线,连字符,中文/英文字母开头,不能以http:/https:开头,长度2-32 */
Description string `json:"description,omitempty"` /* 网卡的描述,满足以下规则:支持拉丁字母、中文、数字, 特殊字符:~!@#$%^&*()_-+= <>?:"{},./;'[\]·~!@#¥%……&*() —— -+={}\|《》?:“”【】、;‘',。、,不能以 http: / https: 开头,长度 0 - 128 */
SecurityGroupIDs []string `json:"securityGroupIDs"` /* 安全组列表,安全组和弹性网卡必须在同一个专有网络VPC中。您可以查看<a href="https://www.ctyun.cn/document/10026755/10028520">安全组概述</a>来了解安全组<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4817&data=94">查询用户安全组列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=18&api=4821&data=94">创建安全组</a> */
}
type CtecsUpdatePortsV41Response ¶
type CtecsUpdatePortsV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
}
type CtecsUpdateSnapshotPolicyV41Api ¶
type CtecsUpdateSnapshotPolicyV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsUpdateSnapshotPolicyV41Api ¶
func NewCtecsUpdateSnapshotPolicyV41Api(client *core.CtyunClient) *CtecsUpdateSnapshotPolicyV41Api
func (*CtecsUpdateSnapshotPolicyV41Api) Do ¶
func (a *CtecsUpdateSnapshotPolicyV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsUpdateSnapshotPolicyV41Request) (*CtecsUpdateSnapshotPolicyV41Response, error)
type CtecsUpdateSnapshotPolicyV41Request ¶
type CtecsUpdateSnapshotPolicyV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SnapshotPolicyID string `json:"snapshotPolicyID,omitempty"` /* 云主机快照策略ID,32字节<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9600&data=87">查询云主机快照策略列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=9588&data=87">创建云主机快照策略</a> */
SnapshotPolicyName string `json:"snapshotPolicyName,omitempty"` /* 云主机快照策略名称,满足以下规则:长度为2~63字符,由数字、字母、-组成,只能以字母开头,以数字和字母结尾 */
SnapshotTime string `json:"snapshotTime,omitempty"` /* 快照整点时间,时间取值范围:0~23<br />注:如果一天内多个时间节点备份,以逗号隔开(如11点15点进行快照,则填写"11,15"),默认值0 */
CycleType string `json:"cycleType,omitempty"` /* 云主机快照周期类型,取值范围:<br />day:天,<br />week:周 */
CycleDay int32 `json:"cycleDay,omitempty"` /* 快照周期(天),取值范围:[1, 10] ,注:cycleType为day时需设置 */
CycleWeek string `json:"cycleWeek,omitempty"` /* 快照周期(星期),星期取值范围:<br />0~6(代表周几,其中0为周日)<br />注:只有cycleType为week时需设置;<br />如果一周有多天备份,以逗号隔开(如周日周三进行快照,则填写"0,3") */
RetentionType string `json:"retentionType,omitempty"` /* 云主机快照保留类型,取值范围:<br />date:按时间保存,<br />num:按数量保存 */
RetentionDay int32 `json:"retentionDay,omitempty"` /* 云主机快照保留天数,单位为天,取值范围:[1, 365] ,注:retentionType为date时必填 */
RetentionNum int32 `json:"retentionNum,omitempty"` /* 云主机快照保留数量,取值范围:[1, 30],注:retentionType为num时必填 */
}
type CtecsUpdateSnapshotPolicyV41Response ¶
type CtecsUpdateSnapshotPolicyV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsUpdateSnapshotPolicyV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsUpdateSnapshotPolicyV41ReturnObjResponse ¶
type CtecsUpdateSnapshotPolicyV41ReturnObjResponse struct {
SnapshotPolicyStatus int32 `json:"snapshotPolicyStatus,omitempty"` /* 快照策略状态,是否启用,取值范围:<br />0:不启用,<br />1:启用<br />注:默认值1(启用) */
SnapshotPolicyName string `json:"snapshotPolicyName,omitempty"` /* 云主机快照策略名称,满足以下规则:长度为2~63字符,由数字、字母、-组成,只能以字母开头,以数字和字母结尾 */
RetentionType string `json:"retentionType,omitempty"` /* 云主机快照保留类型,取值范围:<br />date:按时间保存,<br />num:按数量保存 */
RetentionDay string `json:"retentionDay,omitempty"` /* 保留天数,当retentionType为date时返回,否则为空字符串 */
RetentionNum string `json:"retentionNum,omitempty"` /* 保留数量,当retentionType为num时返回,否则为空字符串 */
CycleType string `json:"cycleType,omitempty"` /* 备份周期类型,day:按天备份,week:按星期备份 */
CycleDay int32 `json:"cycleDay,omitempty"` /* 快照周期值,cycleType为day时返回 */
CycleWeek string `json:"cycleWeek,omitempty"` /* 快照周期值,cycleType为week时返回,则取值范围0-6代表星期日-星期六,如果一周有多天备份,以逗号隔开 */
SnapshotPolicyID string `json:"snapshotPolicyID,omitempty"` /* 云主机快照策略ID */
SnapshotTime string `json:"snapshotTime,omitempty"` /* 快照整点时间,时间取值范围:<br />0~23<br />注:如果一天内多个时间节点备份,以逗号隔开(如11点15点进行快照,则填写"11,15"),默认值0 */
}
type CtecsUpdateSnapshotV41Api ¶
type CtecsUpdateSnapshotV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsUpdateSnapshotV41Api ¶
func NewCtecsUpdateSnapshotV41Api(client *core.CtyunClient) *CtecsUpdateSnapshotV41Api
func (*CtecsUpdateSnapshotV41Api) Do ¶
func (a *CtecsUpdateSnapshotV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsUpdateSnapshotV41Request) (*CtecsUpdateSnapshotV41Response, error)
type CtecsUpdateSnapshotV41Request ¶
type CtecsUpdateSnapshotV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
SnapshotID string `json:"snapshotID,omitempty"` /* 云主机快照ID,<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8349&data=87">查询云主机快照列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8352&data=87">创建云主机快照</a> */
SnapshotName string `json:"snapshotName,omitempty"` /* 云主机快照名称。满足以下规则:长度为2-63字符,头尾不支持输入空格 */
SnapshotDescription string `json:"snapshotDescription,omitempty"` /* 云主机快照描述,字符长度不超过256字符 */
}
type CtecsUpdateSnapshotV41Response ¶
type CtecsUpdateSnapshotV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsUpdateSnapshotV41ReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsUpdateSnapshotV41ReturnObjResponse ¶
type CtecsUpdateSnapshotV41ReturnObjResponse struct {
SnapshotID string `json:"snapshotID,omitempty"` /* 云主机快照ID */
}
type CtecsUpdateSpecLiteInstanceV41Api ¶
type CtecsUpdateSpecLiteInstanceV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsUpdateSpecLiteInstanceV41Api ¶
func NewCtecsUpdateSpecLiteInstanceV41Api(client *core.CtyunClient) *CtecsUpdateSpecLiteInstanceV41Api
func (*CtecsUpdateSpecLiteInstanceV41Api) Do ¶
func (a *CtecsUpdateSpecLiteInstanceV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsUpdateSpecLiteInstanceV41Request) (*CtecsUpdateSpecLiteInstanceV41Response, error)
type CtecsUpdateSpecLiteInstanceV41Request ¶
type CtecsUpdateSpecLiteInstanceV41Request struct {
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个clientToken值,其他请求参数相同时,则代表为同一个请求。保留时间为24小时 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceID string `json:"instanceID,omitempty"` /* 云主机ID,您可以查看<a href="https://www.ctyun.cn/products/ecs">弹性云主机</a>了解云主机的相关信息<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11981&data=87">查询轻量型云主机列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11980&data=87">创建轻量型云主机</a> */
FlavorSetType string `json:"flavorSetType,omitempty"` /* 规格套餐类型,取值范围:<br />fix:固定套餐,<br />band:带宽套餐<br />选择带宽套餐必须设置系统盘大小和带宽大小,选择固定套餐会忽略传入的系统盘大小和带宽大小 */
FlavorName string `json:"flavorName,omitempty"` /* 规格套餐名称,<br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11998&data=87">查询轻量型云主机的规格套餐资源</a> */
BootDiskSize int32 `json:"bootDiskSize,omitempty"` /* 系统盘大小,带宽套餐时填写,固定套餐时填写会忽略,单位:GB,取值范围获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11998&data=87">查询轻量型云主机的规格套餐资源</a> */
Bandwidth int32 `json:"bandwidth,omitempty"` /* 带宽大小带,带宽套餐时填写,固定套餐时填写会忽略,单位:Mbit/s。取值范围获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=11998&data=87">查询轻量型云主机的规格套餐资源</a> */
}
type CtecsUpdateSpecLiteInstanceV41Response ¶
type CtecsUpdateSpecLiteInstanceV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ReturnObj *CtecsUpdateSpecLiteInstanceV41ReturnObjResponse `json:"returnObj"` /* 成功时返回的数据 */
}
type CtecsUpdateSpecLiteInstanceV41ReturnObjResponse ¶
type CtecsUpdateSpecLiteInstanceV41ReturnObjResponse struct {
MasterOrderID string `json:"masterOrderID,omitempty"` /* 订单ID。调用方在拿到masterOrderID之后,在若干错误情况下,可以使用materOrderID进一步确认订单状态及资源状态 */
MasterOrderNO string `json:"masterOrderNO,omitempty"` /* 订单号 */
RegionID string `json:"regionID,omitempty"` /* 资源所属资源池ID */
}
type CtecsUpdateVolumeV41Api ¶
type CtecsUpdateVolumeV41Api struct {
// contains filtered or unexported fields
}
func NewCtecsUpdateVolumeV41Api ¶
func NewCtecsUpdateVolumeV41Api(client *core.CtyunClient) *CtecsUpdateVolumeV41Api
func (*CtecsUpdateVolumeV41Api) Do ¶
func (a *CtecsUpdateVolumeV41Api) Do(ctx context.Context, credential core.Credential, req *CtecsUpdateVolumeV41Request) (*CtecsUpdateVolumeV41Response, error)
type CtecsUpdateVolumeV41Request ¶
type CtecsUpdateVolumeV41Request struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
DiskName string `json:"diskName,omitempty"` /* test-volume */
DiskID string `json:"diskID,omitempty"` /* 您可以查看<a href="https://www.ctyun.cn/document/10027696/10027930">产品定义-云硬盘</a>来了解云硬盘 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=35&api=7338&data=48">云硬盘列表查询</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=35&api=7332&data=48&isNormal=1&vid=45">创建云硬盘</a> */
}
type CtecsUpdateVolumeV41Response ¶
type CtecsUpdateVolumeV41Response struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为处理中或失败) */
Message string `json:"message,omitempty"` /* 英文描述信息 */
Error string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式码 */
Description string `json:"description,omitempty"` /* 中文描述信息 */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码 */
}
type CtecsUpgradeInstanceBackupRepoApi ¶
type CtecsUpgradeInstanceBackupRepoApi struct {
// contains filtered or unexported fields
}
func NewCtecsUpgradeInstanceBackupRepoApi ¶
func NewCtecsUpgradeInstanceBackupRepoApi(client *core.CtyunClient) *CtecsUpgradeInstanceBackupRepoApi
func (*CtecsUpgradeInstanceBackupRepoApi) Do ¶
func (a *CtecsUpgradeInstanceBackupRepoApi) Do(ctx context.Context, credential core.Credential, req *CtecsUpgradeInstanceBackupRepoRequest) (*CtecsUpgradeInstanceBackupRepoResponse, error)
type CtecsUpgradeInstanceBackupRepoRequest ¶
type CtecsUpgradeInstanceBackupRepoRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87&vid=81">资源池列表查询</a> */
RepositoryID string `json:"repositoryID,omitempty"` /* 云主机备份存储库ID,您可以查看<a href="https://www.ctyun.cn/document/10026751/10033742">产品定义-存储库</a>来了解存储库<br /> 获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=6909&data=87&isNormal=1&vid=81">查询存储库列表</a><br /><span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=6910&data=87&isNormal=1&vid=81">创建存储库</a> */
ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一,使用同一个ClientToken值,则代表为同一个请求。保留时间为24小时 */
Size int32 `json:"size,omitempty"` /* 云主机备份存储库的容量(此容量非增量扩容,是指扩容后存储库大小即最终存储库大小),单位GB,取值范围:[100-1024000],默认值100 */
PayVoucherPrice float32 `json:"payVoucherPrice"` /* 代金券,满足以下规则:两位小数,不足两位自动补0,超过两位小数无效;不可为负数;字段为0时表示不使用代金券 */
}
type CtecsUpgradeInstanceBackupRepoResponse ¶
type CtecsUpgradeInstanceBackupRepoResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800 为成功,900 为失败)。 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsUpgradeInstanceBackupRepoReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsUpgradeInstanceBackupRepoReturnObjResponse ¶
type CtecsUpgradeInstanceBackupRepoReturnObjResponse struct {
MasterOrderID string `json:"masterOrderID,omitempty"` /* 主订单ID。调用方在拿到masterOrderID之后,可以使用materOrderID进一步确认订单状态及资源状态 */
MasterOrderNO string `json:"masterOrderNO,omitempty"` /* 订单号 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID */
}
type CtecsUsageInstanceBackupApi ¶
type CtecsUsageInstanceBackupApi struct {
// contains filtered or unexported fields
}
func NewCtecsUsageInstanceBackupApi ¶
func NewCtecsUsageInstanceBackupApi(client *core.CtyunClient) *CtecsUsageInstanceBackupApi
func (*CtecsUsageInstanceBackupApi) Do ¶
func (a *CtecsUsageInstanceBackupApi) Do(ctx context.Context, credential core.Credential, req *CtecsUsageInstanceBackupRequest) (*CtecsUsageInstanceBackupResponse, error)
type CtecsUsageInstanceBackupRequest ¶
type CtecsUsageInstanceBackupRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026730/10028695">地域和可用区</a>来了解资源池 <br />获取:<br /><span style="background-color: rgb(73, 204, 144);color: rgb(255,255,255);padding: 2px; margin:2px">查</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5851&data=87">资源池列表查询</a> */
InstanceBackupID string `json:"instanceBackupID,omitempty"` /* 云主机备份ID,您可以查看<a href="https://www.ctyun.cn/document/10026751/10033738">产品定义-云主机备份</a>来了解云主机备份<br /> 获取:<span style="background-color: rgb(97, 175, 254);color: rgb(255,255,255);padding: 2px; margin:2px">创</span> <a href="https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8332&data=87&isNormal=1&vid=81">创建云主机备份</a> */
}
type CtecsUsageInstanceBackupResponse ¶
type CtecsUsageInstanceBackupResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 返回状态码(800为成功,900为失败) 默认值:800 */
ErrorCode string `json:"errorCode,omitempty"` /* 错误码,为product.module.code三段式码 */
Error string `json:"error,omitempty"` /* 错误码,为product.module.code三段式码 */
Message string `json:"message,omitempty"` /* 失败时的错误描述,一般为英文描述 */
Description string `json:"description,omitempty"` /* 失败时的错误描述,一般为中文描述 */
ReturnObj *CtecsUsageInstanceBackupReturnObjResponse `json:"returnObj"` /* 返回参数 */
}
type CtecsUsageInstanceBackupReturnObjResponse ¶
type CtecsUsageInstanceBackupReturnObjResponse struct {
Usage int32 `json:"usage,omitempty"` /* 备份占用空间大小,单位为B */
}
Source Files
¶
- apis.go
- ctecs_affinity_group_unbind_instance_v41_api.go
- ctecs_affinity_group_unbind_instances_api.go
- ctecs_affinity_groupbind_instance_check_v41_api.go
- ctecs_affinity_groupbind_instance_v41_api.go
- ctecs_attach_volume_v41_api.go
- ctecs_backup_batch_update_api.go
- ctecs_batch_create_instances_v41_api.go
- ctecs_batch_delete_instances_api.go
- ctecs_batch_delete_metadata_v41_api.go
- ctecs_batch_operate_ecs_label_v41_api.go
- ctecs_batch_reboot_instances_v41_api.go
- ctecs_batch_rebuild_instances_v41_api.go
- ctecs_batch_shelve_instances_api.go
- ctecs_batch_start_instances_v41_api.go
- ctecs_batch_stop_instances_v41_api.go
- ctecs_batch_update_instances_password_v41_api.go
- ctecs_batch_update_instances_v41_api.go
- ctecs_batch_update_snapshot_v41_api.go
- ctecs_clone_instance_api.go
- ctecs_cloud_assistant_describe_invocation_results_api.go
- ctecs_cloud_assistant_run_command_api.go
- ctecs_create_affinity_group_v41_api.go
- ctecs_create_command_api.go
- ctecs_create_eip_v41_api.go
- ctecs_create_instance_backup_policy_api.go
- ctecs_create_instance_backup_repo_api.go
- ctecs_create_instance_backup_v41_api.go
- ctecs_create_instance_by_instance_backup_api.go
- ctecs_create_instance_v41_api.go
- ctecs_create_keypair_v41_api.go
- ctecs_create_lite_instance_v41_api.go
- ctecs_create_metadata_v41_api.go
- ctecs_create_ports_v41_api.go
- ctecs_create_same_config_instances_api.go
- ctecs_create_security_group_egress_v41_api.go
- ctecs_create_security_group_ingress_v41_api.go
- ctecs_create_security_group_v41_api.go
- ctecs_create_snapshot_v41_api.go
- ctecs_create_snapshotpolicy_v41_api.go
- ctecs_create_volume_v41_api.go
- ctecs_delete_affinity_group_api.go
- ctecs_delete_command_api.go
- ctecs_delete_eip_v41_api.go
- ctecs_delete_instance_and_related_resource_api.go
- ctecs_delete_instance_backup_api.go
- ctecs_delete_instance_backup_policy_api.go
- ctecs_delete_instance_backup_repo_api.go
- ctecs_delete_keypair_v41_api.go
- ctecs_delete_metadata_v41_api.go
- ctecs_delete_ports_v41_api.go
- ctecs_delete_security_group_v41_api.go
- ctecs_delete_snapshot_v41_api.go
- ctecs_delete_snapshotpolicy_v41_api.go
- ctecs_delete_volume_v41_api.go
- ctecs_describe_availability_zones_v41_api.go
- ctecs_describe_instances_api.go
- ctecs_describe_security_group_attribute_v41_api.go
- ctecs_describe_send_file_results_api.go
- ctecs_destroy_instance_api.go
- ctecs_detach_volume_v41_api.go
- ctecs_details_backup_instance_v41_api.go
- ctecs_details_instance_backup_v41_api.go
- ctecs_details_instance_v41_api.go
- ctecs_details_keypair_v41_api.go
- ctecs_details_lite_instance_v41_api.go
- ctecs_details_metadata_v41_api.go
- ctecs_details_snapshotpolicy_v41_api.go
- ctecs_details_vnc_lite_instance_v41_api.go
- ctecs_disable_snapshot_policy_v41_api.go
- ctecs_ecs_attach_delegate_api.go
- ctecs_ecs_delete_delegate_api.go
- ctecs_ecs_join_security_group_v41_api.go
- ctecs_ecs_snapshot_batch_delete_api.go
- ctecs_ecs_snapshot_task_list_api.go
- ctecs_ecsleave_security_group_v41_api.go
- ctecs_enable_snapshot_policy_v41_api.go
- ctecs_execute_instance_backup_policy_api.go
- ctecs_execute_snapshot_policy_v41_api.go
- ctecs_extend_volume_v41_api.go
- ctecs_get_affinity_group_v41_api.go
- ctecs_get_ca_agent_api.go
- ctecs_get_command_api.go
- ctecs_get_commands_api.go
- ctecs_get_ecs_flavors_api.go
- ctecs_get_volume_statistics_v41_api.go
- ctecs_import_keypair_v41_api.go
- ctecs_instance_attach_sfs_v41_api.go
- ctecs_instance_attach_share_interface_v41_api.go
- ctecs_instance_backup_policy_bind_instances_api.go
- ctecs_instance_backup_policy_bind_repo_api.go
- ctecs_instance_backup_policy_unbind_instances_api.go
- ctecs_instance_backup_policy_unbind_repo_api.go
- ctecs_instance_detach_keypair_v41_api.go
- ctecs_instance_detach_sfs_v41_api.go
- ctecs_invoke_command_api.go
- ctecs_keypair_attach_instance_v41_api.go
- ctecs_list_affinity_group_instance_v41_api.go
- ctecs_list_affinity_group_v41_api.go
- ctecs_list_backup_task_api.go
- ctecs_list_fixed_ip_v41_api.go
- ctecs_list_flavor_families_v41_api.go
- ctecs_list_flavor_lite_instance_v41_api.go
- ctecs_list_flavor_v41_api.go
- ctecs_list_gpu_driver_v41_api.go
- ctecs_list_instance_backup_policy_api.go
- ctecs_list_instance_backup_policy_bind_instances_api.go
- ctecs_list_instance_backup_repo_api.go
- ctecs_list_instance_backup_v41_api.go
- ctecs_list_instance_flavor_families_v41_api.go
- ctecs_list_instance_sfs_v41_api.go
- ctecs_list_instance_snapshot_policy_v41_api.go
- ctecs_list_instance_status_v41_api.go
- ctecs_list_instance_v41_api.go
- ctecs_list_lite_instance_v41_api.go
- ctecs_list_live_resize_flavor_v41_api.go
- ctecs_list_ports_v41_api.go
- ctecs_list_regions_v41_api.go
- ctecs_list_sfs_instance_v41_api.go
- ctecs_list_snapshot_policy_task_v41_api.go
- ctecs_list_snapshot_policy_v41_api.go
- ctecs_list_update_spec_flavor_v41_api.go
- ctecs_lite_ecs_create_volume_api.go
- ctecs_lite_ecs_unsubscribe_volume_api.go
- ctecs_live_resize_instance_v41_api.go
- ctecs_modify_command_api.go
- ctecs_modify_security_group_egress_v41_api.go
- ctecs_modify_security_group_ingress_v41_api.go
- ctecs_operate_all_instances_v41_api.go
- ctecs_ports_assign_ipv6_v41_api.go
- ctecs_ports_assign_secondaryprivateips_v41_api.go
- ctecs_ports_attach_instance_v41_api.go
- ctecs_ports_detach_instance_v41_api.go
- ctecs_ports_unassign_ipv6_v41_api.go
- ctecs_ports_unassign_secondaryprivateips_v41_api.go
- ctecs_query_async_result_v41_api.go
- ctecs_query_customer_quotas_in_region_v41_api.go
- ctecs_query_customer_resources_in_region_v41_api.go
- ctecs_query_instanc_i_d_v41_api.go
- ctecs_query_instance_statistics_v41_api.go
- ctecs_query_job_info_v41_api.go
- ctecs_query_job_v41_api.go
- ctecs_query_new_order_price_v41_api.go
- ctecs_query_new_order_price_v42_api.go
- ctecs_query_order_uuid_v41_api.go
- ctecs_query_products_in_region_v41_api.go
- ctecs_query_renew_order_price_v41_api.go
- ctecs_query_renew_order_price_v42_api.go
- ctecs_query_security_groups_v41_api.go
- ctecs_query_snapshot_details_v41_api.go
- ctecs_query_snapshot_list_v41_api.go
- ctecs_query_snapshot_statistics_v41_api.go
- ctecs_query_snapshot_status_v41_api.go
- ctecs_query_summary_in_region_v41_api.go
- ctecs_query_upgrade_order_price_v41_api.go
- ctecs_query_upgrade_order_price_v42_api.go
- ctecs_query_userdata_details_v41_api.go
- ctecs_query_vm_cpu_history_metric_data_v41_api.go
- ctecs_query_vm_cpu_latest_metric_data_v41_api.go
- ctecs_query_vm_disk_history_metric_data_v41_api.go
- ctecs_query_vm_disk_latest_metric_data_v41_api.go
- ctecs_query_vm_memory_history_metric_data_v41_api.go
- ctecs_query_vm_memory_latest_metric_data_v41_api.go
- ctecs_query_vm_network_history_metric_data_v41_api.go
- ctecs_query_vm_network_latest_metric_data_v41_api.go
- ctecs_query_vnc_details_v41_api.go
- ctecs_query_volume_list_v41_api.go
- ctecs_query_zones_in_region_v41_api.go
- ctecs_reboot_instance_v41_api.go
- ctecs_reboot_lite_instance_v41_api.go
- ctecs_rebuild_instance_v41_api.go
- ctecs_rebuild_lite_instance_api.go
- ctecs_recover_unsubscribe_instance_v41_api.go
- ctecs_renew_instance_backup_repo_api.go
- ctecs_reset_instance_password_v41_api.go
- ctecs_reset_lite_instance_password_v41_api.go
- ctecs_restore_instance_backup_api.go
- ctecs_restore_snapshot_v41_api.go
- ctecs_resubscribe_instance_v41_api.go
- ctecs_resubscribe_lite_instance_v41_api.go
- ctecs_revoke_security_group_egress_v41_api.go
- ctecs_revoke_security_group_ingress_v41_api.go
- ctecs_send_file_api.go
- ctecs_shelve_instance_api.go
- ctecs_show_ports_v41_api.go
- ctecs_show_volume_v41_api.go
- ctecs_snapshot_create_instance_v41_api.go
- ctecs_snapshot_policy_unbind_instances_v41_api.go
- ctecs_snapshotpolicy_bind_instance_v41_api.go
- ctecs_start_instance_v41_api.go
- ctecs_start_lite_instance_v41_api.go
- ctecs_statistics_instance_backup_api.go
- ctecs_status_instance_backup_v41_api.go
- ctecs_stop_instance_v41_api.go
- ctecs_stop_lite_instance_v41_api.go
- ctecs_total_instance_backup_volume_size_v41_api.go
- ctecs_unsubscribe_instance_v41_api.go
- ctecs_unsubscribe_lite_instance_v41_api.go
- ctecs_update_affinity_group_api.go
- ctecs_update_deletion_protection_v41_api.go
- ctecs_update_ecs_label_v41_api.go
- ctecs_update_flavor_spec_v41_api.go
- ctecs_update_instance_backup_policy_api.go
- ctecs_update_instance_backup_v41_api.go
- ctecs_update_instance_spec_v41_api.go
- ctecs_update_instance_v41_api.go
- ctecs_update_metadata_v41_api.go
- ctecs_update_network_spec_v41_api.go
- ctecs_update_ports_v41_api.go
- ctecs_update_snapshot_policy_v41_api.go
- ctecs_update_snapshot_v41_api.go
- ctecs_update_spec_lite_instance_v41_api.go
- ctecs_update_volume_v41_api.go
- ctecs_upgrade_instance_backup_repo_api.go
- ctecs_usage_instance_backup_api.go
Click to show internal directories.
Click to hide internal directories.