Documentation ¶
Index ¶
- Constants
- type ApplyInstanceSnapshotRequest
- type ApplyInstanceSnapshotRequestParams
- type ApplyInstanceSnapshotResponse
- type ApplyInstanceSnapshotResponseParams
- type AssociateInstancesKeyPairsRequest
- type AssociateInstancesKeyPairsRequestParams
- type AssociateInstancesKeyPairsResponse
- type AssociateInstancesKeyPairsResponseParams
- type AttachCcnRequest
- type AttachCcnRequestParams
- type AttachCcnResponse
- type AttachCcnResponseParams
- type AttachDetail
- type AttachDisksRequest
- type AttachDisksRequestParams
- type AttachDisksResponse
- type AttachDisksResponseParams
- type Blueprint
- type BlueprintInstance
- type BlueprintPrice
- type Bundle
- type CcnAttachedInstance
- type Client
- func (c *Client) ApplyInstanceSnapshot(request *ApplyInstanceSnapshotRequest) (response *ApplyInstanceSnapshotResponse, err error)
- func (c *Client) ApplyInstanceSnapshotWithContext(ctx context.Context, request *ApplyInstanceSnapshotRequest) (response *ApplyInstanceSnapshotResponse, err error)
- func (c *Client) AssociateInstancesKeyPairs(request *AssociateInstancesKeyPairsRequest) (response *AssociateInstancesKeyPairsResponse, err error)
- func (c *Client) AssociateInstancesKeyPairsWithContext(ctx context.Context, request *AssociateInstancesKeyPairsRequest) (response *AssociateInstancesKeyPairsResponse, err error)
- func (c *Client) AttachCcn(request *AttachCcnRequest) (response *AttachCcnResponse, err error)
- func (c *Client) AttachCcnWithContext(ctx context.Context, request *AttachCcnRequest) (response *AttachCcnResponse, err error)
- func (c *Client) AttachDisks(request *AttachDisksRequest) (response *AttachDisksResponse, err error)
- func (c *Client) AttachDisksWithContext(ctx context.Context, request *AttachDisksRequest) (response *AttachDisksResponse, err error)
- func (c *Client) CreateBlueprint(request *CreateBlueprintRequest) (response *CreateBlueprintResponse, err error)
- func (c *Client) CreateBlueprintWithContext(ctx context.Context, request *CreateBlueprintRequest) (response *CreateBlueprintResponse, err error)
- func (c *Client) CreateFirewallRules(request *CreateFirewallRulesRequest) (response *CreateFirewallRulesResponse, err error)
- func (c *Client) CreateFirewallRulesWithContext(ctx context.Context, request *CreateFirewallRulesRequest) (response *CreateFirewallRulesResponse, err error)
- func (c *Client) CreateInstanceSnapshot(request *CreateInstanceSnapshotRequest) (response *CreateInstanceSnapshotResponse, err error)
- func (c *Client) CreateInstanceSnapshotWithContext(ctx context.Context, request *CreateInstanceSnapshotRequest) (response *CreateInstanceSnapshotResponse, err error)
- func (c *Client) CreateInstances(request *CreateInstancesRequest) (response *CreateInstancesResponse, err error)
- func (c *Client) CreateInstancesWithContext(ctx context.Context, request *CreateInstancesRequest) (response *CreateInstancesResponse, err error)
- func (c *Client) CreateKeyPair(request *CreateKeyPairRequest) (response *CreateKeyPairResponse, err error)
- func (c *Client) CreateKeyPairWithContext(ctx context.Context, request *CreateKeyPairRequest) (response *CreateKeyPairResponse, err error)
- func (c *Client) DeleteBlueprints(request *DeleteBlueprintsRequest) (response *DeleteBlueprintsResponse, err error)
- func (c *Client) DeleteBlueprintsWithContext(ctx context.Context, request *DeleteBlueprintsRequest) (response *DeleteBlueprintsResponse, err error)
- func (c *Client) DeleteFirewallRules(request *DeleteFirewallRulesRequest) (response *DeleteFirewallRulesResponse, err error)
- func (c *Client) DeleteFirewallRulesWithContext(ctx context.Context, request *DeleteFirewallRulesRequest) (response *DeleteFirewallRulesResponse, err error)
- func (c *Client) DeleteKeyPairs(request *DeleteKeyPairsRequest) (response *DeleteKeyPairsResponse, err error)
- func (c *Client) DeleteKeyPairsWithContext(ctx context.Context, request *DeleteKeyPairsRequest) (response *DeleteKeyPairsResponse, err error)
- func (c *Client) DeleteSnapshots(request *DeleteSnapshotsRequest) (response *DeleteSnapshotsResponse, err error)
- func (c *Client) DeleteSnapshotsWithContext(ctx context.Context, request *DeleteSnapshotsRequest) (response *DeleteSnapshotsResponse, err error)
- func (c *Client) DescribeAllScenes(request *DescribeAllScenesRequest) (response *DescribeAllScenesResponse, err error)
- func (c *Client) DescribeAllScenesWithContext(ctx context.Context, request *DescribeAllScenesRequest) (response *DescribeAllScenesResponse, err error)
- func (c *Client) DescribeBlueprintInstances(request *DescribeBlueprintInstancesRequest) (response *DescribeBlueprintInstancesResponse, err error)
- func (c *Client) DescribeBlueprintInstancesWithContext(ctx context.Context, request *DescribeBlueprintInstancesRequest) (response *DescribeBlueprintInstancesResponse, err error)
- func (c *Client) DescribeBlueprints(request *DescribeBlueprintsRequest) (response *DescribeBlueprintsResponse, err error)
- func (c *Client) DescribeBlueprintsWithContext(ctx context.Context, request *DescribeBlueprintsRequest) (response *DescribeBlueprintsResponse, err error)
- func (c *Client) DescribeBundleDiscount(request *DescribeBundleDiscountRequest) (response *DescribeBundleDiscountResponse, err error)
- func (c *Client) DescribeBundleDiscountWithContext(ctx context.Context, request *DescribeBundleDiscountRequest) (response *DescribeBundleDiscountResponse, err error)
- func (c *Client) DescribeBundles(request *DescribeBundlesRequest) (response *DescribeBundlesResponse, err error)
- func (c *Client) DescribeBundlesWithContext(ctx context.Context, request *DescribeBundlesRequest) (response *DescribeBundlesResponse, err error)
- func (c *Client) DescribeCcnAttachedInstances(request *DescribeCcnAttachedInstancesRequest) (response *DescribeCcnAttachedInstancesResponse, err error)
- func (c *Client) DescribeCcnAttachedInstancesWithContext(ctx context.Context, request *DescribeCcnAttachedInstancesRequest) (response *DescribeCcnAttachedInstancesResponse, err error)
- func (c *Client) DescribeDiskConfigs(request *DescribeDiskConfigsRequest) (response *DescribeDiskConfigsResponse, err error)
- func (c *Client) DescribeDiskConfigsWithContext(ctx context.Context, request *DescribeDiskConfigsRequest) (response *DescribeDiskConfigsResponse, err error)
- func (c *Client) DescribeDiskDiscount(request *DescribeDiskDiscountRequest) (response *DescribeDiskDiscountResponse, err error)
- func (c *Client) DescribeDiskDiscountWithContext(ctx context.Context, request *DescribeDiskDiscountRequest) (response *DescribeDiskDiscountResponse, err error)
- func (c *Client) DescribeDisks(request *DescribeDisksRequest) (response *DescribeDisksResponse, err error)
- func (c *Client) DescribeDisksDeniedActions(request *DescribeDisksDeniedActionsRequest) (response *DescribeDisksDeniedActionsResponse, err error)
- func (c *Client) DescribeDisksDeniedActionsWithContext(ctx context.Context, request *DescribeDisksDeniedActionsRequest) (response *DescribeDisksDeniedActionsResponse, err error)
- func (c *Client) DescribeDisksReturnable(request *DescribeDisksReturnableRequest) (response *DescribeDisksReturnableResponse, err error)
- func (c *Client) DescribeDisksReturnableWithContext(ctx context.Context, request *DescribeDisksReturnableRequest) (response *DescribeDisksReturnableResponse, err error)
- func (c *Client) DescribeDisksWithContext(ctx context.Context, request *DescribeDisksRequest) (response *DescribeDisksResponse, err error)
- func (c *Client) DescribeFirewallRules(request *DescribeFirewallRulesRequest) (response *DescribeFirewallRulesResponse, err error)
- func (c *Client) DescribeFirewallRulesTemplate(request *DescribeFirewallRulesTemplateRequest) (response *DescribeFirewallRulesTemplateResponse, err error)
- func (c *Client) DescribeFirewallRulesTemplateWithContext(ctx context.Context, request *DescribeFirewallRulesTemplateRequest) (response *DescribeFirewallRulesTemplateResponse, err error)
- func (c *Client) DescribeFirewallRulesWithContext(ctx context.Context, request *DescribeFirewallRulesRequest) (response *DescribeFirewallRulesResponse, err error)
- func (c *Client) DescribeGeneralResourceQuotas(request *DescribeGeneralResourceQuotasRequest) (response *DescribeGeneralResourceQuotasResponse, err error)
- func (c *Client) DescribeGeneralResourceQuotasWithContext(ctx context.Context, request *DescribeGeneralResourceQuotasRequest) (response *DescribeGeneralResourceQuotasResponse, err error)
- func (c *Client) DescribeInstanceLoginKeyPairAttribute(request *DescribeInstanceLoginKeyPairAttributeRequest) (response *DescribeInstanceLoginKeyPairAttributeResponse, err error)
- func (c *Client) DescribeInstanceLoginKeyPairAttributeWithContext(ctx context.Context, request *DescribeInstanceLoginKeyPairAttributeRequest) (response *DescribeInstanceLoginKeyPairAttributeResponse, err error)
- func (c *Client) DescribeInstanceVncUrl(request *DescribeInstanceVncUrlRequest) (response *DescribeInstanceVncUrlResponse, err error)
- func (c *Client) DescribeInstanceVncUrlWithContext(ctx context.Context, request *DescribeInstanceVncUrlRequest) (response *DescribeInstanceVncUrlResponse, err error)
- func (c *Client) DescribeInstances(request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)
- func (c *Client) DescribeInstancesDeniedActions(request *DescribeInstancesDeniedActionsRequest) (response *DescribeInstancesDeniedActionsResponse, err error)
- func (c *Client) DescribeInstancesDeniedActionsWithContext(ctx context.Context, request *DescribeInstancesDeniedActionsRequest) (response *DescribeInstancesDeniedActionsResponse, err error)
- func (c *Client) DescribeInstancesDiskNum(request *DescribeInstancesDiskNumRequest) (response *DescribeInstancesDiskNumResponse, err error)
- func (c *Client) DescribeInstancesDiskNumWithContext(ctx context.Context, request *DescribeInstancesDiskNumRequest) (response *DescribeInstancesDiskNumResponse, err error)
- func (c *Client) DescribeInstancesReturnable(request *DescribeInstancesReturnableRequest) (response *DescribeInstancesReturnableResponse, err error)
- func (c *Client) DescribeInstancesReturnableWithContext(ctx context.Context, request *DescribeInstancesReturnableRequest) (response *DescribeInstancesReturnableResponse, err error)
- func (c *Client) DescribeInstancesTrafficPackages(request *DescribeInstancesTrafficPackagesRequest) (response *DescribeInstancesTrafficPackagesResponse, err error)
- func (c *Client) DescribeInstancesTrafficPackagesWithContext(ctx context.Context, request *DescribeInstancesTrafficPackagesRequest) (response *DescribeInstancesTrafficPackagesResponse, err error)
- func (c *Client) DescribeInstancesWithContext(ctx context.Context, request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)
- func (c *Client) DescribeKeyPairs(request *DescribeKeyPairsRequest) (response *DescribeKeyPairsResponse, err error)
- func (c *Client) DescribeKeyPairsWithContext(ctx context.Context, request *DescribeKeyPairsRequest) (response *DescribeKeyPairsResponse, err error)
- func (c *Client) DescribeModifyInstanceBundles(request *DescribeModifyInstanceBundlesRequest) (response *DescribeModifyInstanceBundlesResponse, err error)
- func (c *Client) DescribeModifyInstanceBundlesWithContext(ctx context.Context, request *DescribeModifyInstanceBundlesRequest) (response *DescribeModifyInstanceBundlesResponse, err error)
- func (c *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error)
- func (c *Client) DescribeRegionsWithContext(ctx context.Context, request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error)
- func (c *Client) DescribeResetInstanceBlueprints(request *DescribeResetInstanceBlueprintsRequest) (response *DescribeResetInstanceBlueprintsResponse, err error)
- func (c *Client) DescribeResetInstanceBlueprintsWithContext(ctx context.Context, request *DescribeResetInstanceBlueprintsRequest) (response *DescribeResetInstanceBlueprintsResponse, err error)
- func (c *Client) DescribeScenes(request *DescribeScenesRequest) (response *DescribeScenesResponse, err error)
- func (c *Client) DescribeScenesWithContext(ctx context.Context, request *DescribeScenesRequest) (response *DescribeScenesResponse, err error)
- func (c *Client) DescribeSnapshots(request *DescribeSnapshotsRequest) (response *DescribeSnapshotsResponse, err error)
- func (c *Client) DescribeSnapshotsDeniedActions(request *DescribeSnapshotsDeniedActionsRequest) (response *DescribeSnapshotsDeniedActionsResponse, err error)
- func (c *Client) DescribeSnapshotsDeniedActionsWithContext(ctx context.Context, request *DescribeSnapshotsDeniedActionsRequest) (response *DescribeSnapshotsDeniedActionsResponse, err error)
- func (c *Client) DescribeSnapshotsWithContext(ctx context.Context, request *DescribeSnapshotsRequest) (response *DescribeSnapshotsResponse, err error)
- func (c *Client) DescribeZones(request *DescribeZonesRequest) (response *DescribeZonesResponse, err error)
- func (c *Client) DescribeZonesWithContext(ctx context.Context, request *DescribeZonesRequest) (response *DescribeZonesResponse, err error)
- func (c *Client) DetachCcn(request *DetachCcnRequest) (response *DetachCcnResponse, err error)
- func (c *Client) DetachCcnWithContext(ctx context.Context, request *DetachCcnRequest) (response *DetachCcnResponse, err error)
- func (c *Client) DetachDisks(request *DetachDisksRequest) (response *DetachDisksResponse, err error)
- func (c *Client) DetachDisksWithContext(ctx context.Context, request *DetachDisksRequest) (response *DetachDisksResponse, err error)
- func (c *Client) DisassociateInstancesKeyPairs(request *DisassociateInstancesKeyPairsRequest) (response *DisassociateInstancesKeyPairsResponse, err error)
- func (c *Client) DisassociateInstancesKeyPairsWithContext(ctx context.Context, request *DisassociateInstancesKeyPairsRequest) (response *DisassociateInstancesKeyPairsResponse, err error)
- func (c *Client) ImportKeyPair(request *ImportKeyPairRequest) (response *ImportKeyPairResponse, err error)
- func (c *Client) ImportKeyPairWithContext(ctx context.Context, request *ImportKeyPairRequest) (response *ImportKeyPairResponse, err error)
- func (c *Client) InquirePriceCreateBlueprint(request *InquirePriceCreateBlueprintRequest) (response *InquirePriceCreateBlueprintResponse, err error)
- func (c *Client) InquirePriceCreateBlueprintWithContext(ctx context.Context, request *InquirePriceCreateBlueprintRequest) (response *InquirePriceCreateBlueprintResponse, err error)
- func (c *Client) InquirePriceCreateDisks(request *InquirePriceCreateDisksRequest) (response *InquirePriceCreateDisksResponse, err error)
- func (c *Client) InquirePriceCreateDisksWithContext(ctx context.Context, request *InquirePriceCreateDisksRequest) (response *InquirePriceCreateDisksResponse, err error)
- func (c *Client) InquirePriceCreateInstances(request *InquirePriceCreateInstancesRequest) (response *InquirePriceCreateInstancesResponse, err error)
- func (c *Client) InquirePriceCreateInstancesWithContext(ctx context.Context, request *InquirePriceCreateInstancesRequest) (response *InquirePriceCreateInstancesResponse, err error)
- func (c *Client) InquirePriceRenewDisks(request *InquirePriceRenewDisksRequest) (response *InquirePriceRenewDisksResponse, err error)
- func (c *Client) InquirePriceRenewDisksWithContext(ctx context.Context, request *InquirePriceRenewDisksRequest) (response *InquirePriceRenewDisksResponse, err error)
- func (c *Client) InquirePriceRenewInstances(request *InquirePriceRenewInstancesRequest) (response *InquirePriceRenewInstancesResponse, err error)
- func (c *Client) InquirePriceRenewInstancesWithContext(ctx context.Context, request *InquirePriceRenewInstancesRequest) (response *InquirePriceRenewInstancesResponse, err error)
- func (c *Client) ModifyBlueprintAttribute(request *ModifyBlueprintAttributeRequest) (response *ModifyBlueprintAttributeResponse, err error)
- func (c *Client) ModifyBlueprintAttributeWithContext(ctx context.Context, request *ModifyBlueprintAttributeRequest) (response *ModifyBlueprintAttributeResponse, err error)
- func (c *Client) ModifyDisksAttribute(request *ModifyDisksAttributeRequest) (response *ModifyDisksAttributeResponse, err error)
- func (c *Client) ModifyDisksAttributeWithContext(ctx context.Context, request *ModifyDisksAttributeRequest) (response *ModifyDisksAttributeResponse, err error)
- func (c *Client) ModifyDisksRenewFlag(request *ModifyDisksRenewFlagRequest) (response *ModifyDisksRenewFlagResponse, err error)
- func (c *Client) ModifyDisksRenewFlagWithContext(ctx context.Context, request *ModifyDisksRenewFlagRequest) (response *ModifyDisksRenewFlagResponse, err error)
- func (c *Client) ModifyFirewallRuleDescription(request *ModifyFirewallRuleDescriptionRequest) (response *ModifyFirewallRuleDescriptionResponse, err error)
- func (c *Client) ModifyFirewallRuleDescriptionWithContext(ctx context.Context, request *ModifyFirewallRuleDescriptionRequest) (response *ModifyFirewallRuleDescriptionResponse, err error)
- func (c *Client) ModifyFirewallRules(request *ModifyFirewallRulesRequest) (response *ModifyFirewallRulesResponse, err error)
- func (c *Client) ModifyFirewallRulesWithContext(ctx context.Context, request *ModifyFirewallRulesRequest) (response *ModifyFirewallRulesResponse, err error)
- func (c *Client) ModifyInstancesAttribute(request *ModifyInstancesAttributeRequest) (response *ModifyInstancesAttributeResponse, err error)
- func (c *Client) ModifyInstancesAttributeWithContext(ctx context.Context, request *ModifyInstancesAttributeRequest) (response *ModifyInstancesAttributeResponse, err error)
- func (c *Client) ModifyInstancesLoginKeyPairAttribute(request *ModifyInstancesLoginKeyPairAttributeRequest) (response *ModifyInstancesLoginKeyPairAttributeResponse, err error)
- func (c *Client) ModifyInstancesLoginKeyPairAttributeWithContext(ctx context.Context, request *ModifyInstancesLoginKeyPairAttributeRequest) (response *ModifyInstancesLoginKeyPairAttributeResponse, err error)
- func (c *Client) ModifyInstancesRenewFlag(request *ModifyInstancesRenewFlagRequest) (response *ModifyInstancesRenewFlagResponse, err error)
- func (c *Client) ModifyInstancesRenewFlagWithContext(ctx context.Context, request *ModifyInstancesRenewFlagRequest) (response *ModifyInstancesRenewFlagResponse, err error)
- func (c *Client) ModifySnapshotAttribute(request *ModifySnapshotAttributeRequest) (response *ModifySnapshotAttributeResponse, err error)
- func (c *Client) ModifySnapshotAttributeWithContext(ctx context.Context, request *ModifySnapshotAttributeRequest) (response *ModifySnapshotAttributeResponse, err error)
- func (c *Client) RebootInstances(request *RebootInstancesRequest) (response *RebootInstancesResponse, err error)
- func (c *Client) RebootInstancesWithContext(ctx context.Context, request *RebootInstancesRequest) (response *RebootInstancesResponse, err error)
- func (c *Client) ResetAttachCcn(request *ResetAttachCcnRequest) (response *ResetAttachCcnResponse, err error)
- func (c *Client) ResetAttachCcnWithContext(ctx context.Context, request *ResetAttachCcnRequest) (response *ResetAttachCcnResponse, err error)
- func (c *Client) ResetInstance(request *ResetInstanceRequest) (response *ResetInstanceResponse, err error)
- func (c *Client) ResetInstanceWithContext(ctx context.Context, request *ResetInstanceRequest) (response *ResetInstanceResponse, err error)
- func (c *Client) ResetInstancesPassword(request *ResetInstancesPasswordRequest) (response *ResetInstancesPasswordResponse, err error)
- func (c *Client) ResetInstancesPasswordWithContext(ctx context.Context, request *ResetInstancesPasswordRequest) (response *ResetInstancesPasswordResponse, err error)
- func (c *Client) StartInstances(request *StartInstancesRequest) (response *StartInstancesResponse, err error)
- func (c *Client) StartInstancesWithContext(ctx context.Context, request *StartInstancesRequest) (response *StartInstancesResponse, err error)
- func (c *Client) StopInstances(request *StopInstancesRequest) (response *StopInstancesResponse, err error)
- func (c *Client) StopInstancesWithContext(ctx context.Context, request *StopInstancesRequest) (response *StopInstancesResponse, err error)
- func (c *Client) TerminateDisks(request *TerminateDisksRequest) (response *TerminateDisksResponse, err error)
- func (c *Client) TerminateDisksWithContext(ctx context.Context, request *TerminateDisksRequest) (response *TerminateDisksResponse, err error)
- func (c *Client) TerminateInstances(request *TerminateInstancesRequest) (response *TerminateInstancesResponse, err error)
- func (c *Client) TerminateInstancesWithContext(ctx context.Context, request *TerminateInstancesRequest) (response *TerminateInstancesResponse, err error)
- type ContainerEnv
- type CreateBlueprintRequest
- type CreateBlueprintRequestParams
- type CreateBlueprintResponse
- type CreateBlueprintResponseParams
- type CreateFirewallRulesRequest
- type CreateFirewallRulesRequestParams
- type CreateFirewallRulesResponse
- type CreateFirewallRulesResponseParams
- type CreateInstanceSnapshotRequest
- type CreateInstanceSnapshotRequestParams
- type CreateInstanceSnapshotResponse
- type CreateInstanceSnapshotResponseParams
- type CreateInstancesRequest
- type CreateInstancesRequestParams
- type CreateInstancesResponse
- type CreateInstancesResponseParams
- type CreateKeyPairRequest
- type CreateKeyPairRequestParams
- type CreateKeyPairResponse
- type CreateKeyPairResponseParams
- type DataDiskPrice
- type DeleteBlueprintsRequest
- type DeleteBlueprintsRequestParams
- type DeleteBlueprintsResponse
- type DeleteBlueprintsResponseParams
- type DeleteFirewallRulesRequest
- type DeleteFirewallRulesRequestParams
- type DeleteFirewallRulesResponse
- type DeleteFirewallRulesResponseParams
- type DeleteKeyPairsRequest
- type DeleteKeyPairsRequestParams
- type DeleteKeyPairsResponse
- type DeleteKeyPairsResponseParams
- type DeleteSnapshotsRequest
- type DeleteSnapshotsRequestParams
- type DeleteSnapshotsResponse
- type DeleteSnapshotsResponseParams
- type DeniedAction
- type DescribeAllScenesRequest
- type DescribeAllScenesRequestParams
- type DescribeAllScenesResponse
- type DescribeAllScenesResponseParams
- type DescribeBlueprintInstancesRequest
- type DescribeBlueprintInstancesRequestParams
- type DescribeBlueprintInstancesResponse
- type DescribeBlueprintInstancesResponseParams
- type DescribeBlueprintsRequest
- type DescribeBlueprintsRequestParams
- type DescribeBlueprintsResponse
- type DescribeBlueprintsResponseParams
- type DescribeBundleDiscountRequest
- type DescribeBundleDiscountRequestParams
- type DescribeBundleDiscountResponse
- type DescribeBundleDiscountResponseParams
- type DescribeBundlesRequest
- type DescribeBundlesRequestParams
- type DescribeBundlesResponse
- type DescribeBundlesResponseParams
- type DescribeCcnAttachedInstancesRequest
- type DescribeCcnAttachedInstancesRequestParams
- type DescribeCcnAttachedInstancesResponse
- type DescribeCcnAttachedInstancesResponseParams
- type DescribeDiskConfigsRequest
- type DescribeDiskConfigsRequestParams
- type DescribeDiskConfigsResponse
- type DescribeDiskConfigsResponseParams
- type DescribeDiskDiscountRequest
- type DescribeDiskDiscountRequestParams
- type DescribeDiskDiscountResponse
- type DescribeDiskDiscountResponseParams
- type DescribeDisksDeniedActionsRequest
- type DescribeDisksDeniedActionsRequestParams
- type DescribeDisksDeniedActionsResponse
- type DescribeDisksDeniedActionsResponseParams
- type DescribeDisksRequest
- type DescribeDisksRequestParams
- type DescribeDisksResponse
- type DescribeDisksResponseParams
- type DescribeDisksReturnableRequest
- type DescribeDisksReturnableRequestParams
- type DescribeDisksReturnableResponse
- type DescribeDisksReturnableResponseParams
- type DescribeFirewallRulesRequest
- type DescribeFirewallRulesRequestParams
- type DescribeFirewallRulesResponse
- type DescribeFirewallRulesResponseParams
- type DescribeFirewallRulesTemplateRequest
- type DescribeFirewallRulesTemplateRequestParams
- type DescribeFirewallRulesTemplateResponse
- type DescribeFirewallRulesTemplateResponseParams
- type DescribeGeneralResourceQuotasRequest
- type DescribeGeneralResourceQuotasRequestParams
- type DescribeGeneralResourceQuotasResponse
- type DescribeGeneralResourceQuotasResponseParams
- type DescribeInstanceLoginKeyPairAttributeRequest
- type DescribeInstanceLoginKeyPairAttributeRequestParams
- type DescribeInstanceLoginKeyPairAttributeResponse
- type DescribeInstanceLoginKeyPairAttributeResponseParams
- type DescribeInstanceVncUrlRequest
- type DescribeInstanceVncUrlRequestParams
- type DescribeInstanceVncUrlResponse
- type DescribeInstanceVncUrlResponseParams
- type DescribeInstancesDeniedActionsRequest
- type DescribeInstancesDeniedActionsRequestParams
- type DescribeInstancesDeniedActionsResponse
- type DescribeInstancesDeniedActionsResponseParams
- type DescribeInstancesDiskNumRequest
- type DescribeInstancesDiskNumRequestParams
- type DescribeInstancesDiskNumResponse
- type DescribeInstancesDiskNumResponseParams
- type DescribeInstancesRequest
- type DescribeInstancesRequestParams
- type DescribeInstancesResponse
- type DescribeInstancesResponseParams
- type DescribeInstancesReturnableRequest
- type DescribeInstancesReturnableRequestParams
- type DescribeInstancesReturnableResponse
- type DescribeInstancesReturnableResponseParams
- type DescribeInstancesTrafficPackagesRequest
- type DescribeInstancesTrafficPackagesRequestParams
- type DescribeInstancesTrafficPackagesResponse
- type DescribeInstancesTrafficPackagesResponseParams
- type DescribeKeyPairsRequest
- type DescribeKeyPairsRequestParams
- type DescribeKeyPairsResponse
- type DescribeKeyPairsResponseParams
- type DescribeModifyInstanceBundlesRequest
- type DescribeModifyInstanceBundlesRequestParams
- type DescribeModifyInstanceBundlesResponse
- type DescribeModifyInstanceBundlesResponseParams
- type DescribeRegionsRequest
- type DescribeRegionsRequestParams
- type DescribeRegionsResponse
- type DescribeRegionsResponseParams
- type DescribeResetInstanceBlueprintsRequest
- type DescribeResetInstanceBlueprintsRequestParams
- type DescribeResetInstanceBlueprintsResponse
- type DescribeResetInstanceBlueprintsResponseParams
- type DescribeScenesRequest
- type DescribeScenesRequestParams
- type DescribeScenesResponse
- type DescribeScenesResponseParams
- type DescribeSnapshotsDeniedActionsRequest
- type DescribeSnapshotsDeniedActionsRequestParams
- type DescribeSnapshotsDeniedActionsResponse
- type DescribeSnapshotsDeniedActionsResponseParams
- type DescribeSnapshotsRequest
- type DescribeSnapshotsRequestParams
- type DescribeSnapshotsResponse
- type DescribeSnapshotsResponseParams
- type DescribeZonesRequest
- type DescribeZonesRequestParams
- type DescribeZonesResponse
- type DescribeZonesResponseParams
- type DetachCcnRequest
- type DetachCcnRequestParams
- type DetachCcnResponse
- type DetachCcnResponseParams
- type DetachDisksRequest
- type DetachDisksRequestParams
- type DetachDisksResponse
- type DetachDisksResponseParams
- type DetailPrice
- type DisassociateInstancesKeyPairsRequest
- type DisassociateInstancesKeyPairsRequestParams
- type DisassociateInstancesKeyPairsResponse
- type DisassociateInstancesKeyPairsResponseParams
- type DiscountDetail
- type Disk
- type DiskChargePrepaid
- type DiskConfig
- type DiskDeniedActions
- type DiskPrice
- type DiskReturnable
- type DockerContainerConfiguration
- type DockerContainerPublishPort
- type DockerContainerVolume
- type Filter
- type FirewallRule
- type FirewallRuleInfo
- type GeneralResourceQuota
- type ImportKeyPairRequest
- type ImportKeyPairRequestParams
- type ImportKeyPairResponse
- type ImportKeyPairResponseParams
- type InquirePriceCreateBlueprintRequest
- type InquirePriceCreateBlueprintRequestParams
- type InquirePriceCreateBlueprintResponse
- type InquirePriceCreateBlueprintResponseParams
- type InquirePriceCreateDisksRequest
- type InquirePriceCreateDisksRequestParams
- type InquirePriceCreateDisksResponse
- type InquirePriceCreateDisksResponseParams
- type InquirePriceCreateInstancesRequest
- type InquirePriceCreateInstancesRequestParams
- type InquirePriceCreateInstancesResponse
- type InquirePriceCreateInstancesResponseParams
- type InquirePriceRenewDisksRequest
- type InquirePriceRenewDisksRequestParams
- type InquirePriceRenewDisksResponse
- type InquirePriceRenewDisksResponseParams
- type InquirePriceRenewInstancesRequest
- type InquirePriceRenewInstancesRequestParams
- type InquirePriceRenewInstancesResponse
- type InquirePriceRenewInstancesResponseParams
- type Instance
- type InstanceChargePrepaid
- type InstanceDeniedActions
- type InstancePrice
- type InstancePriceDetail
- type InstanceReturnable
- type InstanceTrafficPackage
- type InternetAccessible
- type KeyPair
- type LoginConfiguration
- type LoginSettings
- type ModifyBlueprintAttributeRequest
- type ModifyBlueprintAttributeRequestParams
- type ModifyBlueprintAttributeResponse
- type ModifyBlueprintAttributeResponseParams
- type ModifyBundle
- type ModifyDisksAttributeRequest
- type ModifyDisksAttributeRequestParams
- type ModifyDisksAttributeResponse
- type ModifyDisksAttributeResponseParams
- type ModifyDisksRenewFlagRequest
- type ModifyDisksRenewFlagRequestParams
- type ModifyDisksRenewFlagResponse
- type ModifyDisksRenewFlagResponseParams
- type ModifyFirewallRuleDescriptionRequest
- type ModifyFirewallRuleDescriptionRequestParams
- type ModifyFirewallRuleDescriptionResponse
- type ModifyFirewallRuleDescriptionResponseParams
- type ModifyFirewallRulesRequest
- type ModifyFirewallRulesRequestParams
- type ModifyFirewallRulesResponse
- type ModifyFirewallRulesResponseParams
- type ModifyInstancesAttributeRequest
- type ModifyInstancesAttributeRequestParams
- type ModifyInstancesAttributeResponse
- type ModifyInstancesAttributeResponseParams
- type ModifyInstancesLoginKeyPairAttributeRequest
- type ModifyInstancesLoginKeyPairAttributeRequestParams
- type ModifyInstancesLoginKeyPairAttributeResponse
- type ModifyInstancesLoginKeyPairAttributeResponseParams
- type ModifyInstancesRenewFlagRequest
- type ModifyInstancesRenewFlagRequestParams
- type ModifyInstancesRenewFlagResponse
- type ModifyInstancesRenewFlagResponseParams
- type ModifySnapshotAttributeRequest
- type ModifySnapshotAttributeRequestParams
- type ModifySnapshotAttributeResponse
- type ModifySnapshotAttributeResponseParams
- type PolicyDetail
- type Price
- type RebootInstancesRequest
- type RebootInstancesRequestParams
- type RebootInstancesResponse
- type RebootInstancesResponseParams
- type RegionInfo
- type RenewDiskChargePrepaid
- type ResetAttachCcnRequest
- type ResetAttachCcnRequestParams
- type ResetAttachCcnResponse
- type ResetAttachCcnResponseParams
- type ResetInstanceBlueprint
- type ResetInstanceRequest
- type ResetInstanceRequestParams
- type ResetInstanceResponse
- type ResetInstanceResponseParams
- type ResetInstancesPasswordRequest
- type ResetInstancesPasswordRequestParams
- type ResetInstancesPasswordResponse
- type ResetInstancesPasswordResponseParams
- type Scene
- type SceneInfo
- type Snapshot
- type SnapshotDeniedActions
- type Software
- type SoftwareDetail
- type StartInstancesRequest
- type StartInstancesRequestParams
- type StartInstancesResponse
- type StartInstancesResponseParams
- type StopInstancesRequest
- type StopInstancesRequestParams
- type StopInstancesResponse
- type StopInstancesResponseParams
- type SystemDisk
- type Tag
- type TerminateDisksRequest
- type TerminateDisksRequestParams
- type TerminateDisksResponse
- type TerminateDisksResponseParams
- type TerminateInstancesRequest
- type TerminateInstancesRequestParams
- type TerminateInstancesResponse
- type TerminateInstancesResponseParams
- type TotalPrice
- type TrafficPackage
- type ZoneInfo
Constants ¶
const ( // Error with CAM signature/authentication. AUTHFAILURE = "AuthFailure" // Operation failed. FAILEDOPERATION = "FailedOperation" // Failed to create the image. FAILEDOPERATION_CREATEBLUEPRINTFAILED = "FailedOperation.CreateBlueprintFailed" // Failed to create the key pair. FAILEDOPERATION_CREATEKEYPAIRFAILED = "FailedOperation.CreateKeyPairFailed" // Failed to delete the key pair. FAILEDOPERATION_DELETEKEYPAIRFAILED = "FailedOperation.DeleteKeyPairFailed" // Failed to manipulate the firewall rule. FAILEDOPERATION_FIREWALLRULESOPERATIONFAILED = "FailedOperation.FirewallRulesOperationFailed" // Failed to import the key pair. FAILEDOPERATION_IMPORTKEYPAIRFAILED = "FailedOperation.ImportKeyPairFailed" // Failed to manipulate the instance. FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed" // Failed to manipulate the snapshot. FAILEDOPERATION_SNAPSHOTOPERATIONFAILED = "FailedOperation.SnapshotOperationFailed" // The operation failed. The custom image could not be created. FAILEDOPERATION_UNABLETOCREATEBLUEPRINT = "FailedOperation.UnableToCreateBlueprint" // Failed to create the instance FAILEDOPERATION_UNABLETOCREATEINSTANCES = "FailedOperation.UnableToCreateInstances" // Internal error. INTERNALERROR = "InternalError" // The disk query returned invalid content. INTERNALERROR_DESCRIBEDISKSRETURNABLEERROR = "InternalError.DescribeDisksReturnableError" // Failed to query the instance status. Please try again later. INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" // Failed to query whether the configuration of the instance can be modified. INTERNALERROR_DESCRIBEINSTANCESMODIFICATION = "InternalError.DescribeInstancesModification" // Failed to query whether the configuration of the instance can be modified. INTERNALERROR_DESCRIBEINSTANCESMODIFICATIONERROR = "InternalError.DescribeInstancesModificationError" // Failed to query whether the instance can be returned. INTERNALERROR_DESCRIBEINSTANCESRETURNABLEERROR = "InternalError.DescribeInstancesReturnableError" // An error occurred while querying the instance traffic package. INTERNALERROR_DESCRIBEINSTANCESTRAFFICPACKAGESFAILED = "InternalError.DescribeInstancesTrafficPackagesFailed" // Failed to get the snapshot quota lock. INTERNALERROR_GETSNAPSHOTALLOCQUOTALOCKERROR = "InternalError.GetSnapshotAllocQuotaLockError" // Failed to find this API INTERNALERROR_INVALIDACTIONNOTFOUND = "InternalError.InvalidActionNotFound" // The package price is incorrect. INTERNALERROR_INVALIDBUNDLEPRICE = "InternalError.InvalidBundlePrice" // The command `DescribeInstanceLoginKeyPair` could not be found. INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" // There was an error in the request. INTERNALERROR_REQUESTERROR = "InternalError.RequestError" // Failed to call billing gateway service INTERNALERROR_TRADECALLBILLINGGATEWAYFAILED = "InternalError.TradeCallBillingGatewayFailed" // Failed to get the price. INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed" // Incorrect parameter. INVALIDPARAMETER = "InvalidParameter" // The package and the image do not match. INVALIDPARAMETER_BUNDLEANDBLUEPRINTNOTMATCH = "InvalidParameter.BundleAndBlueprintNotMatch" // Undefined service package ID. INVALIDPARAMETER_BUNDLEIDNOTFOUND = "InvalidParameter.BundleIdNotFound" // Invalid parameter: the number of `Values` in the `Filter` parameter exceeds the allowed maximum number. INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded" // Invalid parameter: the firewall rule is duplicated. INVALIDPARAMETER_FIREWALLRULESDUPLICATED = "InvalidParameter.FirewallRulesDuplicated" // Invalid parameter: the firewall rule already exists. INVALIDPARAMETER_FIREWALLRULESEXIST = "InvalidParameter.FirewallRulesExist" // Invalid parameter: the `Filter` parameter is invalid. INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" // Invalid parameter: the value of `Name` in the `Filter` parameter is invalid. INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey" // Invalid parameter: the value of `Name` in the `Filter` parameter is not a string. INVALIDPARAMETER_INVALIDFILTERINVALIDNAMENOTSTR = "InvalidParameter.InvalidFilterInvalidNameNotStr" // Invalid parameter: the `Values` in the `Filter` parameter is not a list. INVALIDPARAMETER_INVALIDFILTERINVALIDVALUESNOTLIST = "InvalidParameter.InvalidFilterInvalidValuesNotList" // Invalid parameter: the `Filter` parameter is not a dictionary. INVALIDPARAMETER_INVALIDFILTERNOTDICT = "InvalidParameter.InvalidFilterNotDict" // Invalid parameter: there are unsupported `Name` values in the `Filter` parameter. INVALIDPARAMETER_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameter.InvalidFilterNotSupportedName" // Invalid parameter: only one attribute can be modified at a time. INVALIDPARAMETER_ONLYALLOWMODIFYONEATTRIBUTE = "InvalidParameter.OnlyAllowModifyOneAttribute" // Invalid parameter: the parameters conflict. INVALIDPARAMETER_PARAMETERCONFLICT = "InvalidParameter.ParameterConflict" // Incorrect parameter value. INVALIDPARAMETERVALUE = "InvalidParameterValue" // The configuration of this instance does not meet the requirements of the specified image. INVALIDPARAMETERVALUE_BLUEPRINTCONFIGNOTMATCH = "InvalidParameterValue.BlueprintConfigNotMatch" // The image ID is invalid, as instance reinstallation does not allow switching the OS type. INVALIDPARAMETERVALUE_BLUEPRINTID = "InvalidParameterValue.BlueprintId" // Invalid parameter value: the image ID format is invalid. INVALIDPARAMETERVALUE_BLUEPRINTIDMALFORMED = "InvalidParameterValue.BlueprintIdMalformed" // The package and the image do not match. INVALIDPARAMETERVALUE_BUNDLEANDBLUEPRINTNOTMATCH = "InvalidParameterValue.BundleAndBlueprintNotMatch" // The ID format of the CCN instance is invalid. INVALIDPARAMETERVALUE_CCNIDMALFORMED = "InvalidParameterValue.CcnIdMalformed" // The disk name is too long. INVALIDPARAMETERVALUE_DISKNAMETOOLONG = "InvalidParameterValue.DiskNameTooLong" // The disk size has changed. INVALIDPARAMETERVALUE_DISKSIZENOTMATCH = "InvalidParameterValue.DiskSizeNotMatch" // The parameter `KeyName` already exists and is duplicate. INVALIDPARAMETERVALUE_DUPLICATEPARAMETERVALUE = "InvalidParameterValue.DuplicateParameterValue" // Invalid parameter value: duplicate values are not allowed. INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" // The length of the firewall rule description exceeds the limit. INVALIDPARAMETERVALUE_FIREWALLRULEDESCRIPTIONTOOLONG = "InvalidParameterValue.FirewallRuleDescriptionTooLong" // Invalid parameter value: the instance ID format is invalid. INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" // Invalid parameter value: the length of the instance name exceeds the upper limit. INVALIDPARAMETERVALUE_INSTANCENAMETOOLONG = "InvalidParameterValue.InstanceNameTooLong" // The image ID is invalid. INVALIDPARAMETERVALUE_INVALIDBLUEPRINTID = "InvalidParameterValue.InvalidBlueprintId" // The type of the image OS is invalid. INVALIDPARAMETERVALUE_INVALIDBLUEPRINTPLATFORMTYPE = "InvalidParameterValue.InvalidBlueprintPlatformType" // Invalid image status value INVALIDPARAMETERVALUE_INVALIDBLUEPRINTSTATE = "InvalidParameterValue.InvalidBlueprintState" // The image type is invalid. INVALIDPARAMETERVALUE_INVALIDBLUEPRINTTYPE = "InvalidParameterValue.InvalidBlueprintType" // Invalid package parameter. INVALIDPARAMETERVALUE_INVALIDBUNDLE = "InvalidParameterValue.InvalidBundle" // The console display type is invalid. INVALIDPARAMETERVALUE_INVALIDCONSOLEDISPLAYTYPES = "InvalidParameterValue.InvalidConsoleDisplayTypes" // Invalid parameter value: the disk ID format is invalid. INVALIDPARAMETERVALUE_INVALIDDISKIDMALFORMED = "InvalidParameterValue.InvalidDiskIdMalformed" // The value of setting whether to use the default key pair for login is incorrect. INVALIDPARAMETERVALUE_INVALIDINSTANCELOGINKEYPAIRPERMITLOGIN = "InvalidParameterValue.InvalidInstanceLoginKeyPairPermitLogin" // Invalid parametric value: the IP address format is invalid. INVALIDPARAMETERVALUE_INVALIDIPFORMAT = "InvalidParameterValue.InvalidIpFormat" // Invalid parametric value. INVALIDPARAMETERVALUE_INVALIDKEYPAIRNAMEEMPTY = "InvalidParameterValue.InvalidKeyPairNameEmpty" // The key pair name is invalid. INVALIDPARAMETERVALUE_INVALIDKEYPAIRNAMEINCLUDEILLEGALCHAR = "InvalidParameterValue.InvalidKeyPairNameIncludeIllegalChar" // The parameter length is invalid. INVALIDPARAMETERVALUE_INVALIDKEYPAIRNAMETOOLONG = "InvalidParameterValue.InvalidKeyPairNameTooLong" // Invalid package combination. INVALIDPARAMETERVALUE_INVALIDPARAMETERCOMBINATION = "InvalidParameterValue.InvalidParameterCombination" // The password in the parameter is invalid. INVALIDPARAMETERVALUE_INVALIDPASSWORD = "InvalidParameterValue.InvalidPassword" // Incorrect quota resource name. INVALIDPARAMETERVALUE_INVALIDRESOURCEQUOTARESOURCENAME = "InvalidParameterValue.InvalidResourceQuotaResourceName" // Invalid scene ID INVALIDPARAMETERVALUE_INVALIDSCENEIDMALFORMED = "InvalidParameterValue.InvalidSceneIdMalformed" // Invalid `Zone` value. INVALIDPARAMETERVALUE_INVALIDZONE = "InvalidParameterValue.InvalidZone" // Invalid parametric value: the key pair ID format is invalid. INVALIDPARAMETERVALUE_KEYPAIRIDMALFORMED = "InvalidParameterValue.KeyPairIdMalformed" // The public key of this key pair already exists in the system and cannot be reused. INVALIDPARAMETERVALUE_KEYPAIRPUBLICKEYDUPLICATED = "InvalidParameterValue.KeyPairPublicKeyDuplicated" // The format of the specified public key is incorrect. INVALIDPARAMETERVALUE_KEYPAIRPUBLICKEYMALFORMED = "InvalidParameterValue.KeyPairPublicKeyMalformed" // Invalid parametric value: the number of parameter values exceeds the upper limit. INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // Invalid parametric value: it cannot be negative. INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative" // It is not allowed to change the OS type. INVALIDPARAMETERVALUE_NOTALLOWTOCHANGEPLATFORMTYPE = "InvalidParameterValue.NotAllowToChangePlatformType" // Invalid parametric value: it is not within the valid range. INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" // Invalid parametric value: the snapshot ID format is invalid. INVALIDPARAMETERVALUE_SNAPSHOTIDMALFORMED = "InvalidParameterValue.SnapshotIdMalformed" // Invalid parametric value: the length of the snapshot name exceeds the upper limit. INVALIDPARAMETERVALUE_SNAPSHOTNAMETOOLONG = "InvalidParameterValue.SnapshotNameTooLong" // The length of the parameter value exceeds the upper limit. INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // Invalid AZ. INVALIDPARAMETERVALUE_ZONEINVALID = "InvalidParameterValue.ZoneInvalid" // Reached the quota limit. LIMITEXCEEDED = "LimitExceeded" // Reached the upper limit of attached data disks of the instance LIMITEXCEEDED_ATTACHDATADISKQUOTALIMITEXCEEDED = "LimitExceeded.AttachDataDiskQuotaLimitExceeded" // The firewall rule quota is exceeded. LIMITEXCEEDED_FIREWALLRULESLIMITEXCEEDED = "LimitExceeded.FirewallRulesLimitExceeded" // Run out of the instance quota. LIMITEXCEEDED_INSTANCEQUOTALIMITEXCEEDED = "LimitExceeded.InstanceQuotaLimitExceeded" // The key pair quota is exceeded. LIMITEXCEEDED_KEYPAIRLIMITEXCEEDED = "LimitExceeded.KeyPairLimitExceeded" // The snapshot quota is exceeded. LIMITEXCEEDED_SNAPSHOTQUOTALIMITEXCEEDED = "LimitExceeded.SnapshotQuotaLimitExceeded" // Missing parameter. MISSINGPARAMETER = "MissingParameter" // This instance does not support upgrading packages. OPERATIONDENIED_BUNDLENOTSUPPORTMODIFY = "OperationDenied.BundleNotSupportModify" // The disk is being created. OPERATIONDENIED_DISKCREATING = "OperationDenied.DiskCreating" // The disk is being manipulated. Try again later. OPERATIONDENIED_DISKOPERATIONINPROGRESS = "OperationDenied.DiskOperationInProgress" // The cloud disk type of the disk does not support this operation. OPERATIONDENIED_DISKUSAGENOTSUPPORTOPERATION = "OperationDenied.DiskUsageNotSupportOperation" // It is not allowed to manipulate this instance, as it is being created. OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" // It is not allowed to manipulate this instance, as the last operation is still in progress. OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress" // Instances using storage packages do not support snapshot creation. OPERATIONDENIED_OPERATIONDENIEDCREATESNAPSHOTFORSTORAGEBUNDLE = "OperationDenied.OperationDeniedCreateSnapshotForStorageBundle" // The key pair is in use. RESOURCEINUSE_KEYPAIRINUSE = "ResourceInUse.KeyPairInUse" // The resource does not exist. RESOURCENOTFOUND = "ResourceNotFound" // The image ID does not exist. RESOURCENOTFOUND_BLUEPRINTIDNOTFOUND = "ResourceNotFound.BlueprintIdNotFound" // The specified image does not exist. Please check whether the `BlueprintId` of the image is correct. RESOURCENOTFOUND_BLUEPRINTNOTFOUND = "ResourceNotFound.BlueprintNotFound" // The disk ID does not exist. RESOURCENOTFOUND_DISKIDNOTFOUND = "ResourceNotFound.DiskIdNotFound" // The disk does not exist. RESOURCENOTFOUND_DISKNOTFOUND = "ResourceNotFound.DiskNotFound" // The firewall does not exist. RESOURCENOTFOUND_FIREWALLNOTFOUND = "ResourceNotFound.FirewallNotFound" // The firewall rule does not exist. RESOURCENOTFOUND_FIREWALLRULESNOTFOUND = "ResourceNotFound.FirewallRulesNotFound" // There are no data disks mounted to the instance. RESOURCENOTFOUND_INSTANCEDATADISKNOTFOUND = "ResourceNotFound.InstanceDataDiskNotFound" // The instance ID does not exist. RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" // The instance does not exist. RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" // The key pair ID does not exist. RESOURCENOTFOUND_KEYIDNOTFOUND = "ResourceNotFound.KeyIdNotFound" // The custom image does not exist. RESOURCENOTFOUND_PRIVATEBLUEPRINTNOTFOUND = "ResourceNotFound.PrivateBlueprintNotFound" // The snapshot ID does not exist. RESOURCENOTFOUND_SNAPSHOTIDNOTFOUND = "ResourceNotFound.SnapshotIdNotFound" // The snapshot does not exist. RESOURCENOTFOUND_SNAPSHOTNOTFOUND = "ResourceNotFound.SnapshotNotFound" // The resource is unavailable. RESOURCEUNAVAILABLE = "ResourceUnavailable" // The image resource is not available. RESOURCEUNAVAILABLE_BLUEPRINTUNAVAILABLE = "ResourceUnavailable.BlueprintUnavailable" // The package is not available. RESOURCEUNAVAILABLE_BUNDLEUNAVAILABLE = "ResourceUnavailable.BundleUnavailable" // There is no available configuration in the package. RESOURCESSOLDOUT_PURCHASESOURCEHASNOBUNDLECONFIGS = "ResourcesSoldOut.PurchaseSourceHasNoBundleConfigs" // There is no available configuration in the package. RESOURCESSOLDOUT_ZONESHASNOBUNDLECONFIGS = "ResourcesSoldOut.ZonesHasNoBundleConfigs" // MFA has expired. UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired" // MFA does not exist. UNAUTHORIZEDOPERATION_MFANOTFOUND = "UnauthorizedOperation.MFANotFound" // No permission UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" // Unknown parameter error. UNKNOWNPARAMETER = "UnknownParameter" // Unsupported operation. UNSUPPORTEDOPERATION = "UnsupportedOperation" // Unable to associate with CCN: there is no instance in this region UNSUPPORTEDOPERATION_ATTACHCCNCONDITIONUNSATISFIED = "UnsupportedOperation.AttachCcnConditionUnsatisfied" // Failed to associate the CCN instance. Please check the CCN status and try again later. UNSUPPORTEDOPERATION_ATTACHCCNFAILED = "UnsupportedOperation.AttachCcnFailed" // The current status of the image does not support this operation. UNSUPPORTEDOPERATION_BLUEPRINTCURSTATEINVALID = "UnsupportedOperation.BlueprintCurStateInvalid" // The image is in use, so this operation is not supported. UNSUPPORTEDOPERATION_BLUEPRINTOCCUPIED = "UnsupportedOperation.BlueprintOccupied" // The CCN instance is already associated, and reassociation is not supported. UNSUPPORTEDOPERATION_CCNALREADYATTACHED = "UnsupportedOperation.CcnAlreadyAttached" // No CCN instance has been associated yet, so this operation is not supported. UNSUPPORTEDOPERATION_CCNNOTATTACHED = "UnsupportedOperation.CcnNotAttached" // Failed to query the status of the associated CCN instance. Please try again later. UNSUPPORTEDOPERATION_DESCRIBECCNATTACHEDINSTANCESFAILED = "UnsupportedOperation.DescribeCcnAttachedInstancesFailed" // Failed to unassociate the CCN instance. Please check the CCN status and try again later. UNSUPPORTEDOPERATION_DETACHCCNFAILED = "UnsupportedOperation.DetachCcnFailed" // The disk is busy. UNSUPPORTEDOPERATION_DISKBUSY = "UnsupportedOperation.DiskBusy" // Unsupported operation: the last operation of the disk has not been completed. UNSUPPORTEDOPERATION_DISKLATESTOPERATIONUNFINISHED = "UnsupportedOperation.DiskLatestOperationUnfinished" // The firewall is busy. UNSUPPORTEDOPERATION_FIREWALLBUSY = "UnsupportedOperation.FirewallBusy" // The specified firewall version number does not match the current version. UNSUPPORTEDOPERATION_FIREWALLVERSIONMISMATCH = "UnsupportedOperation.FirewallVersionMismatch" // Unsupported operation: the instance has expired. UNSUPPORTEDOPERATION_INSTANCEEXPIRED = "UnsupportedOperation.InstanceExpired" // The password can not be set upon creation of a LinuxUnix instance. UNSUPPORTEDOPERATION_INSTANCELINUXUNIXCREATINGNOTSUPPORTPASSWORD = "UnsupportedOperation.InstanceLinuxUnixCreatingNotSupportPassword" // The disk's status does not support this operation. UNSUPPORTEDOPERATION_INVALIDDISKSTATE = "UnsupportedOperation.InvalidDiskState" // Unsupported operation: the instance status is invalid. UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" // Unsupported operation: the snapshot status is invalid. UNSUPPORTEDOPERATION_INVALIDSNAPSHOTSTATE = "UnsupportedOperation.InvalidSnapshotState" // Unsupported operation: one key pair cannot be bound to the same instance repeatedly. UNSUPPORTEDOPERATION_KEYPAIRBINDDUPLICATE = "UnsupportedOperation.KeyPairBindDuplicate" // Unsupported operation: the `KeyPair` has a binding relationship with the image. Before performing this operation, please delete the custom image bound to the key pair. UNSUPPORTEDOPERATION_KEYPAIRBINDTOBLUEPRINTS = "UnsupportedOperation.KeyPairBindToBlueprints" // Unsupported operation: key pairs that are not bound to instances cannot be unbound from instances. UNSUPPORTEDOPERATION_KEYPAIRNOTBOUNDTOINSTANCE = "UnsupportedOperation.KeyPairNotBoundToInstance" // Unsupported operation: the last operation of the instance has not been completed. UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished" // The shared image does not support this operation. UNSUPPORTEDOPERATION_NOTSUPPORTSHAREDBLUEPRINT = "UnsupportedOperation.NotSupportSharedBlueprint" // Terminating a resource in the resource center failed. UNSUPPORTEDOPERATION_POSTDESTROYRESOURCEFAILED = "UnsupportedOperation.PostDestroyResourceFailed" // Failed to reapply to associate a CCN instance. Please check the CCN status and try again later. UNSUPPORTEDOPERATION_RESETATTACHCCNFAILED = "UnsupportedOperation.ResetAttachCcnFailed" // The snapshot is busy. UNSUPPORTEDOPERATION_SNAPSHOTBUSY = "UnsupportedOperation.SnapshotBusy" // System busy UNSUPPORTEDOPERATION_SYSTEMBUSY = "UnsupportedOperation.SystemBusy" // Windows instances do not support binding key pairs. UNSUPPORTEDOPERATION_WINDOWSNOTALLOWTOASSOCIATEKEYPAIR = "UnsupportedOperation.WindowsNotAllowToAssociateKeyPair" // SSH key pair is not available for Windows instances UNSUPPORTEDOPERATION_WINDOWSNOTSUPPORTKEYPAIR = "UnsupportedOperation.WindowsNotSupportKeyPair" )
const APIVersion = "2020-03-24"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyInstanceSnapshotRequest ¶
type ApplyInstanceSnapshotRequest struct { *tchttp.BaseRequest // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Snapshot ID. SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"` }
func NewApplyInstanceSnapshotRequest ¶
func NewApplyInstanceSnapshotRequest() (request *ApplyInstanceSnapshotRequest)
func (*ApplyInstanceSnapshotRequest) FromJsonString ¶
func (r *ApplyInstanceSnapshotRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ApplyInstanceSnapshotRequest) ToJsonString ¶
func (r *ApplyInstanceSnapshotRequest) ToJsonString() string
type ApplyInstanceSnapshotRequestParams ¶
type ApplyInstanceSnapshotRequestParams struct { // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Snapshot ID. SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"` }
Predefined struct for user
type ApplyInstanceSnapshotResponse ¶
type ApplyInstanceSnapshotResponse struct { *tchttp.BaseResponse Response *ApplyInstanceSnapshotResponseParams `json:"Response"` }
func NewApplyInstanceSnapshotResponse ¶
func NewApplyInstanceSnapshotResponse() (response *ApplyInstanceSnapshotResponse)
func (*ApplyInstanceSnapshotResponse) FromJsonString ¶
func (r *ApplyInstanceSnapshotResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ApplyInstanceSnapshotResponse) ToJsonString ¶
func (r *ApplyInstanceSnapshotResponse) ToJsonString() string
type ApplyInstanceSnapshotResponseParams ¶
type ApplyInstanceSnapshotResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type AssociateInstancesKeyPairsRequest ¶
type AssociateInstancesKeyPairsRequest struct { *tchttp.BaseRequest // Key pair ID list. Each request can contain up to 100 key pairs. KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds"` // Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewAssociateInstancesKeyPairsRequest ¶
func NewAssociateInstancesKeyPairsRequest() (request *AssociateInstancesKeyPairsRequest)
func (*AssociateInstancesKeyPairsRequest) FromJsonString ¶
func (r *AssociateInstancesKeyPairsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AssociateInstancesKeyPairsRequest) ToJsonString ¶
func (r *AssociateInstancesKeyPairsRequest) ToJsonString() string
type AssociateInstancesKeyPairsRequestParams ¶
type AssociateInstancesKeyPairsRequestParams struct { // Key pair ID list. Each request can contain up to 100 key pairs. KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds"` // Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
Predefined struct for user
type AssociateInstancesKeyPairsResponse ¶
type AssociateInstancesKeyPairsResponse struct { *tchttp.BaseResponse Response *AssociateInstancesKeyPairsResponseParams `json:"Response"` }
func NewAssociateInstancesKeyPairsResponse ¶
func NewAssociateInstancesKeyPairsResponse() (response *AssociateInstancesKeyPairsResponse)
func (*AssociateInstancesKeyPairsResponse) FromJsonString ¶
func (r *AssociateInstancesKeyPairsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AssociateInstancesKeyPairsResponse) ToJsonString ¶
func (r *AssociateInstancesKeyPairsResponse) ToJsonString() string
type AssociateInstancesKeyPairsResponseParams ¶
type AssociateInstancesKeyPairsResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type AttachCcnRequest ¶
type AttachCcnRequest struct { *tchttp.BaseRequest // CCN instance ID. CcnId *string `json:"CcnId,omitempty" name:"CcnId"` }
func NewAttachCcnRequest ¶
func NewAttachCcnRequest() (request *AttachCcnRequest)
func (*AttachCcnRequest) FromJsonString ¶
func (r *AttachCcnRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AttachCcnRequest) ToJsonString ¶
func (r *AttachCcnRequest) ToJsonString() string
type AttachCcnRequestParams ¶
type AttachCcnRequestParams struct { // CCN instance ID. CcnId *string `json:"CcnId,omitempty" name:"CcnId"` }
Predefined struct for user
type AttachCcnResponse ¶
type AttachCcnResponse struct { *tchttp.BaseResponse Response *AttachCcnResponseParams `json:"Response"` }
func NewAttachCcnResponse ¶
func NewAttachCcnResponse() (response *AttachCcnResponse)
func (*AttachCcnResponse) FromJsonString ¶
func (r *AttachCcnResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AttachCcnResponse) ToJsonString ¶
func (r *AttachCcnResponse) ToJsonString() string
type AttachCcnResponseParams ¶
type AttachCcnResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type AttachDetail ¶
type AttachDetail struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Number of elastic cloud disks attached to the instance AttachedDiskCount *int64 `json:"AttachedDiskCount,omitempty" name:"AttachedDiskCount"` // Upper limit of attached elastic cloud disks MaxAttachCount *int64 `json:"MaxAttachCount,omitempty" name:"MaxAttachCount"` }
type AttachDisksRequest ¶
type AttachDisksRequest struct { *tchttp.BaseRequest // List of cloud disk IDs. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Whether Auto-Renewal is enabled RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` }
func NewAttachDisksRequest ¶
func NewAttachDisksRequest() (request *AttachDisksRequest)
func (*AttachDisksRequest) FromJsonString ¶
func (r *AttachDisksRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AttachDisksRequest) ToJsonString ¶
func (r *AttachDisksRequest) ToJsonString() string
type AttachDisksRequestParams ¶
type AttachDisksRequestParams struct { // List of cloud disk IDs. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Whether Auto-Renewal is enabled RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` }
Predefined struct for user
type AttachDisksResponse ¶
type AttachDisksResponse struct { *tchttp.BaseResponse Response *AttachDisksResponseParams `json:"Response"` }
func NewAttachDisksResponse ¶
func NewAttachDisksResponse() (response *AttachDisksResponse)
func (*AttachDisksResponse) FromJsonString ¶
func (r *AttachDisksResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AttachDisksResponse) ToJsonString ¶
func (r *AttachDisksResponse) ToJsonString() string
type AttachDisksResponseParams ¶
type AttachDisksResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type Blueprint ¶
type Blueprint struct { // Image ID, which is the unique identifier of `Blueprint`. BlueprintId *string `json:"BlueprintId,omitempty" name:"BlueprintId"` // Image title to be displayed. DisplayTitle *string `json:"DisplayTitle,omitempty" name:"DisplayTitle"` // Image version to be displayed. DisplayVersion *string `json:"DisplayVersion,omitempty" name:"DisplayVersion"` // Image description information. Description *string `json:"Description,omitempty" name:"Description"` // OS name. OsName *string `json:"OsName,omitempty" name:"OsName"` // OS type. Platform *string `json:"Platform,omitempty" name:"Platform"` // OS type, such as LINUX_UNIX and WINDOWS. PlatformType *string `json:"PlatformType,omitempty" name:"PlatformType"` // Image type, such as APP_OS, PURE_OS, and PRIVATE. BlueprintType *string `json:"BlueprintType,omitempty" name:"BlueprintType"` // Image picture URL. ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"` // System disk size required by image in GB. RequiredSystemDiskSize *int64 `json:"RequiredSystemDiskSize,omitempty" name:"RequiredSystemDiskSize"` // Image status. BlueprintState *string `json:"BlueprintState,omitempty" name:"BlueprintState"` // Creation time according to ISO 8601 standard. UTC time is used. // Format: YYYY-MM-DDThh:mm:ssZ. // Note: this field may return null, indicating that no valid values can be obtained. CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` // Image name. BlueprintName *string `json:"BlueprintName,omitempty" name:"BlueprintName"` // Whether the image supports automation tools. SupportAutomationTools *bool `json:"SupportAutomationTools,omitempty" name:"SupportAutomationTools"` // Memory size required by image in GB. RequiredMemorySize *int64 `json:"RequiredMemorySize,omitempty" name:"RequiredMemorySize"` // ID of the Lighthouse image shared from a CVM image // Note: this field may return `null`, indicating that no valid values can be obtained. ImageId *string `json:"ImageId,omitempty" name:"ImageId"` // URL of official website of the open-source project CommunityUrl *string `json:"CommunityUrl,omitempty" name:"CommunityUrl"` // Guide documentation URL GuideUrl *string `json:"GuideUrl,omitempty" name:"GuideUrl"` // Array of IDs of scenes associated with an image // Note: This field may return `null`, indicating that no valid values can be obtained. SceneIdSet []*string `json:"SceneIdSet,omitempty" name:"SceneIdSet"` }
type BlueprintInstance ¶
type BlueprintPrice ¶
type BlueprintPrice struct { // Original image unit price in USD. OriginalBlueprintPrice *float64 `json:"OriginalBlueprintPrice,omitempty" name:"OriginalBlueprintPrice"` // Original image total price in USD. OriginalPrice *float64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"` // Discount. Discount *int64 `json:"Discount,omitempty" name:"Discount"` // Discounted image total price in USD. DiscountPrice *float64 `json:"DiscountPrice,omitempty" name:"DiscountPrice"` }
type Bundle ¶
type Bundle struct { // Package ID. BundleId *string `json:"BundleId,omitempty" name:"BundleId"` // Memory size in GB. Memory *int64 `json:"Memory,omitempty" name:"Memory"` // System disk type. // Valid values: // <li> LOCAL_BASIC: local disk</li><li> LOCAL_SSD: local SSD disk</li><li> CLOUD_BASIC: HDD cloud disk</li><li> CLOUD_SSD: SSD cloud disk</li><li> CLOUD_PREMIUM: Premium Cloud Storage</li> SystemDiskType *string `json:"SystemDiskType,omitempty" name:"SystemDiskType"` // System disk size. SystemDiskSize *int64 `json:"SystemDiskSize,omitempty" name:"SystemDiskSize"` // Monthly network traffic in Gb. MonthlyTraffic *int64 `json:"MonthlyTraffic,omitempty" name:"MonthlyTraffic"` // Whether Linux/Unix is supported. SupportLinuxUnixPlatform *bool `json:"SupportLinuxUnixPlatform,omitempty" name:"SupportLinuxUnixPlatform"` // Whether Windows is supported. SupportWindowsPlatform *bool `json:"SupportWindowsPlatform,omitempty" name:"SupportWindowsPlatform"` // Current package unit price information. Price *Price `json:"Price,omitempty" name:"Price"` // Number of CPU cores. CPU *int64 `json:"CPU,omitempty" name:"CPU"` // Peak bandwidth in Mbps. InternetMaxBandwidthOut *uint64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` // Network billing mode. InternetChargeType *string `json:"InternetChargeType,omitempty" name:"InternetChargeType"` // Package sale status. Valid values: AVAILABLE, SOLD_OUT BundleSalesState *string `json:"BundleSalesState,omitempty" name:"BundleSalesState"` // Package type. // Valid values: // <li> GENERAL_BUNDLE: general</li><li> STORAGE_BUNDLE: Storage</li> BundleType *string `json:"BundleType,omitempty" name:"BundleType"` // Package tag. // Valid values: // "ACTIVITY": promotional package // "NORMAL": regular package // "CAREFREE": carefree package BundleDisplayLabel *string `json:"BundleDisplayLabel,omitempty" name:"BundleDisplayLabel"` }
type CcnAttachedInstance ¶
type CcnAttachedInstance struct { // CCN instance ID. CcnId *string `json:"CcnId,omitempty" name:"CcnId"` // CIDR block of associated instance. CidrBlock []*string `json:"CidrBlock,omitempty" name:"CidrBlock"` // Associated instance status: // // • PENDING: applying // • ACTIVE: connected // • EXPIRED: expired // • REJECTED: rejected // • DELETED: deleted // • FAILED: failed (it will be asynchronously unassociated after 2 hours) // • ATTACHING: associating // • DETACHING: unassociating // • DETACHFAILED: failed to unassociate (it will be asynchronously unassociated after 2 hours) State *string `json:"State,omitempty" name:"State"` // Association time. // Note: this field may return null, indicating that no valid values can be obtained. AttachedTime *string `json:"AttachedTime,omitempty" name:"AttachedTime"` // Remarks Description *string `json:"Description,omitempty" name:"Description"` }
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) ApplyInstanceSnapshot ¶
func (c *Client) ApplyInstanceSnapshot(request *ApplyInstanceSnapshotRequest) (response *ApplyInstanceSnapshotResponse, err error)
ApplyInstanceSnapshot This API is used to roll back the system disk snapshot of the specified instance.
<li>Only rollback to the original system disk is supported.</li>
<li>Only snapshots in `NORMAL` status can be used for rollback. To query the status of a snapshot, you can call the `DescribeSnapshots` API and see the `SnapshotState` field in the response.</li>
<li>When a snapshot is rolled back, the status of the instance must be `STOPPED` or `RUNNING`. You can call the `DescribeInstances` API to query the instance status. Instances in `RUNNING` status will be forcibly shut down before snapshot rollback.</li>
error code that may be returned:
FAILEDOPERATION_SNAPSHOTOPERATIONFAILED = "FailedOperation.SnapshotOperationFailed" INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INVALIDPARAMETERVALUE_DISKSIZENOTMATCH = "InvalidParameterValue.DiskSizeNotMatch" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_SNAPSHOTIDMALFORMED = "InvalidParameterValue.SnapshotIdMalformed" OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress" RESOURCENOTFOUND_DISKNOTFOUND = "ResourceNotFound.DiskNotFound" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_SNAPSHOTIDNOTFOUND = "ResourceNotFound.SnapshotIdNotFound" RESOURCENOTFOUND_SNAPSHOTNOTFOUND = "ResourceNotFound.SnapshotNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_DISKBUSY = "UnsupportedOperation.DiskBusy" UNSUPPORTEDOPERATION_DISKLATESTOPERATIONUNFINISHED = "UnsupportedOperation.DiskLatestOperationUnfinished" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_INVALIDSNAPSHOTSTATE = "UnsupportedOperation.InvalidSnapshotState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished" UNSUPPORTEDOPERATION_SNAPSHOTBUSY = "UnsupportedOperation.SnapshotBusy" UNSUPPORTEDOPERATION_SYSTEMBUSY = "UnsupportedOperation.SystemBusy"
func (*Client) ApplyInstanceSnapshotWithContext ¶
func (c *Client) ApplyInstanceSnapshotWithContext(ctx context.Context, request *ApplyInstanceSnapshotRequest) (response *ApplyInstanceSnapshotResponse, err error)
ApplyInstanceSnapshot This API is used to roll back the system disk snapshot of the specified instance.
<li>Only rollback to the original system disk is supported.</li>
<li>Only snapshots in `NORMAL` status can be used for rollback. To query the status of a snapshot, you can call the `DescribeSnapshots` API and see the `SnapshotState` field in the response.</li>
<li>When a snapshot is rolled back, the status of the instance must be `STOPPED` or `RUNNING`. You can call the `DescribeInstances` API to query the instance status. Instances in `RUNNING` status will be forcibly shut down before snapshot rollback.</li>
error code that may be returned:
FAILEDOPERATION_SNAPSHOTOPERATIONFAILED = "FailedOperation.SnapshotOperationFailed" INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INVALIDPARAMETERVALUE_DISKSIZENOTMATCH = "InvalidParameterValue.DiskSizeNotMatch" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_SNAPSHOTIDMALFORMED = "InvalidParameterValue.SnapshotIdMalformed" OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress" RESOURCENOTFOUND_DISKNOTFOUND = "ResourceNotFound.DiskNotFound" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_SNAPSHOTIDNOTFOUND = "ResourceNotFound.SnapshotIdNotFound" RESOURCENOTFOUND_SNAPSHOTNOTFOUND = "ResourceNotFound.SnapshotNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_DISKBUSY = "UnsupportedOperation.DiskBusy" UNSUPPORTEDOPERATION_DISKLATESTOPERATIONUNFINISHED = "UnsupportedOperation.DiskLatestOperationUnfinished" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_INVALIDSNAPSHOTSTATE = "UnsupportedOperation.InvalidSnapshotState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished" UNSUPPORTEDOPERATION_SNAPSHOTBUSY = "UnsupportedOperation.SnapshotBusy" UNSUPPORTEDOPERATION_SYSTEMBUSY = "UnsupportedOperation.SystemBusy"
func (*Client) AssociateInstancesKeyPairs ¶
func (c *Client) AssociateInstancesKeyPairs(request *AssociateInstancesKeyPairsRequest) (response *AssociateInstancesKeyPairsResponse, err error)
AssociateInstancesKeyPairs This API is used to bind a user-specified key pair to an instance.
* Only instances on LINUX_UNIX in [RUNNING, STOPPED] status are supported. Instances in `RUNNING` status will be forcibly shut down before binding.
* If the public key of a key pair is written to the SSH configuration of the instance, you will be able to log in to the instance with the private key of the key pair.
* If the instance is already associated with a key, the old key will become invalid.
* If you currently use a password to log in, you will no longer be able to do so after you associate the instance with a key.
* Batch operations are supported. The maximum number of instances in each request is 100. If instances not available for the operation are selected, you will get an error code.
* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.
error code that may be returned:
FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed" INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_KEYPAIRIDMALFORMED = "InvalidParameterValue.KeyPairIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCENOTFOUND_KEYIDNOTFOUND = "ResourceNotFound.KeyIdNotFound" UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired" UNAUTHORIZEDOPERATION_MFANOTFOUND = "UnauthorizedOperation.MFANotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_KEYPAIRBINDDUPLICATE = "UnsupportedOperation.KeyPairBindDuplicate" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished" UNSUPPORTEDOPERATION_WINDOWSNOTALLOWTOASSOCIATEKEYPAIR = "UnsupportedOperation.WindowsNotAllowToAssociateKeyPair" UNSUPPORTEDOPERATION_WINDOWSNOTSUPPORTKEYPAIR = "UnsupportedOperation.WindowsNotSupportKeyPair"
func (*Client) AssociateInstancesKeyPairsWithContext ¶
func (c *Client) AssociateInstancesKeyPairsWithContext(ctx context.Context, request *AssociateInstancesKeyPairsRequest) (response *AssociateInstancesKeyPairsResponse, err error)
AssociateInstancesKeyPairs This API is used to bind a user-specified key pair to an instance.
* Only instances on LINUX_UNIX in [RUNNING, STOPPED] status are supported. Instances in `RUNNING` status will be forcibly shut down before binding.
* If the public key of a key pair is written to the SSH configuration of the instance, you will be able to log in to the instance with the private key of the key pair.
* If the instance is already associated with a key, the old key will become invalid.
* If you currently use a password to log in, you will no longer be able to do so after you associate the instance with a key.
* Batch operations are supported. The maximum number of instances in each request is 100. If instances not available for the operation are selected, you will get an error code.
* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.
error code that may be returned:
FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed" INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_KEYPAIRIDMALFORMED = "InvalidParameterValue.KeyPairIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCENOTFOUND_KEYIDNOTFOUND = "ResourceNotFound.KeyIdNotFound" UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired" UNAUTHORIZEDOPERATION_MFANOTFOUND = "UnauthorizedOperation.MFANotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_KEYPAIRBINDDUPLICATE = "UnsupportedOperation.KeyPairBindDuplicate" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished" UNSUPPORTEDOPERATION_WINDOWSNOTALLOWTOASSOCIATEKEYPAIR = "UnsupportedOperation.WindowsNotAllowToAssociateKeyPair" UNSUPPORTEDOPERATION_WINDOWSNOTSUPPORTKEYPAIR = "UnsupportedOperation.WindowsNotSupportKeyPair"
func (*Client) AttachCcn ¶
func (c *Client) AttachCcn(request *AttachCcnRequest) (response *AttachCcnResponse, err error)
AttachCcn This API is used to associate a CCN instance.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE_CCNIDMALFORMED = "InvalidParameterValue.CcnIdMalformed" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_ATTACHCCNCONDITIONUNSATISFIED = "UnsupportedOperation.AttachCcnConditionUnsatisfied" UNSUPPORTEDOPERATION_ATTACHCCNFAILED = "UnsupportedOperation.AttachCcnFailed" UNSUPPORTEDOPERATION_CCNALREADYATTACHED = "UnsupportedOperation.CcnAlreadyAttached"
func (*Client) AttachCcnWithContext ¶
func (c *Client) AttachCcnWithContext(ctx context.Context, request *AttachCcnRequest) (response *AttachCcnResponse, err error)
AttachCcn This API is used to associate a CCN instance.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE_CCNIDMALFORMED = "InvalidParameterValue.CcnIdMalformed" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_ATTACHCCNCONDITIONUNSATISFIED = "UnsupportedOperation.AttachCcnConditionUnsatisfied" UNSUPPORTEDOPERATION_ATTACHCCNFAILED = "UnsupportedOperation.AttachCcnFailed" UNSUPPORTEDOPERATION_CCNALREADYATTACHED = "UnsupportedOperation.CcnAlreadyAttached"
func (*Client) AttachDisks ¶
func (c *Client) AttachDisks(request *AttachDisksRequest) (response *AttachDisksResponse, err error)
AttachDisks This API is used to attach one or more cloud disks.
error code that may be returned:
INTERNALERROR_TRADECALLBILLINGGATEWAYFAILED = "InternalError.TradeCallBillingGatewayFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_INVALIDDISKIDMALFORMED = "InvalidParameterValue.InvalidDiskIdMalformed" LIMITEXCEEDED_ATTACHDATADISKQUOTALIMITEXCEEDED = "LimitExceeded.AttachDataDiskQuotaLimitExceeded" OPERATIONDENIED_DISKCREATING = "OperationDenied.DiskCreating" OPERATIONDENIED_DISKOPERATIONINPROGRESS = "OperationDenied.DiskOperationInProgress" OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress" RESOURCENOTFOUND_DISKIDNOTFOUND = "ResourceNotFound.DiskIdNotFound" RESOURCENOTFOUND_DISKNOTFOUND = "ResourceNotFound.DiskNotFound" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNSUPPORTEDOPERATION_DISKLATESTOPERATIONUNFINISHED = "UnsupportedOperation.DiskLatestOperationUnfinished" UNSUPPORTEDOPERATION_INVALIDDISKSTATE = "UnsupportedOperation.InvalidDiskState" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) AttachDisksWithContext ¶
func (c *Client) AttachDisksWithContext(ctx context.Context, request *AttachDisksRequest) (response *AttachDisksResponse, err error)
AttachDisks This API is used to attach one or more cloud disks.
error code that may be returned:
INTERNALERROR_TRADECALLBILLINGGATEWAYFAILED = "InternalError.TradeCallBillingGatewayFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_INVALIDDISKIDMALFORMED = "InvalidParameterValue.InvalidDiskIdMalformed" LIMITEXCEEDED_ATTACHDATADISKQUOTALIMITEXCEEDED = "LimitExceeded.AttachDataDiskQuotaLimitExceeded" OPERATIONDENIED_DISKCREATING = "OperationDenied.DiskCreating" OPERATIONDENIED_DISKOPERATIONINPROGRESS = "OperationDenied.DiskOperationInProgress" OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress" RESOURCENOTFOUND_DISKIDNOTFOUND = "ResourceNotFound.DiskIdNotFound" RESOURCENOTFOUND_DISKNOTFOUND = "ResourceNotFound.DiskNotFound" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNSUPPORTEDOPERATION_DISKLATESTOPERATIONUNFINISHED = "UnsupportedOperation.DiskLatestOperationUnfinished" UNSUPPORTEDOPERATION_INVALIDDISKSTATE = "UnsupportedOperation.InvalidDiskState" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) CreateBlueprint ¶
func (c *Client) CreateBlueprint(request *CreateBlueprintRequest) (response *CreateBlueprintResponse, err error)
CreateBlueprint This API is used to create an image.
error code that may be returned:
FAILEDOPERATION_CREATEBLUEPRINTFAILED = "FailedOperation.CreateBlueprintFailed" FAILEDOPERATION_UNABLETOCREATEBLUEPRINT = "FailedOperation.UnableToCreateBlueprint" INTERNALERROR = "InternalError" INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) CreateBlueprintWithContext ¶
func (c *Client) CreateBlueprintWithContext(ctx context.Context, request *CreateBlueprintRequest) (response *CreateBlueprintResponse, err error)
CreateBlueprint This API is used to create an image.
error code that may be returned:
FAILEDOPERATION_CREATEBLUEPRINTFAILED = "FailedOperation.CreateBlueprintFailed" FAILEDOPERATION_UNABLETOCREATEBLUEPRINT = "FailedOperation.UnableToCreateBlueprint" INTERNALERROR = "InternalError" INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) CreateFirewallRules ¶
func (c *Client) CreateFirewallRules(request *CreateFirewallRulesRequest) (response *CreateFirewallRulesResponse, err error)
CreateFirewallRules This API is used to add a firewall rule on an instance.
* `FirewallVersion` is the firewall version number. Every time you update the firewall rule version, it will be automatically increased by 1 to prevent the updated rule from expiring. If it is left empty, conflicts will not be considered.
In the `FirewallRules` parameter:
* Valid values of the `Protocol` field include `TCP`, `UDP`, `ICMP`, and `ALL`.
* For the `Port` field, you can enter only `ALL`, a single port number, several port numbers separated by commas, or a port range indicated by two port numbers separated by a minus sign. If `Port` is a range, the port number on the left of the minus sign must be smaller than the one on the right. If `Protocol` is not `TCP` or `UDP`, `Port` can only be empty or `ALL`. The length of the `Port` field cannot exceed 64 characters.
* For the `CidrBlock` field, you can enter any string that conforms to the CIDR format standard. Multi-Tenant network isolation rules take precedence over private network rules in the firewall.
* For the `Action` field, you can enter only `ACCEPT` or `DROP`.
* The length of the `FirewallRuleDescription` field cannot exceed 64 characters.
error code that may be returned:
FAILEDOPERATION_FIREWALLRULESOPERATIONFAILED = "FailedOperation.FirewallRulesOperationFailed" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_FIREWALLRULESDUPLICATED = "InvalidParameter.FirewallRulesDuplicated" INVALIDPARAMETER_FIREWALLRULESEXIST = "InvalidParameter.FirewallRulesExist" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_FIREWALLRULEDESCRIPTIONTOOLONG = "InvalidParameterValue.FirewallRuleDescriptionTooLong" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" LIMITEXCEEDED_FIREWALLRULESLIMITEXCEEDED = "LimitExceeded.FirewallRulesLimitExceeded" RESOURCENOTFOUND_FIREWALLNOTFOUND = "ResourceNotFound.FirewallNotFound" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_FIREWALLBUSY = "UnsupportedOperation.FirewallBusy" UNSUPPORTEDOPERATION_FIREWALLVERSIONMISMATCH = "UnsupportedOperation.FirewallVersionMismatch"
func (*Client) CreateFirewallRulesWithContext ¶
func (c *Client) CreateFirewallRulesWithContext(ctx context.Context, request *CreateFirewallRulesRequest) (response *CreateFirewallRulesResponse, err error)
CreateFirewallRules This API is used to add a firewall rule on an instance.
* `FirewallVersion` is the firewall version number. Every time you update the firewall rule version, it will be automatically increased by 1 to prevent the updated rule from expiring. If it is left empty, conflicts will not be considered.
In the `FirewallRules` parameter:
* Valid values of the `Protocol` field include `TCP`, `UDP`, `ICMP`, and `ALL`.
* For the `Port` field, you can enter only `ALL`, a single port number, several port numbers separated by commas, or a port range indicated by two port numbers separated by a minus sign. If `Port` is a range, the port number on the left of the minus sign must be smaller than the one on the right. If `Protocol` is not `TCP` or `UDP`, `Port` can only be empty or `ALL`. The length of the `Port` field cannot exceed 64 characters.
* For the `CidrBlock` field, you can enter any string that conforms to the CIDR format standard. Multi-Tenant network isolation rules take precedence over private network rules in the firewall.
* For the `Action` field, you can enter only `ACCEPT` or `DROP`.
* The length of the `FirewallRuleDescription` field cannot exceed 64 characters.
error code that may be returned:
FAILEDOPERATION_FIREWALLRULESOPERATIONFAILED = "FailedOperation.FirewallRulesOperationFailed" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_FIREWALLRULESDUPLICATED = "InvalidParameter.FirewallRulesDuplicated" INVALIDPARAMETER_FIREWALLRULESEXIST = "InvalidParameter.FirewallRulesExist" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_FIREWALLRULEDESCRIPTIONTOOLONG = "InvalidParameterValue.FirewallRuleDescriptionTooLong" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" LIMITEXCEEDED_FIREWALLRULESLIMITEXCEEDED = "LimitExceeded.FirewallRulesLimitExceeded" RESOURCENOTFOUND_FIREWALLNOTFOUND = "ResourceNotFound.FirewallNotFound" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_FIREWALLBUSY = "UnsupportedOperation.FirewallBusy" UNSUPPORTEDOPERATION_FIREWALLVERSIONMISMATCH = "UnsupportedOperation.FirewallVersionMismatch"
func (*Client) CreateInstanceSnapshot ¶
func (c *Client) CreateInstanceSnapshot(request *CreateInstanceSnapshotRequest) (response *CreateInstanceSnapshotResponse, err error)
CreateInstanceSnapshot This API is used to create a system disk snapshot of the specified instance.
error code that may be returned:
INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_GETSNAPSHOTALLOCQUOTALOCKERROR = "InternalError.GetSnapshotAllocQuotaLockError" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_SNAPSHOTNAMETOOLONG = "InvalidParameterValue.SnapshotNameTooLong" LIMITEXCEEDED_SNAPSHOTQUOTALIMITEXCEEDED = "LimitExceeded.SnapshotQuotaLimitExceeded" OPERATIONDENIED_OPERATIONDENIEDCREATESNAPSHOTFORSTORAGEBUNDLE = "OperationDenied.OperationDeniedCreateSnapshotForStorageBundle" RESOURCENOTFOUND_BLUEPRINTIDNOTFOUND = "ResourceNotFound.BlueprintIdNotFound" RESOURCENOTFOUND_DISKNOTFOUND = "ResourceNotFound.DiskNotFound" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_DISKBUSY = "UnsupportedOperation.DiskBusy" UNSUPPORTEDOPERATION_DISKLATESTOPERATIONUNFINISHED = "UnsupportedOperation.DiskLatestOperationUnfinished" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) CreateInstanceSnapshotWithContext ¶
func (c *Client) CreateInstanceSnapshotWithContext(ctx context.Context, request *CreateInstanceSnapshotRequest) (response *CreateInstanceSnapshotResponse, err error)
CreateInstanceSnapshot This API is used to create a system disk snapshot of the specified instance.
error code that may be returned:
INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_GETSNAPSHOTALLOCQUOTALOCKERROR = "InternalError.GetSnapshotAllocQuotaLockError" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_SNAPSHOTNAMETOOLONG = "InvalidParameterValue.SnapshotNameTooLong" LIMITEXCEEDED_SNAPSHOTQUOTALIMITEXCEEDED = "LimitExceeded.SnapshotQuotaLimitExceeded" OPERATIONDENIED_OPERATIONDENIEDCREATESNAPSHOTFORSTORAGEBUNDLE = "OperationDenied.OperationDeniedCreateSnapshotForStorageBundle" RESOURCENOTFOUND_BLUEPRINTIDNOTFOUND = "ResourceNotFound.BlueprintIdNotFound" RESOURCENOTFOUND_DISKNOTFOUND = "ResourceNotFound.DiskNotFound" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_DISKBUSY = "UnsupportedOperation.DiskBusy" UNSUPPORTEDOPERATION_DISKLATESTOPERATIONUNFINISHED = "UnsupportedOperation.DiskLatestOperationUnfinished" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) CreateInstances ¶
func (c *Client) CreateInstances(request *CreateInstancesRequest) (response *CreateInstancesResponse, err error)
CreateInstances This API is used to create one or more Lighthouse instances.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_UNABLETOCREATEINSTANCES = "FailedOperation.UnableToCreateInstances" INTERNALERROR = "InternalError" INTERNALERROR_INVALIDACTIONNOTFOUND = "InternalError.InvalidActionNotFound" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_BUNDLEANDBLUEPRINTNOTMATCH = "InvalidParameter.BundleAndBlueprintNotMatch" INVALIDPARAMETER_BUNDLEIDNOTFOUND = "InvalidParameter.BundleIdNotFound" INVALIDPARAMETERVALUE_BLUEPRINTID = "InvalidParameterValue.BlueprintId" INVALIDPARAMETERVALUE_BLUEPRINTIDMALFORMED = "InvalidParameterValue.BlueprintIdMalformed" INVALIDPARAMETERVALUE_BUNDLEANDBLUEPRINTNOTMATCH = "InvalidParameterValue.BundleAndBlueprintNotMatch" INVALIDPARAMETERVALUE_INSTANCENAMETOOLONG = "InvalidParameterValue.InstanceNameTooLong" INVALIDPARAMETERVALUE_INVALIDBLUEPRINTID = "InvalidParameterValue.InvalidBlueprintId" INVALIDPARAMETERVALUE_INVALIDBUNDLE = "InvalidParameterValue.InvalidBundle" INVALIDPARAMETERVALUE_INVALIDPARAMETERCOMBINATION = "InvalidParameterValue.InvalidParameterCombination" INVALIDPARAMETERVALUE_INVALIDPASSWORD = "InvalidParameterValue.InvalidPassword" INVALIDPARAMETERVALUE_INVALIDZONE = "InvalidParameterValue.InvalidZone" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" INVALIDPARAMETERVALUE_ZONEINVALID = "InvalidParameterValue.ZoneInvalid" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_INSTANCEQUOTALIMITEXCEEDED = "LimitExceeded.InstanceQuotaLimitExceeded" RESOURCENOTFOUND_BLUEPRINTIDNOTFOUND = "ResourceNotFound.BlueprintIdNotFound" RESOURCENOTFOUND_BLUEPRINTNOTFOUND = "ResourceNotFound.BlueprintNotFound" RESOURCEUNAVAILABLE_BUNDLEUNAVAILABLE = "ResourceUnavailable.BundleUnavailable" RESOURCESSOLDOUT_PURCHASESOURCEHASNOBUNDLECONFIGS = "ResourcesSoldOut.PurchaseSourceHasNoBundleConfigs" RESOURCESSOLDOUT_ZONESHASNOBUNDLECONFIGS = "ResourcesSoldOut.ZonesHasNoBundleConfigs" UNSUPPORTEDOPERATION_INSTANCELINUXUNIXCREATINGNOTSUPPORTPASSWORD = "UnsupportedOperation.InstanceLinuxUnixCreatingNotSupportPassword"
func (*Client) CreateInstancesWithContext ¶
func (c *Client) CreateInstancesWithContext(ctx context.Context, request *CreateInstancesRequest) (response *CreateInstancesResponse, err error)
CreateInstances This API is used to create one or more Lighthouse instances.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_UNABLETOCREATEINSTANCES = "FailedOperation.UnableToCreateInstances" INTERNALERROR = "InternalError" INTERNALERROR_INVALIDACTIONNOTFOUND = "InternalError.InvalidActionNotFound" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_BUNDLEANDBLUEPRINTNOTMATCH = "InvalidParameter.BundleAndBlueprintNotMatch" INVALIDPARAMETER_BUNDLEIDNOTFOUND = "InvalidParameter.BundleIdNotFound" INVALIDPARAMETERVALUE_BLUEPRINTID = "InvalidParameterValue.BlueprintId" INVALIDPARAMETERVALUE_BLUEPRINTIDMALFORMED = "InvalidParameterValue.BlueprintIdMalformed" INVALIDPARAMETERVALUE_BUNDLEANDBLUEPRINTNOTMATCH = "InvalidParameterValue.BundleAndBlueprintNotMatch" INVALIDPARAMETERVALUE_INSTANCENAMETOOLONG = "InvalidParameterValue.InstanceNameTooLong" INVALIDPARAMETERVALUE_INVALIDBLUEPRINTID = "InvalidParameterValue.InvalidBlueprintId" INVALIDPARAMETERVALUE_INVALIDBUNDLE = "InvalidParameterValue.InvalidBundle" INVALIDPARAMETERVALUE_INVALIDPARAMETERCOMBINATION = "InvalidParameterValue.InvalidParameterCombination" INVALIDPARAMETERVALUE_INVALIDPASSWORD = "InvalidParameterValue.InvalidPassword" INVALIDPARAMETERVALUE_INVALIDZONE = "InvalidParameterValue.InvalidZone" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" INVALIDPARAMETERVALUE_ZONEINVALID = "InvalidParameterValue.ZoneInvalid" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_INSTANCEQUOTALIMITEXCEEDED = "LimitExceeded.InstanceQuotaLimitExceeded" RESOURCENOTFOUND_BLUEPRINTIDNOTFOUND = "ResourceNotFound.BlueprintIdNotFound" RESOURCENOTFOUND_BLUEPRINTNOTFOUND = "ResourceNotFound.BlueprintNotFound" RESOURCEUNAVAILABLE_BUNDLEUNAVAILABLE = "ResourceUnavailable.BundleUnavailable" RESOURCESSOLDOUT_PURCHASESOURCEHASNOBUNDLECONFIGS = "ResourcesSoldOut.PurchaseSourceHasNoBundleConfigs" RESOURCESSOLDOUT_ZONESHASNOBUNDLECONFIGS = "ResourcesSoldOut.ZonesHasNoBundleConfigs" UNSUPPORTEDOPERATION_INSTANCELINUXUNIXCREATINGNOTSUPPORTPASSWORD = "UnsupportedOperation.InstanceLinuxUnixCreatingNotSupportPassword"
func (*Client) CreateKeyPair ¶
func (c *Client) CreateKeyPair(request *CreateKeyPairRequest) (response *CreateKeyPairResponse, err error)
CreateKeyPair This API is used to create a key pair.
error code that may be returned:
FAILEDOPERATION_CREATEKEYPAIRFAILED = "FailedOperation.CreateKeyPairFailed" INVALIDPARAMETERVALUE_DUPLICATEPARAMETERVALUE = "InvalidParameterValue.DuplicateParameterValue" INVALIDPARAMETERVALUE_INVALIDKEYPAIRNAMEEMPTY = "InvalidParameterValue.InvalidKeyPairNameEmpty" INVALIDPARAMETERVALUE_INVALIDKEYPAIRNAMEINCLUDEILLEGALCHAR = "InvalidParameterValue.InvalidKeyPairNameIncludeIllegalChar" INVALIDPARAMETERVALUE_INVALIDKEYPAIRNAMETOOLONG = "InvalidParameterValue.InvalidKeyPairNameTooLong" LIMITEXCEEDED_KEYPAIRLIMITEXCEEDED = "LimitExceeded.KeyPairLimitExceeded" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) CreateKeyPairWithContext ¶
func (c *Client) CreateKeyPairWithContext(ctx context.Context, request *CreateKeyPairRequest) (response *CreateKeyPairResponse, err error)
CreateKeyPair This API is used to create a key pair.
error code that may be returned:
FAILEDOPERATION_CREATEKEYPAIRFAILED = "FailedOperation.CreateKeyPairFailed" INVALIDPARAMETERVALUE_DUPLICATEPARAMETERVALUE = "InvalidParameterValue.DuplicateParameterValue" INVALIDPARAMETERVALUE_INVALIDKEYPAIRNAMEEMPTY = "InvalidParameterValue.InvalidKeyPairNameEmpty" INVALIDPARAMETERVALUE_INVALIDKEYPAIRNAMEINCLUDEILLEGALCHAR = "InvalidParameterValue.InvalidKeyPairNameIncludeIllegalChar" INVALIDPARAMETERVALUE_INVALIDKEYPAIRNAMETOOLONG = "InvalidParameterValue.InvalidKeyPairNameTooLong" LIMITEXCEEDED_KEYPAIRLIMITEXCEEDED = "LimitExceeded.KeyPairLimitExceeded" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DeleteBlueprints ¶
func (c *Client) DeleteBlueprints(request *DeleteBlueprintsRequest) (response *DeleteBlueprintsResponse, err error)
DeleteBlueprints This API is used to delete an image.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_TRADECALLBILLINGGATEWAYFAILED = "InternalError.TradeCallBillingGatewayFailed" INVALIDPARAMETERVALUE_BLUEPRINTIDMALFORMED = "InvalidParameterValue.BlueprintIdMalformed" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_BLUEPRINTIDNOTFOUND = "ResourceNotFound.BlueprintIdNotFound" RESOURCENOTFOUND_BLUEPRINTNOTFOUND = "ResourceNotFound.BlueprintNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_BLUEPRINTCURSTATEINVALID = "UnsupportedOperation.BlueprintCurStateInvalid" UNSUPPORTEDOPERATION_BLUEPRINTOCCUPIED = "UnsupportedOperation.BlueprintOccupied" UNSUPPORTEDOPERATION_NOTSUPPORTSHAREDBLUEPRINT = "UnsupportedOperation.NotSupportSharedBlueprint" UNSUPPORTEDOPERATION_POSTDESTROYRESOURCEFAILED = "UnsupportedOperation.PostDestroyResourceFailed"
func (*Client) DeleteBlueprintsWithContext ¶
func (c *Client) DeleteBlueprintsWithContext(ctx context.Context, request *DeleteBlueprintsRequest) (response *DeleteBlueprintsResponse, err error)
DeleteBlueprints This API is used to delete an image.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_TRADECALLBILLINGGATEWAYFAILED = "InternalError.TradeCallBillingGatewayFailed" INVALIDPARAMETERVALUE_BLUEPRINTIDMALFORMED = "InvalidParameterValue.BlueprintIdMalformed" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_BLUEPRINTIDNOTFOUND = "ResourceNotFound.BlueprintIdNotFound" RESOURCENOTFOUND_BLUEPRINTNOTFOUND = "ResourceNotFound.BlueprintNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_BLUEPRINTCURSTATEINVALID = "UnsupportedOperation.BlueprintCurStateInvalid" UNSUPPORTEDOPERATION_BLUEPRINTOCCUPIED = "UnsupportedOperation.BlueprintOccupied" UNSUPPORTEDOPERATION_NOTSUPPORTSHAREDBLUEPRINT = "UnsupportedOperation.NotSupportSharedBlueprint" UNSUPPORTEDOPERATION_POSTDESTROYRESOURCEFAILED = "UnsupportedOperation.PostDestroyResourceFailed"
func (*Client) DeleteFirewallRules ¶
func (c *Client) DeleteFirewallRules(request *DeleteFirewallRulesRequest) (response *DeleteFirewallRulesResponse, err error)
DeleteFirewallRules This API is used to delete a firewall rule of an instance.
* `FirewallVersion` is used to specify the version of the firewall to be manipulated. If the `FirewallVersion` value passed in is not equal to the current latest version of the firewall, a failure will be returned. If `FirewallVersion` is not passed in, the specified rule will be deleted directly.
In the `FirewallRules` parameter:
* Valid values of the `Protocol` field include `TCP`, `UDP`, `ICMP`, and `ALL`.
* For the `Port` field, you can enter only `ALL`, a single port number, several port numbers separated by commas, or a port range indicated by two port numbers separated by a minus sign. If `Port` is a range, the port number on the left of the minus sign must be smaller than the one on the right. If `Protocol` is not `TCP` or `UDP`, `Port` can only be empty or `ALL`. The length of the `Port` field cannot exceed 64 characters.
* For the `CidrBlock` field, you can enter any string that conforms to the CIDR format standard. Multi-Tenant network isolation rules take precedence over private network rules in the firewall.
* For the `Action` field, you can enter only `ACCEPT` or `DROP`.
* The length of the `FirewallRuleDescription` field cannot exceed 64 characters.
error code that may be returned:
FAILEDOPERATION_FIREWALLRULESOPERATIONFAILED = "FailedOperation.FirewallRulesOperationFailed" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_FIREWALLRULESDUPLICATED = "InvalidParameter.FirewallRulesDuplicated" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_FIREWALLRULEDESCRIPTIONTOOLONG = "InvalidParameterValue.FirewallRuleDescriptionTooLong" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" RESOURCENOTFOUND_FIREWALLNOTFOUND = "ResourceNotFound.FirewallNotFound" RESOURCENOTFOUND_FIREWALLRULESNOTFOUND = "ResourceNotFound.FirewallRulesNotFound" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_FIREWALLBUSY = "UnsupportedOperation.FirewallBusy" UNSUPPORTEDOPERATION_FIREWALLVERSIONMISMATCH = "UnsupportedOperation.FirewallVersionMismatch"
func (*Client) DeleteFirewallRulesWithContext ¶
func (c *Client) DeleteFirewallRulesWithContext(ctx context.Context, request *DeleteFirewallRulesRequest) (response *DeleteFirewallRulesResponse, err error)
DeleteFirewallRules This API is used to delete a firewall rule of an instance.
* `FirewallVersion` is used to specify the version of the firewall to be manipulated. If the `FirewallVersion` value passed in is not equal to the current latest version of the firewall, a failure will be returned. If `FirewallVersion` is not passed in, the specified rule will be deleted directly.
In the `FirewallRules` parameter:
* Valid values of the `Protocol` field include `TCP`, `UDP`, `ICMP`, and `ALL`.
* For the `Port` field, you can enter only `ALL`, a single port number, several port numbers separated by commas, or a port range indicated by two port numbers separated by a minus sign. If `Port` is a range, the port number on the left of the minus sign must be smaller than the one on the right. If `Protocol` is not `TCP` or `UDP`, `Port` can only be empty or `ALL`. The length of the `Port` field cannot exceed 64 characters.
* For the `CidrBlock` field, you can enter any string that conforms to the CIDR format standard. Multi-Tenant network isolation rules take precedence over private network rules in the firewall.
* For the `Action` field, you can enter only `ACCEPT` or `DROP`.
* The length of the `FirewallRuleDescription` field cannot exceed 64 characters.
error code that may be returned:
FAILEDOPERATION_FIREWALLRULESOPERATIONFAILED = "FailedOperation.FirewallRulesOperationFailed" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_FIREWALLRULESDUPLICATED = "InvalidParameter.FirewallRulesDuplicated" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_FIREWALLRULEDESCRIPTIONTOOLONG = "InvalidParameterValue.FirewallRuleDescriptionTooLong" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" RESOURCENOTFOUND_FIREWALLNOTFOUND = "ResourceNotFound.FirewallNotFound" RESOURCENOTFOUND_FIREWALLRULESNOTFOUND = "ResourceNotFound.FirewallRulesNotFound" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_FIREWALLBUSY = "UnsupportedOperation.FirewallBusy" UNSUPPORTEDOPERATION_FIREWALLVERSIONMISMATCH = "UnsupportedOperation.FirewallVersionMismatch"
func (*Client) DeleteKeyPairs ¶
func (c *Client) DeleteKeyPairs(request *DeleteKeyPairsRequest) (response *DeleteKeyPairsResponse, err error)
DeleteKeyPairs This API is used to delete a key pair.
error code that may be returned:
FAILEDOPERATION_DELETEKEYPAIRFAILED = "FailedOperation.DeleteKeyPairFailed" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_KEYPAIRIDMALFORMED = "InvalidParameterValue.KeyPairIdMalformed" RESOURCEINUSE_KEYPAIRINUSE = "ResourceInUse.KeyPairInUse" RESOURCENOTFOUND_KEYIDNOTFOUND = "ResourceNotFound.KeyIdNotFound" UNSUPPORTEDOPERATION_KEYPAIRBINDTOBLUEPRINTS = "UnsupportedOperation.KeyPairBindToBlueprints"
func (*Client) DeleteKeyPairsWithContext ¶
func (c *Client) DeleteKeyPairsWithContext(ctx context.Context, request *DeleteKeyPairsRequest) (response *DeleteKeyPairsResponse, err error)
DeleteKeyPairs This API is used to delete a key pair.
error code that may be returned:
FAILEDOPERATION_DELETEKEYPAIRFAILED = "FailedOperation.DeleteKeyPairFailed" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_KEYPAIRIDMALFORMED = "InvalidParameterValue.KeyPairIdMalformed" RESOURCEINUSE_KEYPAIRINUSE = "ResourceInUse.KeyPairInUse" RESOURCENOTFOUND_KEYIDNOTFOUND = "ResourceNotFound.KeyIdNotFound" UNSUPPORTEDOPERATION_KEYPAIRBINDTOBLUEPRINTS = "UnsupportedOperation.KeyPairBindToBlueprints"
func (*Client) DeleteSnapshots ¶
func (c *Client) DeleteSnapshots(request *DeleteSnapshotsRequest) (response *DeleteSnapshotsResponse, err error)
DeleteSnapshots This API is used to delete a snapshot.
The snapshot must be in `NORMAL` status. To query the status of a snapshot, you can call the `DescribeSnapshots` API and see the `SnapshotState` field in the response.
error code that may be returned:
FAILEDOPERATION_SNAPSHOTOPERATIONFAILED = "FailedOperation.SnapshotOperationFailed" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_SNAPSHOTIDMALFORMED = "InvalidParameterValue.SnapshotIdMalformed" RESOURCENOTFOUND_SNAPSHOTIDNOTFOUND = "ResourceNotFound.SnapshotIdNotFound" RESOURCENOTFOUND_SNAPSHOTNOTFOUND = "ResourceNotFound.SnapshotNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDSNAPSHOTSTATE = "UnsupportedOperation.InvalidSnapshotState" UNSUPPORTEDOPERATION_SNAPSHOTBUSY = "UnsupportedOperation.SnapshotBusy"
func (*Client) DeleteSnapshotsWithContext ¶
func (c *Client) DeleteSnapshotsWithContext(ctx context.Context, request *DeleteSnapshotsRequest) (response *DeleteSnapshotsResponse, err error)
DeleteSnapshots This API is used to delete a snapshot.
The snapshot must be in `NORMAL` status. To query the status of a snapshot, you can call the `DescribeSnapshots` API and see the `SnapshotState` field in the response.
error code that may be returned:
FAILEDOPERATION_SNAPSHOTOPERATIONFAILED = "FailedOperation.SnapshotOperationFailed" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_SNAPSHOTIDMALFORMED = "InvalidParameterValue.SnapshotIdMalformed" RESOURCENOTFOUND_SNAPSHOTIDNOTFOUND = "ResourceNotFound.SnapshotIdNotFound" RESOURCENOTFOUND_SNAPSHOTNOTFOUND = "ResourceNotFound.SnapshotNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDSNAPSHOTSTATE = "UnsupportedOperation.InvalidSnapshotState" UNSUPPORTEDOPERATION_SNAPSHOTBUSY = "UnsupportedOperation.SnapshotBusy"
func (*Client) DescribeAllScenes ¶
func (c *Client) DescribeAllScenes(request *DescribeAllScenesRequest) (response *DescribeAllScenesResponse, err error)
DescribeAllScenes This API is used to query the list of scenes in all regions.
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) DescribeAllScenesWithContext ¶
func (c *Client) DescribeAllScenesWithContext(ctx context.Context, request *DescribeAllScenesRequest) (response *DescribeAllScenesResponse, err error)
DescribeAllScenes This API is used to query the list of scenes in all regions.
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) DescribeBlueprintInstances ¶
func (c *Client) DescribeBlueprintInstances(request *DescribeBlueprintInstancesRequest) (response *DescribeBlueprintInstancesResponse, err error)
DescribeBlueprintInstances This API is used to query the information of an image instance.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeBlueprintInstancesWithContext ¶
func (c *Client) DescribeBlueprintInstancesWithContext(ctx context.Context, request *DescribeBlueprintInstancesRequest) (response *DescribeBlueprintInstancesResponse, err error)
DescribeBlueprintInstances This API is used to query the information of an image instance.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeBlueprints ¶
func (c *Client) DescribeBlueprints(request *DescribeBlueprintsRequest) (response *DescribeBlueprintsResponse, err error)
DescribeBlueprints This API is used to query the information of an image.
error code that may be returned:
INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded" INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey" INVALIDPARAMETER_INVALIDFILTERINVALIDNAMENOTSTR = "InvalidParameter.InvalidFilterInvalidNameNotStr" INVALIDPARAMETER_INVALIDFILTERNOTDICT = "InvalidParameter.InvalidFilterNotDict" INVALIDPARAMETER_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameter.InvalidFilterNotSupportedName" INVALIDPARAMETER_PARAMETERCONFLICT = "InvalidParameter.ParameterConflict" INVALIDPARAMETERVALUE_BLUEPRINTIDMALFORMED = "InvalidParameterValue.BlueprintIdMalformed" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INVALIDBLUEPRINTPLATFORMTYPE = "InvalidParameterValue.InvalidBlueprintPlatformType" INVALIDPARAMETERVALUE_INVALIDBLUEPRINTSTATE = "InvalidParameterValue.InvalidBlueprintState" INVALIDPARAMETERVALUE_INVALIDBLUEPRINTTYPE = "InvalidParameterValue.InvalidBlueprintType" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeBlueprintsWithContext ¶
func (c *Client) DescribeBlueprintsWithContext(ctx context.Context, request *DescribeBlueprintsRequest) (response *DescribeBlueprintsResponse, err error)
DescribeBlueprints This API is used to query the information of an image.
error code that may be returned:
INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded" INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey" INVALIDPARAMETER_INVALIDFILTERINVALIDNAMENOTSTR = "InvalidParameter.InvalidFilterInvalidNameNotStr" INVALIDPARAMETER_INVALIDFILTERNOTDICT = "InvalidParameter.InvalidFilterNotDict" INVALIDPARAMETER_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameter.InvalidFilterNotSupportedName" INVALIDPARAMETER_PARAMETERCONFLICT = "InvalidParameter.ParameterConflict" INVALIDPARAMETERVALUE_BLUEPRINTIDMALFORMED = "InvalidParameterValue.BlueprintIdMalformed" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INVALIDBLUEPRINTPLATFORMTYPE = "InvalidParameterValue.InvalidBlueprintPlatformType" INVALIDPARAMETERVALUE_INVALIDBLUEPRINTSTATE = "InvalidParameterValue.InvalidBlueprintState" INVALIDPARAMETERVALUE_INVALIDBLUEPRINTTYPE = "InvalidParameterValue.InvalidBlueprintType" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeBundleDiscount ¶
func (c *Client) DescribeBundleDiscount(request *DescribeBundleDiscountRequest) (response *DescribeBundleDiscountResponse, err error)
DescribeBundleDiscount This API is used to query the discount information of a package.
error code that may be returned:
INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed" INVALIDPARAMETER_BUNDLEIDNOTFOUND = "InvalidParameter.BundleIdNotFound"
func (*Client) DescribeBundleDiscountWithContext ¶
func (c *Client) DescribeBundleDiscountWithContext(ctx context.Context, request *DescribeBundleDiscountRequest) (response *DescribeBundleDiscountResponse, err error)
DescribeBundleDiscount This API is used to query the discount information of a package.
error code that may be returned:
INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed" INVALIDPARAMETER_BUNDLEIDNOTFOUND = "InvalidParameter.BundleIdNotFound"
func (*Client) DescribeBundles ¶
func (c *Client) DescribeBundles(request *DescribeBundlesRequest) (response *DescribeBundlesResponse, err error)
DescribeBundles This API is used to query the information of a package.
error code that may be returned:
INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed" INVALIDPARAMETER_BUNDLEIDNOTFOUND = "InvalidParameter.BundleIdNotFound" INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded" INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey" INVALIDPARAMETER_INVALIDFILTERINVALIDNAMENOTSTR = "InvalidParameter.InvalidFilterInvalidNameNotStr" INVALIDPARAMETER_INVALIDFILTERNOTDICT = "InvalidParameter.InvalidFilterNotDict" INVALIDPARAMETER_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameter.InvalidFilterNotSupportedName" INVALIDPARAMETER_PARAMETERCONFLICT = "InvalidParameter.ParameterConflict" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INVALIDBLUEPRINTPLATFORMTYPE = "InvalidParameterValue.InvalidBlueprintPlatformType" INVALIDPARAMETERVALUE_INVALIDCONSOLEDISPLAYTYPES = "InvalidParameterValue.InvalidConsoleDisplayTypes" INVALIDPARAMETERVALUE_INVALIDZONE = "InvalidParameterValue.InvalidZone" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" INVALIDPARAMETERVALUE_ZONEINVALID = "InvalidParameterValue.ZoneInvalid"
func (*Client) DescribeBundlesWithContext ¶
func (c *Client) DescribeBundlesWithContext(ctx context.Context, request *DescribeBundlesRequest) (response *DescribeBundlesResponse, err error)
DescribeBundles This API is used to query the information of a package.
error code that may be returned:
INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed" INVALIDPARAMETER_BUNDLEIDNOTFOUND = "InvalidParameter.BundleIdNotFound" INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded" INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey" INVALIDPARAMETER_INVALIDFILTERINVALIDNAMENOTSTR = "InvalidParameter.InvalidFilterInvalidNameNotStr" INVALIDPARAMETER_INVALIDFILTERNOTDICT = "InvalidParameter.InvalidFilterNotDict" INVALIDPARAMETER_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameter.InvalidFilterNotSupportedName" INVALIDPARAMETER_PARAMETERCONFLICT = "InvalidParameter.ParameterConflict" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INVALIDBLUEPRINTPLATFORMTYPE = "InvalidParameterValue.InvalidBlueprintPlatformType" INVALIDPARAMETERVALUE_INVALIDCONSOLEDISPLAYTYPES = "InvalidParameterValue.InvalidConsoleDisplayTypes" INVALIDPARAMETERVALUE_INVALIDZONE = "InvalidParameterValue.InvalidZone" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" INVALIDPARAMETERVALUE_ZONEINVALID = "InvalidParameterValue.ZoneInvalid"
func (*Client) DescribeCcnAttachedInstances ¶
func (c *Client) DescribeCcnAttachedInstances(request *DescribeCcnAttachedInstancesRequest) (response *DescribeCcnAttachedInstancesResponse, err error)
DescribeCcnAttachedInstances This API is used to query the information of instances associated with CCN.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETERVALUE_CCNIDMALFORMED = "InvalidParameterValue.CcnIdMalformed" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_DESCRIBECCNATTACHEDINSTANCESFAILED = "UnsupportedOperation.DescribeCcnAttachedInstancesFailed"
func (*Client) DescribeCcnAttachedInstancesWithContext ¶
func (c *Client) DescribeCcnAttachedInstancesWithContext(ctx context.Context, request *DescribeCcnAttachedInstancesRequest) (response *DescribeCcnAttachedInstancesResponse, err error)
DescribeCcnAttachedInstances This API is used to query the information of instances associated with CCN.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETERVALUE_CCNIDMALFORMED = "InvalidParameterValue.CcnIdMalformed" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_DESCRIBECCNATTACHEDINSTANCESFAILED = "UnsupportedOperation.DescribeCcnAttachedInstancesFailed"
func (*Client) DescribeDiskConfigs ¶
func (c *Client) DescribeDiskConfigs(request *DescribeDiskConfigsRequest) (response *DescribeDiskConfigsResponse, err error)
DescribeDiskConfigs This API is used to query the cloud disk configuration.
error code that may be returned:
INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" INVALIDPARAMETERVALUE_INVALIDZONE = "InvalidParameterValue.InvalidZone" INVALIDPARAMETERVALUE_ZONEINVALID = "InvalidParameterValue.ZoneInvalid" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeDiskConfigsWithContext ¶
func (c *Client) DescribeDiskConfigsWithContext(ctx context.Context, request *DescribeDiskConfigsRequest) (response *DescribeDiskConfigsResponse, err error)
DescribeDiskConfigs This API is used to query the cloud disk configuration.
error code that may be returned:
INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" INVALIDPARAMETERVALUE_INVALIDZONE = "InvalidParameterValue.InvalidZone" INVALIDPARAMETERVALUE_ZONEINVALID = "InvalidParameterValue.ZoneInvalid" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeDiskDiscount ¶
func (c *Client) DescribeDiskDiscount(request *DescribeDiskDiscountRequest) (response *DescribeDiskDiscountResponse, err error)
DescribeDiskDiscount This API is used to query the discount information of a cloud disk.
error code that may be returned:
INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeDiskDiscountWithContext ¶
func (c *Client) DescribeDiskDiscountWithContext(ctx context.Context, request *DescribeDiskDiscountRequest) (response *DescribeDiskDiscountResponse, err error)
DescribeDiskDiscount This API is used to query the discount information of a cloud disk.
error code that may be returned:
INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeDisks ¶
func (c *Client) DescribeDisks(request *DescribeDisksRequest) (response *DescribeDisksResponse, err error)
DescribeDisks This API is used to query the information of one or more cloud disks.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded" INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey" INVALIDPARAMETER_PARAMETERCONFLICT = "InvalidParameter.ParameterConflict" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DISKNAMETOOLONG = "InvalidParameterValue.DiskNameTooLong" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_INVALIDDISKIDMALFORMED = "InvalidParameterValue.InvalidDiskIdMalformed" INVALIDPARAMETERVALUE_INVALIDZONE = "InvalidParameterValue.InvalidZone" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" INVALIDPARAMETERVALUE_ZONEINVALID = "InvalidParameterValue.ZoneInvalid" RESOURCENOTFOUND_DISKIDNOTFOUND = "ResourceNotFound.DiskIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeDisksDeniedActions ¶
func (c *Client) DescribeDisksDeniedActions(request *DescribeDisksDeniedActionsRequest) (response *DescribeDisksDeniedActionsResponse, err error)
DescribeDisksDeniedActions This API is used to query the list of operation limits of one or more cloud disks.
error code that may be returned:
INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INVALIDPARAMETERVALUE_INVALIDDISKIDMALFORMED = "InvalidParameterValue.InvalidDiskIdMalformed" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeDisksDeniedActionsWithContext ¶
func (c *Client) DescribeDisksDeniedActionsWithContext(ctx context.Context, request *DescribeDisksDeniedActionsRequest) (response *DescribeDisksDeniedActionsResponse, err error)
DescribeDisksDeniedActions This API is used to query the list of operation limits of one or more cloud disks.
error code that may be returned:
INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INVALIDPARAMETERVALUE_INVALIDDISKIDMALFORMED = "InvalidParameterValue.InvalidDiskIdMalformed" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeDisksReturnable ¶
func (c *Client) DescribeDisksReturnable(request *DescribeDisksReturnableRequest) (response *DescribeDisksReturnableResponse, err error)
DescribeDisksReturnable This API is used to query whether the specified cloud disk can be returned.
error code that may be returned:
INTERNALERROR_DESCRIBEDISKSRETURNABLEERROR = "InternalError.DescribeDisksReturnableError" INVALIDPARAMETERVALUE_INVALIDDISKIDMALFORMED = "InvalidParameterValue.InvalidDiskIdMalformed" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeDisksReturnableWithContext ¶
func (c *Client) DescribeDisksReturnableWithContext(ctx context.Context, request *DescribeDisksReturnableRequest) (response *DescribeDisksReturnableResponse, err error)
DescribeDisksReturnable This API is used to query whether the specified cloud disk can be returned.
error code that may be returned:
INTERNALERROR_DESCRIBEDISKSRETURNABLEERROR = "InternalError.DescribeDisksReturnableError" INVALIDPARAMETERVALUE_INVALIDDISKIDMALFORMED = "InvalidParameterValue.InvalidDiskIdMalformed" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeDisksWithContext ¶
func (c *Client) DescribeDisksWithContext(ctx context.Context, request *DescribeDisksRequest) (response *DescribeDisksResponse, err error)
DescribeDisks This API is used to query the information of one or more cloud disks.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded" INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey" INVALIDPARAMETER_PARAMETERCONFLICT = "InvalidParameter.ParameterConflict" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DISKNAMETOOLONG = "InvalidParameterValue.DiskNameTooLong" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_INVALIDDISKIDMALFORMED = "InvalidParameterValue.InvalidDiskIdMalformed" INVALIDPARAMETERVALUE_INVALIDZONE = "InvalidParameterValue.InvalidZone" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" INVALIDPARAMETERVALUE_ZONEINVALID = "InvalidParameterValue.ZoneInvalid" RESOURCENOTFOUND_DISKIDNOTFOUND = "ResourceNotFound.DiskIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeFirewallRules ¶
func (c *Client) DescribeFirewallRules(request *DescribeFirewallRulesRequest) (response *DescribeFirewallRulesResponse, err error)
DescribeFirewallRules This API is used to query the firewall rules of an instance.
error code that may be returned:
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" RESOURCENOTFOUND_FIREWALLNOTFOUND = "ResourceNotFound.FirewallNotFound" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeFirewallRulesTemplate ¶
func (c *Client) DescribeFirewallRulesTemplate(request *DescribeFirewallRulesTemplateRequest) (response *DescribeFirewallRulesTemplateResponse, err error)
DescribeFirewallRulesTemplate This API is used to query a firewall rule template.
error code that may be returned:
UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeFirewallRulesTemplateWithContext ¶
func (c *Client) DescribeFirewallRulesTemplateWithContext(ctx context.Context, request *DescribeFirewallRulesTemplateRequest) (response *DescribeFirewallRulesTemplateResponse, err error)
DescribeFirewallRulesTemplate This API is used to query a firewall rule template.
error code that may be returned:
UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeFirewallRulesWithContext ¶
func (c *Client) DescribeFirewallRulesWithContext(ctx context.Context, request *DescribeFirewallRulesRequest) (response *DescribeFirewallRulesResponse, err error)
DescribeFirewallRules This API is used to query the firewall rules of an instance.
error code that may be returned:
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" RESOURCENOTFOUND_FIREWALLNOTFOUND = "ResourceNotFound.FirewallNotFound" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeGeneralResourceQuotas ¶
func (c *Client) DescribeGeneralResourceQuotas(request *DescribeGeneralResourceQuotasRequest) (response *DescribeGeneralResourceQuotasResponse, err error)
DescribeGeneralResourceQuotas This API is used to query the quota information of general resources.
error code that may be returned:
INVALIDPARAMETERVALUE_INVALIDRESOURCEQUOTARESOURCENAME = "InvalidParameterValue.InvalidResourceQuotaResourceName" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeGeneralResourceQuotasWithContext ¶
func (c *Client) DescribeGeneralResourceQuotasWithContext(ctx context.Context, request *DescribeGeneralResourceQuotasRequest) (response *DescribeGeneralResourceQuotasResponse, err error)
DescribeGeneralResourceQuotas This API is used to query the quota information of general resources.
error code that may be returned:
INVALIDPARAMETERVALUE_INVALIDRESOURCEQUOTARESOURCENAME = "InvalidParameterValue.InvalidResourceQuotaResourceName" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeInstanceLoginKeyPairAttribute ¶
func (c *Client) DescribeInstanceLoginKeyPairAttribute(request *DescribeInstanceLoginKeyPairAttributeRequest) (response *DescribeInstanceLoginKeyPairAttributeResponse, err error)
DescribeInstanceLoginKeyPairAttribute This API is used to query the attributes of the default login key of an instance.
error code that may be returned:
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"
func (*Client) DescribeInstanceLoginKeyPairAttributeWithContext ¶
func (c *Client) DescribeInstanceLoginKeyPairAttributeWithContext(ctx context.Context, request *DescribeInstanceLoginKeyPairAttributeRequest) (response *DescribeInstanceLoginKeyPairAttributeResponse, err error)
DescribeInstanceLoginKeyPairAttribute This API is used to query the attributes of the default login key of an instance.
error code that may be returned:
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"
func (*Client) DescribeInstanceVncUrl ¶
func (c *Client) DescribeInstanceVncUrl(request *DescribeInstanceVncUrlRequest) (response *DescribeInstanceVncUrlResponse, err error)
DescribeInstanceVncUrl This API is used to query the URL for VNC login.
* It does not support `STOPPED` CVMs.
* A VNC URL is only valid for 15 seconds. If you do not access the URL within 15 seconds, you will need to query another one.
* The VNC URL can be used once only. You need to query a new one if you want to log in again.
* Up to 30 re-connection attempts allowed in one minute.
* `InstanceVncUrl`: Its value will be returned after the API is successfully called.
After you get the value of `InstanceVncUrl`, you need to append `InstanceVncUrl=xxxx` to the end of the link `https://img.qcloud.com/qcloud/app/active_vnc/index.html?`.
The final URL can be in the following formats:
```
```
error code that may be returned:
FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed" INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) DescribeInstanceVncUrlWithContext ¶
func (c *Client) DescribeInstanceVncUrlWithContext(ctx context.Context, request *DescribeInstanceVncUrlRequest) (response *DescribeInstanceVncUrlResponse, err error)
DescribeInstanceVncUrl This API is used to query the URL for VNC login.
* It does not support `STOPPED` CVMs.
* A VNC URL is only valid for 15 seconds. If you do not access the URL within 15 seconds, you will need to query another one.
* The VNC URL can be used once only. You need to query a new one if you want to log in again.
* Up to 30 re-connection attempts allowed in one minute.
* `InstanceVncUrl`: Its value will be returned after the API is successfully called.
After you get the value of `InstanceVncUrl`, you need to append `InstanceVncUrl=xxxx` to the end of the link `https://img.qcloud.com/qcloud/app/active_vnc/index.html?`.
The final URL can be in the following formats:
```
```
error code that may be returned:
FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed" INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) DescribeInstances ¶
func (c *Client) DescribeInstances(request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)
DescribeInstances This API is used to query the details of one or multiple instances.
* You can query the details of an instance according to its ID, name, or private IP.
* For more information on filters, please see [Filters](https://intl.cloud.tencent.com/document/product/1207/47576?from_cn_redirect=1#Filter).
* If no parameter is defined, the status of a certain number of instances under the current account will be returned. The number is specified by `Limit` and is 20 by default.
* The latest operation (LatestOperation) and the latest operation status (LatestOperationState) of the instance can be queried.
error code that may be returned:
INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded" INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey" INVALIDPARAMETER_INVALIDFILTERINVALIDNAMENOTSTR = "InvalidParameter.InvalidFilterInvalidNameNotStr" INVALIDPARAMETER_INVALIDFILTERINVALIDVALUESNOTLIST = "InvalidParameter.InvalidFilterInvalidValuesNotList" INVALIDPARAMETER_INVALIDFILTERNOTDICT = "InvalidParameter.InvalidFilterNotDict" INVALIDPARAMETER_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameter.InvalidFilterNotSupportedName" INVALIDPARAMETER_PARAMETERCONFLICT = "InvalidParameter.ParameterConflict" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_INSTANCENAMETOOLONG = "InvalidParameterValue.InstanceNameTooLong" INVALIDPARAMETERVALUE_INVALIDIPFORMAT = "InvalidParameterValue.InvalidIpFormat" INVALIDPARAMETERVALUE_INVALIDZONE = "InvalidParameterValue.InvalidZone" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeInstancesDeniedActions ¶
func (c *Client) DescribeInstancesDeniedActions(request *DescribeInstancesDeniedActionsRequest) (response *DescribeInstancesDeniedActionsResponse, err error)
DescribeInstancesDeniedActions This API is used to query the list of operation limits of one or more instances.
error code that may be returned:
INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeInstancesDeniedActionsWithContext ¶
func (c *Client) DescribeInstancesDeniedActionsWithContext(ctx context.Context, request *DescribeInstancesDeniedActionsRequest) (response *DescribeInstancesDeniedActionsResponse, err error)
DescribeInstancesDeniedActions This API is used to query the list of operation limits of one or more instances.
error code that may be returned:
INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeInstancesDiskNum ¶
func (c *Client) DescribeInstancesDiskNum(request *DescribeInstancesDiskNumRequest) (response *DescribeInstancesDiskNumResponse, err error)
DescribeInstancesDiskNum This API is used to query the number of cloud disks attached to instances.
error code that may be returned:
INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
func (*Client) DescribeInstancesDiskNumWithContext ¶
func (c *Client) DescribeInstancesDiskNumWithContext(ctx context.Context, request *DescribeInstancesDiskNumRequest) (response *DescribeInstancesDiskNumResponse, err error)
DescribeInstancesDiskNum This API is used to query the number of cloud disks attached to instances.
error code that may be returned:
INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
func (*Client) DescribeInstancesReturnable ¶
func (c *Client) DescribeInstancesReturnable(request *DescribeInstancesReturnableRequest) (response *DescribeInstancesReturnableResponse, err error)
DescribeInstancesReturnable This API is used to query whether the specified instance can be returned.
error code that may be returned:
INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_DESCRIBEINSTANCESRETURNABLEERROR = "InternalError.DescribeInstancesReturnableError" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeInstancesReturnableWithContext ¶
func (c *Client) DescribeInstancesReturnableWithContext(ctx context.Context, request *DescribeInstancesReturnableRequest) (response *DescribeInstancesReturnableResponse, err error)
DescribeInstancesReturnable This API is used to query whether the specified instance can be returned.
error code that may be returned:
INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_DESCRIBEINSTANCESRETURNABLEERROR = "InternalError.DescribeInstancesReturnableError" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeInstancesTrafficPackages ¶
func (c *Client) DescribeInstancesTrafficPackages(request *DescribeInstancesTrafficPackagesRequest) (response *DescribeInstancesTrafficPackagesResponse, err error)
DescribeInstancesTrafficPackages This API is used to query the traffic package details of one or more instances.
error code that may be returned:
INTERNALERROR_DESCRIBEINSTANCESTRAFFICPACKAGESFAILED = "InternalError.DescribeInstancesTrafficPackagesFailed" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeInstancesTrafficPackagesWithContext ¶
func (c *Client) DescribeInstancesTrafficPackagesWithContext(ctx context.Context, request *DescribeInstancesTrafficPackagesRequest) (response *DescribeInstancesTrafficPackagesResponse, err error)
DescribeInstancesTrafficPackages This API is used to query the traffic package details of one or more instances.
error code that may be returned:
INTERNALERROR_DESCRIBEINSTANCESTRAFFICPACKAGESFAILED = "InternalError.DescribeInstancesTrafficPackagesFailed" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeInstancesWithContext ¶
func (c *Client) DescribeInstancesWithContext(ctx context.Context, request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)
DescribeInstances This API is used to query the details of one or multiple instances.
* You can query the details of an instance according to its ID, name, or private IP.
* For more information on filters, please see [Filters](https://intl.cloud.tencent.com/document/product/1207/47576?from_cn_redirect=1#Filter).
* If no parameter is defined, the status of a certain number of instances under the current account will be returned. The number is specified by `Limit` and is 20 by default.
* The latest operation (LatestOperation) and the latest operation status (LatestOperationState) of the instance can be queried.
error code that may be returned:
INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded" INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey" INVALIDPARAMETER_INVALIDFILTERINVALIDNAMENOTSTR = "InvalidParameter.InvalidFilterInvalidNameNotStr" INVALIDPARAMETER_INVALIDFILTERINVALIDVALUESNOTLIST = "InvalidParameter.InvalidFilterInvalidValuesNotList" INVALIDPARAMETER_INVALIDFILTERNOTDICT = "InvalidParameter.InvalidFilterNotDict" INVALIDPARAMETER_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameter.InvalidFilterNotSupportedName" INVALIDPARAMETER_PARAMETERCONFLICT = "InvalidParameter.ParameterConflict" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_INSTANCENAMETOOLONG = "InvalidParameterValue.InstanceNameTooLong" INVALIDPARAMETERVALUE_INVALIDIPFORMAT = "InvalidParameterValue.InvalidIpFormat" INVALIDPARAMETERVALUE_INVALIDZONE = "InvalidParameterValue.InvalidZone" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeKeyPairs ¶
func (c *Client) DescribeKeyPairs(request *DescribeKeyPairsRequest) (response *DescribeKeyPairsResponse, err error)
DescribeKeyPairs This API is used to query key pairs.
error code that may be returned:
INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" INVALIDPARAMETER_PARAMETERCONFLICT = "InvalidParameter.ParameterConflict" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_KEYPAIRIDMALFORMED = "InvalidParameterValue.KeyPairIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeKeyPairsWithContext ¶
func (c *Client) DescribeKeyPairsWithContext(ctx context.Context, request *DescribeKeyPairsRequest) (response *DescribeKeyPairsResponse, err error)
DescribeKeyPairs This API is used to query key pairs.
error code that may be returned:
INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" INVALIDPARAMETER_PARAMETERCONFLICT = "InvalidParameter.ParameterConflict" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_KEYPAIRIDMALFORMED = "InvalidParameterValue.KeyPairIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeModifyInstanceBundles ¶
func (c *Client) DescribeModifyInstanceBundles(request *DescribeModifyInstanceBundlesRequest) (response *DescribeModifyInstanceBundlesResponse, err error)
DescribeModifyInstanceBundles This API is used to query the list of package options of an instance.
error code that may be returned:
INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_DESCRIBEINSTANCESMODIFICATION = "InternalError.DescribeInstancesModification" INTERNALERROR_DESCRIBEINSTANCESMODIFICATIONERROR = "InternalError.DescribeInstancesModificationError" INTERNALERROR_INVALIDBUNDLEPRICE = "InternalError.InvalidBundlePrice" INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed" INVALIDPARAMETER_BUNDLEIDNOTFOUND = "InvalidParameter.BundleIdNotFound" INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded" INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey" INVALIDPARAMETER_INVALIDFILTERINVALIDNAMENOTSTR = "InvalidParameter.InvalidFilterInvalidNameNotStr" INVALIDPARAMETER_INVALIDFILTERNOTDICT = "InvalidParameter.InvalidFilterNotDict" INVALIDPARAMETER_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameter.InvalidFilterNotSupportedName" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_INVALIDBLUEPRINTPLATFORMTYPE = "InvalidParameterValue.InvalidBlueprintPlatformType" INVALIDPARAMETERVALUE_INVALIDCONSOLEDISPLAYTYPES = "InvalidParameterValue.InvalidConsoleDisplayTypes" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" OPERATIONDENIED_BUNDLENOTSUPPORTMODIFY = "OperationDenied.BundleNotSupportModify" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INSTANCEEXPIRED = "UnsupportedOperation.InstanceExpired" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState"
func (*Client) DescribeModifyInstanceBundlesWithContext ¶
func (c *Client) DescribeModifyInstanceBundlesWithContext(ctx context.Context, request *DescribeModifyInstanceBundlesRequest) (response *DescribeModifyInstanceBundlesResponse, err error)
DescribeModifyInstanceBundles This API is used to query the list of package options of an instance.
error code that may be returned:
INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_DESCRIBEINSTANCESMODIFICATION = "InternalError.DescribeInstancesModification" INTERNALERROR_DESCRIBEINSTANCESMODIFICATIONERROR = "InternalError.DescribeInstancesModificationError" INTERNALERROR_INVALIDBUNDLEPRICE = "InternalError.InvalidBundlePrice" INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed" INVALIDPARAMETER_BUNDLEIDNOTFOUND = "InvalidParameter.BundleIdNotFound" INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded" INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey" INVALIDPARAMETER_INVALIDFILTERINVALIDNAMENOTSTR = "InvalidParameter.InvalidFilterInvalidNameNotStr" INVALIDPARAMETER_INVALIDFILTERNOTDICT = "InvalidParameter.InvalidFilterNotDict" INVALIDPARAMETER_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameter.InvalidFilterNotSupportedName" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_INVALIDBLUEPRINTPLATFORMTYPE = "InvalidParameterValue.InvalidBlueprintPlatformType" INVALIDPARAMETERVALUE_INVALIDCONSOLEDISPLAYTYPES = "InvalidParameterValue.InvalidConsoleDisplayTypes" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" OPERATIONDENIED_BUNDLENOTSUPPORTMODIFY = "OperationDenied.BundleNotSupportModify" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INSTANCEEXPIRED = "UnsupportedOperation.InstanceExpired" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState"
func (*Client) DescribeRegions ¶
func (c *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error)
DescribeRegions This API is used to query the information of regions.
error code that may be returned:
INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_DESCRIBEINSTANCESMODIFICATION = "InternalError.DescribeInstancesModification" INTERNALERROR_DESCRIBEINSTANCESMODIFICATIONERROR = "InternalError.DescribeInstancesModificationError" INTERNALERROR_INVALIDBUNDLEPRICE = "InternalError.InvalidBundlePrice" INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed" INVALIDPARAMETER_BUNDLEIDNOTFOUND = "InvalidParameter.BundleIdNotFound" INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded" INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey" INVALIDPARAMETER_INVALIDFILTERINVALIDNAMENOTSTR = "InvalidParameter.InvalidFilterInvalidNameNotStr" INVALIDPARAMETER_INVALIDFILTERNOTDICT = "InvalidParameter.InvalidFilterNotDict" INVALIDPARAMETER_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameter.InvalidFilterNotSupportedName" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_INVALIDBLUEPRINTPLATFORMTYPE = "InvalidParameterValue.InvalidBlueprintPlatformType" INVALIDPARAMETERVALUE_INVALIDCONSOLEDISPLAYTYPES = "InvalidParameterValue.InvalidConsoleDisplayTypes" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" OPERATIONDENIED_BUNDLENOTSUPPORTMODIFY = "OperationDenied.BundleNotSupportModify" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INSTANCEEXPIRED = "UnsupportedOperation.InstanceExpired" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState"
func (*Client) DescribeRegionsWithContext ¶
func (c *Client) DescribeRegionsWithContext(ctx context.Context, request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error)
DescribeRegions This API is used to query the information of regions.
error code that may be returned:
INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_DESCRIBEINSTANCESMODIFICATION = "InternalError.DescribeInstancesModification" INTERNALERROR_DESCRIBEINSTANCESMODIFICATIONERROR = "InternalError.DescribeInstancesModificationError" INTERNALERROR_INVALIDBUNDLEPRICE = "InternalError.InvalidBundlePrice" INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed" INVALIDPARAMETER_BUNDLEIDNOTFOUND = "InvalidParameter.BundleIdNotFound" INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded" INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey" INVALIDPARAMETER_INVALIDFILTERINVALIDNAMENOTSTR = "InvalidParameter.InvalidFilterInvalidNameNotStr" INVALIDPARAMETER_INVALIDFILTERNOTDICT = "InvalidParameter.InvalidFilterNotDict" INVALIDPARAMETER_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameter.InvalidFilterNotSupportedName" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_INVALIDBLUEPRINTPLATFORMTYPE = "InvalidParameterValue.InvalidBlueprintPlatformType" INVALIDPARAMETERVALUE_INVALIDCONSOLEDISPLAYTYPES = "InvalidParameterValue.InvalidConsoleDisplayTypes" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" OPERATIONDENIED_BUNDLENOTSUPPORTMODIFY = "OperationDenied.BundleNotSupportModify" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INSTANCEEXPIRED = "UnsupportedOperation.InstanceExpired" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState"
func (*Client) DescribeResetInstanceBlueprints ¶
func (c *Client) DescribeResetInstanceBlueprints(request *DescribeResetInstanceBlueprintsRequest) (response *DescribeResetInstanceBlueprintsResponse, err error)
DescribeResetInstanceBlueprints This API is used to query the image information of a reset instance.
error code that may be returned:
INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded" INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey" INVALIDPARAMETER_INVALIDFILTERINVALIDNAMENOTSTR = "InvalidParameter.InvalidFilterInvalidNameNotStr" INVALIDPARAMETER_INVALIDFILTERNOTDICT = "InvalidParameter.InvalidFilterNotDict" INVALIDPARAMETER_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameter.InvalidFilterNotSupportedName" INVALIDPARAMETER_PARAMETERCONFLICT = "InvalidParameter.ParameterConflict" INVALIDPARAMETERVALUE_BLUEPRINTIDMALFORMED = "InvalidParameterValue.BlueprintIdMalformed" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_INVALIDBLUEPRINTPLATFORMTYPE = "InvalidParameterValue.InvalidBlueprintPlatformType" INVALIDPARAMETERVALUE_INVALIDBLUEPRINTSTATE = "InvalidParameterValue.InvalidBlueprintState" INVALIDPARAMETERVALUE_INVALIDBLUEPRINTTYPE = "InvalidParameterValue.InvalidBlueprintType" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeResetInstanceBlueprintsWithContext ¶
func (c *Client) DescribeResetInstanceBlueprintsWithContext(ctx context.Context, request *DescribeResetInstanceBlueprintsRequest) (response *DescribeResetInstanceBlueprintsResponse, err error)
DescribeResetInstanceBlueprints This API is used to query the image information of a reset instance.
error code that may be returned:
INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded" INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey" INVALIDPARAMETER_INVALIDFILTERINVALIDNAMENOTSTR = "InvalidParameter.InvalidFilterInvalidNameNotStr" INVALIDPARAMETER_INVALIDFILTERNOTDICT = "InvalidParameter.InvalidFilterNotDict" INVALIDPARAMETER_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameter.InvalidFilterNotSupportedName" INVALIDPARAMETER_PARAMETERCONFLICT = "InvalidParameter.ParameterConflict" INVALIDPARAMETERVALUE_BLUEPRINTIDMALFORMED = "InvalidParameterValue.BlueprintIdMalformed" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_INVALIDBLUEPRINTPLATFORMTYPE = "InvalidParameterValue.InvalidBlueprintPlatformType" INVALIDPARAMETERVALUE_INVALIDBLUEPRINTSTATE = "InvalidParameterValue.InvalidBlueprintState" INVALIDPARAMETERVALUE_INVALIDBLUEPRINTTYPE = "InvalidParameterValue.InvalidBlueprintType" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeScenes ¶
func (c *Client) DescribeScenes(request *DescribeScenesRequest) (response *DescribeScenesResponse, err error)
DescribeScenes This API is used to query the list of scenes.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INVALIDSCENEIDMALFORMED = "InvalidParameterValue.InvalidSceneIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeScenesWithContext ¶
func (c *Client) DescribeScenesWithContext(ctx context.Context, request *DescribeScenesRequest) (response *DescribeScenesResponse, err error)
DescribeScenes This API is used to query the list of scenes.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INVALIDSCENEIDMALFORMED = "InvalidParameterValue.InvalidSceneIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeSnapshots ¶
func (c *Client) DescribeSnapshots(request *DescribeSnapshotsRequest) (response *DescribeSnapshotsResponse, err error)
DescribeSnapshots This API is used to query the list of snapshots.
error code that may be returned:
INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded" INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey" INVALIDPARAMETER_INVALIDFILTERINVALIDNAMENOTSTR = "InvalidParameter.InvalidFilterInvalidNameNotStr" INVALIDPARAMETER_INVALIDFILTERINVALIDVALUESNOTLIST = "InvalidParameter.InvalidFilterInvalidValuesNotList" INVALIDPARAMETER_INVALIDFILTERNOTDICT = "InvalidParameter.InvalidFilterNotDict" INVALIDPARAMETER_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameter.InvalidFilterNotSupportedName" INVALIDPARAMETER_PARAMETERCONFLICT = "InvalidParameter.ParameterConflict" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_INVALIDDISKIDMALFORMED = "InvalidParameterValue.InvalidDiskIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" INVALIDPARAMETERVALUE_SNAPSHOTIDMALFORMED = "InvalidParameterValue.SnapshotIdMalformed" INVALIDPARAMETERVALUE_SNAPSHOTNAMETOOLONG = "InvalidParameterValue.SnapshotNameTooLong" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeSnapshotsDeniedActions ¶
func (c *Client) DescribeSnapshotsDeniedActions(request *DescribeSnapshotsDeniedActionsRequest) (response *DescribeSnapshotsDeniedActionsResponse, err error)
DescribeSnapshotsDeniedActions This API is used to query the list of operation limits of one or more snapshots.
error code that may be returned:
INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_SNAPSHOTIDMALFORMED = "InvalidParameterValue.SnapshotIdMalformed" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeSnapshotsDeniedActionsWithContext ¶
func (c *Client) DescribeSnapshotsDeniedActionsWithContext(ctx context.Context, request *DescribeSnapshotsDeniedActionsRequest) (response *DescribeSnapshotsDeniedActionsResponse, err error)
DescribeSnapshotsDeniedActions This API is used to query the list of operation limits of one or more snapshots.
error code that may be returned:
INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_SNAPSHOTIDMALFORMED = "InvalidParameterValue.SnapshotIdMalformed" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeSnapshotsWithContext ¶
func (c *Client) DescribeSnapshotsWithContext(ctx context.Context, request *DescribeSnapshotsRequest) (response *DescribeSnapshotsResponse, err error)
DescribeSnapshots This API is used to query the list of snapshots.
error code that may be returned:
INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded" INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey" INVALIDPARAMETER_INVALIDFILTERINVALIDNAMENOTSTR = "InvalidParameter.InvalidFilterInvalidNameNotStr" INVALIDPARAMETER_INVALIDFILTERINVALIDVALUESNOTLIST = "InvalidParameter.InvalidFilterInvalidValuesNotList" INVALIDPARAMETER_INVALIDFILTERNOTDICT = "InvalidParameter.InvalidFilterNotDict" INVALIDPARAMETER_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameter.InvalidFilterNotSupportedName" INVALIDPARAMETER_PARAMETERCONFLICT = "InvalidParameter.ParameterConflict" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_INVALIDDISKIDMALFORMED = "InvalidParameterValue.InvalidDiskIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" INVALIDPARAMETERVALUE_SNAPSHOTIDMALFORMED = "InvalidParameterValue.SnapshotIdMalformed" INVALIDPARAMETERVALUE_SNAPSHOTNAMETOOLONG = "InvalidParameterValue.SnapshotNameTooLong" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) DescribeZones ¶
func (c *Client) DescribeZones(request *DescribeZonesRequest) (response *DescribeZonesResponse, err error)
DescribeZones This API is used to query the list of AZs in a region.
error code that may be returned:
INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) DescribeZonesWithContext ¶
func (c *Client) DescribeZonesWithContext(ctx context.Context, request *DescribeZonesRequest) (response *DescribeZonesResponse, err error)
DescribeZones This API is used to query the list of AZs in a region.
error code that may be returned:
INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) DetachCcn ¶
func (c *Client) DetachCcn(request *DetachCcnRequest) (response *DetachCcnResponse, err error)
DetachCcn This API is used to unassociate a CCN instance.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE_CCNIDMALFORMED = "InvalidParameterValue.CcnIdMalformed" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_CCNNOTATTACHED = "UnsupportedOperation.CcnNotAttached" UNSUPPORTEDOPERATION_DETACHCCNFAILED = "UnsupportedOperation.DetachCcnFailed"
func (*Client) DetachCcnWithContext ¶
func (c *Client) DetachCcnWithContext(ctx context.Context, request *DetachCcnRequest) (response *DetachCcnResponse, err error)
DetachCcn This API is used to unassociate a CCN instance.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE_CCNIDMALFORMED = "InvalidParameterValue.CcnIdMalformed" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_CCNNOTATTACHED = "UnsupportedOperation.CcnNotAttached" UNSUPPORTEDOPERATION_DETACHCCNFAILED = "UnsupportedOperation.DetachCcnFailed"
func (*Client) DetachDisks ¶
func (c *Client) DetachDisks(request *DetachDisksRequest) (response *DetachDisksResponse, err error)
DetachDisks This API is used to detach one or more cloud disks.
error code that may be returned:
INVALIDPARAMETERVALUE_INVALIDDISKIDMALFORMED = "InvalidParameterValue.InvalidDiskIdMalformed" OPERATIONDENIED_DISKCREATING = "OperationDenied.DiskCreating" OPERATIONDENIED_DISKOPERATIONINPROGRESS = "OperationDenied.DiskOperationInProgress" OPERATIONDENIED_DISKUSAGENOTSUPPORTOPERATION = "OperationDenied.DiskUsageNotSupportOperation" RESOURCENOTFOUND_DISKIDNOTFOUND = "ResourceNotFound.DiskIdNotFound" RESOURCENOTFOUND_DISKNOTFOUND = "ResourceNotFound.DiskNotFound" UNSUPPORTEDOPERATION_INVALIDDISKSTATE = "UnsupportedOperation.InvalidDiskState" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) DetachDisksWithContext ¶
func (c *Client) DetachDisksWithContext(ctx context.Context, request *DetachDisksRequest) (response *DetachDisksResponse, err error)
DetachDisks This API is used to detach one or more cloud disks.
error code that may be returned:
INVALIDPARAMETERVALUE_INVALIDDISKIDMALFORMED = "InvalidParameterValue.InvalidDiskIdMalformed" OPERATIONDENIED_DISKCREATING = "OperationDenied.DiskCreating" OPERATIONDENIED_DISKOPERATIONINPROGRESS = "OperationDenied.DiskOperationInProgress" OPERATIONDENIED_DISKUSAGENOTSUPPORTOPERATION = "OperationDenied.DiskUsageNotSupportOperation" RESOURCENOTFOUND_DISKIDNOTFOUND = "ResourceNotFound.DiskIdNotFound" RESOURCENOTFOUND_DISKNOTFOUND = "ResourceNotFound.DiskNotFound" UNSUPPORTEDOPERATION_INVALIDDISKSTATE = "UnsupportedOperation.InvalidDiskState" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) DisassociateInstancesKeyPairs ¶
func (c *Client) DisassociateInstancesKeyPairs(request *DisassociateInstancesKeyPairsRequest) (response *DisassociateInstancesKeyPairsResponse, err error)
DisassociateInstancesKeyPairs This API is used to unbind an instance from the specified key pair.
* Only instances on LINUX_UNIX in [RUNNING, STOPPED] status are supported. Instances in `RUNNING` status will be forcibly shut down before unbinding.
* After a key pair is unassociated from an instance, you can log in to the instance with password.
* If no password was set, you cannot log in to the instance with SSH after unbinding. You can call the ResetInstancesPassword API to set a login password.
* Batch operations are supported. The maximum number of instances in each request is 100.
* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.
error code that may be returned:
FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed" INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_KEYPAIRIDMALFORMED = "InvalidParameterValue.KeyPairIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCENOTFOUND_KEYIDNOTFOUND = "ResourceNotFound.KeyIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_KEYPAIRNOTBOUNDTOINSTANCE = "UnsupportedOperation.KeyPairNotBoundToInstance" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) DisassociateInstancesKeyPairsWithContext ¶
func (c *Client) DisassociateInstancesKeyPairsWithContext(ctx context.Context, request *DisassociateInstancesKeyPairsRequest) (response *DisassociateInstancesKeyPairsResponse, err error)
DisassociateInstancesKeyPairs This API is used to unbind an instance from the specified key pair.
* Only instances on LINUX_UNIX in [RUNNING, STOPPED] status are supported. Instances in `RUNNING` status will be forcibly shut down before unbinding.
* After a key pair is unassociated from an instance, you can log in to the instance with password.
* If no password was set, you cannot log in to the instance with SSH after unbinding. You can call the ResetInstancesPassword API to set a login password.
* Batch operations are supported. The maximum number of instances in each request is 100.
* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.
error code that may be returned:
FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed" INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_KEYPAIRIDMALFORMED = "InvalidParameterValue.KeyPairIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCENOTFOUND_KEYIDNOTFOUND = "ResourceNotFound.KeyIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_KEYPAIRNOTBOUNDTOINSTANCE = "UnsupportedOperation.KeyPairNotBoundToInstance" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) ImportKeyPair ¶
func (c *Client) ImportKeyPair(request *ImportKeyPairRequest) (response *ImportKeyPairResponse, err error)
ImportKeyPair This API is used to import the specified key pair.
error code that may be returned:
FAILEDOPERATION_CREATEKEYPAIRFAILED = "FailedOperation.CreateKeyPairFailed" FAILEDOPERATION_DELETEKEYPAIRFAILED = "FailedOperation.DeleteKeyPairFailed" FAILEDOPERATION_IMPORTKEYPAIRFAILED = "FailedOperation.ImportKeyPairFailed" INVALIDPARAMETERVALUE_DUPLICATEPARAMETERVALUE = "InvalidParameterValue.DuplicateParameterValue" INVALIDPARAMETERVALUE_INVALIDKEYPAIRNAMEEMPTY = "InvalidParameterValue.InvalidKeyPairNameEmpty" INVALIDPARAMETERVALUE_INVALIDKEYPAIRNAMETOOLONG = "InvalidParameterValue.InvalidKeyPairNameTooLong" INVALIDPARAMETERVALUE_KEYPAIRPUBLICKEYDUPLICATED = "InvalidParameterValue.KeyPairPublicKeyDuplicated" INVALIDPARAMETERVALUE_KEYPAIRPUBLICKEYMALFORMED = "InvalidParameterValue.KeyPairPublicKeyMalformed" LIMITEXCEEDED_KEYPAIRLIMITEXCEEDED = "LimitExceeded.KeyPairLimitExceeded" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) ImportKeyPairWithContext ¶
func (c *Client) ImportKeyPairWithContext(ctx context.Context, request *ImportKeyPairRequest) (response *ImportKeyPairResponse, err error)
ImportKeyPair This API is used to import the specified key pair.
error code that may be returned:
FAILEDOPERATION_CREATEKEYPAIRFAILED = "FailedOperation.CreateKeyPairFailed" FAILEDOPERATION_DELETEKEYPAIRFAILED = "FailedOperation.DeleteKeyPairFailed" FAILEDOPERATION_IMPORTKEYPAIRFAILED = "FailedOperation.ImportKeyPairFailed" INVALIDPARAMETERVALUE_DUPLICATEPARAMETERVALUE = "InvalidParameterValue.DuplicateParameterValue" INVALIDPARAMETERVALUE_INVALIDKEYPAIRNAMEEMPTY = "InvalidParameterValue.InvalidKeyPairNameEmpty" INVALIDPARAMETERVALUE_INVALIDKEYPAIRNAMETOOLONG = "InvalidParameterValue.InvalidKeyPairNameTooLong" INVALIDPARAMETERVALUE_KEYPAIRPUBLICKEYDUPLICATED = "InvalidParameterValue.KeyPairPublicKeyDuplicated" INVALIDPARAMETERVALUE_KEYPAIRPUBLICKEYMALFORMED = "InvalidParameterValue.KeyPairPublicKeyMalformed" LIMITEXCEEDED_KEYPAIRLIMITEXCEEDED = "LimitExceeded.KeyPairLimitExceeded" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) InquirePriceCreateBlueprint ¶
func (c *Client) InquirePriceCreateBlueprint(request *InquirePriceCreateBlueprintRequest) (response *InquirePriceCreateBlueprintResponse, err error)
InquirePriceCreateBlueprint This API is used to query the price of a created image.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) InquirePriceCreateBlueprintWithContext ¶
func (c *Client) InquirePriceCreateBlueprintWithContext(ctx context.Context, request *InquirePriceCreateBlueprintRequest) (response *InquirePriceCreateBlueprintResponse, err error)
InquirePriceCreateBlueprint This API is used to query the price of a created image.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) InquirePriceCreateDisks ¶
func (c *Client) InquirePriceCreateDisks(request *InquirePriceCreateDisksRequest) (response *InquirePriceCreateDisksResponse, err error)
InquirePriceCreateDisks This API is used to query the price of purchasing cloud disks.
error code that may be returned:
INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange"
func (*Client) InquirePriceCreateDisksWithContext ¶
func (c *Client) InquirePriceCreateDisksWithContext(ctx context.Context, request *InquirePriceCreateDisksRequest) (response *InquirePriceCreateDisksResponse, err error)
InquirePriceCreateDisks This API is used to query the price of purchasing cloud disks.
error code that may be returned:
INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange"
func (*Client) InquirePriceCreateInstances ¶
func (c *Client) InquirePriceCreateInstances(request *InquirePriceCreateInstancesRequest) (response *InquirePriceCreateInstancesResponse, err error)
InquirePriceCreateInstances This API is used to query the price of a created instance.
error code that may be returned:
INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed" INVALIDPARAMETER_BUNDLEIDNOTFOUND = "InvalidParameter.BundleIdNotFound" INVALIDPARAMETERVALUE_BLUEPRINTIDMALFORMED = "InvalidParameterValue.BlueprintIdMalformed" INVALIDPARAMETERVALUE_INVALIDBLUEPRINTID = "InvalidParameterValue.InvalidBlueprintId" RESOURCENOTFOUND_BLUEPRINTIDNOTFOUND = "ResourceNotFound.BlueprintIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) InquirePriceCreateInstancesWithContext ¶
func (c *Client) InquirePriceCreateInstancesWithContext(ctx context.Context, request *InquirePriceCreateInstancesRequest) (response *InquirePriceCreateInstancesResponse, err error)
InquirePriceCreateInstances This API is used to query the price of a created instance.
error code that may be returned:
INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed" INVALIDPARAMETER_BUNDLEIDNOTFOUND = "InvalidParameter.BundleIdNotFound" INVALIDPARAMETERVALUE_BLUEPRINTIDMALFORMED = "InvalidParameterValue.BlueprintIdMalformed" INVALIDPARAMETERVALUE_INVALIDBLUEPRINTID = "InvalidParameterValue.InvalidBlueprintId" RESOURCENOTFOUND_BLUEPRINTIDNOTFOUND = "ResourceNotFound.BlueprintIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) InquirePriceRenewDisks ¶
func (c *Client) InquirePriceRenewDisks(request *InquirePriceRenewDisksRequest) (response *InquirePriceRenewDisksResponse, err error)
InquirePriceRenewDisks This API is used to query the price of renewing cloud disks.
error code that may be returned:
INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_INVALIDDISKIDMALFORMED = "InvalidParameterValue.InvalidDiskIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" OPERATIONDENIED_DISKUSAGENOTSUPPORTOPERATION = "OperationDenied.DiskUsageNotSupportOperation" RESOURCENOTFOUND_DISKIDNOTFOUND = "ResourceNotFound.DiskIdNotFound"
func (*Client) InquirePriceRenewDisksWithContext ¶
func (c *Client) InquirePriceRenewDisksWithContext(ctx context.Context, request *InquirePriceRenewDisksRequest) (response *InquirePriceRenewDisksResponse, err error)
InquirePriceRenewDisks This API is used to query the price of renewing cloud disks.
error code that may be returned:
INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_INVALIDDISKIDMALFORMED = "InvalidParameterValue.InvalidDiskIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" OPERATIONDENIED_DISKUSAGENOTSUPPORTOPERATION = "OperationDenied.DiskUsageNotSupportOperation" RESOURCENOTFOUND_DISKIDNOTFOUND = "ResourceNotFound.DiskIdNotFound"
func (*Client) InquirePriceRenewInstances ¶
func (c *Client) InquirePriceRenewInstances(request *InquirePriceRenewInstancesRequest) (response *InquirePriceRenewInstancesResponse, err error)
InquirePriceRenewInstances This API is used to query the price of renewing one or more instances.
error code that may be returned:
INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" RESOURCENOTFOUND_INSTANCEDATADISKNOTFOUND = "ResourceNotFound.InstanceDataDiskNotFound" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) InquirePriceRenewInstancesWithContext ¶
func (c *Client) InquirePriceRenewInstancesWithContext(ctx context.Context, request *InquirePriceRenewInstancesRequest) (response *InquirePriceRenewInstancesResponse, err error)
InquirePriceRenewInstances This API is used to query the price of renewing one or more instances.
error code that may be returned:
INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" RESOURCENOTFOUND_INSTANCEDATADISKNOTFOUND = "ResourceNotFound.InstanceDataDiskNotFound" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
func (*Client) ModifyBlueprintAttribute ¶
func (c *Client) ModifyBlueprintAttribute(request *ModifyBlueprintAttributeRequest) (response *ModifyBlueprintAttributeResponse, err error)
ModifyBlueprintAttribute This API is used to modify an image attribute.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE_BLUEPRINTIDMALFORMED = "InvalidParameterValue.BlueprintIdMalformed" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_BLUEPRINTIDNOTFOUND = "ResourceNotFound.BlueprintIdNotFound" RESOURCENOTFOUND_PRIVATEBLUEPRINTNOTFOUND = "ResourceNotFound.PrivateBlueprintNotFound" UNSUPPORTEDOPERATION_BLUEPRINTCURSTATEINVALID = "UnsupportedOperation.BlueprintCurStateInvalid" UNSUPPORTEDOPERATION_NOTSUPPORTSHAREDBLUEPRINT = "UnsupportedOperation.NotSupportSharedBlueprint"
func (*Client) ModifyBlueprintAttributeWithContext ¶
func (c *Client) ModifyBlueprintAttributeWithContext(ctx context.Context, request *ModifyBlueprintAttributeRequest) (response *ModifyBlueprintAttributeResponse, err error)
ModifyBlueprintAttribute This API is used to modify an image attribute.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE_BLUEPRINTIDMALFORMED = "InvalidParameterValue.BlueprintIdMalformed" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_BLUEPRINTIDNOTFOUND = "ResourceNotFound.BlueprintIdNotFound" RESOURCENOTFOUND_PRIVATEBLUEPRINTNOTFOUND = "ResourceNotFound.PrivateBlueprintNotFound" UNSUPPORTEDOPERATION_BLUEPRINTCURSTATEINVALID = "UnsupportedOperation.BlueprintCurStateInvalid" UNSUPPORTEDOPERATION_NOTSUPPORTSHAREDBLUEPRINT = "UnsupportedOperation.NotSupportSharedBlueprint"
func (*Client) ModifyDisksAttribute ¶
func (c *Client) ModifyDisksAttribute(request *ModifyDisksAttributeRequest) (response *ModifyDisksAttributeResponse, err error)
ModifyDisksAttribute This API is used to modify cloud disk attributes.
error code that may be returned:
INTERNALERROR_TRADECALLBILLINGGATEWAYFAILED = "InternalError.TradeCallBillingGatewayFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_INVALIDDISKIDMALFORMED = "InvalidParameterValue.InvalidDiskIdMalformed" OPERATIONDENIED_DISKOPERATIONINPROGRESS = "OperationDenied.DiskOperationInProgress" OPERATIONDENIED_DISKUSAGENOTSUPPORTOPERATION = "OperationDenied.DiskUsageNotSupportOperation" RESOURCENOTFOUND_DISKIDNOTFOUND = "ResourceNotFound.DiskIdNotFound" UNSUPPORTEDOPERATION_DISKLATESTOPERATIONUNFINISHED = "UnsupportedOperation.DiskLatestOperationUnfinished"
func (*Client) ModifyDisksAttributeWithContext ¶
func (c *Client) ModifyDisksAttributeWithContext(ctx context.Context, request *ModifyDisksAttributeRequest) (response *ModifyDisksAttributeResponse, err error)
ModifyDisksAttribute This API is used to modify cloud disk attributes.
error code that may be returned:
INTERNALERROR_TRADECALLBILLINGGATEWAYFAILED = "InternalError.TradeCallBillingGatewayFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_INVALIDDISKIDMALFORMED = "InvalidParameterValue.InvalidDiskIdMalformed" OPERATIONDENIED_DISKOPERATIONINPROGRESS = "OperationDenied.DiskOperationInProgress" OPERATIONDENIED_DISKUSAGENOTSUPPORTOPERATION = "OperationDenied.DiskUsageNotSupportOperation" RESOURCENOTFOUND_DISKIDNOTFOUND = "ResourceNotFound.DiskIdNotFound" UNSUPPORTEDOPERATION_DISKLATESTOPERATIONUNFINISHED = "UnsupportedOperation.DiskLatestOperationUnfinished"
func (*Client) ModifyDisksRenewFlag ¶
func (c *Client) ModifyDisksRenewFlag(request *ModifyDisksRenewFlagRequest) (response *ModifyDisksRenewFlagResponse, err error)
ModifyDisksRenewFlag This API is used to modify the configuration of auto-renewal of cloud disks.
error code that may be returned:
INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_INVALIDDISKIDMALFORMED = "InvalidParameterValue.InvalidDiskIdMalformed" OPERATIONDENIED_DISKCREATING = "OperationDenied.DiskCreating" OPERATIONDENIED_DISKOPERATIONINPROGRESS = "OperationDenied.DiskOperationInProgress" OPERATIONDENIED_DISKUSAGENOTSUPPORTOPERATION = "OperationDenied.DiskUsageNotSupportOperation" RESOURCENOTFOUND_DISKIDNOTFOUND = "ResourceNotFound.DiskIdNotFound" RESOURCENOTFOUND_DISKNOTFOUND = "ResourceNotFound.DiskNotFound"
func (*Client) ModifyDisksRenewFlagWithContext ¶
func (c *Client) ModifyDisksRenewFlagWithContext(ctx context.Context, request *ModifyDisksRenewFlagRequest) (response *ModifyDisksRenewFlagResponse, err error)
ModifyDisksRenewFlag This API is used to modify the configuration of auto-renewal of cloud disks.
error code that may be returned:
INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_INVALIDDISKIDMALFORMED = "InvalidParameterValue.InvalidDiskIdMalformed" OPERATIONDENIED_DISKCREATING = "OperationDenied.DiskCreating" OPERATIONDENIED_DISKOPERATIONINPROGRESS = "OperationDenied.DiskOperationInProgress" OPERATIONDENIED_DISKUSAGENOTSUPPORTOPERATION = "OperationDenied.DiskUsageNotSupportOperation" RESOURCENOTFOUND_DISKIDNOTFOUND = "ResourceNotFound.DiskIdNotFound" RESOURCENOTFOUND_DISKNOTFOUND = "ResourceNotFound.DiskNotFound"
func (*Client) ModifyFirewallRuleDescription ¶
func (c *Client) ModifyFirewallRuleDescription(request *ModifyFirewallRuleDescriptionRequest) (response *ModifyFirewallRuleDescriptionResponse, err error)
ModifyFirewallRuleDescription This API is used to modify the description of a single firewall rule.
* `FirewallVersion` is used to specify the version of the firewall to be manipulated. If the `FirewallVersion` value passed in is not equal to the current latest version of the firewall, a failure will be returned. If `FirewallVersion` is not passed in, the description of the specified rule will be modified directly.
In the `FirewallRule` parameter:
* Valid values of the `Protocol` field include `TCP`, `UDP`, `ICMP`, and `ALL`.
* For the `Port` field, you can enter only `ALL`, a single port number, several port numbers separated by commas, or a port range indicated by two port numbers separated by a minus sign. If `Port` is a range, the port number on the left of the minus sign must be smaller than the one on the right. If `Protocol` is not `TCP` or `UDP`, `Port` can only be empty or `ALL`. The length of the `Port` field cannot exceed 64 characters.
* For the `CidrBlock` field, you can enter any string that conforms to the CIDR format standard. Multi-Tenant network isolation rules take precedence over private network rules in the firewall.
* For the `Action` field, you can enter only `ACCEPT` or `DROP`.
* The length of the `FirewallRuleDescription` field cannot exceed 64 characters.
error code that may be returned:
INVALIDPARAMETERVALUE_FIREWALLRULEDESCRIPTIONTOOLONG = "InvalidParameterValue.FirewallRuleDescriptionTooLong" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" RESOURCENOTFOUND_FIREWALLNOTFOUND = "ResourceNotFound.FirewallNotFound" RESOURCENOTFOUND_FIREWALLRULESNOTFOUND = "ResourceNotFound.FirewallRulesNotFound" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNSUPPORTEDOPERATION_FIREWALLBUSY = "UnsupportedOperation.FirewallBusy" UNSUPPORTEDOPERATION_FIREWALLVERSIONMISMATCH = "UnsupportedOperation.FirewallVersionMismatch"
func (*Client) ModifyFirewallRuleDescriptionWithContext ¶
func (c *Client) ModifyFirewallRuleDescriptionWithContext(ctx context.Context, request *ModifyFirewallRuleDescriptionRequest) (response *ModifyFirewallRuleDescriptionResponse, err error)
ModifyFirewallRuleDescription This API is used to modify the description of a single firewall rule.
* `FirewallVersion` is used to specify the version of the firewall to be manipulated. If the `FirewallVersion` value passed in is not equal to the current latest version of the firewall, a failure will be returned. If `FirewallVersion` is not passed in, the description of the specified rule will be modified directly.
In the `FirewallRule` parameter:
* Valid values of the `Protocol` field include `TCP`, `UDP`, `ICMP`, and `ALL`.
* For the `Port` field, you can enter only `ALL`, a single port number, several port numbers separated by commas, or a port range indicated by two port numbers separated by a minus sign. If `Port` is a range, the port number on the left of the minus sign must be smaller than the one on the right. If `Protocol` is not `TCP` or `UDP`, `Port` can only be empty or `ALL`. The length of the `Port` field cannot exceed 64 characters.
* For the `CidrBlock` field, you can enter any string that conforms to the CIDR format standard. Multi-Tenant network isolation rules take precedence over private network rules in the firewall.
* For the `Action` field, you can enter only `ACCEPT` or `DROP`.
* The length of the `FirewallRuleDescription` field cannot exceed 64 characters.
error code that may be returned:
INVALIDPARAMETERVALUE_FIREWALLRULEDESCRIPTIONTOOLONG = "InvalidParameterValue.FirewallRuleDescriptionTooLong" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" RESOURCENOTFOUND_FIREWALLNOTFOUND = "ResourceNotFound.FirewallNotFound" RESOURCENOTFOUND_FIREWALLRULESNOTFOUND = "ResourceNotFound.FirewallRulesNotFound" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNSUPPORTEDOPERATION_FIREWALLBUSY = "UnsupportedOperation.FirewallBusy" UNSUPPORTEDOPERATION_FIREWALLVERSIONMISMATCH = "UnsupportedOperation.FirewallVersionMismatch"
func (*Client) ModifyFirewallRules ¶
func (c *Client) ModifyFirewallRules(request *ModifyFirewallRulesRequest) (response *ModifyFirewallRulesResponse, err error)
ModifyFirewallRules This API is used to reset the firewall rules of an instance.
This API deletes all firewall rules of the current instance first and then adds new rules.
* `FirewallVersion` is used to specify the version of the firewall to be manipulated. If the `FirewallVersion` value passed in is not equal to the current latest version of the firewall, a failure will be returned. If `FirewallVersion` is not passed in, the specified rule will be reset directly.
In the `FirewallRules` parameter:
* Valid values of the `Protocol` field include `TCP`, `UDP`, `ICMP`, and `ALL`.
* For the `Port` field, you can enter only `ALL`, a single port number, several port numbers separated by commas, or a port range indicated by two port numbers separated by a minus sign. If `Port` is a range, the port number on the left of the minus sign must be smaller than the one on the right. If `Protocol` is not `TCP` or `UDP`, `Port` can only be empty or `ALL`. The length of the `Port` field cannot exceed 64 characters.
* For the `CidrBlock` field, you can enter any string that conforms to the CIDR format standard. Multi-Tenant network isolation rules take precedence over private network rules in the firewall.
* For the `Action` field, you can enter only `ACCEPT` or `DROP`.
* The length of the `FirewallRuleDescription` field cannot exceed 64 characters.
error code that may be returned:
FAILEDOPERATION_FIREWALLRULESOPERATIONFAILED = "FailedOperation.FirewallRulesOperationFailed" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_FIREWALLRULESDUPLICATED = "InvalidParameter.FirewallRulesDuplicated" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_FIREWALLRULEDESCRIPTIONTOOLONG = "InvalidParameterValue.FirewallRuleDescriptionTooLong" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" RESOURCENOTFOUND_FIREWALLNOTFOUND = "ResourceNotFound.FirewallNotFound" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_FIREWALLBUSY = "UnsupportedOperation.FirewallBusy" UNSUPPORTEDOPERATION_FIREWALLVERSIONMISMATCH = "UnsupportedOperation.FirewallVersionMismatch"
func (*Client) ModifyFirewallRulesWithContext ¶
func (c *Client) ModifyFirewallRulesWithContext(ctx context.Context, request *ModifyFirewallRulesRequest) (response *ModifyFirewallRulesResponse, err error)
ModifyFirewallRules This API is used to reset the firewall rules of an instance.
This API deletes all firewall rules of the current instance first and then adds new rules.
* `FirewallVersion` is used to specify the version of the firewall to be manipulated. If the `FirewallVersion` value passed in is not equal to the current latest version of the firewall, a failure will be returned. If `FirewallVersion` is not passed in, the specified rule will be reset directly.
In the `FirewallRules` parameter:
* Valid values of the `Protocol` field include `TCP`, `UDP`, `ICMP`, and `ALL`.
* For the `Port` field, you can enter only `ALL`, a single port number, several port numbers separated by commas, or a port range indicated by two port numbers separated by a minus sign. If `Port` is a range, the port number on the left of the minus sign must be smaller than the one on the right. If `Protocol` is not `TCP` or `UDP`, `Port` can only be empty or `ALL`. The length of the `Port` field cannot exceed 64 characters.
* For the `CidrBlock` field, you can enter any string that conforms to the CIDR format standard. Multi-Tenant network isolation rules take precedence over private network rules in the firewall.
* For the `Action` field, you can enter only `ACCEPT` or `DROP`.
* The length of the `FirewallRuleDescription` field cannot exceed 64 characters.
error code that may be returned:
FAILEDOPERATION_FIREWALLRULESOPERATIONFAILED = "FailedOperation.FirewallRulesOperationFailed" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_FIREWALLRULESDUPLICATED = "InvalidParameter.FirewallRulesDuplicated" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_FIREWALLRULEDESCRIPTIONTOOLONG = "InvalidParameterValue.FirewallRuleDescriptionTooLong" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" RESOURCENOTFOUND_FIREWALLNOTFOUND = "ResourceNotFound.FirewallNotFound" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_FIREWALLBUSY = "UnsupportedOperation.FirewallBusy" UNSUPPORTEDOPERATION_FIREWALLVERSIONMISMATCH = "UnsupportedOperation.FirewallVersionMismatch"
func (*Client) ModifyInstancesAttribute ¶
func (c *Client) ModifyInstancesAttribute(request *ModifyInstancesAttributeRequest) (response *ModifyInstancesAttributeResponse, err error)
ModifyInstancesAttribute This API is used to modify the attributes of instances.
* The instance name is used only for users’ convenience.
* Batch operations are supported. Each request can contain up to 100 instances at a time.
* This API is async. A successful request will return a `RequestId`, it does not mean the operation is completed. You can call the `DescribeInstances` API to query the operation result. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.
error code that may be returned:
FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed" INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_TRADECALLBILLINGGATEWAYFAILED = "InternalError.TradeCallBillingGatewayFailed" INVALIDPARAMETER_ONLYALLOWMODIFYONEATTRIBUTE = "InvalidParameter.OnlyAllowModifyOneAttribute" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_INSTANCENAMETOOLONG = "InvalidParameterValue.InstanceNameTooLong" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) ModifyInstancesAttributeWithContext ¶
func (c *Client) ModifyInstancesAttributeWithContext(ctx context.Context, request *ModifyInstancesAttributeRequest) (response *ModifyInstancesAttributeResponse, err error)
ModifyInstancesAttribute This API is used to modify the attributes of instances.
* The instance name is used only for users’ convenience.
* Batch operations are supported. Each request can contain up to 100 instances at a time.
* This API is async. A successful request will return a `RequestId`, it does not mean the operation is completed. You can call the `DescribeInstances` API to query the operation result. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.
error code that may be returned:
FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed" INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_TRADECALLBILLINGGATEWAYFAILED = "InternalError.TradeCallBillingGatewayFailed" INVALIDPARAMETER_ONLYALLOWMODIFYONEATTRIBUTE = "InvalidParameter.OnlyAllowModifyOneAttribute" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_INSTANCENAMETOOLONG = "InvalidParameterValue.InstanceNameTooLong" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) ModifyInstancesLoginKeyPairAttribute ¶
func (c *Client) ModifyInstancesLoginKeyPairAttribute(request *ModifyInstancesLoginKeyPairAttributeRequest) (response *ModifyInstancesLoginKeyPairAttributeResponse, err error)
ModifyInstancesLoginKeyPairAttribute This API is used to set the attributes of the default login key pair of an instance.
error code that may be returned:
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_INVALIDINSTANCELOGINKEYPAIRPERMITLOGIN = "InvalidParameterValue.InvalidInstanceLoginKeyPairPermitLogin" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) ModifyInstancesLoginKeyPairAttributeWithContext ¶
func (c *Client) ModifyInstancesLoginKeyPairAttributeWithContext(ctx context.Context, request *ModifyInstancesLoginKeyPairAttributeRequest) (response *ModifyInstancesLoginKeyPairAttributeResponse, err error)
ModifyInstancesLoginKeyPairAttribute This API is used to set the attributes of the default login key pair of an instance.
error code that may be returned:
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_INVALIDINSTANCELOGINKEYPAIRPERMITLOGIN = "InvalidParameterValue.InvalidInstanceLoginKeyPairPermitLogin" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) ModifyInstancesRenewFlag ¶
func (c *Client) ModifyInstancesRenewFlag(request *ModifyInstancesRenewFlagRequest) (response *ModifyInstancesRenewFlagResponse, err error)
ModifyInstancesRenewFlag This API is used to modify the renewal flags of monthly subscribed instances.
* Instances marked with "auto-renewal" will be automatically renewed for one month when they expire.
* Batch operations are supported. The maximum number of instances in each request is 100.
* The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.
error code that may be returned:
INTERNALERROR_TRADECALLBILLINGGATEWAYFAILED = "InternalError.TradeCallBillingGatewayFailed" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) ModifyInstancesRenewFlagWithContext ¶
func (c *Client) ModifyInstancesRenewFlagWithContext(ctx context.Context, request *ModifyInstancesRenewFlagRequest) (response *ModifyInstancesRenewFlagResponse, err error)
ModifyInstancesRenewFlag This API is used to modify the renewal flags of monthly subscribed instances.
* Instances marked with "auto-renewal" will be automatically renewed for one month when they expire.
* Batch operations are supported. The maximum number of instances in each request is 100.
* The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.
error code that may be returned:
INTERNALERROR_TRADECALLBILLINGGATEWAYFAILED = "InternalError.TradeCallBillingGatewayFailed" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) ModifySnapshotAttribute ¶
func (c *Client) ModifySnapshotAttribute(request *ModifySnapshotAttributeRequest) (response *ModifySnapshotAttributeResponse, err error)
ModifySnapshotAttribute This API is used to modify the attributes of a snapshot.
<li>The snapshot name is used only for users’ convenience.</li>
error code that may be returned:
INVALIDPARAMETERVALUE_SNAPSHOTIDMALFORMED = "InvalidParameterValue.SnapshotIdMalformed" INVALIDPARAMETERVALUE_SNAPSHOTNAMETOOLONG = "InvalidParameterValue.SnapshotNameTooLong" RESOURCENOTFOUND_SNAPSHOTIDNOTFOUND = "ResourceNotFound.SnapshotIdNotFound"
func (*Client) ModifySnapshotAttributeWithContext ¶
func (c *Client) ModifySnapshotAttributeWithContext(ctx context.Context, request *ModifySnapshotAttributeRequest) (response *ModifySnapshotAttributeResponse, err error)
ModifySnapshotAttribute This API is used to modify the attributes of a snapshot.
<li>The snapshot name is used only for users’ convenience.</li>
error code that may be returned:
INVALIDPARAMETERVALUE_SNAPSHOTIDMALFORMED = "InvalidParameterValue.SnapshotIdMalformed" INVALIDPARAMETERVALUE_SNAPSHOTNAMETOOLONG = "InvalidParameterValue.SnapshotNameTooLong" RESOURCENOTFOUND_SNAPSHOTIDNOTFOUND = "ResourceNotFound.SnapshotIdNotFound"
func (*Client) RebootInstances ¶
func (c *Client) RebootInstances(request *RebootInstancesRequest) (response *RebootInstancesResponse, err error)
RebootInstances This API is used to restart instances.
* You can only perform this operation on instances whose status is `RUNNING`.
* The instance status will become `REBOOTING` when the API is called successfully and will become `RUNNING` when the instance is successfully restarted.
* Batch operations are supported. The maximum number of instances in each request is 100.
* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.
error code that may be returned:
FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed" INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) RebootInstancesWithContext ¶
func (c *Client) RebootInstancesWithContext(ctx context.Context, request *RebootInstancesRequest) (response *RebootInstancesResponse, err error)
RebootInstances This API is used to restart instances.
* You can only perform this operation on instances whose status is `RUNNING`.
* The instance status will become `REBOOTING` when the API is called successfully and will become `RUNNING` when the instance is successfully restarted.
* Batch operations are supported. The maximum number of instances in each request is 100.
* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.
error code that may be returned:
FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed" INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) ResetAttachCcn ¶
func (c *Client) ResetAttachCcn(request *ResetAttachCcnRequest) (response *ResetAttachCcnResponse, err error)
ResetAttachCcn This API is used to apply for association again after a CCN instance association application expires.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE_CCNIDMALFORMED = "InvalidParameterValue.CcnIdMalformed" MISSINGPARAMETER = "MissingParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_CCNNOTATTACHED = "UnsupportedOperation.CcnNotAttached" UNSUPPORTEDOPERATION_RESETATTACHCCNFAILED = "UnsupportedOperation.ResetAttachCcnFailed"
func (*Client) ResetAttachCcnWithContext ¶
func (c *Client) ResetAttachCcnWithContext(ctx context.Context, request *ResetAttachCcnRequest) (response *ResetAttachCcnResponse, err error)
ResetAttachCcn This API is used to apply for association again after a CCN instance association application expires.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE_CCNIDMALFORMED = "InvalidParameterValue.CcnIdMalformed" MISSINGPARAMETER = "MissingParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_CCNNOTATTACHED = "UnsupportedOperation.CcnNotAttached" UNSUPPORTEDOPERATION_RESETATTACHCCNFAILED = "UnsupportedOperation.ResetAttachCcnFailed"
func (*Client) ResetInstance ¶
func (c *Client) ResetInstance(request *ResetInstanceRequest) (response *ResetInstanceResponse, err error)
ResetInstance This API is used to reinstall the image on the specified instance.
* If you specify a `BlueprintId`, the specified image is used; otherwise, the image used by the current instance is used.
* The system disk will be formatted and reset. Therefore, make sure that no important files are stored on the system disk.
* Currently, this API does not support switching the operating system between `LINUX_UNIX` and `WINDOWS` for instances.
* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.
error code that may be returned:
FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed" INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INVALIDPARAMETERVALUE_BLUEPRINTCONFIGNOTMATCH = "InvalidParameterValue.BlueprintConfigNotMatch" INVALIDPARAMETERVALUE_BLUEPRINTID = "InvalidParameterValue.BlueprintId" INVALIDPARAMETERVALUE_BLUEPRINTIDMALFORMED = "InvalidParameterValue.BlueprintIdMalformed" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NOTALLOWTOCHANGEPLATFORMTYPE = "InvalidParameterValue.NotAllowToChangePlatformType" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress" RESOURCENOTFOUND_BLUEPRINTIDNOTFOUND = "ResourceNotFound.BlueprintIdNotFound" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_BLUEPRINTUNAVAILABLE = "ResourceUnavailable.BlueprintUnavailable" UNAUTHORIZEDOPERATION_MFANOTFOUND = "UnauthorizedOperation.MFANotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished" UNSUPPORTEDOPERATION_SYSTEMBUSY = "UnsupportedOperation.SystemBusy"
func (*Client) ResetInstanceWithContext ¶
func (c *Client) ResetInstanceWithContext(ctx context.Context, request *ResetInstanceRequest) (response *ResetInstanceResponse, err error)
ResetInstance This API is used to reinstall the image on the specified instance.
* If you specify a `BlueprintId`, the specified image is used; otherwise, the image used by the current instance is used.
* The system disk will be formatted and reset. Therefore, make sure that no important files are stored on the system disk.
* Currently, this API does not support switching the operating system between `LINUX_UNIX` and `WINDOWS` for instances.
* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.
error code that may be returned:
FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed" INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INVALIDPARAMETERVALUE_BLUEPRINTCONFIGNOTMATCH = "InvalidParameterValue.BlueprintConfigNotMatch" INVALIDPARAMETERVALUE_BLUEPRINTID = "InvalidParameterValue.BlueprintId" INVALIDPARAMETERVALUE_BLUEPRINTIDMALFORMED = "InvalidParameterValue.BlueprintIdMalformed" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NOTALLOWTOCHANGEPLATFORMTYPE = "InvalidParameterValue.NotAllowToChangePlatformType" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress" RESOURCENOTFOUND_BLUEPRINTIDNOTFOUND = "ResourceNotFound.BlueprintIdNotFound" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_BLUEPRINTUNAVAILABLE = "ResourceUnavailable.BlueprintUnavailable" UNAUTHORIZEDOPERATION_MFANOTFOUND = "UnauthorizedOperation.MFANotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished" UNSUPPORTEDOPERATION_SYSTEMBUSY = "UnsupportedOperation.SystemBusy"
func (*Client) ResetInstancesPassword ¶
func (c *Client) ResetInstancesPassword(request *ResetInstancesPasswordRequest) (response *ResetInstancesPasswordResponse, err error)
ResetInstancesPassword This API is used to reset the password of the instance OS to a user-specified password.
* You can only use this API to modify the password of the admin account. The name of the admin account varies by OS (on Windows, it is `Administrator`; on Ubuntu, it is `ubuntu`; on other systems, it is `root`).
* Batch operations are supported. You can reset the passwords of multiple instances to the same one. The maximum number of instances in each request is 100.
* It’s recommended to shut down the instance first and then reset the password. If the instance is running, this API will try to shut it down normally. If the attempt fails, it will force to instance to shut down.
* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.
Note: Just like powering off a physical PC, a forced shutdown may cause data loss or the corruption of file system.
error code that may be returned:
FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed" INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_INVALIDPASSWORD = "InvalidParameterValue.InvalidPassword" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NOTALLOWTOCHANGEPLATFORMTYPE = "InvalidParameterValue.NotAllowToChangePlatformType" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired" UNAUTHORIZEDOPERATION_MFANOTFOUND = "UnauthorizedOperation.MFANotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) ResetInstancesPasswordWithContext ¶
func (c *Client) ResetInstancesPasswordWithContext(ctx context.Context, request *ResetInstancesPasswordRequest) (response *ResetInstancesPasswordResponse, err error)
ResetInstancesPassword This API is used to reset the password of the instance OS to a user-specified password.
* You can only use this API to modify the password of the admin account. The name of the admin account varies by OS (on Windows, it is `Administrator`; on Ubuntu, it is `ubuntu`; on other systems, it is `root`).
* Batch operations are supported. You can reset the passwords of multiple instances to the same one. The maximum number of instances in each request is 100.
* It’s recommended to shut down the instance first and then reset the password. If the instance is running, this API will try to shut it down normally. If the attempt fails, it will force to instance to shut down.
* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.
Note: Just like powering off a physical PC, a forced shutdown may cause data loss or the corruption of file system.
error code that may be returned:
FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed" INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_INVALIDPASSWORD = "InvalidParameterValue.InvalidPassword" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NOTALLOWTOCHANGEPLATFORMTYPE = "InvalidParameterValue.NotAllowToChangePlatformType" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired" UNAUTHORIZEDOPERATION_MFANOTFOUND = "UnauthorizedOperation.MFANotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) StartInstances ¶
func (c *Client) StartInstances(request *StartInstancesRequest) (response *StartInstancesResponse, err error)
StartInstances This API is used to start one or more instances.
* You can only perform this operation on instances whose status is `STOPPED`.
* The instance status will become `STARTING` when the API is called successfully and will become `RUNNING` when the instance is successfully started.
* Batch operations are supported. The maximum number of instances in each request is 100.
* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.
error code that may be returned:
FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed" INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) StartInstancesWithContext ¶
func (c *Client) StartInstancesWithContext(ctx context.Context, request *StartInstancesRequest) (response *StartInstancesResponse, err error)
StartInstances This API is used to start one or more instances.
* You can only perform this operation on instances whose status is `STOPPED`.
* The instance status will become `STARTING` when the API is called successfully and will become `RUNNING` when the instance is successfully started.
* Batch operations are supported. The maximum number of instances in each request is 100.
* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.
error code that may be returned:
FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed" INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) StopInstances ¶
func (c *Client) StopInstances(request *StopInstancesRequest) (response *StopInstancesResponse, err error)
StopInstances This API is used to shut down one or more instances.
* You can only perform this operation on instances whose status is `RUNNING`.
* The instance status will become `STOPPING` when the API is called successfully and will become `STOPPED` when the instance is successfully shut down.
* Batch operations are supported. The maximum number of instances in each request is 100.
* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.
error code that may be returned:
FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed" INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) StopInstancesWithContext ¶
func (c *Client) StopInstancesWithContext(ctx context.Context, request *StopInstancesRequest) (response *StopInstancesResponse, err error)
StopInstances This API is used to shut down one or more instances.
* You can only perform this operation on instances whose status is `RUNNING`.
* The instance status will become `STOPPING` when the API is called successfully and will become `STOPPED` when the instance is successfully shut down.
* Batch operations are supported. The maximum number of instances in each request is 100.
* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.
error code that may be returned:
FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed" INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange" OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) TerminateDisks ¶
func (c *Client) TerminateDisks(request *TerminateDisksRequest) (response *TerminateDisksResponse, err error)
TerminateDisks This API is used to terminate one or more cloud disk.
error code that may be returned:
INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_INVALIDDISKIDMALFORMED = "InvalidParameterValue.InvalidDiskIdMalformed" OPERATIONDENIED_DISKOPERATIONINPROGRESS = "OperationDenied.DiskOperationInProgress" OPERATIONDENIED_DISKUSAGENOTSUPPORTOPERATION = "OperationDenied.DiskUsageNotSupportOperation" RESOURCENOTFOUND_DISKIDNOTFOUND = "ResourceNotFound.DiskIdNotFound" UNSUPPORTEDOPERATION_INVALIDDISKSTATE = "UnsupportedOperation.InvalidDiskState"
func (*Client) TerminateDisksWithContext ¶
func (c *Client) TerminateDisksWithContext(ctx context.Context, request *TerminateDisksRequest) (response *TerminateDisksResponse, err error)
TerminateDisks This API is used to terminate one or more cloud disk.
error code that may be returned:
INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_INVALIDDISKIDMALFORMED = "InvalidParameterValue.InvalidDiskIdMalformed" OPERATIONDENIED_DISKOPERATIONINPROGRESS = "OperationDenied.DiskOperationInProgress" OPERATIONDENIED_DISKUSAGENOTSUPPORTOPERATION = "OperationDenied.DiskUsageNotSupportOperation" RESOURCENOTFOUND_DISKIDNOTFOUND = "ResourceNotFound.DiskIdNotFound" UNSUPPORTEDOPERATION_INVALIDDISKSTATE = "UnsupportedOperation.InvalidDiskState"
func (*Client) TerminateInstances ¶
func (c *Client) TerminateInstances(request *TerminateInstancesRequest) (response *TerminateInstancesResponse, err error)
TerminateInstances This API is used to terminate one or more instances.
* Instances in `SHUTDOWN` status can be terminated through this API and cannot be recovered.
* Batch operations are supported. The allowed maximum number of instances in each request is 100.
* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.
error code that may be returned:
INTERNALERROR_TRADECALLBILLINGGATEWAYFAILED = "InternalError.TradeCallBillingGatewayFailed" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
func (*Client) TerminateInstancesWithContext ¶
func (c *Client) TerminateInstancesWithContext(ctx context.Context, request *TerminateInstancesRequest) (response *TerminateInstancesResponse, err error)
TerminateInstances This API is used to terminate one or more instances.
* Instances in `SHUTDOWN` status can be terminated through this API and cannot be recovered.
* Batch operations are supported. The allowed maximum number of instances in each request is 100.
* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.
error code that may be returned:
INTERNALERROR_TRADECALLBILLINGGATEWAYFAILED = "InternalError.TradeCallBillingGatewayFailed" INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated" INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating" OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress" RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState" UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
type ContainerEnv ¶
type CreateBlueprintRequest ¶
type CreateBlueprintRequest struct { *tchttp.BaseRequest // Image name, which can contain up to 60 characters. BlueprintName *string `json:"BlueprintName,omitempty" name:"BlueprintName"` // Image description, which can contain up to 60 characters. Description *string `json:"Description,omitempty" name:"Description"` // ID of the instance for which to make an image. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewCreateBlueprintRequest ¶
func NewCreateBlueprintRequest() (request *CreateBlueprintRequest)
func (*CreateBlueprintRequest) FromJsonString ¶
func (r *CreateBlueprintRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateBlueprintRequest) ToJsonString ¶
func (r *CreateBlueprintRequest) ToJsonString() string
type CreateBlueprintRequestParams ¶
type CreateBlueprintRequestParams struct { // Image name, which can contain up to 60 characters. BlueprintName *string `json:"BlueprintName,omitempty" name:"BlueprintName"` // Image description, which can contain up to 60 characters. Description *string `json:"Description,omitempty" name:"Description"` // ID of the instance for which to make an image. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
Predefined struct for user
type CreateBlueprintResponse ¶
type CreateBlueprintResponse struct { *tchttp.BaseResponse Response *CreateBlueprintResponseParams `json:"Response"` }
func NewCreateBlueprintResponse ¶
func NewCreateBlueprintResponse() (response *CreateBlueprintResponse)
func (*CreateBlueprintResponse) FromJsonString ¶
func (r *CreateBlueprintResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateBlueprintResponse) ToJsonString ¶
func (r *CreateBlueprintResponse) ToJsonString() string
type CreateBlueprintResponseParams ¶
type CreateBlueprintResponseParams struct { // Custom image ID. BlueprintId *string `json:"BlueprintId,omitempty" name:"BlueprintId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type CreateFirewallRulesRequest ¶
type CreateFirewallRulesRequest struct { *tchttp.BaseRequest // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Firewall rule list. FirewallRules []*FirewallRule `json:"FirewallRules,omitempty" name:"FirewallRules"` // Current firewall version number. Every time you update the firewall rule version, it will be automatically increased by 1 to prevent the rule from expiring. If it is left empty, conflicts will not be considered. FirewallVersion *uint64 `json:"FirewallVersion,omitempty" name:"FirewallVersion"` }
func NewCreateFirewallRulesRequest ¶
func NewCreateFirewallRulesRequest() (request *CreateFirewallRulesRequest)
func (*CreateFirewallRulesRequest) FromJsonString ¶
func (r *CreateFirewallRulesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateFirewallRulesRequest) ToJsonString ¶
func (r *CreateFirewallRulesRequest) ToJsonString() string
type CreateFirewallRulesRequestParams ¶
type CreateFirewallRulesRequestParams struct { // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Firewall rule list. FirewallRules []*FirewallRule `json:"FirewallRules,omitempty" name:"FirewallRules"` // Current firewall version number. Every time you update the firewall rule version, it will be automatically increased by 1 to prevent the rule from expiring. If it is left empty, conflicts will not be considered. FirewallVersion *uint64 `json:"FirewallVersion,omitempty" name:"FirewallVersion"` }
Predefined struct for user
type CreateFirewallRulesResponse ¶
type CreateFirewallRulesResponse struct { *tchttp.BaseResponse Response *CreateFirewallRulesResponseParams `json:"Response"` }
func NewCreateFirewallRulesResponse ¶
func NewCreateFirewallRulesResponse() (response *CreateFirewallRulesResponse)
func (*CreateFirewallRulesResponse) FromJsonString ¶
func (r *CreateFirewallRulesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateFirewallRulesResponse) ToJsonString ¶
func (r *CreateFirewallRulesResponse) ToJsonString() string
type CreateFirewallRulesResponseParams ¶
type CreateFirewallRulesResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type CreateInstanceSnapshotRequest ¶
type CreateInstanceSnapshotRequest struct { *tchttp.BaseRequest // ID of the instance for which to create a snapshot. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Snapshot name, which can contain up to 60 characters. SnapshotName *string `json:"SnapshotName,omitempty" name:"SnapshotName"` }
func NewCreateInstanceSnapshotRequest ¶
func NewCreateInstanceSnapshotRequest() (request *CreateInstanceSnapshotRequest)
func (*CreateInstanceSnapshotRequest) FromJsonString ¶
func (r *CreateInstanceSnapshotRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateInstanceSnapshotRequest) ToJsonString ¶
func (r *CreateInstanceSnapshotRequest) ToJsonString() string
type CreateInstanceSnapshotRequestParams ¶
type CreateInstanceSnapshotRequestParams struct { // ID of the instance for which to create a snapshot. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Snapshot name, which can contain up to 60 characters. SnapshotName *string `json:"SnapshotName,omitempty" name:"SnapshotName"` }
Predefined struct for user
type CreateInstanceSnapshotResponse ¶
type CreateInstanceSnapshotResponse struct { *tchttp.BaseResponse Response *CreateInstanceSnapshotResponseParams `json:"Response"` }
func NewCreateInstanceSnapshotResponse ¶
func NewCreateInstanceSnapshotResponse() (response *CreateInstanceSnapshotResponse)
func (*CreateInstanceSnapshotResponse) FromJsonString ¶
func (r *CreateInstanceSnapshotResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateInstanceSnapshotResponse) ToJsonString ¶
func (r *CreateInstanceSnapshotResponse) ToJsonString() string
type CreateInstanceSnapshotResponseParams ¶
type CreateInstanceSnapshotResponseParams struct { // Snapshot ID. SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type CreateInstancesRequest ¶
type CreateInstancesRequest struct { *tchttp.BaseRequest // Bundle ID. BundleId *string `json:"BundleId,omitempty" name:"BundleId"` // Image ID BlueprintId *string `json:"BlueprintId,omitempty" name:"BlueprintId"` // Monthly subscription information for the instance, including the purchase period, setting of auto-renewal, etc. InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` // Instance display name. InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // Number of the instances to purchase. For monthly subscribed instances, the value can be 1 to 30. The default value is `1`. Note that this number can not exceed the remaining quota under the current account. InstanceCount *uint64 `json:"InstanceCount,omitempty" name:"InstanceCount"` // List of availability zones. A random AZ is selected by default. Zones []*string `json:"Zones,omitempty" name:"Zones"` // Whether the request is a dry run only. // `true`: dry run only. The request will not create instance(s). A dry run can check whether all the required parameters are specified, whether the request format is right, whether the request exceeds service limits, and whether the specified CVMs are available. // If the dry run fails, the corresponding error code will be returned. // If the dry run succeeds, the RequestId will be returned. // `false` (default value): send a normal request and create instance(s) if all the requirements are met. DryRun *bool `json:"DryRun,omitempty" name:"DryRun"` // A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed. ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` // Login password of the instance. It’s only available for Windows instances. If it’s not specified, it means that the user choose to set the login password after the instance creation. LoginConfiguration *LoginConfiguration `json:"LoginConfiguration,omitempty" name:"LoginConfiguration"` // Configuration of the containers to create Containers []*DockerContainerConfiguration `json:"Containers,omitempty" name:"Containers"` // Whether to use the vouchers automatically. It defaults to No. AutoVoucher *bool `json:"AutoVoucher,omitempty" name:"AutoVoucher"` }
func NewCreateInstancesRequest ¶
func NewCreateInstancesRequest() (request *CreateInstancesRequest)
func (*CreateInstancesRequest) FromJsonString ¶
func (r *CreateInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateInstancesRequest) ToJsonString ¶
func (r *CreateInstancesRequest) ToJsonString() string
type CreateInstancesRequestParams ¶
type CreateInstancesRequestParams struct { // Bundle ID. BundleId *string `json:"BundleId,omitempty" name:"BundleId"` // Image ID BlueprintId *string `json:"BlueprintId,omitempty" name:"BlueprintId"` // Monthly subscription information for the instance, including the purchase period, setting of auto-renewal, etc. InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` // Instance display name. InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // Number of the instances to purchase. For monthly subscribed instances, the value can be 1 to 30. The default value is `1`. Note that this number can not exceed the remaining quota under the current account. InstanceCount *uint64 `json:"InstanceCount,omitempty" name:"InstanceCount"` // List of availability zones. A random AZ is selected by default. Zones []*string `json:"Zones,omitempty" name:"Zones"` // Whether the request is a dry run only. // `true`: dry run only. The request will not create instance(s). A dry run can check whether all the required parameters are specified, whether the request format is right, whether the request exceeds service limits, and whether the specified CVMs are available. // If the dry run fails, the corresponding error code will be returned. // If the dry run succeeds, the RequestId will be returned. // `false` (default value): send a normal request and create instance(s) if all the requirements are met. DryRun *bool `json:"DryRun,omitempty" name:"DryRun"` // A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed. ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` // Login password of the instance. It’s only available for Windows instances. If it’s not specified, it means that the user choose to set the login password after the instance creation. LoginConfiguration *LoginConfiguration `json:"LoginConfiguration,omitempty" name:"LoginConfiguration"` // Configuration of the containers to create Containers []*DockerContainerConfiguration `json:"Containers,omitempty" name:"Containers"` // Whether to use the vouchers automatically. It defaults to No. AutoVoucher *bool `json:"AutoVoucher,omitempty" name:"AutoVoucher"` }
Predefined struct for user
type CreateInstancesResponse ¶
type CreateInstancesResponse struct { *tchttp.BaseResponse Response *CreateInstancesResponseParams `json:"Response"` }
func NewCreateInstancesResponse ¶
func NewCreateInstancesResponse() (response *CreateInstancesResponse)
func (*CreateInstancesResponse) FromJsonString ¶
func (r *CreateInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateInstancesResponse) ToJsonString ¶
func (r *CreateInstancesResponse) ToJsonString() string
type CreateInstancesResponseParams ¶
type CreateInstancesResponseParams struct { // List of IDs created by using this API. The returning of IDs does not mean that the instances are created successfully. // // You can call `DescribeInstances` API, and find the instance ID in the `InstancesSet` returned to check its status. If the `status` is `running`, the instance is created successfully. InstanceIdSet []*string `json:"InstanceIdSet,omitempty" name:"InstanceIdSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type CreateKeyPairRequest ¶
type CreateKeyPairRequest struct { *tchttp.BaseRequest // Key pair name, which can contain up to 25 digits, letters, and underscores. KeyName *string `json:"KeyName,omitempty" name:"KeyName"` }
func NewCreateKeyPairRequest ¶
func NewCreateKeyPairRequest() (request *CreateKeyPairRequest)
func (*CreateKeyPairRequest) FromJsonString ¶
func (r *CreateKeyPairRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateKeyPairRequest) ToJsonString ¶
func (r *CreateKeyPairRequest) ToJsonString() string
type CreateKeyPairRequestParams ¶
type CreateKeyPairRequestParams struct { // Key pair name, which can contain up to 25 digits, letters, and underscores. KeyName *string `json:"KeyName,omitempty" name:"KeyName"` }
Predefined struct for user
type CreateKeyPairResponse ¶
type CreateKeyPairResponse struct { *tchttp.BaseResponse Response *CreateKeyPairResponseParams `json:"Response"` }
func NewCreateKeyPairResponse ¶
func NewCreateKeyPairResponse() (response *CreateKeyPairResponse)
func (*CreateKeyPairResponse) FromJsonString ¶
func (r *CreateKeyPairResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateKeyPairResponse) ToJsonString ¶
func (r *CreateKeyPairResponse) ToJsonString() string
type CreateKeyPairResponseParams ¶
type CreateKeyPairResponseParams struct { // Key pair information. KeyPair *KeyPair `json:"KeyPair,omitempty" name:"KeyPair"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DataDiskPrice ¶
type DataDiskPrice struct { // Cloud disk ID. DiskId *string `json:"DiskId,omitempty" name:"DiskId"` // Cloud disk unit price. OriginalDiskPrice *float64 `json:"OriginalDiskPrice,omitempty" name:"OriginalDiskPrice"` // Total price of cloud disk OriginalPrice *float64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"` // Discount. Discount *float64 `json:"Discount,omitempty" name:"Discount"` // Discounted total price. DiscountPrice *float64 `json:"DiscountPrice,omitempty" name:"DiscountPrice"` // ID of the instance to which the data disk is mounted. // Note: This field may return `null`, indicating that no valid value was found. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
type DeleteBlueprintsRequest ¶
type DeleteBlueprintsRequest struct { *tchttp.BaseRequest // Image ID list, which can be obtained from the `BlueprintId` returned by the [DescribeBlueprints](https://intl.cloud.tencent.com/document/product/1207/47689?from_cn_redirect=1) API. BlueprintIds []*string `json:"BlueprintIds,omitempty" name:"BlueprintIds"` }
func NewDeleteBlueprintsRequest ¶
func NewDeleteBlueprintsRequest() (request *DeleteBlueprintsRequest)
func (*DeleteBlueprintsRequest) FromJsonString ¶
func (r *DeleteBlueprintsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteBlueprintsRequest) ToJsonString ¶
func (r *DeleteBlueprintsRequest) ToJsonString() string
type DeleteBlueprintsRequestParams ¶
type DeleteBlueprintsRequestParams struct { // Image ID list, which can be obtained from the `BlueprintId` returned by the [DescribeBlueprints](https://intl.cloud.tencent.com/document/product/1207/47689?from_cn_redirect=1) API. BlueprintIds []*string `json:"BlueprintIds,omitempty" name:"BlueprintIds"` }
Predefined struct for user
type DeleteBlueprintsResponse ¶
type DeleteBlueprintsResponse struct { *tchttp.BaseResponse Response *DeleteBlueprintsResponseParams `json:"Response"` }
func NewDeleteBlueprintsResponse ¶
func NewDeleteBlueprintsResponse() (response *DeleteBlueprintsResponse)
func (*DeleteBlueprintsResponse) FromJsonString ¶
func (r *DeleteBlueprintsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteBlueprintsResponse) ToJsonString ¶
func (r *DeleteBlueprintsResponse) ToJsonString() string
type DeleteBlueprintsResponseParams ¶
type DeleteBlueprintsResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteFirewallRulesRequest ¶
type DeleteFirewallRulesRequest struct { *tchttp.BaseRequest // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Firewall rule list. FirewallRules []*FirewallRule `json:"FirewallRules,omitempty" name:"FirewallRules"` // Current firewall version number. Every time you update the firewall rule version, it will be automatically increased by 1 to prevent the rule from expiring. If it is left empty, conflicts will not be considered. FirewallVersion *uint64 `json:"FirewallVersion,omitempty" name:"FirewallVersion"` }
func NewDeleteFirewallRulesRequest ¶
func NewDeleteFirewallRulesRequest() (request *DeleteFirewallRulesRequest)
func (*DeleteFirewallRulesRequest) FromJsonString ¶
func (r *DeleteFirewallRulesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteFirewallRulesRequest) ToJsonString ¶
func (r *DeleteFirewallRulesRequest) ToJsonString() string
type DeleteFirewallRulesRequestParams ¶
type DeleteFirewallRulesRequestParams struct { // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Firewall rule list. FirewallRules []*FirewallRule `json:"FirewallRules,omitempty" name:"FirewallRules"` // Current firewall version number. Every time you update the firewall rule version, it will be automatically increased by 1 to prevent the rule from expiring. If it is left empty, conflicts will not be considered. FirewallVersion *uint64 `json:"FirewallVersion,omitempty" name:"FirewallVersion"` }
Predefined struct for user
type DeleteFirewallRulesResponse ¶
type DeleteFirewallRulesResponse struct { *tchttp.BaseResponse Response *DeleteFirewallRulesResponseParams `json:"Response"` }
func NewDeleteFirewallRulesResponse ¶
func NewDeleteFirewallRulesResponse() (response *DeleteFirewallRulesResponse)
func (*DeleteFirewallRulesResponse) FromJsonString ¶
func (r *DeleteFirewallRulesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteFirewallRulesResponse) ToJsonString ¶
func (r *DeleteFirewallRulesResponse) ToJsonString() string
type DeleteFirewallRulesResponseParams ¶
type DeleteFirewallRulesResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteKeyPairsRequest ¶
type DeleteKeyPairsRequest struct { *tchttp.BaseRequest // Key pair ID list. Each request can contain up to 10 key pairs. KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds"` }
func NewDeleteKeyPairsRequest ¶
func NewDeleteKeyPairsRequest() (request *DeleteKeyPairsRequest)
func (*DeleteKeyPairsRequest) FromJsonString ¶
func (r *DeleteKeyPairsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteKeyPairsRequest) ToJsonString ¶
func (r *DeleteKeyPairsRequest) ToJsonString() string
type DeleteKeyPairsRequestParams ¶
type DeleteKeyPairsRequestParams struct { // Key pair ID list. Each request can contain up to 10 key pairs. KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds"` }
Predefined struct for user
type DeleteKeyPairsResponse ¶
type DeleteKeyPairsResponse struct { *tchttp.BaseResponse Response *DeleteKeyPairsResponseParams `json:"Response"` }
func NewDeleteKeyPairsResponse ¶
func NewDeleteKeyPairsResponse() (response *DeleteKeyPairsResponse)
func (*DeleteKeyPairsResponse) FromJsonString ¶
func (r *DeleteKeyPairsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteKeyPairsResponse) ToJsonString ¶
func (r *DeleteKeyPairsResponse) ToJsonString() string
type DeleteKeyPairsResponseParams ¶
type DeleteKeyPairsResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteSnapshotsRequest ¶
type DeleteSnapshotsRequest struct { *tchttp.BaseRequest // List of IDs of snapshots to be deleted, which can be queried through `DescribeSnapshots`. SnapshotIds []*string `json:"SnapshotIds,omitempty" name:"SnapshotIds"` }
func NewDeleteSnapshotsRequest ¶
func NewDeleteSnapshotsRequest() (request *DeleteSnapshotsRequest)
func (*DeleteSnapshotsRequest) FromJsonString ¶
func (r *DeleteSnapshotsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteSnapshotsRequest) ToJsonString ¶
func (r *DeleteSnapshotsRequest) ToJsonString() string
type DeleteSnapshotsRequestParams ¶
type DeleteSnapshotsRequestParams struct { // List of IDs of snapshots to be deleted, which can be queried through `DescribeSnapshots`. SnapshotIds []*string `json:"SnapshotIds,omitempty" name:"SnapshotIds"` }
Predefined struct for user
type DeleteSnapshotsResponse ¶
type DeleteSnapshotsResponse struct { *tchttp.BaseResponse Response *DeleteSnapshotsResponseParams `json:"Response"` }
func NewDeleteSnapshotsResponse ¶
func NewDeleteSnapshotsResponse() (response *DeleteSnapshotsResponse)
func (*DeleteSnapshotsResponse) FromJsonString ¶
func (r *DeleteSnapshotsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteSnapshotsResponse) ToJsonString ¶
func (r *DeleteSnapshotsResponse) ToJsonString() string
type DeleteSnapshotsResponseParams ¶
type DeleteSnapshotsResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DeniedAction ¶
type DescribeAllScenesRequest ¶
type DescribeAllScenesRequest struct { *tchttp.BaseRequest // List of scene IDs SceneIds []*string `json:"SceneIds,omitempty" name:"SceneIds"` // Offset. Default value: 0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100 Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeAllScenesRequest ¶
func NewDescribeAllScenesRequest() (request *DescribeAllScenesRequest)
func (*DescribeAllScenesRequest) FromJsonString ¶
func (r *DescribeAllScenesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAllScenesRequest) ToJsonString ¶
func (r *DescribeAllScenesRequest) ToJsonString() string
type DescribeAllScenesRequestParams ¶
type DescribeAllScenesRequestParams struct { // List of scene IDs SceneIds []*string `json:"SceneIds,omitempty" name:"SceneIds"` // Offset. Default value: 0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100 Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
Predefined struct for user
type DescribeAllScenesResponse ¶
type DescribeAllScenesResponse struct { *tchttp.BaseResponse Response *DescribeAllScenesResponseParams `json:"Response"` }
func NewDescribeAllScenesResponse ¶
func NewDescribeAllScenesResponse() (response *DescribeAllScenesResponse)
func (*DescribeAllScenesResponse) FromJsonString ¶
func (r *DescribeAllScenesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAllScenesResponse) ToJsonString ¶
func (r *DescribeAllScenesResponse) ToJsonString() string
type DescribeAllScenesResponseParams ¶
type DescribeAllScenesResponseParams struct { // List of scenes SceneInfoSet []*SceneInfo `json:"SceneInfoSet,omitempty" name:"SceneInfoSet"` // Total count of scenes TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeBlueprintInstancesRequest ¶
type DescribeBlueprintInstancesRequest struct { *tchttp.BaseRequest // Instance ID list, which currently can contain only one instance. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewDescribeBlueprintInstancesRequest ¶
func NewDescribeBlueprintInstancesRequest() (request *DescribeBlueprintInstancesRequest)
func (*DescribeBlueprintInstancesRequest) FromJsonString ¶
func (r *DescribeBlueprintInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBlueprintInstancesRequest) ToJsonString ¶
func (r *DescribeBlueprintInstancesRequest) ToJsonString() string
type DescribeBlueprintInstancesRequestParams ¶
type DescribeBlueprintInstancesRequestParams struct { // Instance ID list, which currently can contain only one instance. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
Predefined struct for user
type DescribeBlueprintInstancesResponse ¶
type DescribeBlueprintInstancesResponse struct { *tchttp.BaseResponse Response *DescribeBlueprintInstancesResponseParams `json:"Response"` }
func NewDescribeBlueprintInstancesResponse ¶
func NewDescribeBlueprintInstancesResponse() (response *DescribeBlueprintInstancesResponse)
func (*DescribeBlueprintInstancesResponse) FromJsonString ¶
func (r *DescribeBlueprintInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBlueprintInstancesResponse) ToJsonString ¶
func (r *DescribeBlueprintInstancesResponse) ToJsonString() string
type DescribeBlueprintInstancesResponseParams ¶
type DescribeBlueprintInstancesResponseParams struct { // Number of eligible image instances. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Image instance list information. BlueprintInstanceSet []*BlueprintInstance `json:"BlueprintInstanceSet,omitempty" name:"BlueprintInstanceSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeBlueprintsRequest ¶
type DescribeBlueprintsRequest struct { *tchttp.BaseRequest // Image ID list. BlueprintIds []*string `json:"BlueprintIds,omitempty" name:"BlueprintIds"` // Offset. Default value: 0. For more information on `Offset`, please see the relevant section in [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1). Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, please see the relevant section in the API [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1). Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Filter list // <li>blueprint-id</li>Filter by the **image ID**. // Type: String // Required: no // <li>blueprint-type</li>Filter by the **image type**. // Valid values: `APP_OS` (application image); `PURE_OS` (system image); `PRIVATE` (custom image) and `SHARED` (shared image) // Type: String // Required: no // <li>platform-type</li>Filter by the **image operating system**. // Valid values: `LINUX_UNIX` (Linux or Unix), `WINDOWS` (Windows) // Type: String // Required: no // <li>blueprint-name</li>Filter by the **image name**. // Type: String // Required: no // <li>blueprint-state</li>Filter by the **image status**. // Type: String // Required: no // <li>scene-id</li>Filter by the **scene ID**. // Type: String // Required: no // // Each request can contain up to 10 `Filters`, each of which can contain up to 00 `Filter.Values`. `BlueprintIds` and `Filters` cannot be specified at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` }
func NewDescribeBlueprintsRequest ¶
func NewDescribeBlueprintsRequest() (request *DescribeBlueprintsRequest)
func (*DescribeBlueprintsRequest) FromJsonString ¶
func (r *DescribeBlueprintsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBlueprintsRequest) ToJsonString ¶
func (r *DescribeBlueprintsRequest) ToJsonString() string
type DescribeBlueprintsRequestParams ¶
type DescribeBlueprintsRequestParams struct { // Image ID list. BlueprintIds []*string `json:"BlueprintIds,omitempty" name:"BlueprintIds"` // Offset. Default value: 0. For more information on `Offset`, please see the relevant section in [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1). Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, please see the relevant section in the API [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1). Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Filter list // <li>blueprint-id</li>Filter by the **image ID**. // Type: String // Required: no // <li>blueprint-type</li>Filter by the **image type**. // Valid values: `APP_OS` (application image); `PURE_OS` (system image); `PRIVATE` (custom image) and `SHARED` (shared image) // Type: String // Required: no // <li>platform-type</li>Filter by the **image operating system**. // Valid values: `LINUX_UNIX` (Linux or Unix), `WINDOWS` (Windows) // Type: String // Required: no // <li>blueprint-name</li>Filter by the **image name**. // Type: String // Required: no // <li>blueprint-state</li>Filter by the **image status**. // Type: String // Required: no // <li>scene-id</li>Filter by the **scene ID**. // Type: String // Required: no // // Each request can contain up to 10 `Filters`, each of which can contain up to 00 `Filter.Values`. `BlueprintIds` and `Filters` cannot be specified at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` }
Predefined struct for user
type DescribeBlueprintsResponse ¶
type DescribeBlueprintsResponse struct { *tchttp.BaseResponse Response *DescribeBlueprintsResponseParams `json:"Response"` }
func NewDescribeBlueprintsResponse ¶
func NewDescribeBlueprintsResponse() (response *DescribeBlueprintsResponse)
func (*DescribeBlueprintsResponse) FromJsonString ¶
func (r *DescribeBlueprintsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBlueprintsResponse) ToJsonString ¶
func (r *DescribeBlueprintsResponse) ToJsonString() string
type DescribeBlueprintsResponseParams ¶
type DescribeBlueprintsResponseParams struct { // Number of eligible images. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Image details list. BlueprintSet []*Blueprint `json:"BlueprintSet,omitempty" name:"BlueprintSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeBundleDiscountRequest ¶
type DescribeBundleDiscountRequest struct { *tchttp.BaseRequest // Package ID. BundleId *string `json:"BundleId,omitempty" name:"BundleId"` }
func NewDescribeBundleDiscountRequest ¶
func NewDescribeBundleDiscountRequest() (request *DescribeBundleDiscountRequest)
func (*DescribeBundleDiscountRequest) FromJsonString ¶
func (r *DescribeBundleDiscountRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBundleDiscountRequest) ToJsonString ¶
func (r *DescribeBundleDiscountRequest) ToJsonString() string
type DescribeBundleDiscountRequestParams ¶
type DescribeBundleDiscountRequestParams struct { // Package ID. BundleId *string `json:"BundleId,omitempty" name:"BundleId"` }
Predefined struct for user
type DescribeBundleDiscountResponse ¶
type DescribeBundleDiscountResponse struct { *tchttp.BaseResponse Response *DescribeBundleDiscountResponseParams `json:"Response"` }
func NewDescribeBundleDiscountResponse ¶
func NewDescribeBundleDiscountResponse() (response *DescribeBundleDiscountResponse)
func (*DescribeBundleDiscountResponse) FromJsonString ¶
func (r *DescribeBundleDiscountResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBundleDiscountResponse) ToJsonString ¶
func (r *DescribeBundleDiscountResponse) ToJsonString() string
type DescribeBundleDiscountResponseParams ¶
type DescribeBundleDiscountResponseParams struct { // Currency: CNY, USD. Currency *string `json:"Currency,omitempty" name:"Currency"` // Discount tier details. The information of each tier includes the duration, discounted quantity, total price, discounted price, and discount details (user discount, official website discount, or final discount). DiscountDetail []*DiscountDetail `json:"DiscountDetail,omitempty" name:"DiscountDetail"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeBundlesRequest ¶
type DescribeBundlesRequest struct { *tchttp.BaseRequest // Package ID list. BundleIds []*string `json:"BundleIds,omitempty" name:"BundleIds"` // Offset. Default value: 0. For more information on `Offset`, please see the relevant section in [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1). Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, please see the relevant section in the API [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1). Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Filter list // <li>bundle-id</li>Filter by the **bundle ID**. // Type: String // Required: No // <li>support-platform-type</li>Filter by the **OS type**. // Valid values: `LINUX_UNIX` (Linux or Unix), `WINDOWS` (Windows) // Type: String // Required: No // <li>bundle-type</li>Filter by the **bundle type**. // Valid values: `GENERAL_BUNDLE` (General bundle), `STORAGE_BUNDLE` (Storage bundle), `ENTERPRISE_BUNDLE` (Enterprise bundle), `EXCLUSIVE_BUNDLE` (Dedicated bundle), `BEFAST_BUNDLE` (BeFast bundle) // Type: String // Required: No // <li>bundle-state</li>Filter by the **bundle status**. // Valid values: `ONLINE`, `OFFLINE` // Type: String // Required: No // Each request can contain up to 10 `Filters`, and up to 5 `Filter.Values` for each filter. You cannot specify both `BundleIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // AZ list, which contains all AZs by default. Zones []*string `json:"Zones,omitempty" name:"Zones"` }
func NewDescribeBundlesRequest ¶
func NewDescribeBundlesRequest() (request *DescribeBundlesRequest)
func (*DescribeBundlesRequest) FromJsonString ¶
func (r *DescribeBundlesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBundlesRequest) ToJsonString ¶
func (r *DescribeBundlesRequest) ToJsonString() string
type DescribeBundlesRequestParams ¶
type DescribeBundlesRequestParams struct { // Package ID list. BundleIds []*string `json:"BundleIds,omitempty" name:"BundleIds"` // Offset. Default value: 0. For more information on `Offset`, please see the relevant section in [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1). Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, please see the relevant section in the API [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1). Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Filter list // <li>bundle-id</li>Filter by the **bundle ID**. // Type: String // Required: No // <li>support-platform-type</li>Filter by the **OS type**. // Valid values: `LINUX_UNIX` (Linux or Unix), `WINDOWS` (Windows) // Type: String // Required: No // <li>bundle-type</li>Filter by the **bundle type**. // Valid values: `GENERAL_BUNDLE` (General bundle), `STORAGE_BUNDLE` (Storage bundle), `ENTERPRISE_BUNDLE` (Enterprise bundle), `EXCLUSIVE_BUNDLE` (Dedicated bundle), `BEFAST_BUNDLE` (BeFast bundle) // Type: String // Required: No // <li>bundle-state</li>Filter by the **bundle status**. // Valid values: `ONLINE`, `OFFLINE` // Type: String // Required: No // Each request can contain up to 10 `Filters`, and up to 5 `Filter.Values` for each filter. You cannot specify both `BundleIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // AZ list, which contains all AZs by default. Zones []*string `json:"Zones,omitempty" name:"Zones"` }
Predefined struct for user
type DescribeBundlesResponse ¶
type DescribeBundlesResponse struct { *tchttp.BaseResponse Response *DescribeBundlesResponseParams `json:"Response"` }
func NewDescribeBundlesResponse ¶
func NewDescribeBundlesResponse() (response *DescribeBundlesResponse)
func (*DescribeBundlesResponse) FromJsonString ¶
func (r *DescribeBundlesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBundlesResponse) ToJsonString ¶
func (r *DescribeBundlesResponse) ToJsonString() string
type DescribeBundlesResponseParams ¶
type DescribeBundlesResponseParams struct { // List of package details. BundleSet []*Bundle `json:"BundleSet,omitempty" name:"BundleSet"` // Total number of eligible packages, which is used for pagination. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeCcnAttachedInstancesRequest ¶
type DescribeCcnAttachedInstancesRequest struct {
*tchttp.BaseRequest
}
func NewDescribeCcnAttachedInstancesRequest ¶
func NewDescribeCcnAttachedInstancesRequest() (request *DescribeCcnAttachedInstancesRequest)
func (*DescribeCcnAttachedInstancesRequest) FromJsonString ¶
func (r *DescribeCcnAttachedInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCcnAttachedInstancesRequest) ToJsonString ¶
func (r *DescribeCcnAttachedInstancesRequest) ToJsonString() string
type DescribeCcnAttachedInstancesRequestParams ¶
type DescribeCcnAttachedInstancesRequestParams struct { }
Predefined struct for user
type DescribeCcnAttachedInstancesResponse ¶
type DescribeCcnAttachedInstancesResponse struct { *tchttp.BaseResponse Response *DescribeCcnAttachedInstancesResponseParams `json:"Response"` }
func NewDescribeCcnAttachedInstancesResponse ¶
func NewDescribeCcnAttachedInstancesResponse() (response *DescribeCcnAttachedInstancesResponse)
func (*DescribeCcnAttachedInstancesResponse) FromJsonString ¶
func (r *DescribeCcnAttachedInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCcnAttachedInstancesResponse) ToJsonString ¶
func (r *DescribeCcnAttachedInstancesResponse) ToJsonString() string
type DescribeCcnAttachedInstancesResponseParams ¶
type DescribeCcnAttachedInstancesResponseParams struct { // List of instances associated with the CCN instance. // Note: this field may return null, indicating that no valid values can be obtained. CcnAttachedInstanceSet []*CcnAttachedInstance `json:"CcnAttachedInstanceSet,omitempty" name:"CcnAttachedInstanceSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeDiskConfigsRequest ¶
type DescribeDiskConfigsRequest struct { *tchttp.BaseRequest // Filter list. // <li>zone</li>Filter by availability zone. // Type: String // Required: no Filters []*Filter `json:"Filters,omitempty" name:"Filters"` }
func NewDescribeDiskConfigsRequest ¶
func NewDescribeDiskConfigsRequest() (request *DescribeDiskConfigsRequest)
func (*DescribeDiskConfigsRequest) FromJsonString ¶
func (r *DescribeDiskConfigsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDiskConfigsRequest) ToJsonString ¶
func (r *DescribeDiskConfigsRequest) ToJsonString() string
type DescribeDiskConfigsRequestParams ¶
type DescribeDiskConfigsRequestParams struct { // Filter list. // <li>zone</li>Filter by availability zone. // Type: String // Required: no Filters []*Filter `json:"Filters,omitempty" name:"Filters"` }
Predefined struct for user
type DescribeDiskConfigsResponse ¶
type DescribeDiskConfigsResponse struct { *tchttp.BaseResponse Response *DescribeDiskConfigsResponseParams `json:"Response"` }
func NewDescribeDiskConfigsResponse ¶
func NewDescribeDiskConfigsResponse() (response *DescribeDiskConfigsResponse)
func (*DescribeDiskConfigsResponse) FromJsonString ¶
func (r *DescribeDiskConfigsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDiskConfigsResponse) ToJsonString ¶
func (r *DescribeDiskConfigsResponse) ToJsonString() string
type DescribeDiskConfigsResponseParams ¶
type DescribeDiskConfigsResponseParams struct { // List of cloud disk configurations. DiskConfigSet []*DiskConfig `json:"DiskConfigSet,omitempty" name:"DiskConfigSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeDiskDiscountRequest ¶
type DescribeDiskDiscountRequest struct { *tchttp.BaseRequest // Cloud disk type. Valid values: "CLOUD_PREMIUM". DiskType *string `json:"DiskType,omitempty" name:"DiskType"` // Cloud disk size. DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"` // Specify the quota of disk backups. No quota if it’s left empty. Only one quota is allowed. DiskBackupQuota *int64 `json:"DiskBackupQuota,omitempty" name:"DiskBackupQuota"` }
func NewDescribeDiskDiscountRequest ¶
func NewDescribeDiskDiscountRequest() (request *DescribeDiskDiscountRequest)
func (*DescribeDiskDiscountRequest) FromJsonString ¶
func (r *DescribeDiskDiscountRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDiskDiscountRequest) ToJsonString ¶
func (r *DescribeDiskDiscountRequest) ToJsonString() string
type DescribeDiskDiscountRequestParams ¶
type DescribeDiskDiscountRequestParams struct { // Cloud disk type. Valid values: "CLOUD_PREMIUM". DiskType *string `json:"DiskType,omitempty" name:"DiskType"` // Cloud disk size. DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"` // Specify the quota of disk backups. No quota if it’s left empty. Only one quota is allowed. DiskBackupQuota *int64 `json:"DiskBackupQuota,omitempty" name:"DiskBackupQuota"` }
Predefined struct for user
type DescribeDiskDiscountResponse ¶
type DescribeDiskDiscountResponse struct { *tchttp.BaseResponse Response *DescribeDiskDiscountResponseParams `json:"Response"` }
func NewDescribeDiskDiscountResponse ¶
func NewDescribeDiskDiscountResponse() (response *DescribeDiskDiscountResponse)
func (*DescribeDiskDiscountResponse) FromJsonString ¶
func (r *DescribeDiskDiscountResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDiskDiscountResponse) ToJsonString ¶
func (r *DescribeDiskDiscountResponse) ToJsonString() string
type DescribeDiskDiscountResponseParams ¶
type DescribeDiskDiscountResponseParams struct { // Currency: CNY, USD. Currency *string `json:"Currency,omitempty" name:"Currency"` // Discount tier details. The information of each tier includes the duration, discounted quantity, total price, discounted price, and discount details (user discount, official website discount, or final discount). DiscountDetail []*DiscountDetail `json:"DiscountDetail,omitempty" name:"DiscountDetail"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeDisksDeniedActionsRequest ¶
type DescribeDisksDeniedActionsRequest struct { *tchttp.BaseRequest // List of cloud disk IDs. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` }
func NewDescribeDisksDeniedActionsRequest ¶
func NewDescribeDisksDeniedActionsRequest() (request *DescribeDisksDeniedActionsRequest)
func (*DescribeDisksDeniedActionsRequest) FromJsonString ¶
func (r *DescribeDisksDeniedActionsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDisksDeniedActionsRequest) ToJsonString ¶
func (r *DescribeDisksDeniedActionsRequest) ToJsonString() string
type DescribeDisksDeniedActionsRequestParams ¶
type DescribeDisksDeniedActionsRequestParams struct { // List of cloud disk IDs. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` }
Predefined struct for user
type DescribeDisksDeniedActionsResponse ¶
type DescribeDisksDeniedActionsResponse struct { *tchttp.BaseResponse Response *DescribeDisksDeniedActionsResponseParams `json:"Response"` }
func NewDescribeDisksDeniedActionsResponse ¶
func NewDescribeDisksDeniedActionsResponse() (response *DescribeDisksDeniedActionsResponse)
func (*DescribeDisksDeniedActionsResponse) FromJsonString ¶
func (r *DescribeDisksDeniedActionsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDisksDeniedActionsResponse) ToJsonString ¶
func (r *DescribeDisksDeniedActionsResponse) ToJsonString() string
type DescribeDisksDeniedActionsResponseParams ¶
type DescribeDisksDeniedActionsResponseParams struct { // List of operation limits of cloud disks. DiskDeniedActionSet []*DiskDeniedActions `json:"DiskDeniedActionSet,omitempty" name:"DiskDeniedActionSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeDisksRequest ¶
type DescribeDisksRequest struct { *tchttp.BaseRequest // List of cloud disk IDs. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` // Filter list // disk-id // Filter by **cloud disk ID**. // Type: String // Required: No // instance-id // Filter by **instance ID**. // Type: String // Required: No // disk-name // Filter by **cloud disk name**. // Type: String // Required: No // zone // Filter by **availability zone**. // Type: String // Required: No // disk-usage // Filter by **cloud disk type**. // Type: String // Required: No // Values: `SYSTEM_DISK` and `DATA_DISK` // disk-state // Filter by **cloud disk status**. // Type: String // Required: No // Values: See `DiskState` in [Disk](https://intl.cloud.tencent.com/document/api/1207/47576?from_cn_redirect=1#Disk) // Each request can contain up to 10 `Filters` and 100 `Filter.Values`. `DiskIds` and `Filters` cannot be specified at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Number of returned results. Default value: 20. Maximum value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Offset. Default value: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // The field by which the cloud disks are sorted. Valid values: "CREATED_TIME" (creation time), "EXPIRED_TIME" (expiration time), "DISK_SIZE" (size of cloud disks). Default value: "CREATED_TIME". OrderField *string `json:"OrderField,omitempty" name:"OrderField"` // Sorting order of the output cloud disks. Valid values: "ASC" (ascending order), "DESC" (descending order). Default value: "DESC". Order *string `json:"Order,omitempty" name:"Order"` }
func NewDescribeDisksRequest ¶
func NewDescribeDisksRequest() (request *DescribeDisksRequest)
func (*DescribeDisksRequest) FromJsonString ¶
func (r *DescribeDisksRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDisksRequest) ToJsonString ¶
func (r *DescribeDisksRequest) ToJsonString() string
type DescribeDisksRequestParams ¶
type DescribeDisksRequestParams struct { // List of cloud disk IDs. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` // Filter list // disk-id // Filter by **cloud disk ID**. // Type: String // Required: No // instance-id // Filter by **instance ID**. // Type: String // Required: No // disk-name // Filter by **cloud disk name**. // Type: String // Required: No // zone // Filter by **availability zone**. // Type: String // Required: No // disk-usage // Filter by **cloud disk type**. // Type: String // Required: No // Values: `SYSTEM_DISK` and `DATA_DISK` // disk-state // Filter by **cloud disk status**. // Type: String // Required: No // Values: See `DiskState` in [Disk](https://intl.cloud.tencent.com/document/api/1207/47576?from_cn_redirect=1#Disk) // Each request can contain up to 10 `Filters` and 100 `Filter.Values`. `DiskIds` and `Filters` cannot be specified at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Number of returned results. Default value: 20. Maximum value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Offset. Default value: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // The field by which the cloud disks are sorted. Valid values: "CREATED_TIME" (creation time), "EXPIRED_TIME" (expiration time), "DISK_SIZE" (size of cloud disks). Default value: "CREATED_TIME". OrderField *string `json:"OrderField,omitempty" name:"OrderField"` // Sorting order of the output cloud disks. Valid values: "ASC" (ascending order), "DESC" (descending order). Default value: "DESC". Order *string `json:"Order,omitempty" name:"Order"` }
Predefined struct for user
type DescribeDisksResponse ¶
type DescribeDisksResponse struct { *tchttp.BaseResponse Response *DescribeDisksResponseParams `json:"Response"` }
func NewDescribeDisksResponse ¶
func NewDescribeDisksResponse() (response *DescribeDisksResponse)
func (*DescribeDisksResponse) FromJsonString ¶
func (r *DescribeDisksResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDisksResponse) ToJsonString ¶
func (r *DescribeDisksResponse) ToJsonString() string
type DescribeDisksResponseParams ¶
type DescribeDisksResponseParams struct { // List of cloud disk information. DiskSet []*Disk `json:"DiskSet,omitempty" name:"DiskSet"` // Number of eligible cloud disks. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeDisksReturnableRequest ¶
type DescribeDisksReturnableRequest struct { *tchttp.BaseRequest // List of cloud disk IDs. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` // Number of returned results. Default value: 20. Maximum value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Offset. Default value: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeDisksReturnableRequest ¶
func NewDescribeDisksReturnableRequest() (request *DescribeDisksReturnableRequest)
func (*DescribeDisksReturnableRequest) FromJsonString ¶
func (r *DescribeDisksReturnableRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDisksReturnableRequest) ToJsonString ¶
func (r *DescribeDisksReturnableRequest) ToJsonString() string
type DescribeDisksReturnableRequestParams ¶
type DescribeDisksReturnableRequestParams struct { // List of cloud disk IDs. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` // Number of returned results. Default value: 20. Maximum value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Offset. Default value: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` }
Predefined struct for user
type DescribeDisksReturnableResponse ¶
type DescribeDisksReturnableResponse struct { *tchttp.BaseResponse Response *DescribeDisksReturnableResponseParams `json:"Response"` }
func NewDescribeDisksReturnableResponse ¶
func NewDescribeDisksReturnableResponse() (response *DescribeDisksReturnableResponse)
func (*DescribeDisksReturnableResponse) FromJsonString ¶
func (r *DescribeDisksReturnableResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDisksReturnableResponse) ToJsonString ¶
func (r *DescribeDisksReturnableResponse) ToJsonString() string
type DescribeDisksReturnableResponseParams ¶
type DescribeDisksReturnableResponseParams struct { // List of returnable cloud disks. DiskReturnableSet []*DiskReturnable `json:"DiskReturnableSet,omitempty" name:"DiskReturnableSet"` // Number of eligible cloud disks. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeFirewallRulesRequest ¶
type DescribeFirewallRulesRequest struct { *tchttp.BaseRequest // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Offset. Default value: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeFirewallRulesRequest ¶
func NewDescribeFirewallRulesRequest() (request *DescribeFirewallRulesRequest)
func (*DescribeFirewallRulesRequest) FromJsonString ¶
func (r *DescribeFirewallRulesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeFirewallRulesRequest) ToJsonString ¶
func (r *DescribeFirewallRulesRequest) ToJsonString() string
type DescribeFirewallRulesRequestParams ¶
type DescribeFirewallRulesRequestParams struct { // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Offset. Default value: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
Predefined struct for user
type DescribeFirewallRulesResponse ¶
type DescribeFirewallRulesResponse struct { *tchttp.BaseResponse Response *DescribeFirewallRulesResponseParams `json:"Response"` }
func NewDescribeFirewallRulesResponse ¶
func NewDescribeFirewallRulesResponse() (response *DescribeFirewallRulesResponse)
func (*DescribeFirewallRulesResponse) FromJsonString ¶
func (r *DescribeFirewallRulesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeFirewallRulesResponse) ToJsonString ¶
func (r *DescribeFirewallRulesResponse) ToJsonString() string
type DescribeFirewallRulesResponseParams ¶
type DescribeFirewallRulesResponseParams struct { // Number of eligible firewall rules. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Firewall rule details list. FirewallRuleSet []*FirewallRuleInfo `json:"FirewallRuleSet,omitempty" name:"FirewallRuleSet"` // Firewall version number. FirewallVersion *uint64 `json:"FirewallVersion,omitempty" name:"FirewallVersion"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeFirewallRulesTemplateRequest ¶
type DescribeFirewallRulesTemplateRequest struct {
*tchttp.BaseRequest
}
func NewDescribeFirewallRulesTemplateRequest ¶
func NewDescribeFirewallRulesTemplateRequest() (request *DescribeFirewallRulesTemplateRequest)
func (*DescribeFirewallRulesTemplateRequest) FromJsonString ¶
func (r *DescribeFirewallRulesTemplateRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeFirewallRulesTemplateRequest) ToJsonString ¶
func (r *DescribeFirewallRulesTemplateRequest) ToJsonString() string
type DescribeFirewallRulesTemplateRequestParams ¶
type DescribeFirewallRulesTemplateRequestParams struct { }
Predefined struct for user
type DescribeFirewallRulesTemplateResponse ¶
type DescribeFirewallRulesTemplateResponse struct { *tchttp.BaseResponse Response *DescribeFirewallRulesTemplateResponseParams `json:"Response"` }
func NewDescribeFirewallRulesTemplateResponse ¶
func NewDescribeFirewallRulesTemplateResponse() (response *DescribeFirewallRulesTemplateResponse)
func (*DescribeFirewallRulesTemplateResponse) FromJsonString ¶
func (r *DescribeFirewallRulesTemplateResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeFirewallRulesTemplateResponse) ToJsonString ¶
func (r *DescribeFirewallRulesTemplateResponse) ToJsonString() string
type DescribeFirewallRulesTemplateResponseParams ¶
type DescribeFirewallRulesTemplateResponseParams struct { // Number of eligible firewall rules. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Firewall rule details list. FirewallRuleSet []*FirewallRuleInfo `json:"FirewallRuleSet,omitempty" name:"FirewallRuleSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeGeneralResourceQuotasRequest ¶
type DescribeGeneralResourceQuotasRequest struct { *tchttp.BaseRequest // Resource name list. Values: // - `GENERAL_BUNDLE_INSTANCE`: General bundle // - `STORAGE_BUNDLE_INSTANCE`: Storage bundle // - `ENTERPRISE_BUNDLE_INSTANCE`: Enterprise bundle // - `EXCLUSIVE_BUNDLE_INSTANCE`: Dedicated bundle // - `BEFAST_BUNDLE_INSTANCE`: BeFast bundle // - `USER_KEY_PAIR`: Key pair // - `SNAPSHOT`: Snapshot // - `BLUEPRINT`: Custom image // - `FREE_BLUEPRINT`: Free custom image // - `DATA_DISK`: Data disk // - `FIREWALL_RULE`: Firewall rules ResourceNames []*string `json:"ResourceNames,omitempty" name:"ResourceNames"` }
func NewDescribeGeneralResourceQuotasRequest ¶
func NewDescribeGeneralResourceQuotasRequest() (request *DescribeGeneralResourceQuotasRequest)
func (*DescribeGeneralResourceQuotasRequest) FromJsonString ¶
func (r *DescribeGeneralResourceQuotasRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeGeneralResourceQuotasRequest) ToJsonString ¶
func (r *DescribeGeneralResourceQuotasRequest) ToJsonString() string
type DescribeGeneralResourceQuotasRequestParams ¶
type DescribeGeneralResourceQuotasRequestParams struct { // Resource name list. Values: // - `GENERAL_BUNDLE_INSTANCE`: General bundle // - `STORAGE_BUNDLE_INSTANCE`: Storage bundle // - `ENTERPRISE_BUNDLE_INSTANCE`: Enterprise bundle // - `EXCLUSIVE_BUNDLE_INSTANCE`: Dedicated bundle // - `BEFAST_BUNDLE_INSTANCE`: BeFast bundle // - `USER_KEY_PAIR`: Key pair // - `SNAPSHOT`: Snapshot // - `BLUEPRINT`: Custom image // - `FREE_BLUEPRINT`: Free custom image // - `DATA_DISK`: Data disk // - `FIREWALL_RULE`: Firewall rules ResourceNames []*string `json:"ResourceNames,omitempty" name:"ResourceNames"` }
Predefined struct for user
type DescribeGeneralResourceQuotasResponse ¶
type DescribeGeneralResourceQuotasResponse struct { *tchttp.BaseResponse Response *DescribeGeneralResourceQuotasResponseParams `json:"Response"` }
func NewDescribeGeneralResourceQuotasResponse ¶
func NewDescribeGeneralResourceQuotasResponse() (response *DescribeGeneralResourceQuotasResponse)
func (*DescribeGeneralResourceQuotasResponse) FromJsonString ¶
func (r *DescribeGeneralResourceQuotasResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeGeneralResourceQuotasResponse) ToJsonString ¶
func (r *DescribeGeneralResourceQuotasResponse) ToJsonString() string
type DescribeGeneralResourceQuotasResponseParams ¶
type DescribeGeneralResourceQuotasResponseParams struct { // List of general resource quota details. GeneralResourceQuotaSet []*GeneralResourceQuota `json:"GeneralResourceQuotaSet,omitempty" name:"GeneralResourceQuotaSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeInstanceLoginKeyPairAttributeRequest ¶
type DescribeInstanceLoginKeyPairAttributeRequest struct { *tchttp.BaseRequest // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribeInstanceLoginKeyPairAttributeRequest ¶
func NewDescribeInstanceLoginKeyPairAttributeRequest() (request *DescribeInstanceLoginKeyPairAttributeRequest)
func (*DescribeInstanceLoginKeyPairAttributeRequest) FromJsonString ¶
func (r *DescribeInstanceLoginKeyPairAttributeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstanceLoginKeyPairAttributeRequest) ToJsonString ¶
func (r *DescribeInstanceLoginKeyPairAttributeRequest) ToJsonString() string
type DescribeInstanceLoginKeyPairAttributeRequestParams ¶
type DescribeInstanceLoginKeyPairAttributeRequestParams struct { // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
Predefined struct for user
type DescribeInstanceLoginKeyPairAttributeResponse ¶
type DescribeInstanceLoginKeyPairAttributeResponse struct { *tchttp.BaseResponse Response *DescribeInstanceLoginKeyPairAttributeResponseParams `json:"Response"` }
func NewDescribeInstanceLoginKeyPairAttributeResponse ¶
func NewDescribeInstanceLoginKeyPairAttributeResponse() (response *DescribeInstanceLoginKeyPairAttributeResponse)
func (*DescribeInstanceLoginKeyPairAttributeResponse) FromJsonString ¶
func (r *DescribeInstanceLoginKeyPairAttributeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstanceLoginKeyPairAttributeResponse) ToJsonString ¶
func (r *DescribeInstanceLoginKeyPairAttributeResponse) ToJsonString() string
type DescribeInstanceLoginKeyPairAttributeResponseParams ¶
type DescribeInstanceLoginKeyPairAttributeResponseParams struct { // Whether to allow login with the default key pair. Valid values: YES, NO. PermitLogin *string `json:"PermitLogin,omitempty" name:"PermitLogin"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeInstanceVncUrlRequest ¶
type DescribeInstanceVncUrlRequest struct { *tchttp.BaseRequest // Instance ID, which can be obtained from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribeInstanceVncUrlRequest ¶
func NewDescribeInstanceVncUrlRequest() (request *DescribeInstanceVncUrlRequest)
func (*DescribeInstanceVncUrlRequest) FromJsonString ¶
func (r *DescribeInstanceVncUrlRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstanceVncUrlRequest) ToJsonString ¶
func (r *DescribeInstanceVncUrlRequest) ToJsonString() string
type DescribeInstanceVncUrlRequestParams ¶
type DescribeInstanceVncUrlRequestParams struct { // Instance ID, which can be obtained from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
Predefined struct for user
type DescribeInstanceVncUrlResponse ¶
type DescribeInstanceVncUrlResponse struct { *tchttp.BaseResponse Response *DescribeInstanceVncUrlResponseParams `json:"Response"` }
func NewDescribeInstanceVncUrlResponse ¶
func NewDescribeInstanceVncUrlResponse() (response *DescribeInstanceVncUrlResponse)
func (*DescribeInstanceVncUrlResponse) FromJsonString ¶
func (r *DescribeInstanceVncUrlResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstanceVncUrlResponse) ToJsonString ¶
func (r *DescribeInstanceVncUrlResponse) ToJsonString() string
type DescribeInstanceVncUrlResponseParams ¶
type DescribeInstanceVncUrlResponseParams struct { // Instance VNC URL. InstanceVncUrl *string `json:"InstanceVncUrl,omitempty" name:"InstanceVncUrl"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeInstancesDeniedActionsRequest ¶
type DescribeInstancesDeniedActionsRequest struct { *tchttp.BaseRequest // Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewDescribeInstancesDeniedActionsRequest ¶
func NewDescribeInstancesDeniedActionsRequest() (request *DescribeInstancesDeniedActionsRequest)
func (*DescribeInstancesDeniedActionsRequest) FromJsonString ¶
func (r *DescribeInstancesDeniedActionsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstancesDeniedActionsRequest) ToJsonString ¶
func (r *DescribeInstancesDeniedActionsRequest) ToJsonString() string
type DescribeInstancesDeniedActionsRequestParams ¶
type DescribeInstancesDeniedActionsRequestParams struct { // Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
Predefined struct for user
type DescribeInstancesDeniedActionsResponse ¶
type DescribeInstancesDeniedActionsResponse struct { *tchttp.BaseResponse Response *DescribeInstancesDeniedActionsResponseParams `json:"Response"` }
func NewDescribeInstancesDeniedActionsResponse ¶
func NewDescribeInstancesDeniedActionsResponse() (response *DescribeInstancesDeniedActionsResponse)
func (*DescribeInstancesDeniedActionsResponse) FromJsonString ¶
func (r *DescribeInstancesDeniedActionsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstancesDeniedActionsResponse) ToJsonString ¶
func (r *DescribeInstancesDeniedActionsResponse) ToJsonString() string
type DescribeInstancesDeniedActionsResponseParams ¶
type DescribeInstancesDeniedActionsResponseParams struct { // List of instance operation limit details. InstanceDeniedActionSet []*InstanceDeniedActions `json:"InstanceDeniedActionSet,omitempty" name:"InstanceDeniedActionSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeInstancesDiskNumRequest ¶
type DescribeInstancesDiskNumRequest struct { *tchttp.BaseRequest // List of instance IDs. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewDescribeInstancesDiskNumRequest ¶
func NewDescribeInstancesDiskNumRequest() (request *DescribeInstancesDiskNumRequest)
func (*DescribeInstancesDiskNumRequest) FromJsonString ¶
func (r *DescribeInstancesDiskNumRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstancesDiskNumRequest) ToJsonString ¶
func (r *DescribeInstancesDiskNumRequest) ToJsonString() string
type DescribeInstancesDiskNumRequestParams ¶
type DescribeInstancesDiskNumRequestParams struct { // List of instance IDs. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
Predefined struct for user
type DescribeInstancesDiskNumResponse ¶
type DescribeInstancesDiskNumResponse struct { *tchttp.BaseResponse Response *DescribeInstancesDiskNumResponseParams `json:"Response"` }
func NewDescribeInstancesDiskNumResponse ¶
func NewDescribeInstancesDiskNumResponse() (response *DescribeInstancesDiskNumResponse)
func (*DescribeInstancesDiskNumResponse) FromJsonString ¶
func (r *DescribeInstancesDiskNumResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstancesDiskNumResponse) ToJsonString ¶
func (r *DescribeInstancesDiskNumResponse) ToJsonString() string
type DescribeInstancesDiskNumResponseParams ¶
type DescribeInstancesDiskNumResponseParams struct { // Information of all attached disks AttachDetailSet []*AttachDetail `json:"AttachDetailSet,omitempty" name:"AttachDetailSet"` // Number of attached cloud disks TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeInstancesRequest ¶
type DescribeInstancesRequest struct { *tchttp.BaseRequest // Instance ID list. Each request can contain up to 100 instances at a time. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Filter list. // <li>instance-name</li>Filter by **instance name**. // Type: String // Required: no // <li>private-ip-address</li>Filter by **private IP of instance primary ENI**. // Type: String // Required: no // <li>public-ip-address</li>Filter by **public IP of instance primary ENI**. // Type: String // Required: no // <li>zone</li>Filter by the availability zone // Type: String // Required: no // <li>instance-state</li>Filter by **instance status**. // Type: String // Required: no // Each request can contain up to 10 `Filters` and 100 `Filter.Values`. You cannot specify both `InstanceIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Offset. Default value: 0. For more information on `Offset`, please see the relevant section in [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1). Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, please see the relevant section in the API [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1). Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeInstancesRequest ¶
func NewDescribeInstancesRequest() (request *DescribeInstancesRequest)
func (*DescribeInstancesRequest) FromJsonString ¶
func (r *DescribeInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstancesRequest) ToJsonString ¶
func (r *DescribeInstancesRequest) ToJsonString() string
type DescribeInstancesRequestParams ¶
type DescribeInstancesRequestParams struct { // Instance ID list. Each request can contain up to 100 instances at a time. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Filter list. // <li>instance-name</li>Filter by **instance name**. // Type: String // Required: no // <li>private-ip-address</li>Filter by **private IP of instance primary ENI**. // Type: String // Required: no // <li>public-ip-address</li>Filter by **public IP of instance primary ENI**. // Type: String // Required: no // <li>zone</li>Filter by the availability zone // Type: String // Required: no // <li>instance-state</li>Filter by **instance status**. // Type: String // Required: no // Each request can contain up to 10 `Filters` and 100 `Filter.Values`. You cannot specify both `InstanceIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Offset. Default value: 0. For more information on `Offset`, please see the relevant section in [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1). Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, please see the relevant section in the API [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1). Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
Predefined struct for user
type DescribeInstancesResponse ¶
type DescribeInstancesResponse struct { *tchttp.BaseResponse Response *DescribeInstancesResponseParams `json:"Response"` }
func NewDescribeInstancesResponse ¶
func NewDescribeInstancesResponse() (response *DescribeInstancesResponse)
func (*DescribeInstancesResponse) FromJsonString ¶
func (r *DescribeInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstancesResponse) ToJsonString ¶
func (r *DescribeInstancesResponse) ToJsonString() string
type DescribeInstancesResponseParams ¶
type DescribeInstancesResponseParams struct { // Number of eligible instances. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of instance details InstanceSet []*Instance `json:"InstanceSet,omitempty" name:"InstanceSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeInstancesReturnableRequest ¶
type DescribeInstancesReturnableRequest struct { *tchttp.BaseRequest // Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Offset. Default value: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeInstancesReturnableRequest ¶
func NewDescribeInstancesReturnableRequest() (request *DescribeInstancesReturnableRequest)
func (*DescribeInstancesReturnableRequest) FromJsonString ¶
func (r *DescribeInstancesReturnableRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstancesReturnableRequest) ToJsonString ¶
func (r *DescribeInstancesReturnableRequest) ToJsonString() string
type DescribeInstancesReturnableRequestParams ¶
type DescribeInstancesReturnableRequestParams struct { // Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Offset. Default value: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
Predefined struct for user
type DescribeInstancesReturnableResponse ¶
type DescribeInstancesReturnableResponse struct { *tchttp.BaseResponse Response *DescribeInstancesReturnableResponseParams `json:"Response"` }
func NewDescribeInstancesReturnableResponse ¶
func NewDescribeInstancesReturnableResponse() (response *DescribeInstancesReturnableResponse)
func (*DescribeInstancesReturnableResponse) FromJsonString ¶
func (r *DescribeInstancesReturnableResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstancesReturnableResponse) ToJsonString ¶
func (r *DescribeInstancesReturnableResponse) ToJsonString() string
type DescribeInstancesReturnableResponseParams ¶
type DescribeInstancesReturnableResponseParams struct { // Number of eligible instances. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of returnable instance details. InstanceReturnableSet []*InstanceReturnable `json:"InstanceReturnableSet,omitempty" name:"InstanceReturnableSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeInstancesTrafficPackagesRequest ¶
type DescribeInstancesTrafficPackagesRequest struct { *tchttp.BaseRequest // Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Offset. Default value: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeInstancesTrafficPackagesRequest ¶
func NewDescribeInstancesTrafficPackagesRequest() (request *DescribeInstancesTrafficPackagesRequest)
func (*DescribeInstancesTrafficPackagesRequest) FromJsonString ¶
func (r *DescribeInstancesTrafficPackagesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstancesTrafficPackagesRequest) ToJsonString ¶
func (r *DescribeInstancesTrafficPackagesRequest) ToJsonString() string
type DescribeInstancesTrafficPackagesRequestParams ¶
type DescribeInstancesTrafficPackagesRequestParams struct { // Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Offset. Default value: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
Predefined struct for user
type DescribeInstancesTrafficPackagesResponse ¶
type DescribeInstancesTrafficPackagesResponse struct { *tchttp.BaseResponse Response *DescribeInstancesTrafficPackagesResponseParams `json:"Response"` }
func NewDescribeInstancesTrafficPackagesResponse ¶
func NewDescribeInstancesTrafficPackagesResponse() (response *DescribeInstancesTrafficPackagesResponse)
func (*DescribeInstancesTrafficPackagesResponse) FromJsonString ¶
func (r *DescribeInstancesTrafficPackagesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstancesTrafficPackagesResponse) ToJsonString ¶
func (r *DescribeInstancesTrafficPackagesResponse) ToJsonString() string
type DescribeInstancesTrafficPackagesResponseParams ¶
type DescribeInstancesTrafficPackagesResponseParams struct { // Number of eligible instance traffic package details. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of instance traffic package details. InstanceTrafficPackageSet []*InstanceTrafficPackage `json:"InstanceTrafficPackageSet,omitempty" name:"InstanceTrafficPackageSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeKeyPairsRequest ¶
type DescribeKeyPairsRequest struct { *tchttp.BaseRequest // Key pair ID list. KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds"` // Offset. Default value: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Filter list. // <li>key-id</li>Filter by **key pair ID**. // Type: String // Required: no // <li>key-name</li>Filter by the **key pair name**. Fuzzy match is supported. // Type: String // Required: no // Each request can contain up to 10 `Filters` and up to 5 `Filter.Values` for each filter. `KeyIds` and `Filters` cannot be specified at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` }
func NewDescribeKeyPairsRequest ¶
func NewDescribeKeyPairsRequest() (request *DescribeKeyPairsRequest)
func (*DescribeKeyPairsRequest) FromJsonString ¶
func (r *DescribeKeyPairsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeKeyPairsRequest) ToJsonString ¶
func (r *DescribeKeyPairsRequest) ToJsonString() string
type DescribeKeyPairsRequestParams ¶
type DescribeKeyPairsRequestParams struct { // Key pair ID list. KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds"` // Offset. Default value: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Filter list. // <li>key-id</li>Filter by **key pair ID**. // Type: String // Required: no // <li>key-name</li>Filter by the **key pair name**. Fuzzy match is supported. // Type: String // Required: no // Each request can contain up to 10 `Filters` and up to 5 `Filter.Values` for each filter. `KeyIds` and `Filters` cannot be specified at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` }
Predefined struct for user
type DescribeKeyPairsResponse ¶
type DescribeKeyPairsResponse struct { *tchttp.BaseResponse Response *DescribeKeyPairsResponseParams `json:"Response"` }
func NewDescribeKeyPairsResponse ¶
func NewDescribeKeyPairsResponse() (response *DescribeKeyPairsResponse)
func (*DescribeKeyPairsResponse) FromJsonString ¶
func (r *DescribeKeyPairsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeKeyPairsResponse) ToJsonString ¶
func (r *DescribeKeyPairsResponse) ToJsonString() string
type DescribeKeyPairsResponseParams ¶
type DescribeKeyPairsResponseParams struct { // Number of eligible key pairs. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of key pair details. KeyPairSet []*KeyPair `json:"KeyPairSet,omitempty" name:"KeyPairSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeModifyInstanceBundlesRequest ¶
type DescribeModifyInstanceBundlesRequest struct { *tchttp.BaseRequest // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Filter list // <li>bundle-id</li>Filter by the **bundle ID**. // Type: String // Required: No // <li>support-platform-type</li>Filter by the **OS type**. // Valid values: `LINUX_UNIX` (Linux or Unix), `WINDOWS` (Windows) // Type: String // Required: No // <li>bundle-type</li>Filter by the **bundle type**. // Valid values: `GENERAL_BUNDLE` (General bundle), `STORAGE_BUNDLE` (Storage bundle), `ENTERPRISE_BUNDLE` (Enterprise bundle), `EXCLUSIVE_BUNDLE` (Dedicated bundle), `BEFAST_BUNDLE` (BeFast bundle) // Type: String // Required: No // <li>bundle-state</li>Filter by the **bundle status**. // Valid values: `ONLINE`, `OFFLINE` // Type: String // Required: No // Each request can contain up to 10 `Filters`, and each filter can have up to 5 `Filter.Values`. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Offset. Default value: 0. For more information on `Offset`, please see the relevant section in [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1). Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, please see the relevant section in the API [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1). Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeModifyInstanceBundlesRequest ¶
func NewDescribeModifyInstanceBundlesRequest() (request *DescribeModifyInstanceBundlesRequest)
func (*DescribeModifyInstanceBundlesRequest) FromJsonString ¶
func (r *DescribeModifyInstanceBundlesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeModifyInstanceBundlesRequest) ToJsonString ¶
func (r *DescribeModifyInstanceBundlesRequest) ToJsonString() string
type DescribeModifyInstanceBundlesRequestParams ¶
type DescribeModifyInstanceBundlesRequestParams struct { // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Filter list // <li>bundle-id</li>Filter by the **bundle ID**. // Type: String // Required: No // <li>support-platform-type</li>Filter by the **OS type**. // Valid values: `LINUX_UNIX` (Linux or Unix), `WINDOWS` (Windows) // Type: String // Required: No // <li>bundle-type</li>Filter by the **bundle type**. // Valid values: `GENERAL_BUNDLE` (General bundle), `STORAGE_BUNDLE` (Storage bundle), `ENTERPRISE_BUNDLE` (Enterprise bundle), `EXCLUSIVE_BUNDLE` (Dedicated bundle), `BEFAST_BUNDLE` (BeFast bundle) // Type: String // Required: No // <li>bundle-state</li>Filter by the **bundle status**. // Valid values: `ONLINE`, `OFFLINE` // Type: String // Required: No // Each request can contain up to 10 `Filters`, and each filter can have up to 5 `Filter.Values`. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Offset. Default value: 0. For more information on `Offset`, please see the relevant section in [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1). Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, please see the relevant section in the API [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1). Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
Predefined struct for user
type DescribeModifyInstanceBundlesResponse ¶
type DescribeModifyInstanceBundlesResponse struct { *tchttp.BaseResponse Response *DescribeModifyInstanceBundlesResponseParams `json:"Response"` }
func NewDescribeModifyInstanceBundlesResponse ¶
func NewDescribeModifyInstanceBundlesResponse() (response *DescribeModifyInstanceBundlesResponse)
func (*DescribeModifyInstanceBundlesResponse) FromJsonString ¶
func (r *DescribeModifyInstanceBundlesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeModifyInstanceBundlesResponse) ToJsonString ¶
func (r *DescribeModifyInstanceBundlesResponse) ToJsonString() string
type DescribeModifyInstanceBundlesResponseParams ¶
type DescribeModifyInstanceBundlesResponseParams struct { // Number of matched instances. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // New package details ModifyBundleSet []*ModifyBundle `json:"ModifyBundleSet,omitempty" name:"ModifyBundleSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeRegionsRequest ¶
type DescribeRegionsRequest struct {
*tchttp.BaseRequest
}
func NewDescribeRegionsRequest ¶
func NewDescribeRegionsRequest() (request *DescribeRegionsRequest)
func (*DescribeRegionsRequest) FromJsonString ¶
func (r *DescribeRegionsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRegionsRequest) ToJsonString ¶
func (r *DescribeRegionsRequest) ToJsonString() string
type DescribeRegionsRequestParams ¶
type DescribeRegionsRequestParams struct { }
Predefined struct for user
type DescribeRegionsResponse ¶
type DescribeRegionsResponse struct { *tchttp.BaseResponse Response *DescribeRegionsResponseParams `json:"Response"` }
func NewDescribeRegionsResponse ¶
func NewDescribeRegionsResponse() (response *DescribeRegionsResponse)
func (*DescribeRegionsResponse) FromJsonString ¶
func (r *DescribeRegionsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRegionsResponse) ToJsonString ¶
func (r *DescribeRegionsResponse) ToJsonString() string
type DescribeRegionsResponseParams ¶
type DescribeRegionsResponseParams struct { // Number of regions. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Region information list. RegionSet []*RegionInfo `json:"RegionSet,omitempty" name:"RegionSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeResetInstanceBlueprintsRequest ¶
type DescribeResetInstanceBlueprintsRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Offset. Default value: 0. For more information on `Offset`, please see the relevant section in [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1). Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, please see the relevant section in the API [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1). Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Filter list // <li>blueprint-id</li>Filter by **image ID**. // Type: String // Required: no // <li>blueprint-type</li>Filter by **image type**. // Valid values: `APP_OS`: application image; `PURE_OS`: system image; `PRIVATE`: custom image // Type: String // Required: no // <li>platform-type</li>Filter by **image platform type**. // Valid values: `LINUX_UNIX`: Linux or Unix; `WINDOWS`: Windows // Type: String // Required: no // <li>blueprint-name</li>Filter by **image name**. // Type: String // Required: no // <li>blueprint-state</li>Filter by **image status**. // Type: String // Required: no // // Each request can contain up to 10 `Filters` and 5 `Filter.Values`. `BlueprintIds` and `Filters` cannot be specified at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` }
func NewDescribeResetInstanceBlueprintsRequest ¶
func NewDescribeResetInstanceBlueprintsRequest() (request *DescribeResetInstanceBlueprintsRequest)
func (*DescribeResetInstanceBlueprintsRequest) FromJsonString ¶
func (r *DescribeResetInstanceBlueprintsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeResetInstanceBlueprintsRequest) ToJsonString ¶
func (r *DescribeResetInstanceBlueprintsRequest) ToJsonString() string
type DescribeResetInstanceBlueprintsRequestParams ¶
type DescribeResetInstanceBlueprintsRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Offset. Default value: 0. For more information on `Offset`, please see the relevant section in [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1). Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, please see the relevant section in the API [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1). Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Filter list // <li>blueprint-id</li>Filter by **image ID**. // Type: String // Required: no // <li>blueprint-type</li>Filter by **image type**. // Valid values: `APP_OS`: application image; `PURE_OS`: system image; `PRIVATE`: custom image // Type: String // Required: no // <li>platform-type</li>Filter by **image platform type**. // Valid values: `LINUX_UNIX`: Linux or Unix; `WINDOWS`: Windows // Type: String // Required: no // <li>blueprint-name</li>Filter by **image name**. // Type: String // Required: no // <li>blueprint-state</li>Filter by **image status**. // Type: String // Required: no // // Each request can contain up to 10 `Filters` and 5 `Filter.Values`. `BlueprintIds` and `Filters` cannot be specified at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` }
Predefined struct for user
type DescribeResetInstanceBlueprintsResponse ¶
type DescribeResetInstanceBlueprintsResponse struct { *tchttp.BaseResponse Response *DescribeResetInstanceBlueprintsResponseParams `json:"Response"` }
func NewDescribeResetInstanceBlueprintsResponse ¶
func NewDescribeResetInstanceBlueprintsResponse() (response *DescribeResetInstanceBlueprintsResponse)
func (*DescribeResetInstanceBlueprintsResponse) FromJsonString ¶
func (r *DescribeResetInstanceBlueprintsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeResetInstanceBlueprintsResponse) ToJsonString ¶
func (r *DescribeResetInstanceBlueprintsResponse) ToJsonString() string
type DescribeResetInstanceBlueprintsResponseParams ¶
type DescribeResetInstanceBlueprintsResponseParams struct { // Number of eligible images. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Image reset information list ResetInstanceBlueprintSet []*ResetInstanceBlueprint `json:"ResetInstanceBlueprintSet,omitempty" name:"ResetInstanceBlueprintSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeScenesRequest ¶
type DescribeScenesRequest struct { *tchttp.BaseRequest // List of scene IDs SceneIds []*string `json:"SceneIds,omitempty" name:"SceneIds"` // Offset. Default value: 0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100 Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeScenesRequest ¶
func NewDescribeScenesRequest() (request *DescribeScenesRequest)
func (*DescribeScenesRequest) FromJsonString ¶
func (r *DescribeScenesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeScenesRequest) ToJsonString ¶
func (r *DescribeScenesRequest) ToJsonString() string
type DescribeScenesRequestParams ¶
type DescribeScenesRequestParams struct { // List of scene IDs SceneIds []*string `json:"SceneIds,omitempty" name:"SceneIds"` // Offset. Default value: 0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100 Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
Predefined struct for user
type DescribeScenesResponse ¶
type DescribeScenesResponse struct { *tchttp.BaseResponse Response *DescribeScenesResponseParams `json:"Response"` }
func NewDescribeScenesResponse ¶
func NewDescribeScenesResponse() (response *DescribeScenesResponse)
func (*DescribeScenesResponse) FromJsonString ¶
func (r *DescribeScenesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeScenesResponse) ToJsonString ¶
func (r *DescribeScenesResponse) ToJsonString() string
type DescribeScenesResponseParams ¶
type DescribeScenesResponseParams struct { // List of scenes SceneSet []*Scene `json:"SceneSet,omitempty" name:"SceneSet"` // Total number of scenes TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeSnapshotsDeniedActionsRequest ¶
type DescribeSnapshotsDeniedActionsRequest struct { *tchttp.BaseRequest // Snapshot ID list, which can be queried through `DescribeSnapshots`. SnapshotIds []*string `json:"SnapshotIds,omitempty" name:"SnapshotIds"` }
func NewDescribeSnapshotsDeniedActionsRequest ¶
func NewDescribeSnapshotsDeniedActionsRequest() (request *DescribeSnapshotsDeniedActionsRequest)
func (*DescribeSnapshotsDeniedActionsRequest) FromJsonString ¶
func (r *DescribeSnapshotsDeniedActionsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSnapshotsDeniedActionsRequest) ToJsonString ¶
func (r *DescribeSnapshotsDeniedActionsRequest) ToJsonString() string
type DescribeSnapshotsDeniedActionsRequestParams ¶
type DescribeSnapshotsDeniedActionsRequestParams struct { // Snapshot ID list, which can be queried through `DescribeSnapshots`. SnapshotIds []*string `json:"SnapshotIds,omitempty" name:"SnapshotIds"` }
Predefined struct for user
type DescribeSnapshotsDeniedActionsResponse ¶
type DescribeSnapshotsDeniedActionsResponse struct { *tchttp.BaseResponse Response *DescribeSnapshotsDeniedActionsResponseParams `json:"Response"` }
func NewDescribeSnapshotsDeniedActionsResponse ¶
func NewDescribeSnapshotsDeniedActionsResponse() (response *DescribeSnapshotsDeniedActionsResponse)
func (*DescribeSnapshotsDeniedActionsResponse) FromJsonString ¶
func (r *DescribeSnapshotsDeniedActionsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSnapshotsDeniedActionsResponse) ToJsonString ¶
func (r *DescribeSnapshotsDeniedActionsResponse) ToJsonString() string
type DescribeSnapshotsDeniedActionsResponseParams ¶
type DescribeSnapshotsDeniedActionsResponseParams struct { // List of snapshot operation limit details. SnapshotDeniedActionSet []*SnapshotDeniedActions `json:"SnapshotDeniedActionSet,omitempty" name:"SnapshotDeniedActionSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeSnapshotsRequest ¶
type DescribeSnapshotsRequest struct { *tchttp.BaseRequest // List of IDs of snapshots to be queried. // You cannot specify `SnapshotIds` and `Filters` at the same time. SnapshotIds []*string `json:"SnapshotIds,omitempty" name:"SnapshotIds"` // Filter list. // <li>snapshot-id</li>Filter by **snapshot ID**. // Type: String // Required: no // <li>disk-id</li>Filter by **disk ID**. // Type: String // Required: no // <li>snapshot-name</li>Filter by **snapshot name**. // Type: String // Required: no // <li>instance-id</li>Filter by **instance ID**. // Type: String // Required: no // Each request can contain up to 10 `Filters` and 5 `Filter.Values`. You cannot specify both `SnapshotIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Offset. Default value: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeSnapshotsRequest ¶
func NewDescribeSnapshotsRequest() (request *DescribeSnapshotsRequest)
func (*DescribeSnapshotsRequest) FromJsonString ¶
func (r *DescribeSnapshotsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSnapshotsRequest) ToJsonString ¶
func (r *DescribeSnapshotsRequest) ToJsonString() string
type DescribeSnapshotsRequestParams ¶
type DescribeSnapshotsRequestParams struct { // List of IDs of snapshots to be queried. // You cannot specify `SnapshotIds` and `Filters` at the same time. SnapshotIds []*string `json:"SnapshotIds,omitempty" name:"SnapshotIds"` // Filter list. // <li>snapshot-id</li>Filter by **snapshot ID**. // Type: String // Required: no // <li>disk-id</li>Filter by **disk ID**. // Type: String // Required: no // <li>snapshot-name</li>Filter by **snapshot name**. // Type: String // Required: no // <li>instance-id</li>Filter by **instance ID**. // Type: String // Required: no // Each request can contain up to 10 `Filters` and 5 `Filter.Values`. You cannot specify both `SnapshotIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Offset. Default value: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
Predefined struct for user
type DescribeSnapshotsResponse ¶
type DescribeSnapshotsResponse struct { *tchttp.BaseResponse Response *DescribeSnapshotsResponseParams `json:"Response"` }
func NewDescribeSnapshotsResponse ¶
func NewDescribeSnapshotsResponse() (response *DescribeSnapshotsResponse)
func (*DescribeSnapshotsResponse) FromJsonString ¶
func (r *DescribeSnapshotsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSnapshotsResponse) ToJsonString ¶
func (r *DescribeSnapshotsResponse) ToJsonString() string
type DescribeSnapshotsResponseParams ¶
type DescribeSnapshotsResponseParams struct { // Number of snapshots. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of snapshot details. SnapshotSet []*Snapshot `json:"SnapshotSet,omitempty" name:"SnapshotSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeZonesRequest ¶
type DescribeZonesRequest struct { *tchttp.BaseRequest // Sorting field. Valid values: // <li>`ZONE`: Sort by the availability zone. // <li>`INSTANCE_DISPLAY_LABEL`: Sort by visibility labels (`HIDDEN`, `NORMAL` and `SELECTED`). Default: ['HIDDEN', 'NORMAL', 'SELECTED']. // The default value is `ZONE`. OrderField *string `json:"OrderField,omitempty" name:"OrderField"` // Specifies how availability zones are listed. Valid values: // <li>ASC: Ascending sort. // <li>DESC: Descending sort. // The default value is `ASC`. Order *string `json:"Order,omitempty" name:"Order"` }
func NewDescribeZonesRequest ¶
func NewDescribeZonesRequest() (request *DescribeZonesRequest)
func (*DescribeZonesRequest) FromJsonString ¶
func (r *DescribeZonesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeZonesRequest) ToJsonString ¶
func (r *DescribeZonesRequest) ToJsonString() string
type DescribeZonesRequestParams ¶
type DescribeZonesRequestParams struct { // Sorting field. Valid values: // <li>`ZONE`: Sort by the availability zone. // <li>`INSTANCE_DISPLAY_LABEL`: Sort by visibility labels (`HIDDEN`, `NORMAL` and `SELECTED`). Default: ['HIDDEN', 'NORMAL', 'SELECTED']. // The default value is `ZONE`. OrderField *string `json:"OrderField,omitempty" name:"OrderField"` // Specifies how availability zones are listed. Valid values: // <li>ASC: Ascending sort. // <li>DESC: Descending sort. // The default value is `ASC`. Order *string `json:"Order,omitempty" name:"Order"` }
Predefined struct for user
type DescribeZonesResponse ¶
type DescribeZonesResponse struct { *tchttp.BaseResponse Response *DescribeZonesResponseParams `json:"Response"` }
func NewDescribeZonesResponse ¶
func NewDescribeZonesResponse() (response *DescribeZonesResponse)
func (*DescribeZonesResponse) FromJsonString ¶
func (r *DescribeZonesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeZonesResponse) ToJsonString ¶
func (r *DescribeZonesResponse) ToJsonString() string
type DescribeZonesResponseParams ¶
type DescribeZonesResponseParams struct { // Number of AZs TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of AZ details ZoneInfoSet []*ZoneInfo `json:"ZoneInfoSet,omitempty" name:"ZoneInfoSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DetachCcnRequest ¶
type DetachCcnRequest struct { *tchttp.BaseRequest // CCN instance ID. CcnId *string `json:"CcnId,omitempty" name:"CcnId"` }
func NewDetachCcnRequest ¶
func NewDetachCcnRequest() (request *DetachCcnRequest)
func (*DetachCcnRequest) FromJsonString ¶
func (r *DetachCcnRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DetachCcnRequest) ToJsonString ¶
func (r *DetachCcnRequest) ToJsonString() string
type DetachCcnRequestParams ¶
type DetachCcnRequestParams struct { // CCN instance ID. CcnId *string `json:"CcnId,omitempty" name:"CcnId"` }
Predefined struct for user
type DetachCcnResponse ¶
type DetachCcnResponse struct { *tchttp.BaseResponse Response *DetachCcnResponseParams `json:"Response"` }
func NewDetachCcnResponse ¶
func NewDetachCcnResponse() (response *DetachCcnResponse)
func (*DetachCcnResponse) FromJsonString ¶
func (r *DetachCcnResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DetachCcnResponse) ToJsonString ¶
func (r *DetachCcnResponse) ToJsonString() string
type DetachCcnResponseParams ¶
type DetachCcnResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DetachDisksRequest ¶
type DetachDisksRequest struct { *tchttp.BaseRequest // List of cloud disk IDs. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` }
func NewDetachDisksRequest ¶
func NewDetachDisksRequest() (request *DetachDisksRequest)
func (*DetachDisksRequest) FromJsonString ¶
func (r *DetachDisksRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DetachDisksRequest) ToJsonString ¶
func (r *DetachDisksRequest) ToJsonString() string
type DetachDisksRequestParams ¶
type DetachDisksRequestParams struct { // List of cloud disk IDs. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` }
Predefined struct for user
type DetachDisksResponse ¶
type DetachDisksResponse struct { *tchttp.BaseResponse Response *DetachDisksResponseParams `json:"Response"` }
func NewDetachDisksResponse ¶
func NewDetachDisksResponse() (response *DetachDisksResponse)
func (*DetachDisksResponse) FromJsonString ¶
func (r *DetachDisksResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DetachDisksResponse) ToJsonString ¶
func (r *DetachDisksResponse) ToJsonString() string
type DetachDisksResponseParams ¶
type DetachDisksResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DetailPrice ¶
type DetailPrice struct { // Values: // <li>"DiskSpace": Cloud disk space</li> // <li>"DiskBackupQuota": Cloud disk backups</li> PriceName *string `json:"PriceName,omitempty" name:"PriceName"` // Official unit price of the billable item OriginUnitPrice *float64 `json:"OriginUnitPrice,omitempty" name:"OriginUnitPrice"` // Official total price of the billable item OriginalPrice *float64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"` // Discount of the billable item Discount *float64 `json:"Discount,omitempty" name:"Discount"` // Discounted total price of the billable item DiscountPrice *float64 `json:"DiscountPrice,omitempty" name:"DiscountPrice"` }
type DisassociateInstancesKeyPairsRequest ¶
type DisassociateInstancesKeyPairsRequest struct { *tchttp.BaseRequest // Key pair ID list. Each request can contain up to 100 key pairs. KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds"` // Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewDisassociateInstancesKeyPairsRequest ¶
func NewDisassociateInstancesKeyPairsRequest() (request *DisassociateInstancesKeyPairsRequest)
func (*DisassociateInstancesKeyPairsRequest) FromJsonString ¶
func (r *DisassociateInstancesKeyPairsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DisassociateInstancesKeyPairsRequest) ToJsonString ¶
func (r *DisassociateInstancesKeyPairsRequest) ToJsonString() string
type DisassociateInstancesKeyPairsRequestParams ¶
type DisassociateInstancesKeyPairsRequestParams struct { // Key pair ID list. Each request can contain up to 100 key pairs. KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds"` // Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
Predefined struct for user
type DisassociateInstancesKeyPairsResponse ¶
type DisassociateInstancesKeyPairsResponse struct { *tchttp.BaseResponse Response *DisassociateInstancesKeyPairsResponseParams `json:"Response"` }
func NewDisassociateInstancesKeyPairsResponse ¶
func NewDisassociateInstancesKeyPairsResponse() (response *DisassociateInstancesKeyPairsResponse)
func (*DisassociateInstancesKeyPairsResponse) FromJsonString ¶
func (r *DisassociateInstancesKeyPairsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DisassociateInstancesKeyPairsResponse) ToJsonString ¶
func (r *DisassociateInstancesKeyPairsResponse) ToJsonString() string
type DisassociateInstancesKeyPairsResponseParams ¶
type DisassociateInstancesKeyPairsResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DiscountDetail ¶
type DiscountDetail struct { // Billing duration. TimeSpan *int64 `json:"TimeSpan,omitempty" name:"TimeSpan"` // Billing unit. TimeUnit *string `json:"TimeUnit,omitempty" name:"TimeUnit"` // Total price. TotalCost *float64 `json:"TotalCost,omitempty" name:"TotalCost"` // Discounted total price. RealTotalCost *float64 `json:"RealTotalCost,omitempty" name:"RealTotalCost"` // Discount. Discount *int64 `json:"Discount,omitempty" name:"Discount"` // Discount details. PolicyDetail *PolicyDetail `json:"PolicyDetail,omitempty" name:"PolicyDetail"` }
type Disk ¶
type Disk struct { // Disk ID DiskId *string `json:"DiskId,omitempty" name:"DiskId"` // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Availability zone Zone *string `json:"Zone,omitempty" name:"Zone"` // Disk name DiskName *string `json:"DiskName,omitempty" name:"DiskName"` // Disk type DiskUsage *string `json:"DiskUsage,omitempty" name:"DiskUsage"` // Disk media type DiskType *string `json:"DiskType,omitempty" name:"DiskType"` // Disk payment type DiskChargeType *string `json:"DiskChargeType,omitempty" name:"DiskChargeType"` // Disk size DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"` // Renewal flag RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` // Disk status. Values: // <li>`PENDING`: Creating</li> // <li>`UNATTACHED`: Not attached</li> // <li>`ATTACHING`: Attaching</li> // <li>`ATTACHED`: Attached</li> // <li>`DETACHING`: Detaching</li> // <li>`SHUTDOWN`: Isolated</li> // <li>`CREATED_FAILED`: Failed to create</li> // <li>`TERMINATING`: Terminating</li> // <li>`DELETING`: Deleting</li> // <li>`FREEZING`: Freezing</li> DiskState *string `json:"DiskState,omitempty" name:"DiskState"` // Whether the disk is attached to an instance Attached *bool `json:"Attached,omitempty" name:"Attached"` // Whether to release the disk along with the instance DeleteWithInstance *bool `json:"DeleteWithInstance,omitempty" name:"DeleteWithInstance"` // Last operation LatestOperation *string `json:"LatestOperation,omitempty" name:"LatestOperation"` // Last operation status LatestOperationState *string `json:"LatestOperationState,omitempty" name:"LatestOperationState"` // Last request ID LatestOperationRequestId *string `json:"LatestOperationRequestId,omitempty" name:"LatestOperationRequestId"` // Creation time according to ISO 8601 standard. UTC time is used. // Format: YYYY-MM-DDThh:mm:ssZ. CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` // Expiration time according to ISO 8601 standard. UTC time is used. // Format: YYYY-MM-DDThh:mm:ssZ. // Note: This field may return null, indicating that no valid values can be obtained. ExpiredTime *string `json:"ExpiredTime,omitempty" name:"ExpiredTime"` // Isolation time according to ISO 8601 standard. UTC time is used. // Format: YYYY-MM-DDThh:mm:ssZ. // Note: This field may return null, indicating that no valid values can be obtained. IsolatedTime *string `json:"IsolatedTime,omitempty" name:"IsolatedTime"` // Total disk backups DiskBackupCount *int64 `json:"DiskBackupCount,omitempty" name:"DiskBackupCount"` // Disk backup quota DiskBackupQuota *int64 `json:"DiskBackupQuota,omitempty" name:"DiskBackupQuota"` }
type DiskChargePrepaid ¶
type DiskChargePrepaid struct { // Purchase duration. Period *int64 `json:"Period,omitempty" name:"Period"` // Whether Auto-Renewal is enabled RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` // Purchase duration unit. Default value: "m" (month) TimeUnit *string `json:"TimeUnit,omitempty" name:"TimeUnit"` }
type DiskConfig ¶
type DiskConfig struct { // Availability zone. Zone *string `json:"Zone,omitempty" name:"Zone"` // Cloud disk type. DiskType *string `json:"DiskType,omitempty" name:"DiskType"` // Cloud disk sale status. DiskSalesState *string `json:"DiskSalesState,omitempty" name:"DiskSalesState"` // Maximum cloud disk size. MaxDiskSize *int64 `json:"MaxDiskSize,omitempty" name:"MaxDiskSize"` // Minimum cloud disk size. MinDiskSize *int64 `json:"MinDiskSize,omitempty" name:"MinDiskSize"` // Cloud disk increment. DiskStepSize *int64 `json:"DiskStepSize,omitempty" name:"DiskStepSize"` }
type DiskDeniedActions ¶
type DiskDeniedActions struct { // Cloud disk ID. DiskId *string `json:"DiskId,omitempty" name:"DiskId"` // List of operation limits. DeniedActions []*DeniedAction `json:"DeniedActions,omitempty" name:"DeniedActions"` }
type DiskPrice ¶
type DiskPrice struct { // Cloud disk unit price. OriginalDiskPrice *float64 `json:"OriginalDiskPrice,omitempty" name:"OriginalDiskPrice"` // Total cloud disk price. OriginalPrice *float64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"` // Discount. Discount *float64 `json:"Discount,omitempty" name:"Discount"` // Discounted total price. DiscountPrice *float64 `json:"DiscountPrice,omitempty" name:"DiscountPrice"` // Detailed billing items DetailPrices []*DetailPrice `json:"DetailPrices,omitempty" name:"DetailPrices"` }
type DiskReturnable ¶
type DiskReturnable struct { // Cloud disk ID. DiskId *string `json:"DiskId,omitempty" name:"DiskId"` // Whether the cloud disk can be returned. IsReturnable *bool `json:"IsReturnable,omitempty" name:"IsReturnable"` // Error code of cloud disk return failure. ReturnFailCode *int64 `json:"ReturnFailCode,omitempty" name:"ReturnFailCode"` // Error message of cloud disk return failure. ReturnFailMessage *string `json:"ReturnFailMessage,omitempty" name:"ReturnFailMessage"` }
type DockerContainerConfiguration ¶
type DockerContainerConfiguration struct { // Container image address ContainerImage *string `json:"ContainerImage,omitempty" name:"ContainerImage"` // Container name ContainerName *string `json:"ContainerName,omitempty" name:"ContainerName"` // List of environment variables Envs []*ContainerEnv `json:"Envs,omitempty" name:"Envs"` // List of mappings of container ports and host ports PublishPorts []*DockerContainerPublishPort `json:"PublishPorts,omitempty" name:"PublishPorts"` // List of container mount volumes Volumes []*DockerContainerVolume `json:"Volumes,omitempty" name:"Volumes"` // The command to run Command *string `json:"Command,omitempty" name:"Command"` }
type DockerContainerPublishPort ¶
type DockerContainerPublishPort struct { // Host port HostPort *int64 `json:"HostPort,omitempty" name:"HostPort"` // Container port ContainerPort *int64 `json:"ContainerPort,omitempty" name:"ContainerPort"` // External IP. It defaults to 0.0.0.0. // Note: This field may return null, indicating that no valid values can be obtained. Ip *string `json:"Ip,omitempty" name:"Ip"` // The protocol defaults to `tcp`. Valid values: `tcp`, `udp` and `sctp`. // Note: This field may return null, indicating that no valid values can be obtained. Protocol *string `json:"Protocol,omitempty" name:"Protocol"` }
type DockerContainerVolume ¶
type FirewallRule ¶
type FirewallRule struct { // Protocol. Valid values: TCP, UDP, ICMP, ALL. Protocol *string `json:"Protocol,omitempty" name:"Protocol"` // Port. Valid values: ALL, one single port, multiple ports separated by commas, or port range indicated by a minus sign Port *string `json:"Port,omitempty" name:"Port"` // IP range or IP (mutually exclusive). Default value: 0.0.0.0/0, which indicates all sources. CidrBlock *string `json:"CidrBlock,omitempty" name:"CidrBlock"` // Valid values: ACCEPT, DROP. Default value: ACCEPT. Action *string `json:"Action,omitempty" name:"Action"` // Firewall rule description. FirewallRuleDescription *string `json:"FirewallRuleDescription,omitempty" name:"FirewallRuleDescription"` }
type FirewallRuleInfo ¶
type FirewallRuleInfo struct { // Application type. Valid values: custom, HTTP (80), HTTPS (443), Linux login (22), Windows login (3389), MySQL (3306), SQL Server (1433), all TCP ports, all UDP ports, Ping-ICMP, ALL. AppType *string `json:"AppType,omitempty" name:"AppType"` // Protocol. Valid values: TCP, UDP, ICMP, ALL. Protocol *string `json:"Protocol,omitempty" name:"Protocol"` // Port. Valid values: ALL, one single port, multiple ports separated by commas, or port range indicated by a minus sign Port *string `json:"Port,omitempty" name:"Port"` // IP range or IP (mutually exclusive). Default value: 0.0.0.0/0, which indicates all sources. CidrBlock *string `json:"CidrBlock,omitempty" name:"CidrBlock"` // Valid values: ACCEPT, DROP. Default value: ACCEPT. Action *string `json:"Action,omitempty" name:"Action"` // Firewall rule description. FirewallRuleDescription *string `json:"FirewallRuleDescription,omitempty" name:"FirewallRuleDescription"` }
type GeneralResourceQuota ¶
type GeneralResourceQuota struct { // Resource name. ResourceName *string `json:"ResourceName,omitempty" name:"ResourceName"` // Number of available resources. ResourceQuotaAvailable *int64 `json:"ResourceQuotaAvailable,omitempty" name:"ResourceQuotaAvailable"` // Total number of resources. ResourceQuotaTotal *int64 `json:"ResourceQuotaTotal,omitempty" name:"ResourceQuotaTotal"` }
type ImportKeyPairRequest ¶
type ImportKeyPairRequest struct { *tchttp.BaseRequest // Key pair name, which can contain up to 25 digits, letters, and underscores. KeyName *string `json:"KeyName,omitempty" name:"KeyName"` // Public key content of the key pair, which is in the OpenSSH RSA format. PublicKey *string `json:"PublicKey,omitempty" name:"PublicKey"` }
func NewImportKeyPairRequest ¶
func NewImportKeyPairRequest() (request *ImportKeyPairRequest)
func (*ImportKeyPairRequest) FromJsonString ¶
func (r *ImportKeyPairRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ImportKeyPairRequest) ToJsonString ¶
func (r *ImportKeyPairRequest) ToJsonString() string
type ImportKeyPairRequestParams ¶
type ImportKeyPairRequestParams struct { // Key pair name, which can contain up to 25 digits, letters, and underscores. KeyName *string `json:"KeyName,omitempty" name:"KeyName"` // Public key content of the key pair, which is in the OpenSSH RSA format. PublicKey *string `json:"PublicKey,omitempty" name:"PublicKey"` }
Predefined struct for user
type ImportKeyPairResponse ¶
type ImportKeyPairResponse struct { *tchttp.BaseResponse Response *ImportKeyPairResponseParams `json:"Response"` }
func NewImportKeyPairResponse ¶
func NewImportKeyPairResponse() (response *ImportKeyPairResponse)
func (*ImportKeyPairResponse) FromJsonString ¶
func (r *ImportKeyPairResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ImportKeyPairResponse) ToJsonString ¶
func (r *ImportKeyPairResponse) ToJsonString() string
type ImportKeyPairResponseParams ¶
type ImportKeyPairResponseParams struct { // Key pair ID. KeyId *string `json:"KeyId,omitempty" name:"KeyId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type InquirePriceCreateBlueprintRequest ¶
type InquirePriceCreateBlueprintRequest struct { *tchttp.BaseRequest // Number of custom images. Default value: 1. BlueprintCount *int64 `json:"BlueprintCount,omitempty" name:"BlueprintCount"` }
func NewInquirePriceCreateBlueprintRequest ¶
func NewInquirePriceCreateBlueprintRequest() (request *InquirePriceCreateBlueprintRequest)
func (*InquirePriceCreateBlueprintRequest) FromJsonString ¶
func (r *InquirePriceCreateBlueprintRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquirePriceCreateBlueprintRequest) ToJsonString ¶
func (r *InquirePriceCreateBlueprintRequest) ToJsonString() string
type InquirePriceCreateBlueprintRequestParams ¶
type InquirePriceCreateBlueprintRequestParams struct { // Number of custom images. Default value: 1. BlueprintCount *int64 `json:"BlueprintCount,omitempty" name:"BlueprintCount"` }
Predefined struct for user
type InquirePriceCreateBlueprintResponse ¶
type InquirePriceCreateBlueprintResponse struct { *tchttp.BaseResponse Response *InquirePriceCreateBlueprintResponseParams `json:"Response"` }
func NewInquirePriceCreateBlueprintResponse ¶
func NewInquirePriceCreateBlueprintResponse() (response *InquirePriceCreateBlueprintResponse)
func (*InquirePriceCreateBlueprintResponse) FromJsonString ¶
func (r *InquirePriceCreateBlueprintResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquirePriceCreateBlueprintResponse) ToJsonString ¶
func (r *InquirePriceCreateBlueprintResponse) ToJsonString() string
type InquirePriceCreateBlueprintResponseParams ¶
type InquirePriceCreateBlueprintResponseParams struct { // Custom image price. BlueprintPrice *BlueprintPrice `json:"BlueprintPrice,omitempty" name:"BlueprintPrice"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type InquirePriceCreateDisksRequest ¶
type InquirePriceCreateDisksRequest struct { *tchttp.BaseRequest // Cloud disk size in GB. DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"` // Cloud disk media type. Valid values: "CLOUD_PREMIUM" (premium cloud storage), "CLOUD_SSD" (SSD cloud disk). DiskType *string `json:"DiskType,omitempty" name:"DiskType"` // Parameter settings for purchasing the monthly subscribed cloud disk. DiskChargePrepaid *DiskChargePrepaid `json:"DiskChargePrepaid,omitempty" name:"DiskChargePrepaid"` // Number of cloud disks. Default value: 1. DiskCount *int64 `json:"DiskCount,omitempty" name:"DiskCount"` // Specify the quota of disk backups. No quota if it’s left empty. Only one quota is allowed. DiskBackupQuota *int64 `json:"DiskBackupQuota,omitempty" name:"DiskBackupQuota"` }
func NewInquirePriceCreateDisksRequest ¶
func NewInquirePriceCreateDisksRequest() (request *InquirePriceCreateDisksRequest)
func (*InquirePriceCreateDisksRequest) FromJsonString ¶
func (r *InquirePriceCreateDisksRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquirePriceCreateDisksRequest) ToJsonString ¶
func (r *InquirePriceCreateDisksRequest) ToJsonString() string
type InquirePriceCreateDisksRequestParams ¶
type InquirePriceCreateDisksRequestParams struct { // Cloud disk size in GB. DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"` // Cloud disk media type. Valid values: "CLOUD_PREMIUM" (premium cloud storage), "CLOUD_SSD" (SSD cloud disk). DiskType *string `json:"DiskType,omitempty" name:"DiskType"` // Parameter settings for purchasing the monthly subscribed cloud disk. DiskChargePrepaid *DiskChargePrepaid `json:"DiskChargePrepaid,omitempty" name:"DiskChargePrepaid"` // Number of cloud disks. Default value: 1. DiskCount *int64 `json:"DiskCount,omitempty" name:"DiskCount"` // Specify the quota of disk backups. No quota if it’s left empty. Only one quota is allowed. DiskBackupQuota *int64 `json:"DiskBackupQuota,omitempty" name:"DiskBackupQuota"` }
Predefined struct for user
type InquirePriceCreateDisksResponse ¶
type InquirePriceCreateDisksResponse struct { *tchttp.BaseResponse Response *InquirePriceCreateDisksResponseParams `json:"Response"` }
func NewInquirePriceCreateDisksResponse ¶
func NewInquirePriceCreateDisksResponse() (response *InquirePriceCreateDisksResponse)
func (*InquirePriceCreateDisksResponse) FromJsonString ¶
func (r *InquirePriceCreateDisksResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquirePriceCreateDisksResponse) ToJsonString ¶
func (r *InquirePriceCreateDisksResponse) ToJsonString() string
type InquirePriceCreateDisksResponseParams ¶
type InquirePriceCreateDisksResponseParams struct { // Cloud disk price. DiskPrice *DiskPrice `json:"DiskPrice,omitempty" name:"DiskPrice"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type InquirePriceCreateInstancesRequest ¶
type InquirePriceCreateInstancesRequest struct { *tchttp.BaseRequest // Instance package ID. BundleId *string `json:"BundleId,omitempty" name:"BundleId"` // Number of instances to be created. Default value: 1. InstanceCount *int64 `json:"InstanceCount,omitempty" name:"InstanceCount"` // Prepaid mode, i.e., monthly subscription. This parameter can specify the purchase period and other attributes such as auto-renewal. It is required for prepaid instances. InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` // Application image ID, which is required if a paid application image is used and can be obtained from the `BlueprintId` returned by the [DescribeBlueprints](https://intl.cloud.tencent.com/document/product/1207/47689?from_cn_redirect=1) API. BlueprintId *string `json:"BlueprintId,omitempty" name:"BlueprintId"` }
func NewInquirePriceCreateInstancesRequest ¶
func NewInquirePriceCreateInstancesRequest() (request *InquirePriceCreateInstancesRequest)
func (*InquirePriceCreateInstancesRequest) FromJsonString ¶
func (r *InquirePriceCreateInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquirePriceCreateInstancesRequest) ToJsonString ¶
func (r *InquirePriceCreateInstancesRequest) ToJsonString() string
type InquirePriceCreateInstancesRequestParams ¶
type InquirePriceCreateInstancesRequestParams struct { // Instance package ID. BundleId *string `json:"BundleId,omitempty" name:"BundleId"` // Number of instances to be created. Default value: 1. InstanceCount *int64 `json:"InstanceCount,omitempty" name:"InstanceCount"` // Prepaid mode, i.e., monthly subscription. This parameter can specify the purchase period and other attributes such as auto-renewal. It is required for prepaid instances. InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` // Application image ID, which is required if a paid application image is used and can be obtained from the `BlueprintId` returned by the [DescribeBlueprints](https://intl.cloud.tencent.com/document/product/1207/47689?from_cn_redirect=1) API. BlueprintId *string `json:"BlueprintId,omitempty" name:"BlueprintId"` }
Predefined struct for user
type InquirePriceCreateInstancesResponse ¶
type InquirePriceCreateInstancesResponse struct { *tchttp.BaseResponse Response *InquirePriceCreateInstancesResponseParams `json:"Response"` }
func NewInquirePriceCreateInstancesResponse ¶
func NewInquirePriceCreateInstancesResponse() (response *InquirePriceCreateInstancesResponse)
func (*InquirePriceCreateInstancesResponse) FromJsonString ¶
func (r *InquirePriceCreateInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquirePriceCreateInstancesResponse) ToJsonString ¶
func (r *InquirePriceCreateInstancesResponse) ToJsonString() string
type InquirePriceCreateInstancesResponseParams ¶
type InquirePriceCreateInstancesResponseParams struct { // Price query information. Price *Price `json:"Price,omitempty" name:"Price"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type InquirePriceRenewDisksRequest ¶
type InquirePriceRenewDisksRequest struct { *tchttp.BaseRequest // List of cloud disk IDs. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` // Parameter settings for renewing the monthly subscribed cloud disk. RenewDiskChargePrepaid *RenewDiskChargePrepaid `json:"RenewDiskChargePrepaid,omitempty" name:"RenewDiskChargePrepaid"` }
func NewInquirePriceRenewDisksRequest ¶
func NewInquirePriceRenewDisksRequest() (request *InquirePriceRenewDisksRequest)
func (*InquirePriceRenewDisksRequest) FromJsonString ¶
func (r *InquirePriceRenewDisksRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquirePriceRenewDisksRequest) ToJsonString ¶
func (r *InquirePriceRenewDisksRequest) ToJsonString() string
type InquirePriceRenewDisksRequestParams ¶
type InquirePriceRenewDisksRequestParams struct { // List of cloud disk IDs. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` // Parameter settings for renewing the monthly subscribed cloud disk. RenewDiskChargePrepaid *RenewDiskChargePrepaid `json:"RenewDiskChargePrepaid,omitempty" name:"RenewDiskChargePrepaid"` }
Predefined struct for user
type InquirePriceRenewDisksResponse ¶
type InquirePriceRenewDisksResponse struct { *tchttp.BaseResponse Response *InquirePriceRenewDisksResponseParams `json:"Response"` }
func NewInquirePriceRenewDisksResponse ¶
func NewInquirePriceRenewDisksResponse() (response *InquirePriceRenewDisksResponse)
func (*InquirePriceRenewDisksResponse) FromJsonString ¶
func (r *InquirePriceRenewDisksResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquirePriceRenewDisksResponse) ToJsonString ¶
func (r *InquirePriceRenewDisksResponse) ToJsonString() string
type InquirePriceRenewDisksResponseParams ¶
type InquirePriceRenewDisksResponseParams struct { // Cloud disk price. DiskPrice *DiskPrice `json:"DiskPrice,omitempty" name:"DiskPrice"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type InquirePriceRenewInstancesRequest ¶
type InquirePriceRenewInstancesRequest struct { *tchttp.BaseRequest // IDs of the instances to be renewed. Each request can contain up to 50 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Prepaid mode, i.e., monthly subscription. This parameter can specify the purchase period and other attributes such as auto-renewal. It is required for prepaid instances. InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` // Whether to renew the data disk. Default: `false`. RenewDataDisk *bool `json:"RenewDataDisk,omitempty" name:"RenewDataDisk"` // Whether to align the data disk expiration with the instance expiration time. Default: `false`. AlignInstanceExpiredTime *bool `json:"AlignInstanceExpiredTime,omitempty" name:"AlignInstanceExpiredTime"` }
func NewInquirePriceRenewInstancesRequest ¶
func NewInquirePriceRenewInstancesRequest() (request *InquirePriceRenewInstancesRequest)
func (*InquirePriceRenewInstancesRequest) FromJsonString ¶
func (r *InquirePriceRenewInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquirePriceRenewInstancesRequest) ToJsonString ¶
func (r *InquirePriceRenewInstancesRequest) ToJsonString() string
type InquirePriceRenewInstancesRequestParams ¶
type InquirePriceRenewInstancesRequestParams struct { // IDs of the instances to be renewed. Each request can contain up to 50 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Prepaid mode, i.e., monthly subscription. This parameter can specify the purchase period and other attributes such as auto-renewal. It is required for prepaid instances. InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` // Whether to renew the data disk. Default: `false`. RenewDataDisk *bool `json:"RenewDataDisk,omitempty" name:"RenewDataDisk"` // Whether to align the data disk expiration with the instance expiration time. Default: `false`. AlignInstanceExpiredTime *bool `json:"AlignInstanceExpiredTime,omitempty" name:"AlignInstanceExpiredTime"` }
Predefined struct for user
type InquirePriceRenewInstancesResponse ¶
type InquirePriceRenewInstancesResponse struct { *tchttp.BaseResponse Response *InquirePriceRenewInstancesResponseParams `json:"Response"` }
func NewInquirePriceRenewInstancesResponse ¶
func NewInquirePriceRenewInstancesResponse() (response *InquirePriceRenewInstancesResponse)
func (*InquirePriceRenewInstancesResponse) FromJsonString ¶
func (r *InquirePriceRenewInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquirePriceRenewInstancesResponse) ToJsonString ¶
func (r *InquirePriceRenewInstancesResponse) ToJsonString() string
type InquirePriceRenewInstancesResponseParams ¶
type InquirePriceRenewInstancesResponseParams struct { // Price information. It defaults to the price information of the first instance in the list. Price *Price `json:"Price,omitempty" name:"Price"` // List of data disk price information. // Note: This field may return null, indicating that no valid values can be obtained. DataDiskPriceSet []*DataDiskPrice `json:"DataDiskPriceSet,omitempty" name:"DataDiskPriceSet"` // Price list of the instances to be renewed. // Note: This field may return `null`, indicating that no valid value was found. InstancePriceDetailSet []*InstancePriceDetail `json:"InstancePriceDetailSet,omitempty" name:"InstancePriceDetailSet"` // Total price TotalPrice *TotalPrice `json:"TotalPrice,omitempty" name:"TotalPrice"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type Instance ¶
type Instance struct { // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Package ID. BundleId *string `json:"BundleId,omitempty" name:"BundleId"` // Image ID. BlueprintId *string `json:"BlueprintId,omitempty" name:"BlueprintId"` // Number of instance CPU cores. CPU *int64 `json:"CPU,omitempty" name:"CPU"` // Instance memory capacity in GB. Memory *int64 `json:"Memory,omitempty" name:"Memory"` // Instance name. InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // Instance billing mode. Valid values: // PREPAID: prepaid (i.e., monthly subscription). InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` // Instance system disk information. SystemDisk *SystemDisk `json:"SystemDisk,omitempty" name:"SystemDisk"` // Private IP of instance primary ENI. // Note: this field may return null, indicating that no valid values can be obtained. PrivateAddresses []*string `json:"PrivateAddresses,omitempty" name:"PrivateAddresses"` // Public IP of instance primary ENI. // Note: this field may return null, indicating that no valid values can be obtained. PublicAddresses []*string `json:"PublicAddresses,omitempty" name:"PublicAddresses"` // Instance bandwidth information. InternetAccessible *InternetAccessible `json:"InternetAccessible,omitempty" name:"InternetAccessible"` // Auto-Renewal flag. Valid values: // NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically // NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically. RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` // Instance login settings. LoginSettings *LoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"` // Instance status. Valid values: // <li>PENDING: Creating</li><li>LAUNCH_FAILED: Failed to create</li><li>RUNNING: Running</li><li>STOPPED: Shut down</li><li>STARTING: Starting up</li><li>STOPPING: Shutting down</li><li>REBOOTING: Restarting</li><li>SHUTDOWN: Shutdown and to be terminated</li><li>TERMINATING: Terminating</li><li>DELETING: Deleting</li><li>FREEZING: Frozen</li><li>ENTER_RESCUE_MODE: Entering the rescue mode</li><li>RESCUE_MODE: Rescue mode</li><li>EXIT_RESCUE_MODE: Exiting from the rescue mode</li> InstanceState *string `json:"InstanceState,omitempty" name:"InstanceState"` // Globally unique ID of instance. Uuid *string `json:"Uuid,omitempty" name:"Uuid"` // Last instance operation, such as `StopInstances` and `ResetInstance`. Note: this field may return null, indicating that no valid values can be obtained. LatestOperation *string `json:"LatestOperation,omitempty" name:"LatestOperation"` // Last instance operation status. Valid values: // SUCCESS: operation succeeded // OPERATING: the operation is being executed // FAILED: operation failed // Note: this field may return null, indicating that no valid values can be obtained. LatestOperationState *string `json:"LatestOperationState,omitempty" name:"LatestOperationState"` // Unique request ID for the last operation of the instance. // Note: this field may return null, indicating that no valid values can be obtained. LatestOperationRequestId *string `json:"LatestOperationRequestId,omitempty" name:"LatestOperationRequestId"` // Isolation time according to ISO 8601 standard. UTC time is used. // Format: YYYY-MM-DDThh:mm:ssZ. // Note: this field may return null, indicating that no valid values can be obtained. IsolatedTime *string `json:"IsolatedTime,omitempty" name:"IsolatedTime"` // Creation time according to ISO 8601 standard. UTC time is used. // Format: YYYY-MM-DDThh:mm:ssZ. // Note: this field may return null, indicating that no valid values can be obtained. CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` // Expiration time according to ISO 8601 standard. UTC time is used. // Format: YYYY-MM-DDThh:mm:ssZ. // Note: this field may return null, indicating that no valid values can be obtained. ExpiredTime *string `json:"ExpiredTime,omitempty" name:"ExpiredTime"` // OS type, such as LINUX_UNIX and WINDOWS. PlatformType *string `json:"PlatformType,omitempty" name:"PlatformType"` // OS type. Platform *string `json:"Platform,omitempty" name:"Platform"` // OS name. OsName *string `json:"OsName,omitempty" name:"OsName"` // AZ. Zone *string `json:"Zone,omitempty" name:"Zone"` // The list of tags associated with the instance Tags []*Tag `json:"Tags,omitempty" name:"Tags"` // Obtain instance status // <li>NORMAL: The instance is normal</li><li>NETWORK_RESTRICT: The instance is blocked from the network.</li> InstanceRestrictState *string `json:"InstanceRestrictState,omitempty" name:"InstanceRestrictState"` }
type InstanceChargePrepaid ¶
type InstanceChargePrepaid struct { // Subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60. Period *int64 `json:"Period,omitempty" name:"Period"` // Auto-Renewal flag. Valid values: <br><li>NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically <br><li>NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically. You need to manually renew <br><li>DISABLE_NOTIFY_AND_AUTO_RENEW: neither notify upon expiration nor renew automatically<br><br>Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as `NOTIFY_AND_AUTO_RENEW`, the instance will be automatically renewed monthly if the account balance is sufficient. RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` }
type InstanceDeniedActions ¶
type InstanceDeniedActions struct { // Instance ID. // Note: this field may return null, indicating that no valid values can be obtained. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // List of operation limits. DeniedActions []*DeniedAction `json:"DeniedActions,omitempty" name:"DeniedActions"` }
type InstancePrice ¶
type InstancePrice struct { // Original package unit price. OriginalBundlePrice *float64 `json:"OriginalBundlePrice,omitempty" name:"OriginalBundlePrice"` // Original price. OriginalPrice *float64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"` // Discount. Discount *int64 `json:"Discount,omitempty" name:"Discount"` // Discounted price. DiscountPrice *float64 `json:"DiscountPrice,omitempty" name:"DiscountPrice"` }
type InstancePriceDetail ¶
type InstancePriceDetail struct { // Instance ID. // Note: This field may return `null`, indicating that no valid value was found. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Price query information. // Note: This field may return `null`, indicating that no valid value was found. InstancePrice *InstancePrice `json:"InstancePrice,omitempty" name:"InstancePrice"` DiscountDetail []*DiscountDetail `json:"DiscountDetail,omitempty" name:"DiscountDetail"` }
type InstanceReturnable ¶
type InstanceReturnable struct { // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Whether the instance can be returned. IsReturnable *bool `json:"IsReturnable,omitempty" name:"IsReturnable"` // Error code of instance return failure. ReturnFailCode *int64 `json:"ReturnFailCode,omitempty" name:"ReturnFailCode"` // Error message of instance return failure. ReturnFailMessage *string `json:"ReturnFailMessage,omitempty" name:"ReturnFailMessage"` }
type InstanceTrafficPackage ¶
type InstanceTrafficPackage struct { // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // List of traffic package details. TrafficPackageSet []*TrafficPackage `json:"TrafficPackageSet,omitempty" name:"TrafficPackageSet"` }
type InternetAccessible ¶
type InternetAccessible struct { // Network billing mode. Valid values: // <li>Bill by traffic package: TRAFFIC_POSTPAID_BY_HOUR</li> // <li>Bill by bandwidth: BANDWIDTH_POSTPAID_BY_HOUR</li> InternetChargeType *string `json:"InternetChargeType,omitempty" name:"InternetChargeType"` // Public network outbound bandwidth cap in Mbps. InternetMaxBandwidthOut *int64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` // Whether to assign a public IP. PublicIpAssigned *bool `json:"PublicIpAssigned,omitempty" name:"PublicIpAssigned"` }
type KeyPair ¶
type KeyPair struct { // Key pair ID, which is the unique identifier of a key pair. KeyId *string `json:"KeyId,omitempty" name:"KeyId"` // Key pair name. KeyName *string `json:"KeyName,omitempty" name:"KeyName"` // Public key (in plain text) of key pair. PublicKey *string `json:"PublicKey,omitempty" name:"PublicKey"` // List of IDs of instances associated with the key pair. // Note: this field may return null, indicating that no valid values can be obtained. AssociatedInstanceIds []*string `json:"AssociatedInstanceIds,omitempty" name:"AssociatedInstanceIds"` // Creation time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used // Note: this field may return null, indicating that no valid values can be obtained. CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` // Private key of key pair. // Note: this field may return null, indicating that no valid values can be obtained. PrivateKey *string `json:"PrivateKey,omitempty" name:"PrivateKey"` }
type LoginConfiguration ¶
type LoginConfiguration struct { // <li>`YES`: Random password. In this case, `Password` cannot be specified. </li> // <li>`No`: Custom. `Password` must be specified. </li> AutoGeneratePassword *string `json:"AutoGeneratePassword,omitempty" name:"AutoGeneratePassword"` // Instace login password. // For Windows instances, the password must contain 12 to 30 characters of the following types. It cannot start with “/” and cannot include the username. // <li>[a-z]</li> // <li>[A-Z]</li> // <li>[0-9]</li> // <li>[()`~!@#$%^&*-+=_|{}[]:;' <>,.?/]</li> Password *string `json:"Password,omitempty" name:"Password"` }
type LoginSettings ¶
type LoginSettings struct { // Key ID list. After a key is associated, you can use it to access the instance. Note: this field may return [], indicating that no valid values can be obtained. KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds"` }
type ModifyBlueprintAttributeRequest ¶
type ModifyBlueprintAttributeRequest struct { *tchttp.BaseRequest // Image ID, which can be obtained from the `BlueprintId` returned by the [DescribeBlueprints](https://intl.cloud.tencent.com/document/product/1207/47689?from_cn_redirect=1) API. BlueprintId *string `json:"BlueprintId,omitempty" name:"BlueprintId"` // New image name, which can contain up to 60 characters. BlueprintName *string `json:"BlueprintName,omitempty" name:"BlueprintName"` // New image description, which can contain up to 60 characters. Description *string `json:"Description,omitempty" name:"Description"` }
func NewModifyBlueprintAttributeRequest ¶
func NewModifyBlueprintAttributeRequest() (request *ModifyBlueprintAttributeRequest)
func (*ModifyBlueprintAttributeRequest) FromJsonString ¶
func (r *ModifyBlueprintAttributeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyBlueprintAttributeRequest) ToJsonString ¶
func (r *ModifyBlueprintAttributeRequest) ToJsonString() string
type ModifyBlueprintAttributeRequestParams ¶
type ModifyBlueprintAttributeRequestParams struct { // Image ID, which can be obtained from the `BlueprintId` returned by the [DescribeBlueprints](https://intl.cloud.tencent.com/document/product/1207/47689?from_cn_redirect=1) API. BlueprintId *string `json:"BlueprintId,omitempty" name:"BlueprintId"` // New image name, which can contain up to 60 characters. BlueprintName *string `json:"BlueprintName,omitempty" name:"BlueprintName"` // New image description, which can contain up to 60 characters. Description *string `json:"Description,omitempty" name:"Description"` }
Predefined struct for user
type ModifyBlueprintAttributeResponse ¶
type ModifyBlueprintAttributeResponse struct { *tchttp.BaseResponse Response *ModifyBlueprintAttributeResponseParams `json:"Response"` }
func NewModifyBlueprintAttributeResponse ¶
func NewModifyBlueprintAttributeResponse() (response *ModifyBlueprintAttributeResponse)
func (*ModifyBlueprintAttributeResponse) FromJsonString ¶
func (r *ModifyBlueprintAttributeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyBlueprintAttributeResponse) ToJsonString ¶
func (r *ModifyBlueprintAttributeResponse) ToJsonString() string
type ModifyBlueprintAttributeResponseParams ¶
type ModifyBlueprintAttributeResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifyBundle ¶
type ModifyBundle struct { // Price difference that you need to pay for the new instance package after change. ModifyPrice *Price `json:"ModifyPrice,omitempty" name:"ModifyPrice"` // Package change status. Valid values: // <li>SOLD_OUT: packages are sold out</li> // <li>AVAILABLE: packages can be changed</li> // <li>UNAVAILABLE: packages cannot be changed currently</li> ModifyBundleState *string `json:"ModifyBundleState,omitempty" name:"ModifyBundleState"` // Package information. Bundle *Bundle `json:"Bundle,omitempty" name:"Bundle"` // The reason of package changing failure. It’s empty if the package change status is `AVAILABLE`. // Note: This field may return `null`, indicating that no valid values can be obtained. NotSupportModifyMessage *string `json:"NotSupportModifyMessage,omitempty" name:"NotSupportModifyMessage"` }
type ModifyDisksAttributeRequest ¶
type ModifyDisksAttributeRequest struct { *tchttp.BaseRequest // List of cloud disk IDs. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` // Cloud disk name. DiskName *string `json:"DiskName,omitempty" name:"DiskName"` }
func NewModifyDisksAttributeRequest ¶
func NewModifyDisksAttributeRequest() (request *ModifyDisksAttributeRequest)
func (*ModifyDisksAttributeRequest) FromJsonString ¶
func (r *ModifyDisksAttributeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDisksAttributeRequest) ToJsonString ¶
func (r *ModifyDisksAttributeRequest) ToJsonString() string
type ModifyDisksAttributeRequestParams ¶
type ModifyDisksAttributeRequestParams struct { // List of cloud disk IDs. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` // Cloud disk name. DiskName *string `json:"DiskName,omitempty" name:"DiskName"` }
Predefined struct for user
type ModifyDisksAttributeResponse ¶
type ModifyDisksAttributeResponse struct { *tchttp.BaseResponse Response *ModifyDisksAttributeResponseParams `json:"Response"` }
func NewModifyDisksAttributeResponse ¶
func NewModifyDisksAttributeResponse() (response *ModifyDisksAttributeResponse)
func (*ModifyDisksAttributeResponse) FromJsonString ¶
func (r *ModifyDisksAttributeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDisksAttributeResponse) ToJsonString ¶
func (r *ModifyDisksAttributeResponse) ToJsonString() string
type ModifyDisksAttributeResponseParams ¶
type ModifyDisksAttributeResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifyDisksRenewFlagRequest ¶
type ModifyDisksRenewFlagRequest struct { *tchttp.BaseRequest // List of cloud disk IDs. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` // Whether Auto-Renewal is enabled RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` }
func NewModifyDisksRenewFlagRequest ¶
func NewModifyDisksRenewFlagRequest() (request *ModifyDisksRenewFlagRequest)
func (*ModifyDisksRenewFlagRequest) FromJsonString ¶
func (r *ModifyDisksRenewFlagRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDisksRenewFlagRequest) ToJsonString ¶
func (r *ModifyDisksRenewFlagRequest) ToJsonString() string
type ModifyDisksRenewFlagRequestParams ¶
type ModifyDisksRenewFlagRequestParams struct { // List of cloud disk IDs. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` // Whether Auto-Renewal is enabled RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` }
Predefined struct for user
type ModifyDisksRenewFlagResponse ¶
type ModifyDisksRenewFlagResponse struct { *tchttp.BaseResponse Response *ModifyDisksRenewFlagResponseParams `json:"Response"` }
func NewModifyDisksRenewFlagResponse ¶
func NewModifyDisksRenewFlagResponse() (response *ModifyDisksRenewFlagResponse)
func (*ModifyDisksRenewFlagResponse) FromJsonString ¶
func (r *ModifyDisksRenewFlagResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDisksRenewFlagResponse) ToJsonString ¶
func (r *ModifyDisksRenewFlagResponse) ToJsonString() string
type ModifyDisksRenewFlagResponseParams ¶
type ModifyDisksRenewFlagResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifyFirewallRuleDescriptionRequest ¶
type ModifyFirewallRuleDescriptionRequest struct { *tchttp.BaseRequest // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Firewall rule. FirewallRule *FirewallRule `json:"FirewallRule,omitempty" name:"FirewallRule"` // Current firewall version number. Every time you update the firewall rule version, it will be automatically increased by 1 to prevent the rule from expiring. If it is left empty, conflicts will not be considered. FirewallVersion *uint64 `json:"FirewallVersion,omitempty" name:"FirewallVersion"` }
func NewModifyFirewallRuleDescriptionRequest ¶
func NewModifyFirewallRuleDescriptionRequest() (request *ModifyFirewallRuleDescriptionRequest)
func (*ModifyFirewallRuleDescriptionRequest) FromJsonString ¶
func (r *ModifyFirewallRuleDescriptionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyFirewallRuleDescriptionRequest) ToJsonString ¶
func (r *ModifyFirewallRuleDescriptionRequest) ToJsonString() string
type ModifyFirewallRuleDescriptionRequestParams ¶
type ModifyFirewallRuleDescriptionRequestParams struct { // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Firewall rule. FirewallRule *FirewallRule `json:"FirewallRule,omitempty" name:"FirewallRule"` // Current firewall version number. Every time you update the firewall rule version, it will be automatically increased by 1 to prevent the rule from expiring. If it is left empty, conflicts will not be considered. FirewallVersion *uint64 `json:"FirewallVersion,omitempty" name:"FirewallVersion"` }
Predefined struct for user
type ModifyFirewallRuleDescriptionResponse ¶
type ModifyFirewallRuleDescriptionResponse struct { *tchttp.BaseResponse Response *ModifyFirewallRuleDescriptionResponseParams `json:"Response"` }
func NewModifyFirewallRuleDescriptionResponse ¶
func NewModifyFirewallRuleDescriptionResponse() (response *ModifyFirewallRuleDescriptionResponse)
func (*ModifyFirewallRuleDescriptionResponse) FromJsonString ¶
func (r *ModifyFirewallRuleDescriptionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyFirewallRuleDescriptionResponse) ToJsonString ¶
func (r *ModifyFirewallRuleDescriptionResponse) ToJsonString() string
type ModifyFirewallRuleDescriptionResponseParams ¶
type ModifyFirewallRuleDescriptionResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifyFirewallRulesRequest ¶
type ModifyFirewallRulesRequest struct { *tchttp.BaseRequest // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Firewall rule list. FirewallRules []*FirewallRule `json:"FirewallRules,omitempty" name:"FirewallRules"` // Current firewall version number. Every time you update the firewall rule version, it will be automatically increased by 1 to prevent the rule from expiring. If it is left empty, conflicts will not be considered. FirewallVersion *uint64 `json:"FirewallVersion,omitempty" name:"FirewallVersion"` }
func NewModifyFirewallRulesRequest ¶
func NewModifyFirewallRulesRequest() (request *ModifyFirewallRulesRequest)
func (*ModifyFirewallRulesRequest) FromJsonString ¶
func (r *ModifyFirewallRulesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyFirewallRulesRequest) ToJsonString ¶
func (r *ModifyFirewallRulesRequest) ToJsonString() string
type ModifyFirewallRulesRequestParams ¶
type ModifyFirewallRulesRequestParams struct { // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Firewall rule list. FirewallRules []*FirewallRule `json:"FirewallRules,omitempty" name:"FirewallRules"` // Current firewall version number. Every time you update the firewall rule version, it will be automatically increased by 1 to prevent the rule from expiring. If it is left empty, conflicts will not be considered. FirewallVersion *uint64 `json:"FirewallVersion,omitempty" name:"FirewallVersion"` }
Predefined struct for user
type ModifyFirewallRulesResponse ¶
type ModifyFirewallRulesResponse struct { *tchttp.BaseResponse Response *ModifyFirewallRulesResponseParams `json:"Response"` }
func NewModifyFirewallRulesResponse ¶
func NewModifyFirewallRulesResponse() (response *ModifyFirewallRulesResponse)
func (*ModifyFirewallRulesResponse) FromJsonString ¶
func (r *ModifyFirewallRulesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyFirewallRulesResponse) ToJsonString ¶
func (r *ModifyFirewallRulesResponse) ToJsonString() string
type ModifyFirewallRulesResponseParams ¶
type ModifyFirewallRulesResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifyInstancesAttributeRequest ¶
type ModifyInstancesAttributeRequest struct { *tchttp.BaseRequest // Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Instance name, which is customizable and can contain up to 60 characters. InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` }
func NewModifyInstancesAttributeRequest ¶
func NewModifyInstancesAttributeRequest() (request *ModifyInstancesAttributeRequest)
func (*ModifyInstancesAttributeRequest) FromJsonString ¶
func (r *ModifyInstancesAttributeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyInstancesAttributeRequest) ToJsonString ¶
func (r *ModifyInstancesAttributeRequest) ToJsonString() string
type ModifyInstancesAttributeRequestParams ¶
type ModifyInstancesAttributeRequestParams struct { // Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Instance name, which is customizable and can contain up to 60 characters. InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` }
Predefined struct for user
type ModifyInstancesAttributeResponse ¶
type ModifyInstancesAttributeResponse struct { *tchttp.BaseResponse Response *ModifyInstancesAttributeResponseParams `json:"Response"` }
func NewModifyInstancesAttributeResponse ¶
func NewModifyInstancesAttributeResponse() (response *ModifyInstancesAttributeResponse)
func (*ModifyInstancesAttributeResponse) FromJsonString ¶
func (r *ModifyInstancesAttributeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyInstancesAttributeResponse) ToJsonString ¶
func (r *ModifyInstancesAttributeResponse) ToJsonString() string
type ModifyInstancesAttributeResponseParams ¶
type ModifyInstancesAttributeResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifyInstancesLoginKeyPairAttributeRequest ¶
type ModifyInstancesLoginKeyPairAttributeRequest struct { *tchttp.BaseRequest // Instance ID list. Each request can contain up to 100 instances at a time. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Whether to allow login with the default key pair. Valid values: YES: yes; NO: no. PermitLogin *string `json:"PermitLogin,omitempty" name:"PermitLogin"` }
func NewModifyInstancesLoginKeyPairAttributeRequest ¶
func NewModifyInstancesLoginKeyPairAttributeRequest() (request *ModifyInstancesLoginKeyPairAttributeRequest)
func (*ModifyInstancesLoginKeyPairAttributeRequest) FromJsonString ¶
func (r *ModifyInstancesLoginKeyPairAttributeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyInstancesLoginKeyPairAttributeRequest) ToJsonString ¶
func (r *ModifyInstancesLoginKeyPairAttributeRequest) ToJsonString() string
type ModifyInstancesLoginKeyPairAttributeRequestParams ¶
type ModifyInstancesLoginKeyPairAttributeRequestParams struct { // Instance ID list. Each request can contain up to 100 instances at a time. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Whether to allow login with the default key pair. Valid values: YES: yes; NO: no. PermitLogin *string `json:"PermitLogin,omitempty" name:"PermitLogin"` }
Predefined struct for user
type ModifyInstancesLoginKeyPairAttributeResponse ¶
type ModifyInstancesLoginKeyPairAttributeResponse struct { *tchttp.BaseResponse Response *ModifyInstancesLoginKeyPairAttributeResponseParams `json:"Response"` }
func NewModifyInstancesLoginKeyPairAttributeResponse ¶
func NewModifyInstancesLoginKeyPairAttributeResponse() (response *ModifyInstancesLoginKeyPairAttributeResponse)
func (*ModifyInstancesLoginKeyPairAttributeResponse) FromJsonString ¶
func (r *ModifyInstancesLoginKeyPairAttributeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyInstancesLoginKeyPairAttributeResponse) ToJsonString ¶
func (r *ModifyInstancesLoginKeyPairAttributeResponse) ToJsonString() string
type ModifyInstancesLoginKeyPairAttributeResponseParams ¶
type ModifyInstancesLoginKeyPairAttributeResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifyInstancesRenewFlagRequest ¶
type ModifyInstancesRenewFlagRequest struct { *tchttp.BaseRequest // Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Auto-Renewal flag. Valid values: <br><li>NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically <br><li>NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically <br><li>DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically <br><br>If this parameter is specified as `NOTIFY_AND_AUTO_RENEW`, the instance will be automatically renewed monthly if the account balance is sufficient. RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` }
func NewModifyInstancesRenewFlagRequest ¶
func NewModifyInstancesRenewFlagRequest() (request *ModifyInstancesRenewFlagRequest)
func (*ModifyInstancesRenewFlagRequest) FromJsonString ¶
func (r *ModifyInstancesRenewFlagRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyInstancesRenewFlagRequest) ToJsonString ¶
func (r *ModifyInstancesRenewFlagRequest) ToJsonString() string
type ModifyInstancesRenewFlagRequestParams ¶
type ModifyInstancesRenewFlagRequestParams struct { // Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Auto-Renewal flag. Valid values: <br><li>NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically <br><li>NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically <br><li>DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically <br><br>If this parameter is specified as `NOTIFY_AND_AUTO_RENEW`, the instance will be automatically renewed monthly if the account balance is sufficient. RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` }
Predefined struct for user
type ModifyInstancesRenewFlagResponse ¶
type ModifyInstancesRenewFlagResponse struct { *tchttp.BaseResponse Response *ModifyInstancesRenewFlagResponseParams `json:"Response"` }
func NewModifyInstancesRenewFlagResponse ¶
func NewModifyInstancesRenewFlagResponse() (response *ModifyInstancesRenewFlagResponse)
func (*ModifyInstancesRenewFlagResponse) FromJsonString ¶
func (r *ModifyInstancesRenewFlagResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyInstancesRenewFlagResponse) ToJsonString ¶
func (r *ModifyInstancesRenewFlagResponse) ToJsonString() string
type ModifyInstancesRenewFlagResponseParams ¶
type ModifyInstancesRenewFlagResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifySnapshotAttributeRequest ¶
type ModifySnapshotAttributeRequest struct { *tchttp.BaseRequest // Snapshot ID, which can be queried through `DescribeSnapshots`. SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"` // New snapshot name, which can contain up to 60 characters. SnapshotName *string `json:"SnapshotName,omitempty" name:"SnapshotName"` }
func NewModifySnapshotAttributeRequest ¶
func NewModifySnapshotAttributeRequest() (request *ModifySnapshotAttributeRequest)
func (*ModifySnapshotAttributeRequest) FromJsonString ¶
func (r *ModifySnapshotAttributeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifySnapshotAttributeRequest) ToJsonString ¶
func (r *ModifySnapshotAttributeRequest) ToJsonString() string
type ModifySnapshotAttributeRequestParams ¶
type ModifySnapshotAttributeRequestParams struct { // Snapshot ID, which can be queried through `DescribeSnapshots`. SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"` // New snapshot name, which can contain up to 60 characters. SnapshotName *string `json:"SnapshotName,omitempty" name:"SnapshotName"` }
Predefined struct for user
type ModifySnapshotAttributeResponse ¶
type ModifySnapshotAttributeResponse struct { *tchttp.BaseResponse Response *ModifySnapshotAttributeResponseParams `json:"Response"` }
func NewModifySnapshotAttributeResponse ¶
func NewModifySnapshotAttributeResponse() (response *ModifySnapshotAttributeResponse)
func (*ModifySnapshotAttributeResponse) FromJsonString ¶
func (r *ModifySnapshotAttributeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifySnapshotAttributeResponse) ToJsonString ¶
func (r *ModifySnapshotAttributeResponse) ToJsonString() string
type ModifySnapshotAttributeResponseParams ¶
type ModifySnapshotAttributeResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type PolicyDetail ¶
type PolicyDetail struct { // User discount. UserDiscount *int64 `json:"UserDiscount,omitempty" name:"UserDiscount"` // Public discount. CommonDiscount *int64 `json:"CommonDiscount,omitempty" name:"CommonDiscount"` // Final discount. FinalDiscount *int64 `json:"FinalDiscount,omitempty" name:"FinalDiscount"` }
type Price ¶
type Price struct { // Instance price. InstancePrice *InstancePrice `json:"InstancePrice,omitempty" name:"InstancePrice"` }
type RebootInstancesRequest ¶
type RebootInstancesRequest struct { *tchttp.BaseRequest // Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewRebootInstancesRequest ¶
func NewRebootInstancesRequest() (request *RebootInstancesRequest)
func (*RebootInstancesRequest) FromJsonString ¶
func (r *RebootInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RebootInstancesRequest) ToJsonString ¶
func (r *RebootInstancesRequest) ToJsonString() string
type RebootInstancesRequestParams ¶
type RebootInstancesRequestParams struct { // Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
Predefined struct for user
type RebootInstancesResponse ¶
type RebootInstancesResponse struct { *tchttp.BaseResponse Response *RebootInstancesResponseParams `json:"Response"` }
func NewRebootInstancesResponse ¶
func NewRebootInstancesResponse() (response *RebootInstancesResponse)
func (*RebootInstancesResponse) FromJsonString ¶
func (r *RebootInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RebootInstancesResponse) ToJsonString ¶
func (r *RebootInstancesResponse) ToJsonString() string
type RebootInstancesResponseParams ¶
type RebootInstancesResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type RegionInfo ¶
type RegionInfo struct { // Region name, such as `ap-guangzhou`. Region *string `json:"Region,omitempty" name:"Region"` // Region description, such as South China (Guangzhou). RegionName *string `json:"RegionName,omitempty" name:"RegionName"` // Region availability status. Its value can only be `AVAILABLE`. RegionState *string `json:"RegionState,omitempty" name:"RegionState"` // Whether the region is in the Chinese mainland IsChinaMainland *bool `json:"IsChinaMainland,omitempty" name:"IsChinaMainland"` }
type RenewDiskChargePrepaid ¶
type RenewDiskChargePrepaid struct { // Purchase duration. Period *int64 `json:"Period,omitempty" name:"Period"` // Whether Auto-Renewal is enabled RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` // Duration unit. Default value: "m" (month). TimeUnit *string `json:"TimeUnit,omitempty" name:"TimeUnit"` // Expiration time of the current instance. CurInstanceDeadline *string `json:"CurInstanceDeadline,omitempty" name:"CurInstanceDeadline"` }
type ResetAttachCcnRequest ¶
type ResetAttachCcnRequest struct { *tchttp.BaseRequest // CCN instance ID. CcnId *string `json:"CcnId,omitempty" name:"CcnId"` }
func NewResetAttachCcnRequest ¶
func NewResetAttachCcnRequest() (request *ResetAttachCcnRequest)
func (*ResetAttachCcnRequest) FromJsonString ¶
func (r *ResetAttachCcnRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ResetAttachCcnRequest) ToJsonString ¶
func (r *ResetAttachCcnRequest) ToJsonString() string
type ResetAttachCcnRequestParams ¶
type ResetAttachCcnRequestParams struct { // CCN instance ID. CcnId *string `json:"CcnId,omitempty" name:"CcnId"` }
Predefined struct for user
type ResetAttachCcnResponse ¶
type ResetAttachCcnResponse struct { *tchttp.BaseResponse Response *ResetAttachCcnResponseParams `json:"Response"` }
func NewResetAttachCcnResponse ¶
func NewResetAttachCcnResponse() (response *ResetAttachCcnResponse)
func (*ResetAttachCcnResponse) FromJsonString ¶
func (r *ResetAttachCcnResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ResetAttachCcnResponse) ToJsonString ¶
func (r *ResetAttachCcnResponse) ToJsonString() string
type ResetAttachCcnResponseParams ¶
type ResetAttachCcnResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ResetInstanceBlueprint ¶
type ResetInstanceBlueprint struct { // Image details BlueprintInfo *Blueprint `json:"BlueprintInfo,omitempty" name:"BlueprintInfo"` // Whether the image can be reset as the target image IsResettable *bool `json:"IsResettable,omitempty" name:"IsResettable"` // Non-Resettable flag. If the image is resettable, it will be "" NonResettableMessage *string `json:"NonResettableMessage,omitempty" name:"NonResettableMessage"` }
type ResetInstanceRequest ¶
type ResetInstanceRequest struct { *tchttp.BaseRequest // Instance ID, which can be obtained from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Image ID, which can be obtained from the `BlueprintId` returned by the [DescribeBlueprints](https://intl.cloud.tencent.com/document/product/1207/47689?from_cn_redirect=1) API. BlueprintId *string `json:"BlueprintId,omitempty" name:"BlueprintId"` }
func NewResetInstanceRequest ¶
func NewResetInstanceRequest() (request *ResetInstanceRequest)
func (*ResetInstanceRequest) FromJsonString ¶
func (r *ResetInstanceRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ResetInstanceRequest) ToJsonString ¶
func (r *ResetInstanceRequest) ToJsonString() string
type ResetInstanceRequestParams ¶
type ResetInstanceRequestParams struct { // Instance ID, which can be obtained from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Image ID, which can be obtained from the `BlueprintId` returned by the [DescribeBlueprints](https://intl.cloud.tencent.com/document/product/1207/47689?from_cn_redirect=1) API. BlueprintId *string `json:"BlueprintId,omitempty" name:"BlueprintId"` }
Predefined struct for user
type ResetInstanceResponse ¶
type ResetInstanceResponse struct { *tchttp.BaseResponse Response *ResetInstanceResponseParams `json:"Response"` }
func NewResetInstanceResponse ¶
func NewResetInstanceResponse() (response *ResetInstanceResponse)
func (*ResetInstanceResponse) FromJsonString ¶
func (r *ResetInstanceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ResetInstanceResponse) ToJsonString ¶
func (r *ResetInstanceResponse) ToJsonString() string
type ResetInstanceResponseParams ¶
type ResetInstanceResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ResetInstancesPasswordRequest ¶
type ResetInstancesPasswordRequest struct { *tchttp.BaseRequest // Instance ID list. Each request can contain up to 100 instances at a time. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Login password of the instance(s). The password requirements vary among different operating systems: // The password of a `LINUX_UNIX` instance must contain 8–30 characters (above 12 characters preferably) in at least three of the following types and cannot begin with "/": <br><li>Lowercase letters: [a–z]<br><li>Uppercase letters: [A–Z]<br><li>Digits: 0–9<br><li>Special symbols: ()\`~!@#$%^&\*-+=\_|{}[]:;'<>,.?/</li> // The password of a `WINDOWS` instance must contain 12–30 characters in at least three of the following types and cannot begin with "/" or include the username: <br><li>Lowercase letters: [a–z]<br><li>Uppercase letters: [A–Z]<br><li>Digits: 0–9<br><li>Special symbols: ()\`~!@#$%^&\*-+=\_|{}[]:;' <>,.?/<br><li>If both `LINUX_UNIX` and `WINDOWS` instances exist, the requirements for password complexity of `WINDOWS` instances shall prevail. Password *string `json:"Password,omitempty" name:"Password"` // OS username of the instance for which you want to reset the password, which can contain up to 64 characters. UserName *string `json:"UserName,omitempty" name:"UserName"` }
func NewResetInstancesPasswordRequest ¶
func NewResetInstancesPasswordRequest() (request *ResetInstancesPasswordRequest)
func (*ResetInstancesPasswordRequest) FromJsonString ¶
func (r *ResetInstancesPasswordRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ResetInstancesPasswordRequest) ToJsonString ¶
func (r *ResetInstancesPasswordRequest) ToJsonString() string
type ResetInstancesPasswordRequestParams ¶
type ResetInstancesPasswordRequestParams struct { // Instance ID list. Each request can contain up to 100 instances at a time. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Login password of the instance(s). The password requirements vary among different operating systems: // The password of a `LINUX_UNIX` instance must contain 8–30 characters (above 12 characters preferably) in at least three of the following types and cannot begin with "/": <br><li>Lowercase letters: [a–z]<br><li>Uppercase letters: [A–Z]<br><li>Digits: 0–9<br><li>Special symbols: ()\`~!@#$%^&\*-+=\_|{}[]:;'<>,.?/</li> // The password of a `WINDOWS` instance must contain 12–30 characters in at least three of the following types and cannot begin with "/" or include the username: <br><li>Lowercase letters: [a–z]<br><li>Uppercase letters: [A–Z]<br><li>Digits: 0–9<br><li>Special symbols: ()\`~!@#$%^&\*-+=\_|{}[]:;' <>,.?/<br><li>If both `LINUX_UNIX` and `WINDOWS` instances exist, the requirements for password complexity of `WINDOWS` instances shall prevail. Password *string `json:"Password,omitempty" name:"Password"` // OS username of the instance for which you want to reset the password, which can contain up to 64 characters. UserName *string `json:"UserName,omitempty" name:"UserName"` }
Predefined struct for user
type ResetInstancesPasswordResponse ¶
type ResetInstancesPasswordResponse struct { *tchttp.BaseResponse Response *ResetInstancesPasswordResponseParams `json:"Response"` }
func NewResetInstancesPasswordResponse ¶
func NewResetInstancesPasswordResponse() (response *ResetInstancesPasswordResponse)
func (*ResetInstancesPasswordResponse) FromJsonString ¶
func (r *ResetInstancesPasswordResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ResetInstancesPasswordResponse) ToJsonString ¶
func (r *ResetInstancesPasswordResponse) ToJsonString() string
type ResetInstancesPasswordResponseParams ¶
type ResetInstancesPasswordResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type Snapshot ¶
type Snapshot struct { // Snapshot ID. SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"` // Type of the disk for which the snapshot is created. Valid values: <li>SYSTEM_DISK: system disk</li> DiskUsage *string `json:"DiskUsage,omitempty" name:"DiskUsage"` // ID of the disk for which the snapshot is created. DiskId *string `json:"DiskId,omitempty" name:"DiskId"` // Size of the disk in GB for which the snapshot is created. DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"` // Snapshot name, which is a custom snapshot alias. SnapshotName *string `json:"SnapshotName,omitempty" name:"SnapshotName"` // Snapshot status. Valid values: // <li>NORMAL: normal </li> // <li>CREATING: creating</li> // <li>ROLLBACKING: rolling back</li> SnapshotState *string `json:"SnapshotState,omitempty" name:"SnapshotState"` // Snapshot creation or rollback progress in percentage. After success, the value of this field will become 100. Percent *int64 `json:"Percent,omitempty" name:"Percent"` // Last snapshot operation. It is recorded only during snapshot creation and rollback. // Example values: CreateInstanceSnapshot, RollbackInstanceSnapshot. // Note: this field may return null, indicating that no valid values can be obtained. LatestOperation *string `json:"LatestOperation,omitempty" name:"LatestOperation"` // Last snapshot operation status. It is recorded only during snapshot creation and rollback. // Valid values: // <li>SUCCESS: operation succeeded</li> // <li>OPERATING: the operation is being executed</li> // <li>FAILED: operation failed</li> // Note: this field may return null, indicating that no valid values can be obtained. LatestOperationState *string `json:"LatestOperationState,omitempty" name:"LatestOperationState"` // Unique request ID for the last snapshot operation. It is recorded only during snapshot creation and rollback. // Note: this field may return null, indicating that no valid values can be obtained. LatestOperationRequestId *string `json:"LatestOperationRequestId,omitempty" name:"LatestOperationRequestId"` // Snapshot creation time. CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` }
type SnapshotDeniedActions ¶
type SnapshotDeniedActions struct { // Snapshot ID. SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"` // List of operation limits. DeniedActions []*DeniedAction `json:"DeniedActions,omitempty" name:"DeniedActions"` }
type Software ¶
type Software struct { // Software name. Name *string `json:"Name,omitempty" name:"Name"` // Software version. Version *string `json:"Version,omitempty" name:"Version"` // Software picture URL. ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"` // Software installation directory. InstallDir *string `json:"InstallDir,omitempty" name:"InstallDir"` // List of software details. DetailSet []*SoftwareDetail `json:"DetailSet,omitempty" name:"DetailSet"` }
type SoftwareDetail ¶
type StartInstancesRequest ¶
type StartInstancesRequest struct { *tchttp.BaseRequest // Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewStartInstancesRequest ¶
func NewStartInstancesRequest() (request *StartInstancesRequest)
func (*StartInstancesRequest) FromJsonString ¶
func (r *StartInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StartInstancesRequest) ToJsonString ¶
func (r *StartInstancesRequest) ToJsonString() string
type StartInstancesRequestParams ¶
type StartInstancesRequestParams struct { // Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
Predefined struct for user
type StartInstancesResponse ¶
type StartInstancesResponse struct { *tchttp.BaseResponse Response *StartInstancesResponseParams `json:"Response"` }
func NewStartInstancesResponse ¶
func NewStartInstancesResponse() (response *StartInstancesResponse)
func (*StartInstancesResponse) FromJsonString ¶
func (r *StartInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StartInstancesResponse) ToJsonString ¶
func (r *StartInstancesResponse) ToJsonString() string
type StartInstancesResponseParams ¶
type StartInstancesResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type StopInstancesRequest ¶
type StopInstancesRequest struct { *tchttp.BaseRequest // Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewStopInstancesRequest ¶
func NewStopInstancesRequest() (request *StopInstancesRequest)
func (*StopInstancesRequest) FromJsonString ¶
func (r *StopInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StopInstancesRequest) ToJsonString ¶
func (r *StopInstancesRequest) ToJsonString() string
type StopInstancesRequestParams ¶
type StopInstancesRequestParams struct { // Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
Predefined struct for user
type StopInstancesResponse ¶
type StopInstancesResponse struct { *tchttp.BaseResponse Response *StopInstancesResponseParams `json:"Response"` }
func NewStopInstancesResponse ¶
func NewStopInstancesResponse() (response *StopInstancesResponse)
func (*StopInstancesResponse) FromJsonString ¶
func (r *StopInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StopInstancesResponse) ToJsonString ¶
func (r *StopInstancesResponse) ToJsonString() string
type StopInstancesResponseParams ¶
type StopInstancesResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type SystemDisk ¶
type SystemDisk struct { // System disk type. // Valid values: // <li> LOCAL_BASIC: local disk</li><li> LOCAL_SSD: local SSD disk</li><li> CLOUD_BASIC: HDD cloud disk</li><li> CLOUD_SSD: SSD cloud disk</li><li> CLOUD_PREMIUM: Premium Cloud Storage</li> DiskType *string `json:"DiskType,omitempty" name:"DiskType"` // System disk size in GB. DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"` // System disk ID. // Note: this field may return null, indicating that no valid values can be obtained. DiskId *string `json:"DiskId,omitempty" name:"DiskId"` }
type TerminateDisksRequest ¶
type TerminateDisksRequest struct { *tchttp.BaseRequest // List of cloud disk IDs. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` }
func NewTerminateDisksRequest ¶
func NewTerminateDisksRequest() (request *TerminateDisksRequest)
func (*TerminateDisksRequest) FromJsonString ¶
func (r *TerminateDisksRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*TerminateDisksRequest) ToJsonString ¶
func (r *TerminateDisksRequest) ToJsonString() string
type TerminateDisksRequestParams ¶
type TerminateDisksRequestParams struct { // List of cloud disk IDs. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` }
Predefined struct for user
type TerminateDisksResponse ¶
type TerminateDisksResponse struct { *tchttp.BaseResponse Response *TerminateDisksResponseParams `json:"Response"` }
func NewTerminateDisksResponse ¶
func NewTerminateDisksResponse() (response *TerminateDisksResponse)
func (*TerminateDisksResponse) FromJsonString ¶
func (r *TerminateDisksResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*TerminateDisksResponse) ToJsonString ¶
func (r *TerminateDisksResponse) ToJsonString() string
type TerminateDisksResponseParams ¶
type TerminateDisksResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type TerminateInstancesRequest ¶
type TerminateInstancesRequest struct { *tchttp.BaseRequest // Instance ID list, which can be obtained from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewTerminateInstancesRequest ¶
func NewTerminateInstancesRequest() (request *TerminateInstancesRequest)
func (*TerminateInstancesRequest) FromJsonString ¶
func (r *TerminateInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*TerminateInstancesRequest) ToJsonString ¶
func (r *TerminateInstancesRequest) ToJsonString() string
type TerminateInstancesRequestParams ¶
type TerminateInstancesRequestParams struct { // Instance ID list, which can be obtained from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
Predefined struct for user
type TerminateInstancesResponse ¶
type TerminateInstancesResponse struct { *tchttp.BaseResponse Response *TerminateInstancesResponseParams `json:"Response"` }
func NewTerminateInstancesResponse ¶
func NewTerminateInstancesResponse() (response *TerminateInstancesResponse)
func (*TerminateInstancesResponse) FromJsonString ¶
func (r *TerminateInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*TerminateInstancesResponse) ToJsonString ¶
func (r *TerminateInstancesResponse) ToJsonString() string
type TerminateInstancesResponseParams ¶
type TerminateInstancesResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type TotalPrice ¶
type TotalPrice struct { // Total original price // Note: This field may return `null`, indicating that no valid values can be obtained. OriginalPrice *float64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"` // Total discounted price // Note: This field may return `null`, indicating that no valid values can be obtained. DiscountPrice *float64 `json:"DiscountPrice,omitempty" name:"DiscountPrice"` }
type TrafficPackage ¶
type TrafficPackage struct { // Traffic package ID. TrafficPackageId *string `json:"TrafficPackageId,omitempty" name:"TrafficPackageId"` // Used traffic in bytes during traffic package validity period. TrafficUsed *int64 `json:"TrafficUsed,omitempty" name:"TrafficUsed"` // Total traffic in bytes during traffic package validity period. TrafficPackageTotal *int64 `json:"TrafficPackageTotal,omitempty" name:"TrafficPackageTotal"` // Remaining traffic in bytes during traffic package validity period. TrafficPackageRemaining *int64 `json:"TrafficPackageRemaining,omitempty" name:"TrafficPackageRemaining"` // Traffic exceeding package amount in bytes during traffic package validity period. TrafficOverflow *int64 `json:"TrafficOverflow,omitempty" name:"TrafficOverflow"` // Start time of traffic package validity period according to ISO 8601 standard. UTC time is used. // Format: YYYY-MM-DDThh:mm:ssZ. // Note: this field may return null, indicating that no valid values can be obtained. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // End time of traffic package validity period according to ISO 8601 standard. UTC time is used. // Format: YYYY-MM-DDThh:mm:ssZ. // Note: this field may return null, indicating that no valid values can be obtained. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Traffic package expiration time according to ISO 8601 standard. UTC time is used. // Format: YYYY-MM-DDThh:mm:ssZ. // Note: this field may return null, indicating that no valid values can be obtained. Deadline *string `json:"Deadline,omitempty" name:"Deadline"` // Traffic package status: // <li>NETWORK_NORMAL: normal</li> // <li>OVERDUE_NETWORK_DISABLED: the network is disconnected due to overdue payments</li> Status *string `json:"Status,omitempty" name:"Status"` }