Documentation ¶
Index ¶
- Constants
- type Activity
- type ActivtyRelatedInstance
- type AttachInstancesRequest
- type AttachInstancesResponse
- type AutoScalingGroup
- type AutoScalingGroupAbstract
- type AutoScalingNotification
- type ClearLaunchConfigurationAttributesRequest
- type ClearLaunchConfigurationAttributesResponse
- type Client
- func (c *Client) AttachInstances(request *AttachInstancesRequest) (response *AttachInstancesResponse, err error)
- func (c *Client) ClearLaunchConfigurationAttributes(request *ClearLaunchConfigurationAttributesRequest) (response *ClearLaunchConfigurationAttributesResponse, err error)
- func (c *Client) CompleteLifecycleAction(request *CompleteLifecycleActionRequest) (response *CompleteLifecycleActionResponse, err error)
- func (c *Client) CreateAutoScalingGroup(request *CreateAutoScalingGroupRequest) (response *CreateAutoScalingGroupResponse, err error)
- func (c *Client) CreateAutoScalingGroupFromInstance(request *CreateAutoScalingGroupFromInstanceRequest) (response *CreateAutoScalingGroupFromInstanceResponse, err error)
- func (c *Client) CreateLaunchConfiguration(request *CreateLaunchConfigurationRequest) (response *CreateLaunchConfigurationResponse, err error)
- func (c *Client) CreateLifecycleHook(request *CreateLifecycleHookRequest) (response *CreateLifecycleHookResponse, err error)
- func (c *Client) CreateNotificationConfiguration(request *CreateNotificationConfigurationRequest) (response *CreateNotificationConfigurationResponse, err error)
- func (c *Client) CreateScalingPolicy(request *CreateScalingPolicyRequest) (response *CreateScalingPolicyResponse, err error)
- func (c *Client) CreateScheduledAction(request *CreateScheduledActionRequest) (response *CreateScheduledActionResponse, err error)
- func (c *Client) DeleteAutoScalingGroup(request *DeleteAutoScalingGroupRequest) (response *DeleteAutoScalingGroupResponse, err error)
- func (c *Client) DeleteLaunchConfiguration(request *DeleteLaunchConfigurationRequest) (response *DeleteLaunchConfigurationResponse, err error)
- func (c *Client) DeleteLifecycleHook(request *DeleteLifecycleHookRequest) (response *DeleteLifecycleHookResponse, err error)
- func (c *Client) DeleteNotificationConfiguration(request *DeleteNotificationConfigurationRequest) (response *DeleteNotificationConfigurationResponse, err error)
- func (c *Client) DeleteScalingPolicy(request *DeleteScalingPolicyRequest) (response *DeleteScalingPolicyResponse, err error)
- func (c *Client) DeleteScheduledAction(request *DeleteScheduledActionRequest) (response *DeleteScheduledActionResponse, err error)
- func (c *Client) DescribeAccountLimits(request *DescribeAccountLimitsRequest) (response *DescribeAccountLimitsResponse, err error)
- func (c *Client) DescribeAutoScalingActivities(request *DescribeAutoScalingActivitiesRequest) (response *DescribeAutoScalingActivitiesResponse, err error)
- func (c *Client) DescribeAutoScalingGroupLastActivities(request *DescribeAutoScalingGroupLastActivitiesRequest) (response *DescribeAutoScalingGroupLastActivitiesResponse, err error)
- func (c *Client) DescribeAutoScalingGroups(request *DescribeAutoScalingGroupsRequest) (response *DescribeAutoScalingGroupsResponse, err error)
- func (c *Client) DescribeAutoScalingInstances(request *DescribeAutoScalingInstancesRequest) (response *DescribeAutoScalingInstancesResponse, err error)
- func (c *Client) DescribeLaunchConfigurations(request *DescribeLaunchConfigurationsRequest) (response *DescribeLaunchConfigurationsResponse, err error)
- func (c *Client) DescribeLifecycleHooks(request *DescribeLifecycleHooksRequest) (response *DescribeLifecycleHooksResponse, err error)
- func (c *Client) DescribeNotificationConfigurations(request *DescribeNotificationConfigurationsRequest) (response *DescribeNotificationConfigurationsResponse, err error)
- func (c *Client) DescribeScalingPolicies(request *DescribeScalingPoliciesRequest) (response *DescribeScalingPoliciesResponse, err error)
- func (c *Client) DescribeScheduledActions(request *DescribeScheduledActionsRequest) (response *DescribeScheduledActionsResponse, err error)
- func (c *Client) DetachInstances(request *DetachInstancesRequest) (response *DetachInstancesResponse, err error)
- func (c *Client) DisableAutoScalingGroup(request *DisableAutoScalingGroupRequest) (response *DisableAutoScalingGroupResponse, err error)
- func (c *Client) EnableAutoScalingGroup(request *EnableAutoScalingGroupRequest) (response *EnableAutoScalingGroupResponse, err error)
- func (c *Client) ExecuteScalingPolicy(request *ExecuteScalingPolicyRequest) (response *ExecuteScalingPolicyResponse, err error)
- func (c *Client) ModifyAutoScalingGroup(request *ModifyAutoScalingGroupRequest) (response *ModifyAutoScalingGroupResponse, err error)
- func (c *Client) ModifyDesiredCapacity(request *ModifyDesiredCapacityRequest) (response *ModifyDesiredCapacityResponse, err error)
- func (c *Client) ModifyLaunchConfigurationAttributes(request *ModifyLaunchConfigurationAttributesRequest) (response *ModifyLaunchConfigurationAttributesResponse, err error)
- func (c *Client) ModifyLoadBalancers(request *ModifyLoadBalancersRequest) (response *ModifyLoadBalancersResponse, err error)
- func (c *Client) ModifyNotificationConfiguration(request *ModifyNotificationConfigurationRequest) (response *ModifyNotificationConfigurationResponse, err error)
- func (c *Client) ModifyScalingPolicy(request *ModifyScalingPolicyRequest) (response *ModifyScalingPolicyResponse, err error)
- func (c *Client) ModifyScheduledAction(request *ModifyScheduledActionRequest) (response *ModifyScheduledActionResponse, err error)
- func (c *Client) RemoveInstances(request *RemoveInstancesRequest) (response *RemoveInstancesResponse, err error)
- func (c *Client) ScaleInInstances(request *ScaleInInstancesRequest) (response *ScaleInInstancesResponse, err error)
- func (c *Client) ScaleOutInstances(request *ScaleOutInstancesRequest) (response *ScaleOutInstancesResponse, err error)
- func (c *Client) SetInstancesProtection(request *SetInstancesProtectionRequest) (response *SetInstancesProtectionResponse, err error)
- func (c *Client) StartAutoScalingInstances(request *StartAutoScalingInstancesRequest) (response *StartAutoScalingInstancesResponse, err error)
- func (c *Client) StopAutoScalingInstances(request *StopAutoScalingInstancesRequest) (response *StopAutoScalingInstancesResponse, err error)
- func (c *Client) UpgradeLaunchConfiguration(request *UpgradeLaunchConfigurationRequest) (response *UpgradeLaunchConfigurationResponse, err error)
- func (c *Client) UpgradeLifecycleHook(request *UpgradeLifecycleHookRequest) (response *UpgradeLifecycleHookResponse, err error)
- type CompleteLifecycleActionRequest
- type CompleteLifecycleActionResponse
- type CreateAutoScalingGroupFromInstanceRequest
- type CreateAutoScalingGroupFromInstanceResponse
- type CreateAutoScalingGroupRequest
- type CreateAutoScalingGroupResponse
- type CreateLaunchConfigurationRequest
- type CreateLaunchConfigurationResponse
- type CreateLifecycleHookRequest
- type CreateLifecycleHookResponse
- type CreateNotificationConfigurationRequest
- type CreateNotificationConfigurationResponse
- type CreateScalingPolicyRequest
- type CreateScalingPolicyResponse
- type CreateScheduledActionRequest
- type CreateScheduledActionResponse
- type DataDisk
- type DeleteAutoScalingGroupRequest
- type DeleteAutoScalingGroupResponse
- type DeleteLaunchConfigurationRequest
- type DeleteLaunchConfigurationResponse
- type DeleteLifecycleHookRequest
- type DeleteLifecycleHookResponse
- type DeleteNotificationConfigurationRequest
- type DeleteNotificationConfigurationResponse
- type DeleteScalingPolicyRequest
- type DeleteScalingPolicyResponse
- type DeleteScheduledActionRequest
- type DeleteScheduledActionResponse
- type DescribeAccountLimitsRequest
- type DescribeAccountLimitsResponse
- type DescribeAutoScalingActivitiesRequest
- type DescribeAutoScalingActivitiesResponse
- type DescribeAutoScalingGroupLastActivitiesRequest
- type DescribeAutoScalingGroupLastActivitiesResponse
- type DescribeAutoScalingGroupsRequest
- type DescribeAutoScalingGroupsResponse
- type DescribeAutoScalingInstancesRequest
- type DescribeAutoScalingInstancesResponse
- type DescribeLaunchConfigurationsRequest
- type DescribeLaunchConfigurationsResponse
- type DescribeLifecycleHooksRequest
- type DescribeLifecycleHooksResponse
- type DescribeNotificationConfigurationsRequest
- type DescribeNotificationConfigurationsResponse
- type DescribeScalingPoliciesRequest
- type DescribeScalingPoliciesResponse
- type DescribeScheduledActionsRequest
- type DescribeScheduledActionsResponse
- type DetachInstancesRequest
- type DetachInstancesResponse
- type DetailedStatusMessage
- type DisableAutoScalingGroupRequest
- type DisableAutoScalingGroupResponse
- type EnableAutoScalingGroupRequest
- type EnableAutoScalingGroupResponse
- type EnhancedService
- type ExecuteScalingPolicyRequest
- type ExecuteScalingPolicyResponse
- type Filter
- type ForwardLoadBalancer
- type HostNameSettings
- type Instance
- type InstanceChargePrepaid
- type InstanceMarketOptionsRequest
- type InstanceNameSettings
- type InstanceTag
- type InternetAccessible
- type LaunchConfiguration
- type LifecycleActionResultInfo
- type LifecycleHook
- type LimitedLoginSettings
- type LoginSettings
- type MetricAlarm
- type ModifyAutoScalingGroupRequest
- type ModifyAutoScalingGroupResponse
- type ModifyDesiredCapacityRequest
- type ModifyDesiredCapacityResponse
- type ModifyLaunchConfigurationAttributesRequest
- type ModifyLaunchConfigurationAttributesResponse
- type ModifyLoadBalancersRequest
- type ModifyLoadBalancersResponse
- type ModifyNotificationConfigurationRequest
- type ModifyNotificationConfigurationResponse
- type ModifyScalingPolicyRequest
- type ModifyScalingPolicyResponse
- type ModifyScheduledActionRequest
- type ModifyScheduledActionResponse
- type NotificationTarget
- type RemoveInstancesRequest
- type RemoveInstancesResponse
- type RunMonitorServiceEnabled
- type RunSecurityServiceEnabled
- type ScaleInInstancesRequest
- type ScaleInInstancesResponse
- type ScaleOutInstancesRequest
- type ScaleOutInstancesResponse
- type ScalingPolicy
- type ScheduledAction
- type ServiceSettings
- type SetInstancesProtectionRequest
- type SetInstancesProtectionResponse
- type SpotMarketOptions
- type SpotMixedAllocationPolicy
- type StartAutoScalingInstancesRequest
- type StartAutoScalingInstancesResponse
- type StopAutoScalingInstancesRequest
- type StopAutoScalingInstancesResponse
- type SystemDisk
- type Tag
- type TargetAttribute
- type UpgradeLaunchConfigurationRequest
- type UpgradeLaunchConfigurationResponse
- type UpgradeLifecycleHookRequest
- type UpgradeLifecycleHookResponse
Constants ¶
const ( // The requesting account failed to pass the qualification review. ACCOUNTQUALIFICATIONRESTRICTIONS = "AccountQualificationRestrictions" // CVM API call failed. CALLCVMERROR = "CallCvmError" // No scaling activity is generated. FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" // An internal error occurred. INTERNALERROR = "InternalError" // The CMQ API call failed. INTERNALERROR_CALLCMQERROR = "InternalError.CallCmqError" // The internal API call failed. INTERNALERROR_CALLERROR = "InternalError.CallError" // CLB API call failed. INTERNALERROR_CALLLBERROR = "InternalError.CallLbError" // Monitor API call failed. INTERNALERROR_CALLMONITORERROR = "InternalError.CallMonitorError" // The notification service API call failed. INTERNALERROR_CALLNOTIFICATIONERROR = "InternalError.CallNotificationError" // The STS API call failed. INTERNALERROR_CALLSTSERROR = "InternalError.CallStsError" // The tag API call failed. INTERNALERROR_CALLTAGERROR = "InternalError.CallTagError" // The TVPC API call failed. INTERNALERROR_CALLTVPCERROR = "InternalError.CallTvpcError" // VPC API call failed. INTERNALERROR_CALLVPCERROR = "InternalError.CallVpcError" // An internal request error occurred. INTERNALERROR_REQUESTERROR = "InternalError.RequestError" // The image was not found. INVALIDIMAGEID_NOTFOUND = "InvalidImageId.NotFound" // Invalid launch configuration. INVALIDLAUNCHCONFIGURATION = "InvalidLaunchConfiguration" // The launch configuration ID is invalid. INVALIDLAUNCHCONFIGURATIONID = "InvalidLaunchConfigurationId" // Invalid parameter. INVALIDPARAMETER = "InvalidParameter" // Multiple parameters specified conflict and cannot co-exist. INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" // The `hostname` parameter is unavailable to this image. INVALIDPARAMETER_HOSTNAMEUNAVAILABLE = "InvalidParameter.HostNameUnavailable" // The parameter is invalid in a specific scenario. INVALIDPARAMETER_INSCENARIO = "InvalidParameter.InScenario" // Invalid parameter combination. INVALIDPARAMETER_INVALIDCOMBINATION = "InvalidParameter.InvalidCombination" // A parameter is missing. One of the two parameters must be specified. INVALIDPARAMETER_MUSTONEPARAMETER = "InvalidParameter.MustOneParameter" // Some parameters cannot coexist and should be deleted. INVALIDPARAMETER_PARAMETERMUSTBEDELETED = "InvalidParameter.ParameterMustBeDeleted" // The two parameters specified conflict and cannot co-exist. INVALIDPARAMETERCONFLICT = "InvalidParameterConflict" // Wrong parameter value. INVALIDPARAMETERVALUE = "InvalidParameterValue" // The specified base capacity cannot exceed the max capacity. INVALIDPARAMETERVALUE_BASECAPACITYTOOLARGE = "InvalidParameterValue.BaseCapacityTooLarge" // A classic CLB should be specified. INVALIDPARAMETERVALUE_CLASSICLB = "InvalidParameterValue.ClassicLb" // The cron expression specified for the scheduled task is invalid. INVALIDPARAMETERVALUE_CRONEXPRESSIONILLEGAL = "InvalidParameterValue.CronExpressionIllegal" // Exception with CVM parameter validation. INVALIDPARAMETERVALUE_CVMCONFIGURATIONERROR = "InvalidParameterValue.CvmConfigurationError" // Exception with CVM parameter validation. INVALIDPARAMETERVALUE_CVMERROR = "InvalidParameterValue.CvmError" // Duplicate CLB instances INVALIDPARAMETERVALUE_DUPLICATEDFORWARDLB = "InvalidParameterValue.DuplicatedForwardLb" // Duplicated subnet. INVALIDPARAMETERVALUE_DUPLICATEDSUBNET = "InvalidParameterValue.DuplicatedSubnet" // The end time of the scheduled task is before the start time. INVALIDPARAMETERVALUE_ENDTIMEBEFORESTARTTIME = "InvalidParameterValue.EndTimeBeforeStartTime" // Invalid filter. INVALIDPARAMETERVALUE_FILTER = "InvalidParameterValue.Filter" // A CLB should be specified. INVALIDPARAMETERVALUE_FORWARDLB = "InvalidParameterValue.ForwardLb" // The auto scaling group name already exists. INVALIDPARAMETERVALUE_GROUPNAMEDUPLICATED = "InvalidParameterValue.GroupNameDuplicated" // Invalid hostname INVALIDPARAMETERVALUE_HOSTNAMEILLEGAL = "InvalidParameterValue.HostNameIllegal" // The specified image does not exist. INVALIDPARAMETERVALUE_IMAGENOTFOUND = "InvalidParameterValue.ImageNotFound" // Invalid instance name INVALIDPARAMETERVALUE_INSTANCENAMEILLEGAL = "InvalidParameterValue.InstanceNameIllegal" // The instance type is not supported. INVALIDPARAMETERVALUE_INSTANCETYPENOTSUPPORTED = "InvalidParameterValue.InstanceTypeNotSupported" // Invalid scaling activity ID. INVALIDPARAMETERVALUE_INVALIDACTIVITYID = "InvalidParameterValue.InvalidActivityId" // Invalid scaling group ID. INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" // Invalid notification ID. INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGNOTIFICATIONID = "InvalidParameterValue.InvalidAutoScalingNotificationId" // Invalid alarm-triggered policy ID. INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGPOLICYID = "InvalidParameterValue.InvalidAutoScalingPolicyId" // The regions specified for CLB is invalid. INVALIDPARAMETERVALUE_INVALIDCLBREGION = "InvalidParameterValue.InvalidClbRegion" // Invalid filter condition. INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" // Invalid image ID. INVALIDPARAMETERVALUE_INVALIDIMAGEID = "InvalidParameterValue.InvalidImageId" // Invalid instance ID. INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" // Invalid instance type. INVALIDPARAMETERVALUE_INVALIDINSTANCETYPE = "InvalidParameterValue.InvalidInstanceType" // Invalid launch configuration INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATION = "InvalidParameterValue.InvalidLaunchConfiguration" // Invalid launch configuration ID. INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId" // Invalid lifecycle hook ID. INVALIDPARAMETERVALUE_INVALIDLIFECYCLEHOOKID = "InvalidParameterValue.InvalidLifecycleHookId" // The notification group ID should be a numeric string. INVALIDPARAMETERVALUE_INVALIDNOTIFICATIONUSERGROUPID = "InvalidParameterValue.InvalidNotificationUserGroupId" // Invalid scheduled action ID. INVALIDPARAMETERVALUE_INVALIDSCHEDULEDACTIONID = "InvalidParameterValue.InvalidScheduledActionId" // The scheduled task name contains invalid characters. INVALIDPARAMETERVALUE_INVALIDSCHEDULEDACTIONNAMEINCLUDEILLEGALCHAR = "InvalidParameterValue.InvalidScheduledActionNameIncludeIllegalChar" // INVALIDPARAMETERVALUE_INVALIDSNAPSHOTID = "InvalidParameterValue.InvalidSnapshotId" // Invalid subnet ID. INVALIDPARAMETERVALUE_INVALIDSUBNETID = "InvalidParameterValue.InvalidSubnetId" // The launch configuration name already exists. INVALIDPARAMETERVALUE_LAUNCHCONFIGURATIONNAMEDUPLICATED = "InvalidParameterValue.LaunchConfigurationNameDuplicated" // The specified launch configuration was not found. INVALIDPARAMETERVALUE_LAUNCHCONFIGURATIONNOTFOUND = "InvalidParameterValue.LaunchConfigurationNotFound" // The load balancer is in a different project. INVALIDPARAMETERVALUE_LBPROJECTINCONSISTENT = "InvalidParameterValue.LbProjectInconsistent" // The lifecycle hook name already exists. INVALIDPARAMETERVALUE_LIFECYCLEHOOKNAMEDUPLICATED = "InvalidParameterValue.LifecycleHookNameDuplicated" // The value exceeds the limit. INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // No resource permission. INVALIDPARAMETERVALUE_NORESOURCEPERMISSION = "InvalidParameterValue.NoResourcePermission" // The value should be a floating point string. INVALIDPARAMETERVALUE_NOTSTRINGTYPEFLOAT = "InvalidParameterValue.NotStringTypeFloat" // The account only supports VPCs. INVALIDPARAMETERVALUE_ONLYVPC = "InvalidParameterValue.OnlyVpc" // The project ID does not exist. INVALIDPARAMETERVALUE_PROJECTIDNOTFOUND = "InvalidParameterValue.ProjectIdNotFound" // The value is outside the specified range. INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // The alarm policy name already exists. INVALIDPARAMETERVALUE_SCALINGPOLICYNAMEDUPLICATE = "InvalidParameterValue.ScalingPolicyNameDuplicate" // The scheduled task name already exists. INVALIDPARAMETERVALUE_SCHEDULEDACTIONNAMEDUPLICATE = "InvalidParameterValue.ScheduledActionNameDuplicate" // The value of maximum, minimum, or desired number of instances in the auto scaling group is invalid. INVALIDPARAMETERVALUE_SIZE = "InvalidParameterValue.Size" // The start time of the scheduled task is before the current time. INVALIDPARAMETERVALUE_STARTTIMEBEFORECURRENTTIME = "InvalidParameterValue.StartTimeBeforeCurrentTime" // The subnet information is invalid. INVALIDPARAMETERVALUE_SUBNETIDS = "InvalidParameterValue.SubnetIds" // The specified threshold must be within the valid range. INVALIDPARAMETERVALUE_THRESHOLDOUTOFRANGE = "InvalidParameterValue.ThresholdOutOfRange" // Wrong time format. INVALIDPARAMETERVALUE_TIMEFORMAT = "InvalidParameterValue.TimeFormat" // Too many values. INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // Incorrect UserData format. INVALIDPARAMETERVALUE_USERDATAFORMATERROR = "InvalidParameterValue.UserDataFormatError" // The UserData is too long. INVALIDPARAMETERVALUE_USERDATASIZEEXCEEDED = "InvalidParameterValue.UserDataSizeExceeded" // The user group does not exist. INVALIDPARAMETERVALUE_USERGROUPIDNOTFOUND = "InvalidParameterValue.UserGroupIdNotFound" // The specified availability zone is not in the region. INVALIDPARAMETERVALUE_ZONEMISMATCHREGION = "InvalidParameterValue.ZoneMismatchRegion" // The account does not support this operation. INVALIDPERMISSION = "InvalidPermission" // The quota limit is exceeded. LIMITEXCEEDED = "LimitExceeded" // The number of auto scaling groups exceeds the limit. LIMITEXCEEDED_AUTOSCALINGGROUPLIMITEXCEEDED = "LimitExceeded.AutoScalingGroupLimitExceeded" // The desired number of instances exceeds the limit. LIMITEXCEEDED_DESIREDCAPACITYLIMITEXCEEDED = "LimitExceeded.DesiredCapacityLimitExceeded" // Too many values for the specified filter LIMITEXCEEDED_FILTERVALUESTOOLONG = "LimitExceeded.FilterValuesTooLong" // You are short of the launch configuration quota. LIMITEXCEEDED_LAUNCHCONFIGURATIONQUOTANOTENOUGH = "LimitExceeded.LaunchConfigurationQuotaNotEnough" // The maximum number of instances exceeds the limit. LIMITEXCEEDED_MAXSIZELIMITEXCEEDED = "LimitExceeded.MaxSizeLimitExceeded" // The minimum number of instances is below the limit. LIMITEXCEEDED_MINSIZELIMITEXCEEDED = "LimitExceeded.MinSizeLimitExceeded" // You are short of the quota. LIMITEXCEEDED_QUOTANOTENOUGH = "LimitExceeded.QuotaNotEnough" // The number of scheduled tasks exceeds the limit. LIMITEXCEEDED_SCHEDULEDACTIONLIMITEXCEEDED = "LimitExceeded.ScheduledActionLimitExceeded" // Parameter missing. MISSINGPARAMETER = "MissingParameter" // A parameter is missing in a specific scenario. MISSINGPARAMETER_INSCENARIO = "MissingParameter.InScenario" // The `InstanceMarketOptions` parameter of the spot instance is missing. MISSINGPARAMETER_INSTANCEMARKETOPTIONS = "MissingParameter.InstanceMarketOptions" // The auto scaling group is performing a scaling activity. RESOURCEINUSE_ACTIVITYINPROGRESS = "ResourceInUse.ActivityInProgress" // The scaling group is disabled. RESOURCEINUSE_AUTOSCALINGGROUPNOTACTIVE = "ResourceInUse.AutoScalingGroupNotActive" // There are still normal instances in the auto scaling group. RESOURCEINUSE_INSTANCEINGROUP = "ResourceInUse.InstanceInGroup" // The specified launch configuration is still used in the scaling group. RESOURCEINUSE_LAUNCHCONFIGURATIONIDINUSE = "ResourceInUse.LaunchConfigurationIdInUse" // The maximum number of instances in the auto scaling group is exceeded. RESOURCEINSUFFICIENT_AUTOSCALINGGROUPABOVEMAXSIZE = "ResourceInsufficient.AutoScalingGroupAboveMaxSize" // The number of instances in the auto scaling group is below the minimum value. RESOURCEINSUFFICIENT_AUTOSCALINGGROUPBELOWMINSIZE = "ResourceInsufficient.AutoScalingGroupBelowMinSize" // The number of instances in a scaling group is more than the maximum capacity. RESOURCEINSUFFICIENT_INSERVICEINSTANCEABOVEMAXSIZE = "ResourceInsufficient.InServiceInstanceAboveMaxSize" // The number of instances in a scaling group is less than the minimum capacity. RESOURCEINSUFFICIENT_INSERVICEINSTANCEBELOWMINSIZE = "ResourceInsufficient.InServiceInstanceBelowMinSize" // The scaling group does not exist. RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" // The notification does not exist. RESOURCENOTFOUND_AUTOSCALINGNOTIFICATIONNOTFOUND = "ResourceNotFound.AutoScalingNotificationNotFound" // The specified CMQ queue does not exist. RESOURCENOTFOUND_CMQQUEUENOTFOUND = "ResourceNotFound.CmqQueueNotFound" // The specified instance does not exist. RESOURCENOTFOUND_INSTANCESNOTFOUND = "ResourceNotFound.InstancesNotFound" // The target instance is not in the auto scaling group. RESOURCENOTFOUND_INSTANCESNOTINAUTOSCALINGGROUP = "ResourceNotFound.InstancesNotInAutoScalingGroup" // The specified launch configuration does not exist. RESOURCENOTFOUND_LAUNCHCONFIGURATIONIDNOTFOUND = "ResourceNotFound.LaunchConfigurationIdNotFound" // The instance corresponding to the lifecycle hook does not exist. RESOURCENOTFOUND_LIFECYCLEHOOKINSTANCENOTFOUND = "ResourceNotFound.LifecycleHookInstanceNotFound" // The specified lifecycle hook was not found. RESOURCENOTFOUND_LIFECYCLEHOOKNOTFOUND = "ResourceNotFound.LifecycleHookNotFound" // The specified listener does not exist. RESOURCENOTFOUND_LISTENERNOTFOUND = "ResourceNotFound.ListenerNotFound" // The specified load balancer was not found. RESOURCENOTFOUND_LOADBALANCERNOTFOUND = "ResourceNotFound.LoadBalancerNotFound" // The specified location does not exist. RESOURCENOTFOUND_LOCATIONNOTFOUND = "ResourceNotFound.LocationNotFound" // The alarm policy does not exist. RESOURCENOTFOUND_SCALINGPOLICYNOTFOUND = "ResourceNotFound.ScalingPolicyNotFound" // The specified scheduled task does not exist. RESOURCENOTFOUND_SCHEDULEDACTIONNOTFOUND = "ResourceNotFound.ScheduledActionNotFound" // The auto scaling group is exceptional. RESOURCEUNAVAILABLE_AUTOSCALINGGROUPABNORMALSTATUS = "ResourceUnavailable.AutoScalingGroupAbnormalStatus" // The auto scaling group is disabled. RESOURCEUNAVAILABLE_AUTOSCALINGGROUPDISABLED = "ResourceUnavailable.AutoScalingGroupDisabled" // The auto scaling group is active. RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" // There are no subscribers for the specified CMQ topic. RESOURCEUNAVAILABLE_CMQTOPICHASNOSUBSCRIBER = "ResourceUnavailable.CmqTopicHasNoSubscriber" // The instance and the auto scaling group are in different VPCs. RESOURCEUNAVAILABLE_CVMVPCINCONSISTENT = "ResourceUnavailable.CvmVpcInconsistent" // The specified instance is active. RESOURCEUNAVAILABLE_INSTANCEINOPERATION = "ResourceUnavailable.InstanceInOperation" // The instance does not support **No Charges When Shut Down**. RESOURCEUNAVAILABLE_INSTANCENOTSUPPORTSTOPCHARGING = "ResourceUnavailable.InstanceNotSupportStopCharging" // The instance already exists in the auto scaling group. RESOURCEUNAVAILABLE_INSTANCESALREADYINAUTOSCALINGGROUP = "ResourceUnavailable.InstancesAlreadyInAutoScalingGroup" // The launch configuration is exceptional. RESOURCEUNAVAILABLE_LAUNCHCONFIGURATIONSTATUSABNORMAL = "ResourceUnavailable.LaunchConfigurationStatusAbnormal" // The backend region of the CLB is not the same as the one for AS service. RESOURCEUNAVAILABLE_LBBACKENDREGIONINCONSISTENT = "ResourceUnavailable.LbBackendRegionInconsistent" // The CLB and scaling group should reside in the same VPC. RESOURCEUNAVAILABLE_LBVPCINCONSISTENT = "ResourceUnavailable.LbVpcInconsistent" // The lifecycle action has already been set. RESOURCEUNAVAILABLE_LIFECYCLEACTIONRESULTHASSET = "ResourceUnavailable.LifecycleActionResultHasSet" // CLB is active in the scaling group. RESOURCEUNAVAILABLE_LOADBALANCERINOPERATION = "ResourceUnavailable.LoadBalancerInOperation" // Project inconsistency. RESOURCEUNAVAILABLE_PROJECTINCONSISTENT = "ResourceUnavailable.ProjectInconsistent" // Unable to add instances to the scaling group when they are shut down. RESOURCEUNAVAILABLE_STOPPEDINSTANCENOTALLOWATTACH = "ResourceUnavailable.StoppedInstanceNotAllowAttach" // The specified availability zone is unavailable. RESOURCEUNAVAILABLE_ZONEUNAVAILABLE = "ResourceUnavailable.ZoneUnavailable" )
const APIVersion = "2018-04-19"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activity ¶
type Activity struct { // Auto scaling group ID. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Scaling activity ID. ActivityId *string `json:"ActivityId,omitempty" name:"ActivityId"` // Type of the scaling activity. Valid values:<br> // <li>SCALE_OUT: scales out. <li>SCALE_IN: scales in. <li>ATTACH_INSTANCES: adds an instance. <li>REMOVE_INSTANCES: terminates an instance. <li>DETACH_INSTANCES: removes an instance. <li>TERMINATE_INSTANCES_UNEXPECTEDLY: terminates an instance in the CVM console. <li>REPLACE_UNHEALTHY_INSTANCE: replaces an unhealthy instance. // <li>START_INSTANCES: starts an instance. // <li>STOP_INSTANCES: stops an instance. ActivityType *string `json:"ActivityType,omitempty" name:"ActivityType"` // Scaling activity status. Value range:<br> // <li>INIT: initializing // <li>RUNNING: running // <li>SUCCESSFUL: succeeded // <li>PARTIALLY_SUCCESSFUL: partially succeeded // <li>FAILED: failed // <li>CANCELLED: canceled StatusCode *string `json:"StatusCode,omitempty" name:"StatusCode"` // Description of the scaling activity status. StatusMessage *string `json:"StatusMessage,omitempty" name:"StatusMessage"` // Cause of the scaling activity. Cause *string `json:"Cause,omitempty" name:"Cause"` // Description of the scaling activity. Description *string `json:"Description,omitempty" name:"Description"` // Start time of the scaling activity. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // End time of the scaling activity. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Creation time of the scaling activity. CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` // Information set of the instances related to the scaling activity. ActivityRelatedInstanceSet []*ActivtyRelatedInstance `json:"ActivityRelatedInstanceSet,omitempty" name:"ActivityRelatedInstanceSet"` // Brief description of the scaling activity status. StatusMessageSimplified *string `json:"StatusMessageSimplified,omitempty" name:"StatusMessageSimplified"` // Result of the lifecycle hook action in the scaling activity LifecycleActionResultSet []*LifecycleActionResultInfo `json:"LifecycleActionResultSet,omitempty" name:"LifecycleActionResultSet"` // Detailed description of scaling activity status DetailedStatusMessageSet []*DetailedStatusMessage `json:"DetailedStatusMessageSet,omitempty" name:"DetailedStatusMessageSet"` }
type ActivtyRelatedInstance ¶
type ActivtyRelatedInstance struct { // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Status of the instance in the scaling activity. Value range: // <li>INIT: initializing // <li>RUNNING: running // <li>SUCCESSFUL: succeeded // <li>FAILED: failed InstanceStatus *string `json:"InstanceStatus,omitempty" name:"InstanceStatus"` }
type AttachInstancesRequest ¶
type AttachInstancesRequest struct { *tchttp.BaseRequest // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // List of CVM instance IDs InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewAttachInstancesRequest ¶
func NewAttachInstancesRequest() (request *AttachInstancesRequest)
func (*AttachInstancesRequest) FromJsonString ¶
func (r *AttachInstancesRequest) 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 (*AttachInstancesRequest) ToJsonString ¶
func (r *AttachInstancesRequest) ToJsonString() string
type AttachInstancesResponse ¶
type AttachInstancesResponse struct { *tchttp.BaseResponse Response *struct { // Scaling activity ID ActivityId *string `json:"ActivityId,omitempty" name:"ActivityId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAttachInstancesResponse ¶
func NewAttachInstancesResponse() (response *AttachInstancesResponse)
func (*AttachInstancesResponse) FromJsonString ¶
func (r *AttachInstancesResponse) 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 (*AttachInstancesResponse) ToJsonString ¶
func (r *AttachInstancesResponse) ToJsonString() string
type AutoScalingGroup ¶
type AutoScalingGroup struct { // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Auto scaling group name AutoScalingGroupName *string `json:"AutoScalingGroupName,omitempty" name:"AutoScalingGroupName"` // Current status of the auto scaling group. Value range: <br><li>NORMAL: normal <br><li>CVM_ABNORMAL: Exception with the launch configuration <br><li>LB_ABNORMAL: exception with the load balancer <br><li>VPC_ABNORMAL: exception with the VPC <br><li>INSUFFICIENT_BALANCE: insufficient balance <br><li>LB_BACKEND_REGION_NOT_MATCH: the backend region of the CLB instance is not the same as the one of AS service.<br> AutoScalingGroupStatus *string `json:"AutoScalingGroupStatus,omitempty" name:"AutoScalingGroupStatus"` // Creation time in UTC format CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` // Default cooldown period in seconds DefaultCooldown *int64 `json:"DefaultCooldown,omitempty" name:"DefaultCooldown"` // Desired number of instances DesiredCapacity *int64 `json:"DesiredCapacity,omitempty" name:"DesiredCapacity"` // Enabled status. Value range: `ENABLED`, `DISABLED` EnabledStatus *string `json:"EnabledStatus,omitempty" name:"EnabledStatus"` // List of application load balancers ForwardLoadBalancerSet []*ForwardLoadBalancer `json:"ForwardLoadBalancerSet,omitempty" name:"ForwardLoadBalancerSet"` // Number of instances InstanceCount *int64 `json:"InstanceCount,omitempty" name:"InstanceCount"` // Number of instances in `IN_SERVICE` status InServiceInstanceCount *int64 `json:"InServiceInstanceCount,omitempty" name:"InServiceInstanceCount"` // Launch configuration ID LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // Launch configuration name LaunchConfigurationName *string `json:"LaunchConfigurationName,omitempty" name:"LaunchConfigurationName"` // List of Classic load balancer IDs LoadBalancerIdSet []*string `json:"LoadBalancerIdSet,omitempty" name:"LoadBalancerIdSet"` // Maximum number of instances MaxSize *int64 `json:"MaxSize,omitempty" name:"MaxSize"` // Minimum number of instances MinSize *int64 `json:"MinSize,omitempty" name:"MinSize"` // Project ID ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // List of subnet IDs SubnetIdSet []*string `json:"SubnetIdSet,omitempty" name:"SubnetIdSet"` // Termination policy TerminationPolicySet []*string `json:"TerminationPolicySet,omitempty" name:"TerminationPolicySet"` // VPC ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // List of availability zones ZoneSet []*string `json:"ZoneSet,omitempty" name:"ZoneSet"` // Retry policy RetryPolicy *string `json:"RetryPolicy,omitempty" name:"RetryPolicy"` // Whether the auto scaling group is performing a scaling activity. `IN_ACTIVITY` indicates yes, and `NOT_IN_ACTIVITY` indicates no. InActivityStatus *string `json:"InActivityStatus,omitempty" name:"InActivityStatus"` // List of auto scaling group tags Tags []*Tag `json:"Tags,omitempty" name:"Tags"` // Service settings ServiceSettings *ServiceSettings `json:"ServiceSettings,omitempty" name:"ServiceSettings"` // The number of IPv6 addresses that an instance has. Ipv6AddressCount *int64 `json:"Ipv6AddressCount,omitempty" name:"Ipv6AddressCount"` // The policy applied when there are multiple availability zones/subnets // <br><li> PRIORITY: when creating instances, choose the availability zone/subnet based on the order in the list from top to bottom. If the first instance is successfully created in the availability zone/subnet of the highest priority, all instances will be created in this availability zone/subnet. // <br><li> EQUALITY: chooses the availability zone/subnet with the least instances for scale-out. This gives each availability zone/subnet an opportunity for scale-out and disperses the instances created during multiple scale-out operations across different availability zones/subnets. MultiZoneSubnetPolicy *string `json:"MultiZoneSubnetPolicy,omitempty" name:"MultiZoneSubnetPolicy"` // Health check type of instances in a scaling group.<br><li>CVM: confirm whether an instance is healthy based on the network status. If the pinged instance is unreachable, the instance will be considered unhealthy. For more information, see [Instance Health Check](https://intl.cloud.tencent.com/document/product/377/8553?from_cn_redirect=1)<br><li>CLB: confirm whether an instance is healthy based on the CLB health check status. For more information, see [Health Check Overview](https://intl.cloud.tencent.com/document/product/214/6097?from_cn_redirect=1). HealthCheckType *string `json:"HealthCheckType,omitempty" name:"HealthCheckType"` // Grace period of the CLB health check LoadBalancerHealthCheckGracePeriod *uint64 `json:"LoadBalancerHealthCheckGracePeriod,omitempty" name:"LoadBalancerHealthCheckGracePeriod"` // Specifies how to assign instances. Valid values: `LAUNCH_CONFIGURATION` and `SPOT_MIXED`. // <br><li>`LAUNCH_CONFIGURATION`: the launch configuration mode. // <br><li>`SPOT_MIXED`: a mixed instance mode. Currently, this mode is supported only when the launch configuration takes the pay-as-you-go billing mode. With this mode, the scaling group can provision a combination of pay-as-you-go instances and spot instances to meet the configured capacity. Note that the billing mode of the associated launch configuration cannot be modified when this mode is used. InstanceAllocationPolicy *string `json:"InstanceAllocationPolicy,omitempty" name:"InstanceAllocationPolicy"` // Specifies how to assign pay-as-you-go instances and spot instances. // A valid value will be returned only when `InstanceAllocationPolicy` is set to `SPOT_MIXED`. SpotMixedAllocationPolicy *SpotMixedAllocationPolicy `json:"SpotMixedAllocationPolicy,omitempty" name:"SpotMixedAllocationPolicy"` // Indicates whether the capacity rebalancing feature is enabled. This parameter is only valid for spot instances in the scaling group. Valid values: // <br><li>`TRUE`: yes. Before the spot instances in the scaling group are about to be automatically repossessed, AS will terminate them. The scale-in hook (if configured) will take effect before the termination. After the termination process starts, AS will asynchronously initiate a scaling activity to meet the desired capacity. // <br><li>`FALSE`: no. AS will add instances to meet the desired capacity only after the spot instances are terminated. CapacityRebalance *bool `json:"CapacityRebalance,omitempty" name:"CapacityRebalance"` }
type AutoScalingNotification ¶
type AutoScalingNotification struct { // Auto scaling group ID. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // List of user group IDs. NotificationUserGroupIds []*string `json:"NotificationUserGroupIds,omitempty" name:"NotificationUserGroupIds"` // List of notification events. NotificationTypes []*string `json:"NotificationTypes,omitempty" name:"NotificationTypes"` // Event notification ID. AutoScalingNotificationId *string `json:"AutoScalingNotificationId,omitempty" name:"AutoScalingNotificationId"` }
type ClearLaunchConfigurationAttributesRequest ¶
type ClearLaunchConfigurationAttributesRequest struct { *tchttp.BaseRequest // Launch configuration ID LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // Whether to clear data disk information. This parameter is optional and the default value is `false`. // Setting it to `true` will clear data disks, which means that CVM newly created on this launch configuration will have no data disk. ClearDataDisks *bool `json:"ClearDataDisks,omitempty" name:"ClearDataDisks"` // Whether to clear the CVM hostname settings. This parameter is optional and the default value is `false`. // Setting it to `true` will clear the hostname settings, which means that CVM newly created on this launch configuration will have no hostname. ClearHostNameSettings *bool `json:"ClearHostNameSettings,omitempty" name:"ClearHostNameSettings"` // Whether to clear the CVM instance name settings. This parameter is optional and the default value is `false`. // Setting it to `true` will clear the instance name settings, which means that CVM newly created on this launch configuration will be named in the “as-{{AutoScalingGroupName}} format. ClearInstanceNameSettings *bool `json:"ClearInstanceNameSettings,omitempty" name:"ClearInstanceNameSettings"` }
func NewClearLaunchConfigurationAttributesRequest ¶
func NewClearLaunchConfigurationAttributesRequest() (request *ClearLaunchConfigurationAttributesRequest)
func (*ClearLaunchConfigurationAttributesRequest) FromJsonString ¶
func (r *ClearLaunchConfigurationAttributesRequest) 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 (*ClearLaunchConfigurationAttributesRequest) ToJsonString ¶
func (r *ClearLaunchConfigurationAttributesRequest) ToJsonString() string
type ClearLaunchConfigurationAttributesResponse ¶
type ClearLaunchConfigurationAttributesResponse struct { *tchttp.BaseResponse Response *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"` } `json:"Response"` }
func NewClearLaunchConfigurationAttributesResponse ¶
func NewClearLaunchConfigurationAttributesResponse() (response *ClearLaunchConfigurationAttributesResponse)
func (*ClearLaunchConfigurationAttributesResponse) FromJsonString ¶
func (r *ClearLaunchConfigurationAttributesResponse) 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 (*ClearLaunchConfigurationAttributesResponse) ToJsonString ¶
func (r *ClearLaunchConfigurationAttributesResponse) ToJsonString() string
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AttachInstances ¶
func (c *Client) AttachInstances(request *AttachInstancesRequest) (response *AttachInstancesResponse, err error)
AttachInstances This API (AttachInstances) is used to add CVM instances to an auto scaling group.
error code that may be returned:
FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" INTERNALERROR = "InternalError" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" RESOURCEINSUFFICIENT_AUTOSCALINGGROUPABOVEMAXSIZE = "ResourceInsufficient.AutoScalingGroupAboveMaxSize" RESOURCEINSUFFICIENT_INSERVICEINSTANCEABOVEMAXSIZE = "ResourceInsufficient.InServiceInstanceAboveMaxSize" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_INSTANCESNOTFOUND = "ResourceNotFound.InstancesNotFound" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" RESOURCEUNAVAILABLE_CVMVPCINCONSISTENT = "ResourceUnavailable.CvmVpcInconsistent" RESOURCEUNAVAILABLE_INSTANCESALREADYINAUTOSCALINGGROUP = "ResourceUnavailable.InstancesAlreadyInAutoScalingGroup" RESOURCEUNAVAILABLE_LOADBALANCERINOPERATION = "ResourceUnavailable.LoadBalancerInOperation"
func (*Client) ClearLaunchConfigurationAttributes ¶
func (c *Client) ClearLaunchConfigurationAttributes(request *ClearLaunchConfigurationAttributesRequest) (response *ClearLaunchConfigurationAttributesResponse, err error)
ClearLaunchConfigurationAttributes This API is used to clear specific attributes of the launch configuration.
error code that may be returned:
INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId"
func (*Client) CompleteLifecycleAction ¶
func (c *Client) CompleteLifecycleAction(request *CompleteLifecycleActionRequest) (response *CompleteLifecycleActionResponse, err error)
CompleteLifecycleAction This API (CompleteLifecycleAction) is used to complete a lifecycle action.
* The result ("CONTINUE" or "ABANDON") of a specific lifecycle hook can be specified by calling this API. If this API is not called at all, the lifecycle hook will be processed based on the "DefaultResult" after timeout.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_MUSTONEPARAMETER = "InvalidParameter.MustOneParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" INVALIDPARAMETERVALUE_INVALIDLIFECYCLEHOOKID = "InvalidParameterValue.InvalidLifecycleHookId" RESOURCENOTFOUND_LIFECYCLEHOOKINSTANCENOTFOUND = "ResourceNotFound.LifecycleHookInstanceNotFound" RESOURCENOTFOUND_LIFECYCLEHOOKNOTFOUND = "ResourceNotFound.LifecycleHookNotFound" RESOURCEUNAVAILABLE_LIFECYCLEACTIONRESULTHASSET = "ResourceUnavailable.LifecycleActionResultHasSet"
func (*Client) CreateAutoScalingGroup ¶
func (c *Client) CreateAutoScalingGroup(request *CreateAutoScalingGroupRequest) (response *CreateAutoScalingGroupResponse, err error)
CreateAutoScalingGroup This API (CreateAutoScalingGroup) is used to create an auto scaling group.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CALLLBERROR = "InternalError.CallLbError" INTERNALERROR_CALLTVPCERROR = "InternalError.CallTvpcError" INTERNALERROR_CALLVPCERROR = "InternalError.CallVpcError" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_INSCENARIO = "InvalidParameter.InScenario" INVALIDPARAMETERVALUE_BASECAPACITYTOOLARGE = "InvalidParameterValue.BaseCapacityTooLarge" INVALIDPARAMETERVALUE_CLASSICLB = "InvalidParameterValue.ClassicLb" INVALIDPARAMETERVALUE_CVMERROR = "InvalidParameterValue.CvmError" INVALIDPARAMETERVALUE_DUPLICATEDFORWARDLB = "InvalidParameterValue.DuplicatedForwardLb" INVALIDPARAMETERVALUE_DUPLICATEDSUBNET = "InvalidParameterValue.DuplicatedSubnet" INVALIDPARAMETERVALUE_FORWARDLB = "InvalidParameterValue.ForwardLb" INVALIDPARAMETERVALUE_GROUPNAMEDUPLICATED = "InvalidParameterValue.GroupNameDuplicated" INVALIDPARAMETERVALUE_INVALIDCLBREGION = "InvalidParameterValue.InvalidClbRegion" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId" INVALIDPARAMETERVALUE_INVALIDSUBNETID = "InvalidParameterValue.InvalidSubnetId" INVALIDPARAMETERVALUE_LAUNCHCONFIGURATIONNOTFOUND = "InvalidParameterValue.LaunchConfigurationNotFound" INVALIDPARAMETERVALUE_LBPROJECTINCONSISTENT = "InvalidParameterValue.LbProjectInconsistent" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_ONLYVPC = "InvalidParameterValue.OnlyVpc" INVALIDPARAMETERVALUE_PROJECTIDNOTFOUND = "InvalidParameterValue.ProjectIdNotFound" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_SIZE = "InvalidParameterValue.Size" INVALIDPARAMETERVALUE_SUBNETIDS = "InvalidParameterValue.SubnetIds" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" INVALIDPARAMETERVALUE_ZONEMISMATCHREGION = "InvalidParameterValue.ZoneMismatchRegion" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_AUTOSCALINGGROUPLIMITEXCEEDED = "LimitExceeded.AutoScalingGroupLimitExceeded" LIMITEXCEEDED_MAXSIZELIMITEXCEEDED = "LimitExceeded.MaxSizeLimitExceeded" LIMITEXCEEDED_MINSIZELIMITEXCEEDED = "LimitExceeded.MinSizeLimitExceeded" MISSINGPARAMETER_INSCENARIO = "MissingParameter.InScenario" RESOURCENOTFOUND_LISTENERNOTFOUND = "ResourceNotFound.ListenerNotFound" RESOURCENOTFOUND_LOADBALANCERNOTFOUND = "ResourceNotFound.LoadBalancerNotFound" RESOURCENOTFOUND_LOCATIONNOTFOUND = "ResourceNotFound.LocationNotFound" RESOURCEUNAVAILABLE_LAUNCHCONFIGURATIONSTATUSABNORMAL = "ResourceUnavailable.LaunchConfigurationStatusAbnormal" RESOURCEUNAVAILABLE_LBBACKENDREGIONINCONSISTENT = "ResourceUnavailable.LbBackendRegionInconsistent" RESOURCEUNAVAILABLE_LBVPCINCONSISTENT = "ResourceUnavailable.LbVpcInconsistent" RESOURCEUNAVAILABLE_PROJECTINCONSISTENT = "ResourceUnavailable.ProjectInconsistent" RESOURCEUNAVAILABLE_ZONEUNAVAILABLE = "ResourceUnavailable.ZoneUnavailable"
func (*Client) CreateAutoScalingGroupFromInstance ¶
func (c *Client) CreateAutoScalingGroupFromInstance(request *CreateAutoScalingGroupFromInstanceRequest) (response *CreateAutoScalingGroupFromInstanceResponse, err error)
CreateAutoScalingGroupFromInstance This API is used to create launch configurations and scaling groups based on an instance.
Note: for a scaling group that is created based on a monthly-subscribed instance, the instances added for scale-out are pay-as-you-go instance.
error code that may be returned:
ACCOUNTQUALIFICATIONRESTRICTIONS = "AccountQualificationRestrictions" CALLCVMERROR = "CallCvmError" INTERNALERROR = "InternalError" INTERNALERROR_CALLVPCERROR = "InternalError.CallVpcError" INVALIDPARAMETER_INSCENARIO = "InvalidParameter.InScenario" INVALIDPARAMETERVALUE_CVMERROR = "InvalidParameterValue.CvmError" INVALIDPARAMETERVALUE_DUPLICATEDSUBNET = "InvalidParameterValue.DuplicatedSubnet" INVALIDPARAMETERVALUE_FORWARDLB = "InvalidParameterValue.ForwardLb" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" INVALIDPARAMETERVALUE_LAUNCHCONFIGURATIONNAMEDUPLICATED = "InvalidParameterValue.LaunchConfigurationNameDuplicated" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_SIZE = "InvalidParameterValue.Size" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" LIMITEXCEEDED_AUTOSCALINGGROUPLIMITEXCEEDED = "LimitExceeded.AutoScalingGroupLimitExceeded" LIMITEXCEEDED_DESIREDCAPACITYLIMITEXCEEDED = "LimitExceeded.DesiredCapacityLimitExceeded" LIMITEXCEEDED_MAXSIZELIMITEXCEEDED = "LimitExceeded.MaxSizeLimitExceeded" LIMITEXCEEDED_MINSIZELIMITEXCEEDED = "LimitExceeded.MinSizeLimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_INSTANCESNOTFOUND = "ResourceNotFound.InstancesNotFound" RESOURCEUNAVAILABLE_LAUNCHCONFIGURATIONSTATUSABNORMAL = "ResourceUnavailable.LaunchConfigurationStatusAbnormal" RESOURCEUNAVAILABLE_PROJECTINCONSISTENT = "ResourceUnavailable.ProjectInconsistent" RESOURCEUNAVAILABLE_STOPPEDINSTANCENOTALLOWATTACH = "ResourceUnavailable.StoppedInstanceNotAllowAttach"
func (*Client) CreateLaunchConfiguration ¶
func (c *Client) CreateLaunchConfiguration(request *CreateLaunchConfigurationRequest) (response *CreateLaunchConfigurationResponse, err error)
CreateLaunchConfiguration This API (CreateLaunchConfiguration) is used to create a launch configuration.
* A few fields of a launch configuration can be modified through `ModifyLaunchConfigurationAttributes`. To use a new launch configuration, it is recommended to create it from scratch.
* You can create up to 20 launch configurations for each project. For more information, see [Usage Limits](https://intl.cloud.tencent.com/document/product/377/3120?from_cn_redirect=1).
error code that may be returned:
INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETER_HOSTNAMEUNAVAILABLE = "InvalidParameter.HostNameUnavailable" INVALIDPARAMETER_INVALIDCOMBINATION = "InvalidParameter.InvalidCombination" INVALIDPARAMETER_MUSTONEPARAMETER = "InvalidParameter.MustOneParameter" INVALIDPARAMETER_PARAMETERMUSTBEDELETED = "InvalidParameter.ParameterMustBeDeleted" INVALIDPARAMETERVALUE_CVMCONFIGURATIONERROR = "InvalidParameterValue.CvmConfigurationError" INVALIDPARAMETERVALUE_HOSTNAMEILLEGAL = "InvalidParameterValue.HostNameIllegal" INVALIDPARAMETERVALUE_INSTANCENAMEILLEGAL = "InvalidParameterValue.InstanceNameIllegal" INVALIDPARAMETERVALUE_INSTANCETYPENOTSUPPORTED = "InvalidParameterValue.InstanceTypeNotSupported" INVALIDPARAMETERVALUE_INVALIDIMAGEID = "InvalidParameterValue.InvalidImageId" INVALIDPARAMETERVALUE_INVALIDINSTANCETYPE = "InvalidParameterValue.InvalidInstanceType" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATION = "InvalidParameterValue.InvalidLaunchConfiguration" INVALIDPARAMETERVALUE_INVALIDSNAPSHOTID = "InvalidParameterValue.InvalidSnapshotId" INVALIDPARAMETERVALUE_LAUNCHCONFIGURATIONNAMEDUPLICATED = "InvalidParameterValue.LaunchConfigurationNameDuplicated" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NOTSTRINGTYPEFLOAT = "InvalidParameterValue.NotStringTypeFloat" INVALIDPARAMETERVALUE_PROJECTIDNOTFOUND = "InvalidParameterValue.ProjectIdNotFound" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" INVALIDPARAMETERVALUE_USERDATAFORMATERROR = "InvalidParameterValue.UserDataFormatError" INVALIDPARAMETERVALUE_USERDATASIZEEXCEEDED = "InvalidParameterValue.UserDataSizeExceeded" INVALIDPERMISSION = "InvalidPermission" LIMITEXCEEDED_LAUNCHCONFIGURATIONQUOTANOTENOUGH = "LimitExceeded.LaunchConfigurationQuotaNotEnough" MISSINGPARAMETER = "MissingParameter" MISSINGPARAMETER_INSTANCEMARKETOPTIONS = "MissingParameter.InstanceMarketOptions"
func (*Client) CreateLifecycleHook ¶
func (c *Client) CreateLifecycleHook(request *CreateLifecycleHookRequest) (response *CreateLifecycleHookResponse, err error)
CreateLifecycleHook This API (CreateLifeCycleHook) is used to create a lifecycle hook.
* You can configure message notifications in the following format for lifecycle hooks, which will be sent to your CMQ queue by AS:
```
{
"Service": "Tencent Cloud Auto Scaling", "Time": "2019-03-14T10:15:11Z", "AppId": "1251783334", "ActivityId": "asa-fznnvrja", "AutoScalingGroupId": "asg-rrrrtttt", "LifecycleHookId": "ash-xxxxyyyy", "LifecycleHookName": "my-hook", "LifecycleActionToken": "3080e1c9-0efe-4dd7-ad3b-90cd6618298f", "InstanceId": "ins-aaaabbbb", "LifecycleTransition": "INSTANCE_LAUNCHING", "NotificationMetadata": ""
}
```
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_FILTER = "InvalidParameterValue.Filter" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_LIFECYCLEHOOKNAMEDUPLICATED = "InvalidParameterValue.LifecycleHookNameDuplicated" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" LIMITEXCEEDED_QUOTANOTENOUGH = "LimitExceeded.QuotaNotEnough" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_CMQQUEUENOTFOUND = "ResourceNotFound.CmqQueueNotFound" RESOURCEUNAVAILABLE_CMQTOPICHASNOSUBSCRIBER = "ResourceUnavailable.CmqTopicHasNoSubscriber"
func (*Client) CreateNotificationConfiguration ¶
func (c *Client) CreateNotificationConfiguration(request *CreateNotificationConfigurationRequest) (response *CreateNotificationConfigurationResponse, err error)
CreateNotificationConfiguration This API (CreateNotificationConfiguration) is used to create a notification.
error code that may be returned:
INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDNOTIFICATIONUSERGROUPID = "InvalidParameterValue.InvalidNotificationUserGroupId" INVALIDPARAMETERVALUE_USERGROUPIDNOTFOUND = "InvalidParameterValue.UserGroupIdNotFound" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_QUOTANOTENOUGH = "LimitExceeded.QuotaNotEnough" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_AUTOSCALINGNOTIFICATIONNOTFOUND = "ResourceNotFound.AutoScalingNotificationNotFound"
func (*Client) CreateScalingPolicy ¶
func (c *Client) CreateScalingPolicy(request *CreateScalingPolicyRequest) (response *CreateScalingPolicyResponse, err error)
CreateScalingPolicy This API (CreateScalingPolicy) is used to create an alarm trigger policy.
error code that may be returned:
INTERNALERROR_CALLNOTIFICATIONERROR = "InternalError.CallNotificationError" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDNOTIFICATIONUSERGROUPID = "InvalidParameterValue.InvalidNotificationUserGroupId" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_SCALINGPOLICYNAMEDUPLICATE = "InvalidParameterValue.ScalingPolicyNameDuplicate" INVALIDPARAMETERVALUE_THRESHOLDOUTOFRANGE = "InvalidParameterValue.ThresholdOutOfRange" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" INVALIDPARAMETERVALUE_USERGROUPIDNOTFOUND = "InvalidParameterValue.UserGroupIdNotFound" LIMITEXCEEDED_QUOTANOTENOUGH = "LimitExceeded.QuotaNotEnough" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound"
func (*Client) CreateScheduledAction ¶
func (c *Client) CreateScheduledAction(request *CreateScheduledActionRequest) (response *CreateScheduledActionResponse, err error)
CreateScheduledAction This API (CreateScheduledAction) is used to create a scheduled task.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE_CRONEXPRESSIONILLEGAL = "InvalidParameterValue.CronExpressionIllegal" INVALIDPARAMETERVALUE_ENDTIMEBEFORESTARTTIME = "InvalidParameterValue.EndTimeBeforeStartTime" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDSCHEDULEDACTIONNAMEINCLUDEILLEGALCHAR = "InvalidParameterValue.InvalidScheduledActionNameIncludeIllegalChar" INVALIDPARAMETERVALUE_SCHEDULEDACTIONNAMEDUPLICATE = "InvalidParameterValue.ScheduledActionNameDuplicate" INVALIDPARAMETERVALUE_SIZE = "InvalidParameterValue.Size" INVALIDPARAMETERVALUE_STARTTIMEBEFORECURRENTTIME = "InvalidParameterValue.StartTimeBeforeCurrentTime" INVALIDPARAMETERVALUE_TIMEFORMAT = "InvalidParameterValue.TimeFormat" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" LIMITEXCEEDED_DESIREDCAPACITYLIMITEXCEEDED = "LimitExceeded.DesiredCapacityLimitExceeded" LIMITEXCEEDED_MAXSIZELIMITEXCEEDED = "LimitExceeded.MaxSizeLimitExceeded" LIMITEXCEEDED_MINSIZELIMITEXCEEDED = "LimitExceeded.MinSizeLimitExceeded" LIMITEXCEEDED_QUOTANOTENOUGH = "LimitExceeded.QuotaNotEnough" LIMITEXCEEDED_SCHEDULEDACTIONLIMITEXCEEDED = "LimitExceeded.ScheduledActionLimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound"
func (*Client) DeleteAutoScalingGroup ¶
func (c *Client) DeleteAutoScalingGroup(request *DeleteAutoScalingGroupRequest) (response *DeleteAutoScalingGroupResponse, err error)
DeleteAutoScalingGroup This API (DeleteAutoScalingGroup) is used to delete the specified auto scaling group that has no instances and remains inactive.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CALLERROR = "InternalError.CallError" INTERNALERROR_CALLMONITORERROR = "InternalError.CallMonitorError" INTERNALERROR_CALLTAGERROR = "InternalError.CallTagError" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" RESOURCEINUSE_ACTIVITYINPROGRESS = "ResourceInUse.ActivityInProgress" RESOURCEINUSE_INSTANCEINGROUP = "ResourceInUse.InstanceInGroup" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound"
func (*Client) DeleteLaunchConfiguration ¶
func (c *Client) DeleteLaunchConfiguration(request *DeleteLaunchConfigurationRequest) (response *DeleteLaunchConfigurationResponse, err error)
DeleteLaunchConfiguration This API (DeleteLaunchConfiguration) is used to delete a launch configuration.
* If the launch configuration is active in an auto scaling group, it cannot be deleted.
error code that may be returned:
INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId" RESOURCEINUSE_LAUNCHCONFIGURATIONIDINUSE = "ResourceInUse.LaunchConfigurationIdInUse" RESOURCENOTFOUND_LAUNCHCONFIGURATIONIDNOTFOUND = "ResourceNotFound.LaunchConfigurationIdNotFound"
func (*Client) DeleteLifecycleHook ¶
func (c *Client) DeleteLifecycleHook(request *DeleteLifecycleHookRequest) (response *DeleteLifecycleHookResponse, err error)
DeleteLifecycleHook This API (DeleteLifeCycleHook) is used to delete a lifecycle hook.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_INVALIDLIFECYCLEHOOKID = "InvalidParameterValue.InvalidLifecycleHookId" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_LIFECYCLEHOOKNOTFOUND = "ResourceNotFound.LifecycleHookNotFound"
func (*Client) DeleteNotificationConfiguration ¶
func (c *Client) DeleteNotificationConfiguration(request *DeleteNotificationConfigurationRequest) (response *DeleteNotificationConfigurationResponse, err error)
DeleteNotificationConfiguration This API (DeleteNotificationConfiguration) is used to delete the specified notification.
error code that may be returned:
INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGNOTIFICATIONID = "InvalidParameterValue.InvalidAutoScalingNotificationId" RESOURCENOTFOUND_AUTOSCALINGNOTIFICATIONNOTFOUND = "ResourceNotFound.AutoScalingNotificationNotFound"
func (*Client) DeleteScalingPolicy ¶
func (c *Client) DeleteScalingPolicy(request *DeleteScalingPolicyRequest) (response *DeleteScalingPolicyResponse, err error)
DeleteScalingPolicy This API (DeleteScalingPolicy) is used to delete an alarm trigger policy.
error code that may be returned:
INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGPOLICYID = "InvalidParameterValue.InvalidAutoScalingPolicyId" RESOURCENOTFOUND_SCALINGPOLICYNOTFOUND = "ResourceNotFound.ScalingPolicyNotFound"
func (*Client) DeleteScheduledAction ¶
func (c *Client) DeleteScheduledAction(request *DeleteScheduledActionRequest) (response *DeleteScheduledActionResponse, err error)
DeleteScheduledAction This API (DeleteScheduledAction) is used to delete the specified scheduled task.
error code that may be returned:
INVALIDPARAMETERVALUE_INVALIDSCHEDULEDACTIONID = "InvalidParameterValue.InvalidScheduledActionId" RESOURCENOTFOUND_SCHEDULEDACTIONNOTFOUND = "ResourceNotFound.ScheduledActionNotFound"
func (*Client) DescribeAccountLimits ¶
func (c *Client) DescribeAccountLimits(request *DescribeAccountLimitsRequest) (response *DescribeAccountLimitsResponse, err error)
DescribeAccountLimits This API (DescribeAccountLimits) is used to query the limits of user's AS resources.
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) DescribeAutoScalingActivities ¶
func (c *Client) DescribeAutoScalingActivities(request *DescribeAutoScalingActivitiesRequest) (response *DescribeAutoScalingActivitiesResponse, err error)
DescribeAutoScalingActivities This API (DescribeAutoScalingActivities) is used to query the activity history of an auto scaling group.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERVALUE_FILTER = "InvalidParameterValue.Filter" INVALIDPARAMETERVALUE_INVALIDACTIVITYID = "InvalidParameterValue.InvalidActivityId" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" LIMITEXCEEDED_FILTERVALUESTOOLONG = "LimitExceeded.FilterValuesTooLong"
func (*Client) DescribeAutoScalingGroupLastActivities ¶
func (c *Client) DescribeAutoScalingGroupLastActivities(request *DescribeAutoScalingGroupLastActivitiesRequest) (response *DescribeAutoScalingGroupLastActivitiesResponse, err error)
DescribeAutoScalingGroupLastActivities This API is used to query the latest activity history of an auto scaling group.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NORESOURCEPERMISSION = "InvalidParameterValue.NoResourcePermission"
func (*Client) DescribeAutoScalingGroups ¶
func (c *Client) DescribeAutoScalingGroups(request *DescribeAutoScalingGroupsRequest) (response *DescribeAutoScalingGroupsResponse, err error)
DescribeAutoScalingGroups This API (DescribeAutoScalingGroups) is used to query the information of auto scaling groups.
* You can query the details of auto scaling groups based on information such as auto scaling group ID, auto scaling group name, or launch configuration ID. For more information on filters, see `Filter`.
* If the parameter is empty, a certain number (specified by `Limit` and 20 by default) of auto scaling groups of the current user will be returned.
error code that may be returned:
INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERCONFLICT = "InvalidParameterConflict" INVALIDPARAMETERVALUE_FILTER = "InvalidParameterValue.Filter" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" INVALIDPERMISSION = "InvalidPermission"
func (*Client) DescribeAutoScalingInstances ¶
func (c *Client) DescribeAutoScalingInstances(request *DescribeAutoScalingInstancesRequest) (response *DescribeAutoScalingInstancesResponse, err error)
DescribeAutoScalingInstances This API (DescribeAutoScalingInstances) is used to query the information of instances associated with AS.
* You can query the details of instances based on information such as instance ID and auto scaling group ID. For more information on filters, see `Filter`.
* If the parameter is empty, a certain number (specified by `Limit` and 20 by default) of instances of the current user will be returned.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERVALUE_FILTER = "InvalidParameterValue.Filter" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId"
func (*Client) DescribeLaunchConfigurations ¶
func (c *Client) DescribeLaunchConfigurations(request *DescribeLaunchConfigurationsRequest) (response *DescribeLaunchConfigurationsResponse, err error)
DescribeLaunchConfigurations This API (DescribeLaunchConfigurations) is used to query the information of launch configurations.
* You can query the launch configuration details based on information such as launch configuration ID and name. For more information on filters, see `Filter`.
* If the parameter is empty, a certain number (specified by `Limit` and 20 by default) of launch configurations of the current user will be returned.
error code that may be returned:
INVALIDLAUNCHCONFIGURATION = "InvalidLaunchConfiguration" INVALIDLAUNCHCONFIGURATIONID = "InvalidLaunchConfigurationId" INVALIDPARAMETERCONFLICT = "InvalidParameterConflict" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId" INVALIDPERMISSION = "InvalidPermission"
func (*Client) DescribeLifecycleHooks ¶
func (c *Client) DescribeLifecycleHooks(request *DescribeLifecycleHooksRequest) (response *DescribeLifecycleHooksResponse, err error)
DescribeLifecycleHooks This API (DescribeLifecycleHooks) is used to query the information of lifecycle hooks.
* You can query the details of lifecycle hooks based on information such as auto scaling group ID, lifecycle hook ID, or lifecycle hook name. For more information on filters, see `Filter`.
* If the parameter is empty, a certain number (specified by `Limit` and 20 by default) of lifecycle hooks of the current user will be returned.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_INVALIDLIFECYCLEHOOKID = "InvalidParameterValue.InvalidLifecycleHookId" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeNotificationConfigurations ¶
func (c *Client) DescribeNotificationConfigurations(request *DescribeNotificationConfigurationsRequest) (response *DescribeNotificationConfigurationsResponse, err error)
DescribeNotificationConfigurations This API (DescribeNotificationConfigurations) is used to query the information of one or more notifications.
You can query the details of notifications based on information such as notification ID and auto scaling group ID. For more information on filters, see `Filter`.
If the parameter is empty, a certain number (specified by `Limit` and 20 by default) of notifications of the current user will be returned.
error code that may be returned:
INVALIDPARAMETERCONFLICT = "InvalidParameterConflict" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGNOTIFICATIONID = "InvalidParameterValue.InvalidAutoScalingNotificationId" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
func (*Client) DescribeScalingPolicies ¶
func (c *Client) DescribeScalingPolicies(request *DescribeScalingPoliciesRequest) (response *DescribeScalingPoliciesResponse, err error)
DescribeScalingPolicies This API (DescribeScalingPolicies) is used to query alarm trigger policies.
error code that may be returned:
INTERNALERROR_CALLMONITORERROR = "InternalError.CallMonitorError" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGPOLICYID = "InvalidParameterValue.InvalidAutoScalingPolicyId" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" LIMITEXCEEDED = "LimitExceeded"
func (*Client) DescribeScheduledActions ¶
func (c *Client) DescribeScheduledActions(request *DescribeScheduledActionsRequest) (response *DescribeScheduledActionsResponse, err error)
DescribeScheduledActions This API (DescribeScheduledActions) is used to query the details of one or more scheduled tasks.
* You can query the details of scheduled tasks based on information such as scheduled task ID, scheduled task name, or auto scaling group ID. For more information on filters, see `Filter`.
* If the parameter is empty, a certain number (specified by `Limit` and 20 by default) of scheduled tasks of the current user will be returned.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERVALUE_FILTER = "InvalidParameterValue.Filter" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_INVALIDSCHEDULEDACTIONID = "InvalidParameterValue.InvalidScheduledActionId"
func (*Client) DetachInstances ¶
func (c *Client) DetachInstances(request *DetachInstancesRequest) (response *DetachInstancesResponse, err error)
DetachInstances This API is used to remove CVM instances from a scaling group. Instances removed via this API will not be terminated.
* If the number of remaining `IN_SERVICE` instances in the scaling group is less than the minimum capacity, this API will return an error.
* However, if the scaling group is in `DISABLED` status, the removal will not verify the relationship between the number of `IN_SERVICE` instances and the minimum capacity.
* This removal will unassociate the CVM from the CLB instance that has been configured for the scaling group.
error code that may be returned:
FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" RESOURCEINSUFFICIENT_AUTOSCALINGGROUPBELOWMINSIZE = "ResourceInsufficient.AutoScalingGroupBelowMinSize" RESOURCEINSUFFICIENT_INSERVICEINSTANCEBELOWMINSIZE = "ResourceInsufficient.InServiceInstanceBelowMinSize" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_INSTANCESNOTINAUTOSCALINGGROUP = "ResourceNotFound.InstancesNotInAutoScalingGroup" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" RESOURCEUNAVAILABLE_INSTANCEINOPERATION = "ResourceUnavailable.InstanceInOperation" RESOURCEUNAVAILABLE_LOADBALANCERINOPERATION = "ResourceUnavailable.LoadBalancerInOperation"
func (*Client) DisableAutoScalingGroup ¶
func (c *Client) DisableAutoScalingGroup(request *DisableAutoScalingGroupRequest) (response *DisableAutoScalingGroupResponse, err error)
DisableAutoScalingGroup This API (DisableAutoScalingGroup) is used to disable the specified auto scaling group.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound"
func (*Client) EnableAutoScalingGroup ¶
func (c *Client) EnableAutoScalingGroup(request *EnableAutoScalingGroupRequest) (response *EnableAutoScalingGroupResponse, err error)
EnableAutoScalingGroup This API (EnableAutoScalingGroup) is used to enable the specified auto scaling group.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound"
func (*Client) ExecuteScalingPolicy ¶
func (c *Client) ExecuteScalingPolicy(request *ExecuteScalingPolicyRequest) (response *ExecuteScalingPolicyResponse, err error)
ExecuteScalingPolicy This API (ExecuteScalingPolicy) is used to execute a scaling policy.
* The scaling policy can be executed based on the scaling policy ID.
* When the auto scaling group to which the scaling policy belongs is performing a scaling activity, the scaling policy will be rejected.
error code that may be returned:
FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGPOLICYID = "InvalidParameterValue.InvalidAutoScalingPolicyId" RESOURCEINUSE_AUTOSCALINGGROUPNOTACTIVE = "ResourceInUse.AutoScalingGroupNotActive" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_SCALINGPOLICYNOTFOUND = "ResourceNotFound.ScalingPolicyNotFound" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPABNORMALSTATUS = "ResourceUnavailable.AutoScalingGroupAbnormalStatus" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity"
func (*Client) ModifyAutoScalingGroup ¶
func (c *Client) ModifyAutoScalingGroup(request *ModifyAutoScalingGroupRequest) (response *ModifyAutoScalingGroupResponse, err error)
ModifyAutoScalingGroup This API (ModifyAutoScalingGroup) is used to modify an auto scaling group.
error code that may be returned:
INTERNALERROR_CALLVPCERROR = "InternalError.CallVpcError" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETER_INSCENARIO = "InvalidParameter.InScenario" INVALIDPARAMETERVALUE_BASECAPACITYTOOLARGE = "InvalidParameterValue.BaseCapacityTooLarge" INVALIDPARAMETERVALUE_CVMERROR = "InvalidParameterValue.CvmError" INVALIDPARAMETERVALUE_DUPLICATEDSUBNET = "InvalidParameterValue.DuplicatedSubnet" INVALIDPARAMETERVALUE_GROUPNAMEDUPLICATED = "InvalidParameterValue.GroupNameDuplicated" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId" INVALIDPARAMETERVALUE_INVALIDSUBNETID = "InvalidParameterValue.InvalidSubnetId" INVALIDPARAMETERVALUE_LAUNCHCONFIGURATIONNOTFOUND = "InvalidParameterValue.LaunchConfigurationNotFound" INVALIDPARAMETERVALUE_LBPROJECTINCONSISTENT = "InvalidParameterValue.LbProjectInconsistent" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_ONLYVPC = "InvalidParameterValue.OnlyVpc" INVALIDPARAMETERVALUE_PROJECTIDNOTFOUND = "InvalidParameterValue.ProjectIdNotFound" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_SIZE = "InvalidParameterValue.Size" INVALIDPARAMETERVALUE_SUBNETIDS = "InvalidParameterValue.SubnetIds" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_MAXSIZELIMITEXCEEDED = "LimitExceeded.MaxSizeLimitExceeded" LIMITEXCEEDED_MINSIZELIMITEXCEEDED = "LimitExceeded.MinSizeLimitExceeded" MISSINGPARAMETER = "MissingParameter" MISSINGPARAMETER_INSCENARIO = "MissingParameter.InScenario" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCEUNAVAILABLE_LAUNCHCONFIGURATIONSTATUSABNORMAL = "ResourceUnavailable.LaunchConfigurationStatusAbnormal" RESOURCEUNAVAILABLE_PROJECTINCONSISTENT = "ResourceUnavailable.ProjectInconsistent"
func (*Client) ModifyDesiredCapacity ¶
func (c *Client) ModifyDesiredCapacity(request *ModifyDesiredCapacityRequest) (response *ModifyDesiredCapacityResponse, err error)
ModifyDesiredCapacity This API (ModifyDesiredCapacity) is used to modify the desired number of instances in the specified auto scaling group.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_SIZE = "InvalidParameterValue.Size" LIMITEXCEEDED_DESIREDCAPACITYLIMITEXCEEDED = "LimitExceeded.DesiredCapacityLimitExceeded" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPABNORMALSTATUS = "ResourceUnavailable.AutoScalingGroupAbnormalStatus" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPDISABLED = "ResourceUnavailable.AutoScalingGroupDisabled"
func (*Client) ModifyLaunchConfigurationAttributes ¶
func (c *Client) ModifyLaunchConfigurationAttributes(request *ModifyLaunchConfigurationAttributesRequest) (response *ModifyLaunchConfigurationAttributesResponse, err error)
ModifyLaunchConfigurationAttributes This API (ModifyLaunchConfigurationAttributes) is used to modify some attributes of a launch configuration.
* The changes of launch configuration do not affect the existing instances. New instances will be created based on the modified configuration.
* This API supports modifying certain simple types of attributes.
error code that may be returned:
INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETER_HOSTNAMEUNAVAILABLE = "InvalidParameter.HostNameUnavailable" INVALIDPARAMETER_INVALIDCOMBINATION = "InvalidParameter.InvalidCombination" INVALIDPARAMETER_PARAMETERMUSTBEDELETED = "InvalidParameter.ParameterMustBeDeleted" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_CVMCONFIGURATIONERROR = "InvalidParameterValue.CvmConfigurationError" INVALIDPARAMETERVALUE_HOSTNAMEILLEGAL = "InvalidParameterValue.HostNameIllegal" INVALIDPARAMETERVALUE_IMAGENOTFOUND = "InvalidParameterValue.ImageNotFound" INVALIDPARAMETERVALUE_INSTANCENAMEILLEGAL = "InvalidParameterValue.InstanceNameIllegal" INVALIDPARAMETERVALUE_INSTANCETYPENOTSUPPORTED = "InvalidParameterValue.InstanceTypeNotSupported" INVALIDPARAMETERVALUE_INVALIDIMAGEID = "InvalidParameterValue.InvalidImageId" INVALIDPARAMETERVALUE_INVALIDINSTANCETYPE = "InvalidParameterValue.InvalidInstanceType" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId" INVALIDPARAMETERVALUE_LAUNCHCONFIGURATIONNAMEDUPLICATED = "InvalidParameterValue.LaunchConfigurationNameDuplicated" INVALIDPARAMETERVALUE_NOTSTRINGTYPEFLOAT = "InvalidParameterValue.NotStringTypeFloat" INVALIDPARAMETERVALUE_USERDATAFORMATERROR = "InvalidParameterValue.UserDataFormatError" INVALIDPARAMETERVALUE_USERDATASIZEEXCEEDED = "InvalidParameterValue.UserDataSizeExceeded" MISSINGPARAMETER = "MissingParameter" MISSINGPARAMETER_INSCENARIO = "MissingParameter.InScenario" RESOURCENOTFOUND_LAUNCHCONFIGURATIONIDNOTFOUND = "ResourceNotFound.LaunchConfigurationIdNotFound"
func (*Client) ModifyLoadBalancers ¶
func (c *Client) ModifyLoadBalancers(request *ModifyLoadBalancersRequest) (response *ModifyLoadBalancersResponse, err error)
ModifyLoadBalancers This API (ModifyLoadBalancers) is used to modify the load balancers of an auto scaling group.
* This API can specify a new load balancer configuration for the auto scaling group. The new configuration overwrites the original load balancer configuration.
* If you want to clear the load balancer for the auto scaling group, specify only the auto scaling group ID but not the specific load balancer when calling this API.
* This API modifies the load balancer of the auto scaling group and generate a scaling activity to asynchronously modify the load balancers of existing instances.
error code that may be returned:
FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETER_INSCENARIO = "InvalidParameter.InScenario" INVALIDPARAMETERVALUE_CLASSICLB = "InvalidParameterValue.ClassicLb" INVALIDPARAMETERVALUE_FORWARDLB = "InvalidParameterValue.ForwardLb" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDCLBREGION = "InvalidParameterValue.InvalidClbRegion" INVALIDPARAMETERVALUE_LBPROJECTINCONSISTENT = "InvalidParameterValue.LbProjectInconsistent" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" MISSINGPARAMETER_INSCENARIO = "MissingParameter.InScenario" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_LISTENERNOTFOUND = "ResourceNotFound.ListenerNotFound" RESOURCENOTFOUND_LOADBALANCERNOTFOUND = "ResourceNotFound.LoadBalancerNotFound" RESOURCENOTFOUND_LOCATIONNOTFOUND = "ResourceNotFound.LocationNotFound" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" RESOURCEUNAVAILABLE_LBBACKENDREGIONINCONSISTENT = "ResourceUnavailable.LbBackendRegionInconsistent" RESOURCEUNAVAILABLE_LBVPCINCONSISTENT = "ResourceUnavailable.LbVpcInconsistent" RESOURCEUNAVAILABLE_LOADBALANCERINOPERATION = "ResourceUnavailable.LoadBalancerInOperation"
func (*Client) ModifyNotificationConfiguration ¶
func (c *Client) ModifyNotificationConfiguration(request *ModifyNotificationConfigurationRequest) (response *ModifyNotificationConfigurationResponse, err error)
ModifyNotificationConfiguration This API (ModifyNotificationConfiguration) is used to modify a notification.
error code that may be returned:
INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGNOTIFICATIONID = "InvalidParameterValue.InvalidAutoScalingNotificationId" INVALIDPARAMETERVALUE_INVALIDNOTIFICATIONUSERGROUPID = "InvalidParameterValue.InvalidNotificationUserGroupId" INVALIDPARAMETERVALUE_USERGROUPIDNOTFOUND = "InvalidParameterValue.UserGroupIdNotFound" RESOURCENOTFOUND_AUTOSCALINGNOTIFICATIONNOTFOUND = "ResourceNotFound.AutoScalingNotificationNotFound"
func (*Client) ModifyScalingPolicy ¶
func (c *Client) ModifyScalingPolicy(request *ModifyScalingPolicyRequest) (response *ModifyScalingPolicyResponse, err error)
ModifyScalingPolicy This API (ModifyScalingPolicy) is used to modify an alarm trigger policy.
error code that may be returned:
INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGPOLICYID = "InvalidParameterValue.InvalidAutoScalingPolicyId" INVALIDPARAMETERVALUE_INVALIDNOTIFICATIONUSERGROUPID = "InvalidParameterValue.InvalidNotificationUserGroupId" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_SCALINGPOLICYNAMEDUPLICATE = "InvalidParameterValue.ScalingPolicyNameDuplicate" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_SCALINGPOLICYNOTFOUND = "ResourceNotFound.ScalingPolicyNotFound"
func (*Client) ModifyScheduledAction ¶
func (c *Client) ModifyScheduledAction(request *ModifyScheduledActionRequest) (response *ModifyScheduledActionResponse, err error)
ModifyScheduledAction This API (ModifyScheduledAction) is used to modify a scheduled task.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE_CRONEXPRESSIONILLEGAL = "InvalidParameterValue.CronExpressionIllegal" INVALIDPARAMETERVALUE_ENDTIMEBEFORESTARTTIME = "InvalidParameterValue.EndTimeBeforeStartTime" INVALIDPARAMETERVALUE_INVALIDSCHEDULEDACTIONID = "InvalidParameterValue.InvalidScheduledActionId" INVALIDPARAMETERVALUE_INVALIDSCHEDULEDACTIONNAMEINCLUDEILLEGALCHAR = "InvalidParameterValue.InvalidScheduledActionNameIncludeIllegalChar" INVALIDPARAMETERVALUE_SCHEDULEDACTIONNAMEDUPLICATE = "InvalidParameterValue.ScheduledActionNameDuplicate" INVALIDPARAMETERVALUE_SIZE = "InvalidParameterValue.Size" INVALIDPARAMETERVALUE_STARTTIMEBEFORECURRENTTIME = "InvalidParameterValue.StartTimeBeforeCurrentTime" INVALIDPARAMETERVALUE_TIMEFORMAT = "InvalidParameterValue.TimeFormat" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" LIMITEXCEEDED_DESIREDCAPACITYLIMITEXCEEDED = "LimitExceeded.DesiredCapacityLimitExceeded" LIMITEXCEEDED_MAXSIZELIMITEXCEEDED = "LimitExceeded.MaxSizeLimitExceeded" LIMITEXCEEDED_MINSIZELIMITEXCEEDED = "LimitExceeded.MinSizeLimitExceeded" LIMITEXCEEDED_SCHEDULEDACTIONLIMITEXCEEDED = "LimitExceeded.ScheduledActionLimitExceeded" RESOURCENOTFOUND_SCHEDULEDACTIONNOTFOUND = "ResourceNotFound.ScheduledActionNotFound"
func (*Client) RemoveInstances ¶
func (c *Client) RemoveInstances(request *RemoveInstancesRequest) (response *RemoveInstancesResponse, err error)
RemoveInstances This API is used to delete CVM instances from a scaling group. Instances that are automatically created through AS will be terminated, while those manually added to the scaling group will be removed and retained.
* If the number of remaining `IN_SERVICE` instances in the scaling group is less than the minimum capacity, this API will return an error.
* However, if the scaling group is in `DISABLED` status, the removal will not verify the relationship between the number of `IN_SERVICE` instances and the minimum capacity.
* This removal will unassociate the CVM from the CLB instance that has been configured for the scaling group.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" RESOURCEINSUFFICIENT_AUTOSCALINGGROUPBELOWMINSIZE = "ResourceInsufficient.AutoScalingGroupBelowMinSize" RESOURCEINSUFFICIENT_INSERVICEINSTANCEBELOWMINSIZE = "ResourceInsufficient.InServiceInstanceBelowMinSize" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_INSTANCESNOTINAUTOSCALINGGROUP = "ResourceNotFound.InstancesNotInAutoScalingGroup" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" RESOURCEUNAVAILABLE_INSTANCEINOPERATION = "ResourceUnavailable.InstanceInOperation"
func (*Client) ScaleInInstances ¶
func (c *Client) ScaleInInstances(request *ScaleInInstancesRequest) (response *ScaleInInstancesResponse, err error)
ScaleInInstances This API is used to reduce the specified number of instances from the scaling group, which returns the scaling activity ID `ActivityId`.
* The scaling group is not active.
* The scale-in instances will be selected according to the `TerminationPolicies` policy as described in [Reducing Capacity](https://intl.cloud.tencent.com/document/product/377/8563?from_cn_redirect=1).
* Only the `IN_SERVICE` instances will be reduced. To reduce instances in other statues, use the [`DetachInstances`](https://intl.cloud.tencent.com/document/api/377/20436?from_cn_redirect=1) or [`RemoveInstances`](https://intl.cloud.tencent.com/document/api/377/20431?from_cn_redirect=1) API.
* The desired capacity will be reduced accordingly. The new desired capacity should be no less than the minimum capacity.
* If the scale-in activity failed or partially succeeded, the final desired capacity only deducts the instances that have been reduced successfully.
error code that may be returned:
INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT_AUTOSCALINGGROUPBELOWMINSIZE = "ResourceInsufficient.AutoScalingGroupBelowMinSize" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity"
func (*Client) ScaleOutInstances ¶
func (c *Client) ScaleOutInstances(request *ScaleOutInstancesRequest) (response *ScaleOutInstancesResponse, err error)
ScaleOutInstances This API is used to add the specified number of instances to the scaling group, which returns the scaling activity ID `ActivityId`.
* The scaling group is not active.
* The desired capacity will be increased accordingly. The new desired capacity should be no more than the maximum capacity.
* If the scale-out activity failed or partially succeeded, the final desired capacity only includes the instances that have been added successfully.
error code that may be returned:
INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" LIMITEXCEEDED_DESIREDCAPACITYLIMITEXCEEDED = "LimitExceeded.DesiredCapacityLimitExceeded" RESOURCEINSUFFICIENT_AUTOSCALINGGROUPABOVEMAXSIZE = "ResourceInsufficient.AutoScalingGroupAboveMaxSize" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity"
func (*Client) SetInstancesProtection ¶
func (c *Client) SetInstancesProtection(request *SetInstancesProtectionRequest) (response *SetInstancesProtectionResponse, err error)
SetInstancesProtection This API (SetInstancesProtection) is used to enable scale-in protection for an instance.
When an instance has scale-in protection enabled, it will not be removed when scaling is triggered by replacement of unhealthy instances, alarm trigger policy, threshold change, etc.
error code that may be returned:
INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_INSTANCESNOTINAUTOSCALINGGROUP = "ResourceNotFound.InstancesNotInAutoScalingGroup"
func (*Client) StartAutoScalingInstances ¶
func (c *Client) StartAutoScalingInstances(request *StartAutoScalingInstancesRequest) (response *StartAutoScalingInstancesResponse, err error)
StartAutoScalingInstances This API is used to start up CVM instances in a scaling group.
* After startup, the instance will be in the `IN_SERVICE` status, which will increase the desired capacity. Please note that the desired capacity cannot exceed the maximum value.
* This API supports batch operation. Up to 100 instances can be started up in each request.
error code that may be returned:
FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" RESOURCEINSUFFICIENT_AUTOSCALINGGROUPABOVEMAXSIZE = "ResourceInsufficient.AutoScalingGroupAboveMaxSize" RESOURCEINSUFFICIENT_INSERVICEINSTANCEABOVEMAXSIZE = "ResourceInsufficient.InServiceInstanceAboveMaxSize" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_INSTANCESNOTINAUTOSCALINGGROUP = "ResourceNotFound.InstancesNotInAutoScalingGroup" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" RESOURCEUNAVAILABLE_LOADBALANCERINOPERATION = "ResourceUnavailable.LoadBalancerInOperation"
func (*Client) StopAutoScalingInstances ¶
func (c *Client) StopAutoScalingInstances(request *StopAutoScalingInstancesRequest) (response *StopAutoScalingInstancesResponse, err error)
StopAutoScalingInstances This API is used to shut down CVM instances in a scaling group.
* Use the `SOFT_FIRST` shutdown, which means the CVM will be forcibly shut down if the soft shutdown fails.
* Shutting down instances in the `IN_SERVICE` status will reduce the desired capacity, but the desired capacity cannot be less than the minimum value.
* To use the `STOP_CHARGING` shutdown, the instances you want to shut down must satisfy the conditions of [no charges when shut down](https://intl.cloud.tencent.com/document/product/213/19918?from_cn_redirect=1).
* This API supports batch operation. Up to 100 instances can be shut down in each request.
error code that may be returned:
CALLCVMERROR = "CallCvmError" FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" RESOURCEINSUFFICIENT_AUTOSCALINGGROUPBELOWMINSIZE = "ResourceInsufficient.AutoScalingGroupBelowMinSize" RESOURCEINSUFFICIENT_INSERVICEINSTANCEBELOWMINSIZE = "ResourceInsufficient.InServiceInstanceBelowMinSize" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_INSTANCESNOTINAUTOSCALINGGROUP = "ResourceNotFound.InstancesNotInAutoScalingGroup" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" RESOURCEUNAVAILABLE_INSTANCEINOPERATION = "ResourceUnavailable.InstanceInOperation" RESOURCEUNAVAILABLE_INSTANCENOTSUPPORTSTOPCHARGING = "ResourceUnavailable.InstanceNotSupportStopCharging" RESOURCEUNAVAILABLE_LOADBALANCERINOPERATION = "ResourceUnavailable.LoadBalancerInOperation"
func (*Client) UpgradeLaunchConfiguration ¶
func (c *Client) UpgradeLaunchConfiguration(request *UpgradeLaunchConfigurationRequest) (response *UpgradeLaunchConfigurationResponse, err error)
UpgradeLaunchConfiguration This API (UpgradeLaunchConfiguration) is used to upgrade a launch configuration.
* This API is used to upgrade a launch configuration in a "completely overriding" manner, i.e., it uniformly sets a new configuration according to the API parameters regardless of the original parameters. If optional fields are left empty, their default values will be used.
* After the launch configuration is upgraded, the existing instances that have been created by it will not be changed, but new instances will be created according to the new configuration.
error code that may be returned:
CALLCVMERROR = "CallCvmError" INTERNALERROR = "InternalError" INVALIDIMAGEID_NOTFOUND = "InvalidImageId.NotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETER_INVALIDCOMBINATION = "InvalidParameter.InvalidCombination" INVALIDPARAMETER_MUSTONEPARAMETER = "InvalidParameter.MustOneParameter" INVALIDPARAMETER_PARAMETERMUSTBEDELETED = "InvalidParameter.ParameterMustBeDeleted" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_CVMCONFIGURATIONERROR = "InvalidParameterValue.CvmConfigurationError" INVALIDPARAMETERVALUE_CVMERROR = "InvalidParameterValue.CvmError" INVALIDPARAMETERVALUE_HOSTNAMEILLEGAL = "InvalidParameterValue.HostNameIllegal" INVALIDPARAMETERVALUE_INSTANCETYPENOTSUPPORTED = "InvalidParameterValue.InstanceTypeNotSupported" INVALIDPARAMETERVALUE_INVALIDIMAGEID = "InvalidParameterValue.InvalidImageId" INVALIDPARAMETERVALUE_INVALIDINSTANCETYPE = "InvalidParameterValue.InvalidInstanceType" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId" INVALIDPARAMETERVALUE_LAUNCHCONFIGURATIONNAMEDUPLICATED = "InvalidParameterValue.LaunchConfigurationNameDuplicated" INVALIDPARAMETERVALUE_NOTSTRINGTYPEFLOAT = "InvalidParameterValue.NotStringTypeFloat" INVALIDPARAMETERVALUE_PROJECTIDNOTFOUND = "InvalidParameterValue.ProjectIdNotFound" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_USERDATAFORMATERROR = "InvalidParameterValue.UserDataFormatError" INVALIDPARAMETERVALUE_USERDATASIZEEXCEEDED = "InvalidParameterValue.UserDataSizeExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_LAUNCHCONFIGURATIONIDNOTFOUND = "ResourceNotFound.LaunchConfigurationIdNotFound"
func (*Client) UpgradeLifecycleHook ¶
func (c *Client) UpgradeLifecycleHook(request *UpgradeLifecycleHookRequest) (response *UpgradeLifecycleHookResponse, err error)
UpgradeLifecycleHook This API (UpgradeLifecycleHook) is used to upgrade a lifecycle hook.
* This API is used to upgrade a lifecycle hook in a "completely overriding" manner, i.e., it uniformly sets a new configuration according to the API parameters regardless of the original parameters. If optional fields are left empty, their default values will be used.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CALLCMQERROR = "InternalError.CallCmqError" INTERNALERROR_CALLSTSERROR = "InternalError.CallStsError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_FILTER = "InvalidParameterValue.Filter" INVALIDPARAMETERVALUE_INVALIDLIFECYCLEHOOKID = "InvalidParameterValue.InvalidLifecycleHookId" INVALIDPARAMETERVALUE_LIFECYCLEHOOKNAMEDUPLICATED = "InvalidParameterValue.LifecycleHookNameDuplicated" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_LIFECYCLEHOOKNOTFOUND = "ResourceNotFound.LifecycleHookNotFound" RESOURCEUNAVAILABLE_CMQTOPICHASNOSUBSCRIBER = "ResourceUnavailable.CmqTopicHasNoSubscriber"
type CompleteLifecycleActionRequest ¶
type CompleteLifecycleActionRequest struct { *tchttp.BaseRequest // Lifecycle hook ID LifecycleHookId *string `json:"LifecycleHookId,omitempty" name:"LifecycleHookId"` // Result of the lifecycle action. Value range: "CONTINUE", "ABANDON" LifecycleActionResult *string `json:"LifecycleActionResult,omitempty" name:"LifecycleActionResult"` // Instance ID. Either "InstanceId" or "LifecycleActionToken" must be specified InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Either "InstanceId" or "LifecycleActionToken" must be specified LifecycleActionToken *string `json:"LifecycleActionToken,omitempty" name:"LifecycleActionToken"` }
func NewCompleteLifecycleActionRequest ¶
func NewCompleteLifecycleActionRequest() (request *CompleteLifecycleActionRequest)
func (*CompleteLifecycleActionRequest) FromJsonString ¶
func (r *CompleteLifecycleActionRequest) 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 (*CompleteLifecycleActionRequest) ToJsonString ¶
func (r *CompleteLifecycleActionRequest) ToJsonString() string
type CompleteLifecycleActionResponse ¶
type CompleteLifecycleActionResponse struct { *tchttp.BaseResponse Response *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"` } `json:"Response"` }
func NewCompleteLifecycleActionResponse ¶
func NewCompleteLifecycleActionResponse() (response *CompleteLifecycleActionResponse)
func (*CompleteLifecycleActionResponse) FromJsonString ¶
func (r *CompleteLifecycleActionResponse) 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 (*CompleteLifecycleActionResponse) ToJsonString ¶
func (r *CompleteLifecycleActionResponse) ToJsonString() string
type CreateAutoScalingGroupFromInstanceRequest ¶
type CreateAutoScalingGroupFromInstanceRequest struct { *tchttp.BaseRequest // The scaling group name. It must be unique under your account. The name can only contain letters, numbers, underscore, hyphen “-” and periods. It cannot exceed 55 bytes. AutoScalingGroupName *string `json:"AutoScalingGroupName,omitempty" name:"AutoScalingGroupName"` // The instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // The minimum number of instances. Value range: 0-2000. MinSize *int64 `json:"MinSize,omitempty" name:"MinSize"` // The maximum number of instances. Value range: 0-2000. MaxSize *int64 `json:"MaxSize,omitempty" name:"MaxSize"` // The desired capacity. Its value must be greater than the minimum and smaller than the maximum. DesiredCapacity *int64 `json:"DesiredCapacity,omitempty" name:"DesiredCapacity"` // Whether to inherit the instance tag. Default value: False InheritInstanceTag *bool `json:"InheritInstanceTag,omitempty" name:"InheritInstanceTag"` }
func NewCreateAutoScalingGroupFromInstanceRequest ¶
func NewCreateAutoScalingGroupFromInstanceRequest() (request *CreateAutoScalingGroupFromInstanceRequest)
func (*CreateAutoScalingGroupFromInstanceRequest) FromJsonString ¶
func (r *CreateAutoScalingGroupFromInstanceRequest) 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 (*CreateAutoScalingGroupFromInstanceRequest) ToJsonString ¶
func (r *CreateAutoScalingGroupFromInstanceRequest) ToJsonString() string
type CreateAutoScalingGroupFromInstanceResponse ¶
type CreateAutoScalingGroupFromInstanceResponse struct { *tchttp.BaseResponse Response *struct { // The scaling group ID. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateAutoScalingGroupFromInstanceResponse ¶
func NewCreateAutoScalingGroupFromInstanceResponse() (response *CreateAutoScalingGroupFromInstanceResponse)
func (*CreateAutoScalingGroupFromInstanceResponse) FromJsonString ¶
func (r *CreateAutoScalingGroupFromInstanceResponse) 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 (*CreateAutoScalingGroupFromInstanceResponse) ToJsonString ¶
func (r *CreateAutoScalingGroupFromInstanceResponse) ToJsonString() string
type CreateAutoScalingGroupRequest ¶
type CreateAutoScalingGroupRequest struct { *tchttp.BaseRequest // Auto scaling group name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 55 bytes and must be unique under your account. AutoScalingGroupName *string `json:"AutoScalingGroupName,omitempty" name:"AutoScalingGroupName"` // Launch configuration ID LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // Maximum number of instances. Value range: 0-2,000. MaxSize *uint64 `json:"MaxSize,omitempty" name:"MaxSize"` // Minimum number of instances. Value range: 0-2,000. MinSize *uint64 `json:"MinSize,omitempty" name:"MinSize"` // VPC ID; if on a basic network, enter an empty string VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // Default cooldown period in seconds. Default value: 300 DefaultCooldown *uint64 `json:"DefaultCooldown,omitempty" name:"DefaultCooldown"` // Desired number of instances. The number should be no larger than the maximum and no smaller than minimum number of instances DesiredCapacity *uint64 `json:"DesiredCapacity,omitempty" name:"DesiredCapacity"` // List of classic CLB IDs. Currently, the maximum length is 20. You cannot specify LoadBalancerIds and ForwardLoadBalancers at the same time. LoadBalancerIds []*string `json:"LoadBalancerIds,omitempty" name:"LoadBalancerIds"` // Project ID ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` // List of CLBs. Currently, the maximum length is 20. You cannot specify LoadBalancerIds and ForwardLoadBalancers at the same time. ForwardLoadBalancers []*ForwardLoadBalancer `json:"ForwardLoadBalancers,omitempty" name:"ForwardLoadBalancers"` // List of subnet IDs. A subnet must be specified in the VPC scenario. If multiple subnets are entered, their priority will be determined by the order in which they are entered, and they will be tried one by one until instances can be successfully created. SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds"` // Termination policy. Currently, the maximum length is 1. Value range: OLDEST_INSTANCE, NEWEST_INSTANCE. Default value: OLDEST_INSTANCE. // <br><li> OLDEST_INSTANCE: The oldest instance in the auto scaling group will be terminated first. // <br><li> NEWEST_INSTANCE: The newest instance in the auto scaling group will be terminated first. TerminationPolicies []*string `json:"TerminationPolicies,omitempty" name:"TerminationPolicies"` // List of availability zones. An availability zone must be specified in the basic network scenario. If multiple availability zones are entered, their priority will be determined by the order in which they are entered, and they will be tried one by one until instances can be successfully created. Zones []*string `json:"Zones,omitempty" name:"Zones"` // Retry policy. Value range: IMMEDIATE_RETRY, INCREMENTAL_INTERVALS, and NO_RETRY. Default value: IMMEDIATE_RETRY. // <br><li> IMMEDIATE_RETRY: Retrying immediately in a short period of time and stopping after a number of consecutive failures (5). // <br><li> INCREMENTAL_INTERVALS: Retrying at incremental intervals, i.e., as the number of consecutive failures increases, the retry interval gradually increases, ranging from one second to one day. // <br><li> NO_RETRY: No retry until a user call or alarm message is received again. RetryPolicy *string `json:"RetryPolicy,omitempty" name:"RetryPolicy"` // Availability zone verification policy. Value range: ALL, ANY. Default value: ANY. // <br><li> ALL: The verification will succeed only if all availability zones (Zone) or subnets (SubnetId) are available; otherwise, an error will be reported. // <br><li> ANY: The verification will success if any availability zone (Zone) or subnet (SubnetId) is available; otherwise, an error will be reported. // // Common reasons why an availability zone or subnet is unavailable include stock-out of CVM instances or CBS cloud disks in the availability zone, insufficient quota in the availability zone, or insufficient IPs in the subnet. // If an availability zone or subnet in Zones/SubnetIds does not exist, a verification error will be reported regardless of the value of ZonesCheckPolicy. ZonesCheckPolicy *string `json:"ZonesCheckPolicy,omitempty" name:"ZonesCheckPolicy"` // List of tag descriptions. In this parameter, you can specify the tags to be bound with a scaling group as well as corresponding resource instances. Each scaling group can have up to 30 tags. Tags []*Tag `json:"Tags,omitempty" name:"Tags"` // Service settings such as unhealthy instance replacement. ServiceSettings *ServiceSettings `json:"ServiceSettings,omitempty" name:"ServiceSettings"` // The number of IPv6 addresses that an instance has. Valid values: 0 and 1. Default value: 0. Ipv6AddressCount *int64 `json:"Ipv6AddressCount,omitempty" name:"Ipv6AddressCount"` // Multi-availability zone/subnet policy. Valid values: PRIORITY and EQUALITY. Default value: PRIORITY. // <br><li> PRIORITY: creates instances based on the priority determined by the order in the availability zone/subnet list. If an instance can be successfully created in the availability zone/subnet of the highest priority, all instances will be created in the availability zone/subnet. // <br><li> EQUALITY: scales out the availability zone/subnet with the least instances each time. This gives each availability zone/subnet an opportunity for scale-out and disperses the instances created during multiple scale-out operations across different availability zones/subnets. // // Notes about this policy: // <br><li> When the scaling group is based on basic network, this policy applies to multiple availability zones. When the scaling group is based on VPC, this policy applies to multiple subnets, and you do not need to consider availability zones. For example, if you have four subnets (A, B, C, and D) and A, B, and C are in availability zone 1 and D is in availability zone 2, you only need to decide the order of the four subnets, without worrying about the issue of availability zones. // <br><li> This policy is applicable to multiple availability zones/subnets, but is not applicable to multiple models with launch configurations. When there are multiple models, the PRIORITY policy is applied. // <br><li> During instance creation, apply the multi-model policy and then apply the multi-availability zones/subnet policy. For example, if you have models A and B and subnets 1, 2, and 3 (based on the PRIORITY policy), creation will be attempted in the following order: A1, A2, A3, B1, B2, and B3. If A1 is sold out, A2 (not B1) is tried next. // <br><li> No matter what policy is used, a single scaling event always uses a specific configuration at priority (model * availability zone/subnet). MultiZoneSubnetPolicy *string `json:"MultiZoneSubnetPolicy,omitempty" name:"MultiZoneSubnetPolicy"` // Health check type of instances in a scaling group.<br><li>CVM: confirm whether an instance is healthy based on the network status. If the pinged instance is unreachable, the instance will be considered unhealthy. For more information, see [Instance Health Check](https://intl.cloud.tencent.com/document/product/377/8553?from_cn_redirect=1)<br><li>CLB: confirm whether an instance is healthy based on the CLB health check status. For more information, see [Health Check Overview](https://intl.cloud.tencent.com/document/product/214/6097?from_cn_redirect=1).<br>If the parameter is set to `CLB`, the scaling group will check both the network status and the CLB health check status. If the network check indicates unhealthy, the `HealthStatus` field will return `UNHEALTHY`. If the CLB health check indicates unhealthy, the `HealthStatus` field will return `CLB_UNHEALTHY`. If both checks indicate unhealthy, the `HealthStatus` field will return `UNHEALTHY|CLB_UNHEALTHY`. Default value: `CLB`. HealthCheckType *string `json:"HealthCheckType,omitempty" name:"HealthCheckType"` // Grace period of the CLB health check during which the `IN_SERVICE` instances added will not be marked as `CLB_UNHEALTHY`.<br>Valid range: 0-7200, in seconds. Default value: `0`. LoadBalancerHealthCheckGracePeriod *uint64 `json:"LoadBalancerHealthCheckGracePeriod,omitempty" name:"LoadBalancerHealthCheckGracePeriod"` // Specifies how to assign instances. Valid values: `LAUNCH_CONFIGURATION` and `SPOT_MIXED`; default value: `LAUNCH_CONFIGURATION`. // <br><li>`LAUNCH_CONFIGURATION`: the launch configuration mode. // <br><li>`SPOT_MIXED`: a mixed instance mode. Currently, this mode is supported only when the launch configuration takes the pay-as-you-go billing mode. With this mode, the scaling group can provision a combination of pay-as-you-go instances and spot instances to meet the configured capacity. Note that the billing mode of the associated launch configuration cannot be modified when this mode is used. InstanceAllocationPolicy *string `json:"InstanceAllocationPolicy,omitempty" name:"InstanceAllocationPolicy"` // Specifies how to assign pay-as-you-go instances and spot instances. // This parameter is valid only when `InstanceAllocationPolicy ` is set to `SPOT_MIXED`. SpotMixedAllocationPolicy *SpotMixedAllocationPolicy `json:"SpotMixedAllocationPolicy,omitempty" name:"SpotMixedAllocationPolicy"` // Indicates whether the capacity rebalancing feature is enabled. This parameter is only valid for spot instances in the scaling group. Valid values: // <br><li>`TRUE`: yes. Before the spot instances in the scaling group are about to be automatically repossessed, AS will terminate them. The scale-in hook (if configured) will take effect before the termination. After the termination process starts, AS will asynchronously initiate a scaling activity to meet the desired capacity. // <br><li>`FALSE`: no. AS will add instances to meet the desired capacity only after the spot instances are terminated. // // Default value: `False`. CapacityRebalance *bool `json:"CapacityRebalance,omitempty" name:"CapacityRebalance"` }
func NewCreateAutoScalingGroupRequest ¶
func NewCreateAutoScalingGroupRequest() (request *CreateAutoScalingGroupRequest)
func (*CreateAutoScalingGroupRequest) FromJsonString ¶
func (r *CreateAutoScalingGroupRequest) 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 (*CreateAutoScalingGroupRequest) ToJsonString ¶
func (r *CreateAutoScalingGroupRequest) ToJsonString() string
type CreateAutoScalingGroupResponse ¶
type CreateAutoScalingGroupResponse struct { *tchttp.BaseResponse Response *struct { // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateAutoScalingGroupResponse ¶
func NewCreateAutoScalingGroupResponse() (response *CreateAutoScalingGroupResponse)
func (*CreateAutoScalingGroupResponse) FromJsonString ¶
func (r *CreateAutoScalingGroupResponse) 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 (*CreateAutoScalingGroupResponse) ToJsonString ¶
func (r *CreateAutoScalingGroupResponse) ToJsonString() string
type CreateLaunchConfigurationRequest ¶
type CreateLaunchConfigurationRequest struct { *tchttp.BaseRequest // Display name of the launch configuration, which can contain Chinese characters, letters, numbers, underscores, separators ("-"), and decimal points with a maximum length of 60 bytes. LaunchConfigurationName *string `json:"LaunchConfigurationName,omitempty" name:"LaunchConfigurationName"` // Valid [image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-8toqc6s3`. There are four types of images: <br/><li>Public images </li><li>Custom images </li><li>Shared images </li><li>Marketplace images </li><br/>You can obtain the available image IDs in the following ways: <br/><li>For `public images`, `custom images`, and `shared images`, log in to the [console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE) to query the image IDs; for `marketplace images`, query the image IDs through [Cloud Marketplace](https://market.cloud.tencent.com/list). </li><li>This value can be obtained from the `ImageId` field in the return value of the [DescribeImages API](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1).</li> ImageId *string `json:"ImageId,omitempty" name:"ImageId"` // ID of the project to which the instance belongs. This parameter can be obtained from the `projectId` field in the returned values of [DescribeProject](https://intl.cloud.tencent.com/document/api/378/4400?from_cn_redirect=1). If this is left empty, default project is used. ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` // Instance model. Different instance models specify different resource specifications. The specific value can be obtained by calling the [DescribeInstanceTypeConfigs](https://intl.cloud.tencent.com/document/api/213/15749?from_cn_redirect=1) API to get the latest specification table or referring to the descriptions in [Instance Types](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1). // `InstanceType` and `InstanceTypes` are mutually exclusive, and one and only one of them must be entered. InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` // System disk configuration of the instance. If this parameter is not specified, the default value will be assigned to it. SystemDisk *SystemDisk `json:"SystemDisk,omitempty" name:"SystemDisk"` // Information of the instance's data disk configuration. If this parameter is not specified, no data disk is purchased by default. Up to 11 data disks can be supported. DataDisks []*DataDisk `json:"DataDisks,omitempty" name:"DataDisks"` // Configuration information of public network bandwidth. If this parameter is not specified, the default public network bandwidth is 0 Mbps. InternetAccessible *InternetAccessible `json:"InternetAccessible,omitempty" name:"InternetAccessible"` // Login settings of the instance. This parameter is used to set the login password and key for the instance, or to keep the original login settings for the image. By default, a random password is generated and sent to the user via the internal message. LoginSettings *LoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"` // The security group to which the instance belongs. This parameter can be obtained by calling the `SecurityGroupId` field in the returned value of [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1). If this parameter is not specified, no security group will be bound by default. SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` // Enhanced service. This parameter is used to specify whether to enable Cloud Security, Cloud Monitoring and other services. If this parameter is not specified, Cloud Monitoring and Cloud Security will be enabled by default. EnhancedService *EnhancedService `json:"EnhancedService,omitempty" name:"EnhancedService"` // Base64-encoded custom data of up to 16 KB. UserData *string `json:"UserData,omitempty" name:"UserData"` // Instance billing mode. CVM instances take `POSTPAID_BY_HOUR` by default. Valid values: // <br><li>POSTPAID_BY_HOUR: pay-as-you-go hourly // <br><li>SPOTPAID: spot instance InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` // Market-related options of the instance, such as the parameters related to stop instances. If the billing method of instance is specified as bidding, this parameter must be passed in. InstanceMarketOptions *InstanceMarketOptionsRequest `json:"InstanceMarketOptions,omitempty" name:"InstanceMarketOptions"` // List of instance models. Different instance models specify different resource specifications. Up to 10 instance models can be supported. // `InstanceType` and `InstanceTypes` are mutually exclusive, and one and only one of them must be entered. InstanceTypes []*string `json:"InstanceTypes,omitempty" name:"InstanceTypes"` // Instance type verification policy. Value range: ALL, ANY. Default value: ANY. // <br><li> ALL: The verification will success only if all instance types (InstanceType) are available; otherwise, an error will be reported. // <br><li> ANY: The verification will success if any instance type (InstanceType) is available; otherwise, an error will be reported. // // Common reasons why an instance type is unavailable include stock-out of the instance type or the corresponding cloud disk. // If a model in InstanceTypes does not exist or has been discontinued, a verification error will be reported regardless of the value of InstanceTypesCheckPolicy. InstanceTypesCheckPolicy *string `json:"InstanceTypesCheckPolicy,omitempty" name:"InstanceTypesCheckPolicy"` // List of tags. This parameter is used to bind up to 10 tags to newly added instances. InstanceTags []*InstanceTag `json:"InstanceTags,omitempty" name:"InstanceTags"` // CAM role name, which can be obtained from the roleName field in the return value of the DescribeRoleList API. CamRoleName *string `json:"CamRoleName,omitempty" name:"CamRoleName"` // CVM HostName settings. HostNameSettings *HostNameSettings `json:"HostNameSettings,omitempty" name:"HostNameSettings"` // Settings of CVM instance names // If this field is configured in a launch configuration, the `InstanceName` of a CVM created by the scaling group will be generated according to the configuration; otherwise, it will be in the `as-{{AutoScalingGroupName }}` format. InstanceNameSettings *InstanceNameSettings `json:"InstanceNameSettings,omitempty" name:"InstanceNameSettings"` // Sets prepaid billing mode, also known as monthly subscription. This parameter can specify the purchase period and other attributes such as auto-renewal. This parameter is mandatory for prepaid instances. InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` // Selection policy of cloud disks. Default value: ORIGINAL. Valid values: // <br><li>ORIGINAL: uses the configured cloud disk type // <br><li>AUTOMATIC: automatically chooses an available cloud disk type DiskTypePolicy *string `json:"DiskTypePolicy,omitempty" name:"DiskTypePolicy"` }
func NewCreateLaunchConfigurationRequest ¶
func NewCreateLaunchConfigurationRequest() (request *CreateLaunchConfigurationRequest)
func (*CreateLaunchConfigurationRequest) FromJsonString ¶
func (r *CreateLaunchConfigurationRequest) 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 (*CreateLaunchConfigurationRequest) ToJsonString ¶
func (r *CreateLaunchConfigurationRequest) ToJsonString() string
type CreateLaunchConfigurationResponse ¶
type CreateLaunchConfigurationResponse struct { *tchttp.BaseResponse Response *struct { // This parameter is returned when a launch configuration is created through this API, indicating the launch configuration ID. LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateLaunchConfigurationResponse ¶
func NewCreateLaunchConfigurationResponse() (response *CreateLaunchConfigurationResponse)
func (*CreateLaunchConfigurationResponse) FromJsonString ¶
func (r *CreateLaunchConfigurationResponse) 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 (*CreateLaunchConfigurationResponse) ToJsonString ¶
func (r *CreateLaunchConfigurationResponse) ToJsonString() string
type CreateLifecycleHookRequest ¶
type CreateLifecycleHookRequest struct { *tchttp.BaseRequest // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Lifecycle hook name, which can contain Chinese characters, letters, numbers, underscores (_), hyphens (-), and periods (.) with a maximum length of 128 bytes. LifecycleHookName *string `json:"LifecycleHookName,omitempty" name:"LifecycleHookName"` // Scenario for the lifecycle hook. Valid values: "INSTANCE_LAUNCHING" and "INSTANCE_TERMINATING" LifecycleTransition *string `json:"LifecycleTransition,omitempty" name:"LifecycleTransition"` // Defined actions when lifecycle hook times out. Valid values: "CONTINUE" and "ABANDON". Default value: "CONTINUE" DefaultResult *string `json:"DefaultResult,omitempty" name:"DefaultResult"` // The maximum length of time (in seconds) that can elapse before the lifecycle hook times out. Value range: 30-7200. Default value: 300 HeartbeatTimeout *int64 `json:"HeartbeatTimeout,omitempty" name:"HeartbeatTimeout"` // Additional information of a notification that Auto Scaling sends to targets. This parameter is left empty by default. Up to 1024 characters are allowed. NotificationMetadata *string `json:"NotificationMetadata,omitempty" name:"NotificationMetadata"` // Notification target NotificationTarget *NotificationTarget `json:"NotificationTarget,omitempty" name:"NotificationTarget"` // The scenario where the lifecycle hook is applied. `EXTENSION`: the lifecycle hook will be triggered when AttachInstances, DetachInstances or RemoveInstaces is called. `NORMAL`: the lifecycle hook is not triggered by the above APIs. LifecycleTransitionType *string `json:"LifecycleTransitionType,omitempty" name:"LifecycleTransitionType"` }
func NewCreateLifecycleHookRequest ¶
func NewCreateLifecycleHookRequest() (request *CreateLifecycleHookRequest)
func (*CreateLifecycleHookRequest) FromJsonString ¶
func (r *CreateLifecycleHookRequest) 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 (*CreateLifecycleHookRequest) ToJsonString ¶
func (r *CreateLifecycleHookRequest) ToJsonString() string
type CreateLifecycleHookResponse ¶
type CreateLifecycleHookResponse struct { *tchttp.BaseResponse Response *struct { // Lifecycle hook ID LifecycleHookId *string `json:"LifecycleHookId,omitempty" name:"LifecycleHookId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateLifecycleHookResponse ¶
func NewCreateLifecycleHookResponse() (response *CreateLifecycleHookResponse)
func (*CreateLifecycleHookResponse) FromJsonString ¶
func (r *CreateLifecycleHookResponse) 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 (*CreateLifecycleHookResponse) ToJsonString ¶
func (r *CreateLifecycleHookResponse) ToJsonString() string
type CreateNotificationConfigurationRequest ¶
type CreateNotificationConfigurationRequest struct { *tchttp.BaseRequest // Auto scaling group ID. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Notification type, i.e., the set of types of notifications to be subscribed to. Value range: // <li>SCALE_OUT_SUCCESSFUL: scale-out succeeded</li> // <li>SCALE_OUT_FAILED: scale-out failed</li> // <li>SCALE_IN_SUCCESSFUL: scale-in succeeded</li> // <li>SCALE_IN_FAILED: scale-in failed</li> // <li>REPLACE_UNHEALTHY_INSTANCE_SUCCESSFUL: unhealthy instance replacement succeeded</li> // <li>REPLACE_UNHEALTHY_INSTANCE_FAILED: unhealthy instance replacement failed</li> NotificationTypes []*string `json:"NotificationTypes,omitempty" name:"NotificationTypes"` // Notification group ID, which is the set of user group IDs. You can query the user group IDs through the [ListGroups](https://intl.cloud.tencent.com/document/product/598/34589?from_cn_redirect=1) API. NotificationUserGroupIds []*string `json:"NotificationUserGroupIds,omitempty" name:"NotificationUserGroupIds"` }
func NewCreateNotificationConfigurationRequest ¶
func NewCreateNotificationConfigurationRequest() (request *CreateNotificationConfigurationRequest)
func (*CreateNotificationConfigurationRequest) FromJsonString ¶
func (r *CreateNotificationConfigurationRequest) 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 (*CreateNotificationConfigurationRequest) ToJsonString ¶
func (r *CreateNotificationConfigurationRequest) ToJsonString() string
type CreateNotificationConfigurationResponse ¶
type CreateNotificationConfigurationResponse struct { *tchttp.BaseResponse Response *struct { // Notification ID. AutoScalingNotificationId *string `json:"AutoScalingNotificationId,omitempty" name:"AutoScalingNotificationId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateNotificationConfigurationResponse ¶
func NewCreateNotificationConfigurationResponse() (response *CreateNotificationConfigurationResponse)
func (*CreateNotificationConfigurationResponse) FromJsonString ¶
func (r *CreateNotificationConfigurationResponse) 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 (*CreateNotificationConfigurationResponse) ToJsonString ¶
func (r *CreateNotificationConfigurationResponse) ToJsonString() string
type CreateScalingPolicyRequest ¶
type CreateScalingPolicyRequest struct { *tchttp.BaseRequest // Auto scaling group ID. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Alarm trigger policy name. ScalingPolicyName *string `json:"ScalingPolicyName,omitempty" name:"ScalingPolicyName"` // The method to adjust the desired number of instances after the alarm is triggered. Value range: <br><li>CHANGE_IN_CAPACITY: Increase or decrease the desired number of instances </li><li>EXACT_CAPACITY: Adjust to the specified desired number of instances </li> <li>PERCENT_CHANGE_IN_CAPACITY: Adjust the desired number of instances by percentage </li> AdjustmentType *string `json:"AdjustmentType,omitempty" name:"AdjustmentType"` // The adjusted value of desired number of instances after the alarm is triggered. Value range: <br><li>When AdjustmentType is CHANGE_IN_CAPACITY, if AdjustmentValue is a positive value, some new instances will be added after the alarm is triggered, and if it is a negative value, some existing instances will be removed after the alarm is triggered </li> <li> When AdjustmentType is EXACT_CAPACITY, the value of AdjustmentValue is the desired number of instances after the alarm is triggered, which should be equal to or greater than 0 </li> <li> When AdjustmentType is PERCENT_CHANGE_IN_CAPACITY, if AdjusmentValue (in %) is a positive value, new instances will be added by percentage after the alarm is triggered; if it is a negative value, existing instances will be removed by percentage after the alarm is triggered. AdjustmentValue *int64 `json:"AdjustmentValue,omitempty" name:"AdjustmentValue"` // Alarm monitoring metric. MetricAlarm *MetricAlarm `json:"MetricAlarm,omitempty" name:"MetricAlarm"` // Cooldown period in seconds. Default value: 300 seconds. Cooldown *uint64 `json:"Cooldown,omitempty" name:"Cooldown"` // Notification group ID, which is the set of user group IDs. You can query the user group IDs through the [ListGroups](https://intl.cloud.tencent.com/document/product/598/34589?from_cn_redirect=1) API. NotificationUserGroupIds []*string `json:"NotificationUserGroupIds,omitempty" name:"NotificationUserGroupIds"` }
func NewCreateScalingPolicyRequest ¶
func NewCreateScalingPolicyRequest() (request *CreateScalingPolicyRequest)
func (*CreateScalingPolicyRequest) FromJsonString ¶
func (r *CreateScalingPolicyRequest) 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 (*CreateScalingPolicyRequest) ToJsonString ¶
func (r *CreateScalingPolicyRequest) ToJsonString() string
type CreateScalingPolicyResponse ¶
type CreateScalingPolicyResponse struct { *tchttp.BaseResponse Response *struct { // Alarm trigger policy ID. AutoScalingPolicyId *string `json:"AutoScalingPolicyId,omitempty" name:"AutoScalingPolicyId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateScalingPolicyResponse ¶
func NewCreateScalingPolicyResponse() (response *CreateScalingPolicyResponse)
func (*CreateScalingPolicyResponse) FromJsonString ¶
func (r *CreateScalingPolicyResponse) 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 (*CreateScalingPolicyResponse) ToJsonString ¶
func (r *CreateScalingPolicyResponse) ToJsonString() string
type CreateScheduledActionRequest ¶
type CreateScheduledActionRequest struct { *tchttp.BaseRequest // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Scheduled task name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 60 bytes and must be unique in an auto scaling group. ScheduledActionName *string `json:"ScheduledActionName,omitempty" name:"ScheduledActionName"` // The maximum number of instances set for the auto scaling group when the scheduled task is triggered. MaxSize *uint64 `json:"MaxSize,omitempty" name:"MaxSize"` // The minimum number of instances set for the auto scaling group when the scheduled task is triggered. MinSize *uint64 `json:"MinSize,omitempty" name:"MinSize"` // The desired number of instances set for the auto scaling group when the scheduled task is triggered. DesiredCapacity *uint64 `json:"DesiredCapacity,omitempty" name:"DesiredCapacity"` // Initial triggered time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // End time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard. <br><br>This parameter and `Recurrence` need to be specified at the same time. After the end time, the scheduled task will no longer take effect. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Repeating mode of the scheduled task, which is in standard cron format. <br><br>This parameter and `EndTime` need to be specified at the same time. Recurrence *string `json:"Recurrence,omitempty" name:"Recurrence"` }
func NewCreateScheduledActionRequest ¶
func NewCreateScheduledActionRequest() (request *CreateScheduledActionRequest)
func (*CreateScheduledActionRequest) FromJsonString ¶
func (r *CreateScheduledActionRequest) 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 (*CreateScheduledActionRequest) ToJsonString ¶
func (r *CreateScheduledActionRequest) ToJsonString() string
type CreateScheduledActionResponse ¶
type CreateScheduledActionResponse struct { *tchttp.BaseResponse Response *struct { // Scheduled task ID ScheduledActionId *string `json:"ScheduledActionId,omitempty" name:"ScheduledActionId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateScheduledActionResponse ¶
func NewCreateScheduledActionResponse() (response *CreateScheduledActionResponse)
func (*CreateScheduledActionResponse) FromJsonString ¶
func (r *CreateScheduledActionResponse) 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 (*CreateScheduledActionResponse) ToJsonString ¶
func (r *CreateScheduledActionResponse) ToJsonString() string
type DataDisk ¶
type DataDisk struct { // Data disk type. For more information on limits of data disk types, see [Cloud Disk Types](https://intl.cloud.tencent.com/document/product/362/31636). Valid values:<br><li>`LOCAL_BASIC`: local disk <br><li>`LOCAL_SSD`: local SSD disk <br><li>`CLOUD_BASIC`: HDD cloud disk <br><li>`CLOUD_PREMIUM`: premium cloud storage<br><li>`CLOUD_SSD`: SSD cloud disk <br><br>The default value should be the same as the `DiskType` field under `SystemDisk`. // Note: this field may return `null`, indicating that no valid value can be obtained. DiskType *string `json:"DiskType,omitempty" name:"DiskType"` // Data disk size (in GB). The minimum adjustment increment is 10 GB. The value range varies by data disk type. For more information on limits, see [CVM Instance Configuration](https://intl.cloud.tencent.com/document/product/213/2177?from_cn_redirect=1). The default value is 0, indicating that no data disk is purchased. For more information, see the product documentation. // Note: This field may return null, indicating that no valid values can be obtained. DiskSize *uint64 `json:"DiskSize,omitempty" name:"DiskSize"` // Data disk snapshot ID, such as `snap-l8psqwnt`. // Note: This field may return null, indicating that no valid values can be obtained. SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"` }
type DeleteAutoScalingGroupRequest ¶
type DeleteAutoScalingGroupRequest struct { *tchttp.BaseRequest // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` }
func NewDeleteAutoScalingGroupRequest ¶
func NewDeleteAutoScalingGroupRequest() (request *DeleteAutoScalingGroupRequest)
func (*DeleteAutoScalingGroupRequest) FromJsonString ¶
func (r *DeleteAutoScalingGroupRequest) 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 (*DeleteAutoScalingGroupRequest) ToJsonString ¶
func (r *DeleteAutoScalingGroupRequest) ToJsonString() string
type DeleteAutoScalingGroupResponse ¶
type DeleteAutoScalingGroupResponse struct { *tchttp.BaseResponse Response *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"` } `json:"Response"` }
func NewDeleteAutoScalingGroupResponse ¶
func NewDeleteAutoScalingGroupResponse() (response *DeleteAutoScalingGroupResponse)
func (*DeleteAutoScalingGroupResponse) FromJsonString ¶
func (r *DeleteAutoScalingGroupResponse) 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 (*DeleteAutoScalingGroupResponse) ToJsonString ¶
func (r *DeleteAutoScalingGroupResponse) ToJsonString() string
type DeleteLaunchConfigurationRequest ¶
type DeleteLaunchConfigurationRequest struct { *tchttp.BaseRequest // ID of the launch configuration to be deleted. LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` }
func NewDeleteLaunchConfigurationRequest ¶
func NewDeleteLaunchConfigurationRequest() (request *DeleteLaunchConfigurationRequest)
func (*DeleteLaunchConfigurationRequest) FromJsonString ¶
func (r *DeleteLaunchConfigurationRequest) 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 (*DeleteLaunchConfigurationRequest) ToJsonString ¶
func (r *DeleteLaunchConfigurationRequest) ToJsonString() string
type DeleteLaunchConfigurationResponse ¶
type DeleteLaunchConfigurationResponse struct { *tchttp.BaseResponse Response *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"` } `json:"Response"` }
func NewDeleteLaunchConfigurationResponse ¶
func NewDeleteLaunchConfigurationResponse() (response *DeleteLaunchConfigurationResponse)
func (*DeleteLaunchConfigurationResponse) FromJsonString ¶
func (r *DeleteLaunchConfigurationResponse) 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 (*DeleteLaunchConfigurationResponse) ToJsonString ¶
func (r *DeleteLaunchConfigurationResponse) ToJsonString() string
type DeleteLifecycleHookRequest ¶
type DeleteLifecycleHookRequest struct { *tchttp.BaseRequest // Lifecycle hook ID LifecycleHookId *string `json:"LifecycleHookId,omitempty" name:"LifecycleHookId"` }
func NewDeleteLifecycleHookRequest ¶
func NewDeleteLifecycleHookRequest() (request *DeleteLifecycleHookRequest)
func (*DeleteLifecycleHookRequest) FromJsonString ¶
func (r *DeleteLifecycleHookRequest) 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 (*DeleteLifecycleHookRequest) ToJsonString ¶
func (r *DeleteLifecycleHookRequest) ToJsonString() string
type DeleteLifecycleHookResponse ¶
type DeleteLifecycleHookResponse struct { *tchttp.BaseResponse Response *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"` } `json:"Response"` }
func NewDeleteLifecycleHookResponse ¶
func NewDeleteLifecycleHookResponse() (response *DeleteLifecycleHookResponse)
func (*DeleteLifecycleHookResponse) FromJsonString ¶
func (r *DeleteLifecycleHookResponse) 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 (*DeleteLifecycleHookResponse) ToJsonString ¶
func (r *DeleteLifecycleHookResponse) ToJsonString() string
type DeleteNotificationConfigurationRequest ¶
type DeleteNotificationConfigurationRequest struct { *tchttp.BaseRequest // ID of the notification to be deleted. AutoScalingNotificationId *string `json:"AutoScalingNotificationId,omitempty" name:"AutoScalingNotificationId"` }
func NewDeleteNotificationConfigurationRequest ¶
func NewDeleteNotificationConfigurationRequest() (request *DeleteNotificationConfigurationRequest)
func (*DeleteNotificationConfigurationRequest) FromJsonString ¶
func (r *DeleteNotificationConfigurationRequest) 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 (*DeleteNotificationConfigurationRequest) ToJsonString ¶
func (r *DeleteNotificationConfigurationRequest) ToJsonString() string
type DeleteNotificationConfigurationResponse ¶
type DeleteNotificationConfigurationResponse struct { *tchttp.BaseResponse Response *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"` } `json:"Response"` }
func NewDeleteNotificationConfigurationResponse ¶
func NewDeleteNotificationConfigurationResponse() (response *DeleteNotificationConfigurationResponse)
func (*DeleteNotificationConfigurationResponse) FromJsonString ¶
func (r *DeleteNotificationConfigurationResponse) 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 (*DeleteNotificationConfigurationResponse) ToJsonString ¶
func (r *DeleteNotificationConfigurationResponse) ToJsonString() string
type DeleteScalingPolicyRequest ¶
type DeleteScalingPolicyRequest struct { *tchttp.BaseRequest // ID of the alarm policy to be deleted. AutoScalingPolicyId *string `json:"AutoScalingPolicyId,omitempty" name:"AutoScalingPolicyId"` }
func NewDeleteScalingPolicyRequest ¶
func NewDeleteScalingPolicyRequest() (request *DeleteScalingPolicyRequest)
func (*DeleteScalingPolicyRequest) FromJsonString ¶
func (r *DeleteScalingPolicyRequest) 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 (*DeleteScalingPolicyRequest) ToJsonString ¶
func (r *DeleteScalingPolicyRequest) ToJsonString() string
type DeleteScalingPolicyResponse ¶
type DeleteScalingPolicyResponse struct { *tchttp.BaseResponse Response *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"` } `json:"Response"` }
func NewDeleteScalingPolicyResponse ¶
func NewDeleteScalingPolicyResponse() (response *DeleteScalingPolicyResponse)
func (*DeleteScalingPolicyResponse) FromJsonString ¶
func (r *DeleteScalingPolicyResponse) 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 (*DeleteScalingPolicyResponse) ToJsonString ¶
func (r *DeleteScalingPolicyResponse) ToJsonString() string
type DeleteScheduledActionRequest ¶
type DeleteScheduledActionRequest struct { *tchttp.BaseRequest // ID of the scheduled task to be deleted. ScheduledActionId *string `json:"ScheduledActionId,omitempty" name:"ScheduledActionId"` }
func NewDeleteScheduledActionRequest ¶
func NewDeleteScheduledActionRequest() (request *DeleteScheduledActionRequest)
func (*DeleteScheduledActionRequest) FromJsonString ¶
func (r *DeleteScheduledActionRequest) 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 (*DeleteScheduledActionRequest) ToJsonString ¶
func (r *DeleteScheduledActionRequest) ToJsonString() string
type DeleteScheduledActionResponse ¶
type DeleteScheduledActionResponse struct { *tchttp.BaseResponse Response *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"` } `json:"Response"` }
func NewDeleteScheduledActionResponse ¶
func NewDeleteScheduledActionResponse() (response *DeleteScheduledActionResponse)
func (*DeleteScheduledActionResponse) FromJsonString ¶
func (r *DeleteScheduledActionResponse) 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 (*DeleteScheduledActionResponse) ToJsonString ¶
func (r *DeleteScheduledActionResponse) ToJsonString() string
type DescribeAccountLimitsRequest ¶
type DescribeAccountLimitsRequest struct {
*tchttp.BaseRequest
}
func NewDescribeAccountLimitsRequest ¶
func NewDescribeAccountLimitsRequest() (request *DescribeAccountLimitsRequest)
func (*DescribeAccountLimitsRequest) FromJsonString ¶
func (r *DescribeAccountLimitsRequest) 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 (*DescribeAccountLimitsRequest) ToJsonString ¶
func (r *DescribeAccountLimitsRequest) ToJsonString() string
type DescribeAccountLimitsResponse ¶
type DescribeAccountLimitsResponse struct { *tchttp.BaseResponse Response *struct { // Maximum number of launch configurations allowed for creation by the user account MaxNumberOfLaunchConfigurations *int64 `json:"MaxNumberOfLaunchConfigurations,omitempty" name:"MaxNumberOfLaunchConfigurations"` // Current number of launch configurations under the user account NumberOfLaunchConfigurations *int64 `json:"NumberOfLaunchConfigurations,omitempty" name:"NumberOfLaunchConfigurations"` // Maximum number of auto scaling groups allowed for creation by the user account MaxNumberOfAutoScalingGroups *int64 `json:"MaxNumberOfAutoScalingGroups,omitempty" name:"MaxNumberOfAutoScalingGroups"` // Current number of auto scaling groups under the user account NumberOfAutoScalingGroups *int64 `json:"NumberOfAutoScalingGroups,omitempty" name:"NumberOfAutoScalingGroups"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeAccountLimitsResponse ¶
func NewDescribeAccountLimitsResponse() (response *DescribeAccountLimitsResponse)
func (*DescribeAccountLimitsResponse) FromJsonString ¶
func (r *DescribeAccountLimitsResponse) 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 (*DescribeAccountLimitsResponse) ToJsonString ¶
func (r *DescribeAccountLimitsResponse) ToJsonString() string
type DescribeAutoScalingActivitiesRequest ¶
type DescribeAutoScalingActivitiesRequest struct { *tchttp.BaseRequest // Queries by one or more scaling activity IDs in the format of `asa-5l2ejpfo`. The maximum quantity per request is 100. This parameter does not support specifying both `ActivityIds` and `Filters` at the same time. ActivityIds []*string `json:"ActivityIds,omitempty" name:"ActivityIds"` // Filter. // <li> auto-scaling-group-id - String - Required: No - (Filter) Filter by auto scaling group ID.</li> // <li> activity-status-code - String - Required: No - (Filter) Filter by scaling activity status . (INIT: initializing | RUNNING: running | SUCCESSFUL: succeeded | PARTIALLY_SUCCESSFUL: partially succeeded | FAILED: failed | CANCELLED: canceled)</li> // <li> activity-type - String - Required: No - (Filter) Filter by scaling activity type. (SCALE_OUT: scale-out | SCALE_IN: scale-in | ATTACH_INSTANCES: adding an instance | REMOVE_INSTANCES: terminating an instance | DETACH_INSTANCES: removing an instance | TERMINATE_INSTANCES_UNEXPECTEDLY: terminating an instance in the CVM console | REPLACE_UNHEALTHY_INSTANCE: replacing an unhealthy instance | UPDATE_LOAD_BALANCERS: updating a load balancer)</li> // <li> activity-id - String - Required: No - (Filter) Filter by scaling activity ID.</li> // The maximum number of `Filters` per request is 10. The upper limit for `Filter.Values` is 5. This parameter does not support specifying both `ActivityIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset. Default value: 0. For more information on `Offset`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // The earliest start time of the scaling activity, which will be ignored if ActivityIds is specified. The value is in `UTC time` in the format of `YYYY-MM-DDThh:mm:ssZ` according to the `ISO8601` standard. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // The latest end time of the scaling activity, which will be ignored if ActivityIds is specified. The value is in `UTC time` in the format of `YYYY-MM-DDThh:mm:ssZ` according to the `ISO8601` standard. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` }
func NewDescribeAutoScalingActivitiesRequest ¶
func NewDescribeAutoScalingActivitiesRequest() (request *DescribeAutoScalingActivitiesRequest)
func (*DescribeAutoScalingActivitiesRequest) FromJsonString ¶
func (r *DescribeAutoScalingActivitiesRequest) 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 (*DescribeAutoScalingActivitiesRequest) ToJsonString ¶
func (r *DescribeAutoScalingActivitiesRequest) ToJsonString() string
type DescribeAutoScalingActivitiesResponse ¶
type DescribeAutoScalingActivitiesResponse struct { *tchttp.BaseResponse Response *struct { // Number of eligible scaling activities. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // Information set of eligible scaling activities. ActivitySet []*Activity `json:"ActivitySet,omitempty" name:"ActivitySet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeAutoScalingActivitiesResponse ¶
func NewDescribeAutoScalingActivitiesResponse() (response *DescribeAutoScalingActivitiesResponse)
func (*DescribeAutoScalingActivitiesResponse) FromJsonString ¶
func (r *DescribeAutoScalingActivitiesResponse) 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 (*DescribeAutoScalingActivitiesResponse) ToJsonString ¶
func (r *DescribeAutoScalingActivitiesResponse) ToJsonString() string
type DescribeAutoScalingGroupLastActivitiesRequest ¶
type DescribeAutoScalingGroupLastActivitiesRequest struct { *tchttp.BaseRequest // ID list of an auto scaling group. AutoScalingGroupIds []*string `json:"AutoScalingGroupIds,omitempty" name:"AutoScalingGroupIds"` }
func NewDescribeAutoScalingGroupLastActivitiesRequest ¶
func NewDescribeAutoScalingGroupLastActivitiesRequest() (request *DescribeAutoScalingGroupLastActivitiesRequest)
func (*DescribeAutoScalingGroupLastActivitiesRequest) FromJsonString ¶
func (r *DescribeAutoScalingGroupLastActivitiesRequest) 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 (*DescribeAutoScalingGroupLastActivitiesRequest) ToJsonString ¶
func (r *DescribeAutoScalingGroupLastActivitiesRequest) ToJsonString() string
type DescribeAutoScalingGroupLastActivitiesResponse ¶
type DescribeAutoScalingGroupLastActivitiesResponse struct { *tchttp.BaseResponse Response *struct { // Information set of eligible scaling activities. Scaling groups without scaling activities are not returned. For example, if there are 50 auto scaling group IDs but only 45 records are returned, it indicates that 5 of the auto scaling groups do not have scaling activities. ActivitySet []*Activity `json:"ActivitySet,omitempty" name:"ActivitySet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeAutoScalingGroupLastActivitiesResponse ¶
func NewDescribeAutoScalingGroupLastActivitiesResponse() (response *DescribeAutoScalingGroupLastActivitiesResponse)
func (*DescribeAutoScalingGroupLastActivitiesResponse) FromJsonString ¶
func (r *DescribeAutoScalingGroupLastActivitiesResponse) 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 (*DescribeAutoScalingGroupLastActivitiesResponse) ToJsonString ¶
func (r *DescribeAutoScalingGroupLastActivitiesResponse) ToJsonString() string
type DescribeAutoScalingGroupsRequest ¶
type DescribeAutoScalingGroupsRequest struct { *tchttp.BaseRequest // Queries by one or more auto scaling group IDs in the format of `asg-nkdwoui0`. The maximum quantity per request is 100. This parameter does not support specifying both `AutoScalingGroupIds` and `Filters` at the same time. AutoScalingGroupIds []*string `json:"AutoScalingGroupIds,omitempty" name:"AutoScalingGroupIds"` // Filters. // <li> auto-scaling-group-id - String - Required: No - (Filter) Filter by auto scaling group ID.</li> // <li> auto-scaling-group-name - String - Required: No - (Filter) Filter by auto scaling group name.</li> // <li> vague-auto-scaling-group-name - String - Required: No - (Filter) Fuzzy search by auto scaling group name.</li> // <li> launch-configuration-id - String - Required: No - (Filter) Filter by launch configuration ID.</li> // <li> tag-key - String - Required: No - (Filter) Filter by tag key.</li> // <li> tag-value - String - Required: No - (Filter) Filter by tag value.</li> // <li> tag:tag-key - String - Required: No - (Filter) Filter by tag key-value pair. The tag-key should be replaced with a specified tag key. For more information, see example 2.</li> // The maximum number of `Filters` in each request is 10. The upper limit for `Filter.Values` is 5. This parameter cannot specify `AutoScalingGroupIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset. Default value: 0. For more information on `Offset`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeAutoScalingGroupsRequest ¶
func NewDescribeAutoScalingGroupsRequest() (request *DescribeAutoScalingGroupsRequest)
func (*DescribeAutoScalingGroupsRequest) FromJsonString ¶
func (r *DescribeAutoScalingGroupsRequest) 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 (*DescribeAutoScalingGroupsRequest) ToJsonString ¶
func (r *DescribeAutoScalingGroupsRequest) ToJsonString() string
type DescribeAutoScalingGroupsResponse ¶
type DescribeAutoScalingGroupsResponse struct { *tchttp.BaseResponse Response *struct { // List of auto scaling group details. AutoScalingGroupSet []*AutoScalingGroup `json:"AutoScalingGroupSet,omitempty" name:"AutoScalingGroupSet"` // Number of eligible auto scaling groups. TotalCount *uint64 `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"` } `json:"Response"` }
func NewDescribeAutoScalingGroupsResponse ¶
func NewDescribeAutoScalingGroupsResponse() (response *DescribeAutoScalingGroupsResponse)
func (*DescribeAutoScalingGroupsResponse) FromJsonString ¶
func (r *DescribeAutoScalingGroupsResponse) 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 (*DescribeAutoScalingGroupsResponse) ToJsonString ¶
func (r *DescribeAutoScalingGroupsResponse) ToJsonString() string
type DescribeAutoScalingInstancesRequest ¶
type DescribeAutoScalingInstancesRequest struct { *tchttp.BaseRequest // ID of the CVM instance to be queried. This parameter does not support specifying both InstanceIds and Filters at the same time. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Filter. // <li> instance-id - String - Required: No - (Filter) Filter by instance ID.</li> // <li> auto-scaling-group-id - String - Required: No - (Filter) Filter by auto scaling group ID.</li> // The maximum number of `Filters` per request is 10. The upper limit for `Filter.Values` is 5. This parameter does not support specifying both `InstanceIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Offset. Default value: 0. For more information on `Offset`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?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`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeAutoScalingInstancesRequest ¶
func NewDescribeAutoScalingInstancesRequest() (request *DescribeAutoScalingInstancesRequest)
func (*DescribeAutoScalingInstancesRequest) FromJsonString ¶
func (r *DescribeAutoScalingInstancesRequest) 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 (*DescribeAutoScalingInstancesRequest) ToJsonString ¶
func (r *DescribeAutoScalingInstancesRequest) ToJsonString() string
type DescribeAutoScalingInstancesResponse ¶
type DescribeAutoScalingInstancesResponse struct { *tchttp.BaseResponse Response *struct { // List of instance details. AutoScalingInstanceSet []*Instance `json:"AutoScalingInstanceSet,omitempty" name:"AutoScalingInstanceSet"` // Number of eligible instances. TotalCount *uint64 `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"` } `json:"Response"` }
func NewDescribeAutoScalingInstancesResponse ¶
func NewDescribeAutoScalingInstancesResponse() (response *DescribeAutoScalingInstancesResponse)
func (*DescribeAutoScalingInstancesResponse) FromJsonString ¶
func (r *DescribeAutoScalingInstancesResponse) 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 (*DescribeAutoScalingInstancesResponse) ToJsonString ¶
func (r *DescribeAutoScalingInstancesResponse) ToJsonString() string
type DescribeLaunchConfigurationsRequest ¶
type DescribeLaunchConfigurationsRequest struct { *tchttp.BaseRequest // Queries by one or more launch configuration IDs in the format of `asc-ouy1ax38`. The maximum quantity per request is 100. This parameter does not support specifying both `LaunchConfigurationIds` and `Filters` at the same time. LaunchConfigurationIds []*string `json:"LaunchConfigurationIds,omitempty" name:"LaunchConfigurationIds"` // Filters. // <li> launch-configuration-id - String - Required: No - (Filter) Filter by launch configuration ID.</li> // <li> launch-configuration-name - String - Required: No - (Filter) Filter by launch configuration name.</li> // <li> launch-configuration-name - String - Required: No - (Filter) Fuzzy search by launch configuration name.</li> // The maximum number of `Filters` in each request is 10. The upper limit for `Filter.Values` is 5. This parameter cannot specify `LaunchConfigurationIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset. Default value: 0. For more information on `Offset`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeLaunchConfigurationsRequest ¶
func NewDescribeLaunchConfigurationsRequest() (request *DescribeLaunchConfigurationsRequest)
func (*DescribeLaunchConfigurationsRequest) FromJsonString ¶
func (r *DescribeLaunchConfigurationsRequest) 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 (*DescribeLaunchConfigurationsRequest) ToJsonString ¶
func (r *DescribeLaunchConfigurationsRequest) ToJsonString() string
type DescribeLaunchConfigurationsResponse ¶
type DescribeLaunchConfigurationsResponse struct { *tchttp.BaseResponse Response *struct { // Number of eligible launch configurations. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of launch configuration details. LaunchConfigurationSet []*LaunchConfiguration `json:"LaunchConfigurationSet,omitempty" name:"LaunchConfigurationSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeLaunchConfigurationsResponse ¶
func NewDescribeLaunchConfigurationsResponse() (response *DescribeLaunchConfigurationsResponse)
func (*DescribeLaunchConfigurationsResponse) FromJsonString ¶
func (r *DescribeLaunchConfigurationsResponse) 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 (*DescribeLaunchConfigurationsResponse) ToJsonString ¶
func (r *DescribeLaunchConfigurationsResponse) ToJsonString() string
type DescribeLifecycleHooksRequest ¶
type DescribeLifecycleHooksRequest struct { *tchttp.BaseRequest // Queries by one or more lifecycle hook IDs in the format of `ash-8azjzxcl`. The maximum quantity per request is 100. This parameter does not support specifying both `LifecycleHookIds` and `Filters` at the same time. LifecycleHookIds []*string `json:"LifecycleHookIds,omitempty" name:"LifecycleHookIds"` // Filter. // <li> lifecycle-hook-id - String - Required: No - (Filter) Filter by lifecycle hook ID.</li> // <li> lifecycle-hook-name - String - Required: No - (Filter) Filter by lifecycle hook name.</li> // <li> auto-scaling-group-id - String - Required: No - (Filter) Filter by auto scaling group ID.</li> // Filter. // <li> lifecycle-hook-id - String - Required: No - (Filter) Filter by lifecycle hook ID.</li> // <li> lifecycle-hook-name - String - Required: No - (Filter) Filter by lifecycle hook name.</li> // <li> auto-scaling-group-id - String - Required: No - (Filter) Filter by auto scaling group ID.</li> // The maximum number of `Filters` per request is 10. The upper limit for `Filter.Values` is 5. This parameter does not support specifying both `LifecycleHookIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset. Default value: 0. For more information on `Offset`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeLifecycleHooksRequest ¶
func NewDescribeLifecycleHooksRequest() (request *DescribeLifecycleHooksRequest)
func (*DescribeLifecycleHooksRequest) FromJsonString ¶
func (r *DescribeLifecycleHooksRequest) 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 (*DescribeLifecycleHooksRequest) ToJsonString ¶
func (r *DescribeLifecycleHooksRequest) ToJsonString() string
type DescribeLifecycleHooksResponse ¶
type DescribeLifecycleHooksResponse struct { *tchttp.BaseResponse Response *struct { // Array of lifecycle hooks LifecycleHookSet []*LifecycleHook `json:"LifecycleHookSet,omitempty" name:"LifecycleHookSet"` // Total quantity 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"` } `json:"Response"` }
func NewDescribeLifecycleHooksResponse ¶
func NewDescribeLifecycleHooksResponse() (response *DescribeLifecycleHooksResponse)
func (*DescribeLifecycleHooksResponse) FromJsonString ¶
func (r *DescribeLifecycleHooksResponse) 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 (*DescribeLifecycleHooksResponse) ToJsonString ¶
func (r *DescribeLifecycleHooksResponse) ToJsonString() string
type DescribeNotificationConfigurationsRequest ¶
type DescribeNotificationConfigurationsRequest struct { *tchttp.BaseRequest // Queries by one or more notification IDs in the format of asn-2sestqbr. The maximum number of instances per request is 100. This parameter does not support specifying both `AutoScalingNotificationIds` and `Filters` at the same time. AutoScalingNotificationIds []*string `json:"AutoScalingNotificationIds,omitempty" name:"AutoScalingNotificationIds"` // Filter. // <li> auto-scaling-notification-id - String - Required: No - (Filter) Filter by notification ID.</li> // <li> auto-scaling-group-id - String - Required: No - (Filter) Filter by auto scaling group ID.</li> // The maximum number of `Filters` per request is 10. The upper limit for `Filter.Values` is 5. This parameter does not support specifying both `AutoScalingNotificationIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset. Default value: 0. For more information on `Offset`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeNotificationConfigurationsRequest ¶
func NewDescribeNotificationConfigurationsRequest() (request *DescribeNotificationConfigurationsRequest)
func (*DescribeNotificationConfigurationsRequest) FromJsonString ¶
func (r *DescribeNotificationConfigurationsRequest) 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 (*DescribeNotificationConfigurationsRequest) ToJsonString ¶
func (r *DescribeNotificationConfigurationsRequest) ToJsonString() string
type DescribeNotificationConfigurationsResponse ¶
type DescribeNotificationConfigurationsResponse struct { *tchttp.BaseResponse Response *struct { // Number of eligible notifications. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of AS event notification details. AutoScalingNotificationSet []*AutoScalingNotification `json:"AutoScalingNotificationSet,omitempty" name:"AutoScalingNotificationSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeNotificationConfigurationsResponse ¶
func NewDescribeNotificationConfigurationsResponse() (response *DescribeNotificationConfigurationsResponse)
func (*DescribeNotificationConfigurationsResponse) FromJsonString ¶
func (r *DescribeNotificationConfigurationsResponse) 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 (*DescribeNotificationConfigurationsResponse) ToJsonString ¶
func (r *DescribeNotificationConfigurationsResponse) ToJsonString() string
type DescribeScalingPoliciesRequest ¶
type DescribeScalingPoliciesRequest struct { *tchttp.BaseRequest // Queries by one or more alarm policy IDs in the format of asp-i9vkg894. The maximum number of instances per request is 100. This parameter does not support specifying both `AutoScalingPolicyIds` and `Filters` at the same time. AutoScalingPolicyIds []*string `json:"AutoScalingPolicyIds,omitempty" name:"AutoScalingPolicyIds"` // Filter. // <li> auto-scaling-policy-id - String - Required: No - (Filter) Filter by alarm policy ID.</li> // <li> auto-scaling-group-id - String - Required: No - (Filter) Filter by auto scaling group ID.</li> // <li> scaling-policy-name - String - Required: No - (Filter) Filter by alarm policy name.</li> // The maximum number of `Filters` per request is 10. The upper limit for `Filter.Values` is 5. This parameter does not support specifying both `AutoScalingPolicyIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset. Default value: 0. For more information on `Offset`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeScalingPoliciesRequest ¶
func NewDescribeScalingPoliciesRequest() (request *DescribeScalingPoliciesRequest)
func (*DescribeScalingPoliciesRequest) FromJsonString ¶
func (r *DescribeScalingPoliciesRequest) 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 (*DescribeScalingPoliciesRequest) ToJsonString ¶
func (r *DescribeScalingPoliciesRequest) ToJsonString() string
type DescribeScalingPoliciesResponse ¶
type DescribeScalingPoliciesResponse struct { *tchttp.BaseResponse Response *struct { // List of AS alarm trigger policy details. ScalingPolicySet []*ScalingPolicy `json:"ScalingPolicySet,omitempty" name:"ScalingPolicySet"` // Number of eligible notifications. TotalCount *uint64 `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"` } `json:"Response"` }
func NewDescribeScalingPoliciesResponse ¶
func NewDescribeScalingPoliciesResponse() (response *DescribeScalingPoliciesResponse)
func (*DescribeScalingPoliciesResponse) FromJsonString ¶
func (r *DescribeScalingPoliciesResponse) 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 (*DescribeScalingPoliciesResponse) ToJsonString ¶
func (r *DescribeScalingPoliciesResponse) ToJsonString() string
type DescribeScheduledActionsRequest ¶
type DescribeScheduledActionsRequest struct { *tchttp.BaseRequest // Queries by one or more scheduled task IDs in the format of asst-am691zxo. The maximum number of instances per request is 100. This parameter does not support specifying both ScheduledActionIds` and `Filters` at the same time. ScheduledActionIds []*string `json:"ScheduledActionIds,omitempty" name:"ScheduledActionIds"` // Filter. // <li> scheduled-action-id - String - Required: No - (Filter) Filter by scheduled task ID.</li> // <li> scheduled-action-name - String - Required: No - (Filter) Filter by scheduled task name.</li> // <li> auto-scaling-group-id - String - Required: No - (Filter) Filter by auto scaling group ID.</li> Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Offset. Default value: 0. For more information on `Offset`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeScheduledActionsRequest ¶
func NewDescribeScheduledActionsRequest() (request *DescribeScheduledActionsRequest)
func (*DescribeScheduledActionsRequest) FromJsonString ¶
func (r *DescribeScheduledActionsRequest) 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 (*DescribeScheduledActionsRequest) ToJsonString ¶
func (r *DescribeScheduledActionsRequest) ToJsonString() string
type DescribeScheduledActionsResponse ¶
type DescribeScheduledActionsResponse struct { *tchttp.BaseResponse Response *struct { // Number of eligible scheduled tasks. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of scheduled task details. ScheduledActionSet []*ScheduledAction `json:"ScheduledActionSet,omitempty" name:"ScheduledActionSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeScheduledActionsResponse ¶
func NewDescribeScheduledActionsResponse() (response *DescribeScheduledActionsResponse)
func (*DescribeScheduledActionsResponse) FromJsonString ¶
func (r *DescribeScheduledActionsResponse) 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 (*DescribeScheduledActionsResponse) ToJsonString ¶
func (r *DescribeScheduledActionsResponse) ToJsonString() string
type DetachInstancesRequest ¶
type DetachInstancesRequest struct { *tchttp.BaseRequest // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // List of CVM instance IDs InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewDetachInstancesRequest ¶
func NewDetachInstancesRequest() (request *DetachInstancesRequest)
func (*DetachInstancesRequest) FromJsonString ¶
func (r *DetachInstancesRequest) 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 (*DetachInstancesRequest) ToJsonString ¶
func (r *DetachInstancesRequest) ToJsonString() string
type DetachInstancesResponse ¶
type DetachInstancesResponse struct { *tchttp.BaseResponse Response *struct { // Scaling activity ID ActivityId *string `json:"ActivityId,omitempty" name:"ActivityId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDetachInstancesResponse ¶
func NewDetachInstancesResponse() (response *DetachInstancesResponse)
func (*DetachInstancesResponse) FromJsonString ¶
func (r *DetachInstancesResponse) 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 (*DetachInstancesResponse) ToJsonString ¶
func (r *DetachInstancesResponse) ToJsonString() string
type DetailedStatusMessage ¶
type DetailedStatusMessage struct { // Error type Code *string `json:"Code,omitempty" name:"Code"` // AZ information Zone *string `json:"Zone,omitempty" name:"Zone"` // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Instance billing mode InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` // Subnet ID SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // Error message Message *string `json:"Message,omitempty" name:"Message"` // Instance type InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` }
type DisableAutoScalingGroupRequest ¶
type DisableAutoScalingGroupRequest struct { *tchttp.BaseRequest // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` }
func NewDisableAutoScalingGroupRequest ¶
func NewDisableAutoScalingGroupRequest() (request *DisableAutoScalingGroupRequest)
func (*DisableAutoScalingGroupRequest) FromJsonString ¶
func (r *DisableAutoScalingGroupRequest) 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 (*DisableAutoScalingGroupRequest) ToJsonString ¶
func (r *DisableAutoScalingGroupRequest) ToJsonString() string
type DisableAutoScalingGroupResponse ¶
type DisableAutoScalingGroupResponse struct { *tchttp.BaseResponse Response *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"` } `json:"Response"` }
func NewDisableAutoScalingGroupResponse ¶
func NewDisableAutoScalingGroupResponse() (response *DisableAutoScalingGroupResponse)
func (*DisableAutoScalingGroupResponse) FromJsonString ¶
func (r *DisableAutoScalingGroupResponse) 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 (*DisableAutoScalingGroupResponse) ToJsonString ¶
func (r *DisableAutoScalingGroupResponse) ToJsonString() string
type EnableAutoScalingGroupRequest ¶
type EnableAutoScalingGroupRequest struct { *tchttp.BaseRequest // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` }
func NewEnableAutoScalingGroupRequest ¶
func NewEnableAutoScalingGroupRequest() (request *EnableAutoScalingGroupRequest)
func (*EnableAutoScalingGroupRequest) FromJsonString ¶
func (r *EnableAutoScalingGroupRequest) 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 (*EnableAutoScalingGroupRequest) ToJsonString ¶
func (r *EnableAutoScalingGroupRequest) ToJsonString() string
type EnableAutoScalingGroupResponse ¶
type EnableAutoScalingGroupResponse struct { *tchttp.BaseResponse Response *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"` } `json:"Response"` }
func NewEnableAutoScalingGroupResponse ¶
func NewEnableAutoScalingGroupResponse() (response *EnableAutoScalingGroupResponse)
func (*EnableAutoScalingGroupResponse) FromJsonString ¶
func (r *EnableAutoScalingGroupResponse) 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 (*EnableAutoScalingGroupResponse) ToJsonString ¶
func (r *EnableAutoScalingGroupResponse) ToJsonString() string
type EnhancedService ¶
type EnhancedService struct { // Enables the Cloud Security service. If this parameter is not specified, the Cloud Security service will be enabled by default. SecurityService *RunSecurityServiceEnabled `json:"SecurityService,omitempty" name:"SecurityService"` // Enables the Cloud Monitor service. If this parameter is not specified, the Cloud Monitor service will be enabled by default. MonitorService *RunMonitorServiceEnabled `json:"MonitorService,omitempty" name:"MonitorService"` }
type ExecuteScalingPolicyRequest ¶
type ExecuteScalingPolicyRequest struct { *tchttp.BaseRequest // Alarm-based scaling policy ID AutoScalingPolicyId *string `json:"AutoScalingPolicyId,omitempty" name:"AutoScalingPolicyId"` // Whether to check if the auto scaling group is in the cooldown period. Default value: false HonorCooldown *bool `json:"HonorCooldown,omitempty" name:"HonorCooldown"` // Source that triggers the scaling policy. Valid values: API and CLOUD_MONITOR. Default value: API. The value `CLOUD_MONITOR` is specific to the Cloud Monitor service. TriggerSource *string `json:"TriggerSource,omitempty" name:"TriggerSource"` }
func NewExecuteScalingPolicyRequest ¶
func NewExecuteScalingPolicyRequest() (request *ExecuteScalingPolicyRequest)
func (*ExecuteScalingPolicyRequest) FromJsonString ¶
func (r *ExecuteScalingPolicyRequest) 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 (*ExecuteScalingPolicyRequest) ToJsonString ¶
func (r *ExecuteScalingPolicyRequest) ToJsonString() string
type ExecuteScalingPolicyResponse ¶
type ExecuteScalingPolicyResponse struct { *tchttp.BaseResponse Response *struct { // Scaling activity ID ActivityId *string `json:"ActivityId,omitempty" name:"ActivityId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewExecuteScalingPolicyResponse ¶
func NewExecuteScalingPolicyResponse() (response *ExecuteScalingPolicyResponse)
func (*ExecuteScalingPolicyResponse) FromJsonString ¶
func (r *ExecuteScalingPolicyResponse) 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 (*ExecuteScalingPolicyResponse) ToJsonString ¶
func (r *ExecuteScalingPolicyResponse) ToJsonString() string
type ForwardLoadBalancer ¶
type ForwardLoadBalancer struct { // Load balancer ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // Application load balancer listener ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // List of target rule attributes TargetAttributes []*TargetAttribute `json:"TargetAttributes,omitempty" name:"TargetAttributes"` // ID of a forwarding rule. This parameter is required for layer-7 listeners. LocationId *string `json:"LocationId,omitempty" name:"LocationId"` // The region of CLB instance. It defaults to the region of AS service and is in the format of the common parameter `Region`, such as `ap-guangzhou`. Region *string `json:"Region,omitempty" name:"Region"` }
type HostNameSettings ¶
type HostNameSettings struct { // Hostname of a CVM // <br><li>The `HostName` cannot start or end with a period (.) or hyphen (-), and cannot contain consecutive periods and hyphens. // <br><li>This field is unavailable to CVM instances. // <br><li>Other types of instances (such as Linux): the name contains 2 to 40 characters, and supports multiple periods (.). The string between two periods can consist of letters (case insensitive), numbers, and hyphens (-), and cannot be all numbers. // Note: this field may return `null`, indicating that no valid value is obtained. HostName *string `json:"HostName,omitempty" name:"HostName"` // Type of CVM host name. Valid values: "ORIGINAL" and "UNIQUE". Default value: "ORIGINAL" // <br><li> ORIGINAL. Auto Scaling transfers the HostName set in input parameters to the CVM directly. CVM may adds serial numbers for the HostName. The HostName of instances within the auto scaling group may conflict. // <br><li> UNIQUE. The HostName set in input parameters is the prefix of a host name. Auto Scaling and CVM expand it. The HostName of an instance in the auto scaling group is unique. // Note: This field may return null, indicating that no valid values can be obtained. HostNameStyle *string `json:"HostNameStyle,omitempty" name:"HostNameStyle"` }
type Instance ¶
type Instance struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Launch configuration ID LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // Launch configuration name LaunchConfigurationName *string `json:"LaunchConfigurationName,omitempty" name:"LaunchConfigurationName"` // Lifecycle status. Valid values:<br> // <li>IN_SERVICE: the instance is running. // <li>CREATING: the instance is being created. // <li>CREATION_FAILED: the instance fails to be created. // <li>TERMINATING: the instance is being terminated. // <li>TERMINATION_FAILED: the instance fails to be terminated. // <li>ATTACHING: the instance is being bound. // <li>DETACHING: the instance is being unbound. // <li>ATTACHING_LB: the instance is being bound to an LB.<li>DETACHING_LB: the instance is being unbound from an LB. // <li>STARTING: the instance is being started. // <li>START_FAILED: the instance fails to be started. // <li>STOPPING: the instance is being stopped. // <li>STOP_FAILED: the instance fails to be stopped. // <li>STOPPED: the instance is stopped. LifeCycleState *string `json:"LifeCycleState,omitempty" name:"LifeCycleState"` // Health status. Value range: HEALTHY, UNHEALTHY HealthStatus *string `json:"HealthStatus,omitempty" name:"HealthStatus"` // Whether to add scale-in protection ProtectedFromScaleIn *bool `json:"ProtectedFromScaleIn,omitempty" name:"ProtectedFromScaleIn"` // Availability zone Zone *string `json:"Zone,omitempty" name:"Zone"` // Creation type. Value range: AUTO_CREATION, MANUAL_ATTACHING. CreationType *string `json:"CreationType,omitempty" name:"CreationType"` // Instance addition time AddTime *string `json:"AddTime,omitempty" name:"AddTime"` // Instance type InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` // Version number VersionNumber *int64 `json:"VersionNumber,omitempty" name:"VersionNumber"` // Auto scaling group name AutoScalingGroupName *string `json:"AutoScalingGroupName,omitempty" name:"AutoScalingGroupName"` }
type InstanceChargePrepaid ¶
type InstanceChargePrepaid struct { // Purchased usage period of an instance in months. Value range: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. Period *int64 `json:"Period,omitempty" name:"Period"` // Auto-renewal flag. Value range: <br><li>NOTIFY_AND_AUTO_RENEW: Notify expiry and renew automatically <br><li>NOTIFY_AND_MANUAL_RENEW: Notify expiry but not renew automatically <br><li>DISABLE_NOTIFY_AND_MANUAL_RENEW: Neither notify expiry 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 on a monthly basis if the account balance is sufficient. RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` }
type InstanceMarketOptionsRequest ¶
type InstanceMarketOptionsRequest struct { // Bidding-related options SpotOptions *SpotMarketOptions `json:"SpotOptions,omitempty" name:"SpotOptions"` // Market option type. Currently, this only supports the value "spot" // Note: This field may return null, indicating that no valid values can be obtained. MarketType *string `json:"MarketType,omitempty" name:"MarketType"` }
type InstanceNameSettings ¶
type InstanceNameSettings struct { // CVM instance name // // The `InstanceName` cannot start or end with a dot (.) or hyphen (-), and cannot contain consecutive dots and hyphens. // The name contains 2 to 40 characters, and supports multiple dots (.). The string between two dots can consist of letters (case-insensitive), numbers, and hyphens (-), and cannot be all numbers. InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // Type of CVM instance name. Valid values: `ORIGINAL` and `UNIQUE`. Default value: `ORIGINAL`. // // `ORIGINAL`: Auto Scaling sends the input parameter `InstanceName` to the CVM directly. The CVM may append a serial number to the `InstanceName`. The `InstanceName` of the instances within the scaling group may conflict. // // `UNIQUE`: the input parameter `InstanceName` is the prefix of an instance name. Auto Scaling and CVM expand it. The `InstanceName` of an instance in the scaling group is unique. InstanceNameStyle *string `json:"InstanceNameStyle,omitempty" name:"InstanceNameStyle"` }
type InstanceTag ¶
type InternetAccessible ¶
type InternetAccessible struct { // Network billing method. Value range: <br><li>BANDWIDTH_PREPAID: Prepaid by bandwidth <br><li>TRAFFIC_POSTPAID_BY_HOUR: Postpaid by traffic on a per hour basis <br><li>BANDWIDTH_POSTPAID_BY_HOUR: Postpaid by bandwidth on a per hour basis <br><li>BANDWIDTH_PACKAGE: BWP user <br>Default value: TRAFFIC_POSTPAID_BY_HOUR. // Note: This field may return null, indicating that no valid values can be obtained. InternetChargeType *string `json:"InternetChargeType,omitempty" name:"InternetChargeType"` // The maximum outbound bandwidth in Mbps of the public network. The default value is 0 Mbps. The upper limit of bandwidth varies by model. For more information, see [Purchase Network Bandwidth](https://intl.cloud.tencent.com/document/product/213/509?from_cn_redirect=1). // Note: This field may return null, indicating that no valid values can be obtained. InternetMaxBandwidthOut *uint64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` // Whether to assign a public IP. Value range: <br><li>TRUE: Assign a public IP <br><li>FALSE: Do not assign a public IP <br><br>If the public network bandwidth is greater than 0 Mbps, you are free to choose whether to enable the public IP (which is enabled by default). If the public network bandwidth is 0 Mbps, no public IP will be allowed to be assigned. // Note: This field may return null, indicating that no valid values can be obtained. PublicIpAssigned *bool `json:"PublicIpAssigned,omitempty" name:"PublicIpAssigned"` // Bandwidth package ID. You can obtain the ID from the `BandwidthPackageId` field in the response of the [DescribeBandwidthPackages](https://intl.cloud.tencent.com/document/api/215/19209?from_cn_redirect=1) API. // Note: this field may return null, indicating that no valid value was found. BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" name:"BandwidthPackageId"` }
type LaunchConfiguration ¶
type LaunchConfiguration struct { // Project ID of the instance. ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Launch configuration ID. LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // Launch configuration name. LaunchConfigurationName *string `json:"LaunchConfigurationName,omitempty" name:"LaunchConfigurationName"` // Instance model. InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` // Information of the instance's system disk configuration. SystemDisk *SystemDisk `json:"SystemDisk,omitempty" name:"SystemDisk"` // Information of the instance's data disk configuration. DataDisks []*DataDisk `json:"DataDisks,omitempty" name:"DataDisks"` // Instance login settings. LoginSettings *LimitedLoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"` // Information of the public network bandwidth configuration. InternetAccessible *InternetAccessible `json:"InternetAccessible,omitempty" name:"InternetAccessible"` // Security group of the instance. SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` // Auto scaling group associated with the launch configuration. AutoScalingGroupAbstractSet []*AutoScalingGroupAbstract `json:"AutoScalingGroupAbstractSet,omitempty" name:"AutoScalingGroupAbstractSet"` // Custom data. // Note: This field may return null, indicating that no valid values can be obtained. UserData *string `json:"UserData,omitempty" name:"UserData"` // Creation time of the launch configuration. CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` // Conditions of enhancement services for the instance and their settings. EnhancedService *EnhancedService `json:"EnhancedService,omitempty" name:"EnhancedService"` // Image ID. ImageId *string `json:"ImageId,omitempty" name:"ImageId"` // Current status of the launch configuration. Value range: <br><li>NORMAL: normal <br><li>IMAGE_ABNORMAL: Exception with the image of the launch configuration <br><li>CBS_SNAP_ABNORMAL: Exception with the data disk snapshot of the launch configuration <br><li>SECURITY_GROUP_ABNORMAL: Exception with the security group of the launch configuration<br> LaunchConfigurationStatus *string `json:"LaunchConfigurationStatus,omitempty" name:"LaunchConfigurationStatus"` // Instance billing type. CVM instances are POSTPAID_BY_HOUR by default. // <br><li>POSTPAID_BY_HOUR: Pay-as-you-go on an hourly basis // <br><li>SPOTPAID: Bidding InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` // Market-related options of the instance, such as the parameters related to stop instances. If the billing method of instance is specified as bidding, this parameter must be passed in. // Note: This field may return null, indicating that no valid values can be obtained. InstanceMarketOptions *InstanceMarketOptionsRequest `json:"InstanceMarketOptions,omitempty" name:"InstanceMarketOptions"` // List of instance models. InstanceTypes []*string `json:"InstanceTypes,omitempty" name:"InstanceTypes"` // List of tags. InstanceTags []*InstanceTag `json:"InstanceTags,omitempty" name:"InstanceTags"` // Version number. VersionNumber *int64 `json:"VersionNumber,omitempty" name:"VersionNumber"` // Update time. UpdatedTime *string `json:"UpdatedTime,omitempty" name:"UpdatedTime"` // CAM role name, which can be obtained from the roleName field in the return value of the DescribeRoleList API. CamRoleName *string `json:"CamRoleName,omitempty" name:"CamRoleName"` // Value of InstanceTypesCheckPolicy upon the last operation. LastOperationInstanceTypesCheckPolicy *string `json:"LastOperationInstanceTypesCheckPolicy,omitempty" name:"LastOperationInstanceTypesCheckPolicy"` // CVM HostName settings. HostNameSettings *HostNameSettings `json:"HostNameSettings,omitempty" name:"HostNameSettings"` // Settings of CVM instance names. InstanceNameSettings *InstanceNameSettings `json:"InstanceNameSettings,omitempty" name:"InstanceNameSettings"` // Sets prepaid billing mode, also known as monthly subscription. This parameter can specify the purchase period and other attributes such as auto-renewal. This parameter is mandatory for prepaid instances. InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` // Specifies how to select the cloud disk type. // <br><li>ORIGINAL: uses the configured cloud disk type // <br><li>AUTOMATIC: automatically chooses an available cloud disk type in the current availability zone DiskTypePolicy *string `json:"DiskTypePolicy,omitempty" name:"DiskTypePolicy"` }
type LifecycleActionResultInfo ¶
type LifecycleActionResultInfo struct { // ID of the lifecycle hook LifecycleHookId *string `json:"LifecycleHookId,omitempty" name:"LifecycleHookId"` // ID of the instance InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Whether the notification is sent to CMQ successfully NotificationResult *string `json:"NotificationResult,omitempty" name:"NotificationResult"` // Result of the lifecyle hook action. Values: CONTINUE, ABANDON LifecycleActionResult *string `json:"LifecycleActionResult,omitempty" name:"LifecycleActionResult"` // Cause of the result ResultReason *string `json:"ResultReason,omitempty" name:"ResultReason"` }
type LifecycleHook ¶
type LifecycleHook struct { // Lifecycle hook ID LifecycleHookId *string `json:"LifecycleHookId,omitempty" name:"LifecycleHookId"` // Lifecycle hook name LifecycleHookName *string `json:"LifecycleHookName,omitempty" name:"LifecycleHookName"` // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Default result of the lifecycle hook DefaultResult *string `json:"DefaultResult,omitempty" name:"DefaultResult"` // Wait timeout period of the lifecycle hook HeartbeatTimeout *int64 `json:"HeartbeatTimeout,omitempty" name:"HeartbeatTimeout"` // Applicable scenario of the lifecycle hook LifecycleTransition *string `json:"LifecycleTransition,omitempty" name:"LifecycleTransition"` // Additional information for the notification target NotificationMetadata *string `json:"NotificationMetadata,omitempty" name:"NotificationMetadata"` // Creation time CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` // Notification target NotificationTarget *NotificationTarget `json:"NotificationTarget,omitempty" name:"NotificationTarget"` // Applicable scenario of the lifecycle hook LifecycleTransitionType *string `json:"LifecycleTransitionType,omitempty" name:"LifecycleTransitionType"` }
type LimitedLoginSettings ¶
type LimitedLoginSettings struct { // List of key IDs. KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds"` }
type LoginSettings ¶
type LoginSettings struct { // Login password of the instance. The rule of password complexity varies by operating system: <br><li>For Linux instances, the password must be a combination of 8-16 characters comprised of at least two of the following types: [a-z, A-Z], [0-9] and [( ) ` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? / ]. <br><li>For Windows instances, the password must be a combination of 12-16 characters comprised of at least three of the following types: [a-z], [A-Z], [0-9] and [( ) ` ~ ! @ # $ % ^ & * - + = { } [ ] : ; ' , . ? /]. <br><br>If this parameter is not specified, a password will be randomly generated and sent to you via internal message. // Note: This field may return null, indicating that no valid values can be obtained. Password *string `json:"Password,omitempty" name:"Password"` // List of key IDs. An instance associated with the key can be accessed using the corresponding private key. KeyId can be obtained via the API DescribeKeyPairs. A key and a password cannot be specified at the same time, and specifying the key is not supported in Windows. You can specify only one key when purchasing an instance. KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds"` // Keep the original settings for an image. You cannot specify this parameter if Password or KeyIds.N is specified. You can specify this parameter to TRUE only when you create an instance using a custom image, shared image, or image imported from external resources. Value range: <br><li>TRUE: Keep the login settings for the image <br><li>FALSE: Do not keep the login settings for the image <br><br>Default value: FALSE. // Note: This field may return null, indicating that no valid values can be obtained. KeepImageLogin *bool `json:"KeepImageLogin,omitempty" name:"KeepImageLogin"` }
type MetricAlarm ¶
type MetricAlarm struct { // Comparison operator. Value range: <br><li>GREATER_THAN: greater than </li><li>GREATER_THAN_OR_EQUAL_TO: greater than or equal to </li><li>LESS_THAN: less than </li><li> LESS_THAN_OR_EQUAL_TO: less than or equal to </li><li> EQUAL_TO: equal to </li> <li>NOT_EQUAL_TO: not equal to </li> ComparisonOperator *string `json:"ComparisonOperator,omitempty" name:"ComparisonOperator"` // Metric name. Value range: <br><li>CPU_UTILIZATION: CPU utilization </li><li>MEM_UTILIZATION: memory utilization </li><li>LAN_TRAFFIC_OUT: private network outbound bandwidth </li><li>LAN_TRAFFIC_IN: private network inbound bandwidth </li><li>WAN_TRAFFIC_OUT: public network outbound bandwidth </li><li>WAN_TRAFFIC_IN: public network inbound bandwidth </li> MetricName *string `json:"MetricName,omitempty" name:"MetricName"` // Alarming threshold: <br><li>CPU_UTILIZATION: [1, 100] in % </li><li>MEM_UTILIZATION: [1, 100] in % </li><li>LAN_TRAFFIC_OUT: >0 in Mbps </li><li>LAN_TRAFFIC_IN: >0 in Mbps </li><li>WAN_TRAFFIC_OUT: >0 in Mbps </li><li>WAN_TRAFFIC_IN: >0 in Mbps </li> Threshold *uint64 `json:"Threshold,omitempty" name:"Threshold"` // Time period in seconds. Enumerated values: 60, 300. Period *uint64 `json:"Period,omitempty" name:"Period"` // Number of repetitions. Value range: [1, 10] ContinuousTime *uint64 `json:"ContinuousTime,omitempty" name:"ContinuousTime"` // Statistics type. Value range: <br><li>AVERAGE: average </li><li>MAXIMUM: maximum <li>MINIMUM: minimum </li><br> Default value: AVERAGE Statistic *string `json:"Statistic,omitempty" name:"Statistic"` }
type ModifyAutoScalingGroupRequest ¶
type ModifyAutoScalingGroupRequest struct { *tchttp.BaseRequest // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Auto scaling group name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 55 bytes and must be unique under your account. AutoScalingGroupName *string `json:"AutoScalingGroupName,omitempty" name:"AutoScalingGroupName"` // Default cooldown period in seconds. Default value: 300 DefaultCooldown *uint64 `json:"DefaultCooldown,omitempty" name:"DefaultCooldown"` // Desired number of instances. The number should be no larger than the maximum and no smaller than minimum number of instances DesiredCapacity *uint64 `json:"DesiredCapacity,omitempty" name:"DesiredCapacity"` // Launch configuration ID LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // Maximum number of instances. Value range: 0-2,000. MaxSize *uint64 `json:"MaxSize,omitempty" name:"MaxSize"` // Minimum number of instances. Value range: 0-2,000. MinSize *uint64 `json:"MinSize,omitempty" name:"MinSize"` // Project ID ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` // List of subnet IDs SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds"` // Termination policy. Currently, the maximum length is 1. Value range: OLDEST_INSTANCE, NEWEST_INSTANCE. // <br><li> OLDEST_INSTANCE: The oldest instance in the auto scaling group will be terminated first. // <br><li> NEWEST_INSTANCE: The newest instance in the auto scaling group will be terminated first. TerminationPolicies []*string `json:"TerminationPolicies,omitempty" name:"TerminationPolicies"` // VPC ID. This field is left empty for basic networks. You need to specify SubnetIds when modifying the network of the auto scaling group to a VPC with a specified VPC ID. Specify Zones when modifying the network to a basic network. VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // List of availability zones Zones []*string `json:"Zones,omitempty" name:"Zones"` // Retry policy. Value range: IMMEDIATE_RETRY, INCREMENTAL_INTERVALS, and NO_RETRY. Default value: IMMEDIATE_RETRY. // <br><li> IMMEDIATE_RETRY: Retrying immediately in a short period of time and stopping after a number of consecutive failures (5). // <br><li> INCREMENTAL_INTERVALS: Retrying at incremental intervals, i.e., as the number of consecutive failures increases, the retry interval gradually increases, ranging from one second to one day. // <br><li> NO_RETRY: No retry until a user call or alarm message is received again. RetryPolicy *string `json:"RetryPolicy,omitempty" name:"RetryPolicy"` // Availability zone verification policy. Value range: ALL, ANY. Default value: ANY. This will work when the resource-related fields (launch configuration, availability zone, or subnet) of the auto scaling group are actually modified. // <br><li> ALL: The verification will succeed only if all availability zones (Zone) or subnets (SubnetId) are available; otherwise, an error will be reported. // <br><li> ANY: The verification will success if any availability zone (Zone) or subnet (SubnetId) is available; otherwise, an error will be reported. // // Common reasons why an availability zone or subnet is unavailable include stock-out of CVM instances or CBS cloud disks in the availability zone, insufficient quota in the availability zone, or insufficient IPs in the subnet. // If an availability zone or subnet in Zones/SubnetIds does not exist, a verification error will be reported regardless of the value of ZonesCheckPolicy. ZonesCheckPolicy *string `json:"ZonesCheckPolicy,omitempty" name:"ZonesCheckPolicy"` // Service settings such as unhealthy instance replacement. ServiceSettings *ServiceSettings `json:"ServiceSettings,omitempty" name:"ServiceSettings"` // The number of IPv6 addresses that an instance has. Valid values: 0 and 1. Ipv6AddressCount *int64 `json:"Ipv6AddressCount,omitempty" name:"Ipv6AddressCount"` // Multi-availability zone/subnet policy. Valid values: PRIORITY and EQUALITY. // <br><li> PRIORITY: creates instances based on the priority determined by the order in the availability zone/subnet list. If an instance can be successfully created in the availability zone/subnet of the highest priority, all instances will be created in the availability zone/subnet. // <br><li> EQUALITY: scales out the availability zone/subnet with the least instances each time. This gives each availability zone/subnet an opportunity for scale-out and disperses the instances created during multiple scale-out operations across different availability zones/subnets. // // Notes about this policy: // <br><li> When the scaling group is a basic network, this policy applies to multiple availability zones. When the scaling group is a VPC, this policy applies to multiple subnets, and you do not need to consider availability zones. For example, if you have four subnets (A, B, C, and D) and A, B, and C are in availability zone 1 and D is in availability zone 2, you do not need to consider the availability zones when determining the order of the subnets. // <br><li> This policy is applicable to multiple availability zones/subnets, but is not applicable to multiple models with launch configurations. When there are multiple models, the PRIORITY policy is applied. // <br><li> During instance creation, apply the multi-model policy and then apply the multi-availability zones/subnet policy. For example, if you have models A and B and subnets 1, 2, and 3 (based on the PRIORITY policy), creation will be attempted in the following order: A1, A2, A3, B1, B2, and B3. If A1 is sold out, A2 (not B1) is tried next. // <br><li> No matter what policy is used, a single scaling event always uses a specific configuration at priority (model * availability zone/subnet). MultiZoneSubnetPolicy *string `json:"MultiZoneSubnetPolicy,omitempty" name:"MultiZoneSubnetPolicy"` // Health check type of instances in a scaling group.<br><li>CVM: confirm whether an instance is healthy based on the network status. If the pinged instance is unreachable, the instance will be considered unhealthy. For more information, see [Instance Health Check](https://intl.cloud.tencent.com/document/product/377/8553?from_cn_redirect=1)<br><li>CLB: confirm whether an instance is healthy based on the CLB health check status. For more information, see [Health Check Overview](https://intl.cloud.tencent.com/document/product/214/6097?from_cn_redirect=1). HealthCheckType *string `json:"HealthCheckType,omitempty" name:"HealthCheckType"` // Grace period of the CLB health check LoadBalancerHealthCheckGracePeriod *uint64 `json:"LoadBalancerHealthCheckGracePeriod,omitempty" name:"LoadBalancerHealthCheckGracePeriod"` // Specifies how to assign instances. Valid values: `LAUNCH_CONFIGURATION` and `SPOT_MIXED`. // <br><li>`LAUNCH_CONFIGURATION`: the launch configuration mode. // <br><li>`SPOT_MIXED`: a mixed instance mode. Currently, this mode is supported only when the launch configuration takes the pay-as-you-go billing mode. With this mode, the scaling group can provision a combination of pay-as-you-go instances and spot instances to meet the configured capacity. Note that the billing mode of the associated launch configuration cannot be modified when this mode is used. InstanceAllocationPolicy *string `json:"InstanceAllocationPolicy,omitempty" name:"InstanceAllocationPolicy"` // Specifies how to assign pay-as-you-go instances and spot instances. // This parameter is valid only when `InstanceAllocationPolicy` is set to `SPOT_MIXED`. SpotMixedAllocationPolicy *SpotMixedAllocationPolicy `json:"SpotMixedAllocationPolicy,omitempty" name:"SpotMixedAllocationPolicy"` // Indicates whether the capacity rebalancing feature is enabled. This parameter is only valid for spot instances in the scaling group. Valid values: // <br><li>`TRUE`: yes. Before the spot instances in the scaling group are about to be automatically repossessed, AS will terminate them. The scale-in hook (if configured) will take effect before the termination. After the termination process starts, AS will asynchronously initiate a scaling activity to meet the desired capacity. // <br><li>`FALSE`: no. AS will add instances to meet the desired capacity only after the spot instances are terminated. CapacityRebalance *bool `json:"CapacityRebalance,omitempty" name:"CapacityRebalance"` }
func NewModifyAutoScalingGroupRequest ¶
func NewModifyAutoScalingGroupRequest() (request *ModifyAutoScalingGroupRequest)
func (*ModifyAutoScalingGroupRequest) FromJsonString ¶
func (r *ModifyAutoScalingGroupRequest) 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 (*ModifyAutoScalingGroupRequest) ToJsonString ¶
func (r *ModifyAutoScalingGroupRequest) ToJsonString() string
type ModifyAutoScalingGroupResponse ¶
type ModifyAutoScalingGroupResponse struct { *tchttp.BaseResponse Response *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"` } `json:"Response"` }
func NewModifyAutoScalingGroupResponse ¶
func NewModifyAutoScalingGroupResponse() (response *ModifyAutoScalingGroupResponse)
func (*ModifyAutoScalingGroupResponse) FromJsonString ¶
func (r *ModifyAutoScalingGroupResponse) 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 (*ModifyAutoScalingGroupResponse) ToJsonString ¶
func (r *ModifyAutoScalingGroupResponse) ToJsonString() string
type ModifyDesiredCapacityRequest ¶
type ModifyDesiredCapacityRequest struct { *tchttp.BaseRequest // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Desired capacity DesiredCapacity *uint64 `json:"DesiredCapacity,omitempty" name:"DesiredCapacity"` }
func NewModifyDesiredCapacityRequest ¶
func NewModifyDesiredCapacityRequest() (request *ModifyDesiredCapacityRequest)
func (*ModifyDesiredCapacityRequest) FromJsonString ¶
func (r *ModifyDesiredCapacityRequest) 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 (*ModifyDesiredCapacityRequest) ToJsonString ¶
func (r *ModifyDesiredCapacityRequest) ToJsonString() string
type ModifyDesiredCapacityResponse ¶
type ModifyDesiredCapacityResponse struct { *tchttp.BaseResponse Response *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"` } `json:"Response"` }
func NewModifyDesiredCapacityResponse ¶
func NewModifyDesiredCapacityResponse() (response *ModifyDesiredCapacityResponse)
func (*ModifyDesiredCapacityResponse) FromJsonString ¶
func (r *ModifyDesiredCapacityResponse) 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 (*ModifyDesiredCapacityResponse) ToJsonString ¶
func (r *ModifyDesiredCapacityResponse) ToJsonString() string
type ModifyLaunchConfigurationAttributesRequest ¶
type ModifyLaunchConfigurationAttributesRequest struct { *tchttp.BaseRequest // Launch configuration ID LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // Valid [image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-8toqc6s3`. There are four types of images: <br/><li>Public images </li><li>Custom images </li><li>Shared images </li><li>Marketplace images </li><br/>You can obtain the available image IDs in the following ways: <br/><li>For `public images`, `custom images`, and `shared images`, log in to the [console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE) to query the image IDs; for `marketplace images`, query the image IDs through [Cloud Marketplace](https://market.cloud.tencent.com/list). </li><li>This value can be obtained from the `ImageId` field in the return value of the [DescribeImages API](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1).</li> ImageId *string `json:"ImageId,omitempty" name:"ImageId"` // List of instance types. Each type specifies different resource specifications. This list contains up to 10 instance types. // The launch configuration uses `InstanceType` to indicate one single instance type and `InstanceTypes` to indicate multiple instance types. Specifying the `InstanceTypes` field will invalidate the original `InstanceType`. InstanceTypes []*string `json:"InstanceTypes,omitempty" name:"InstanceTypes"` // Instance type verification policy which works when InstanceTypes is actually modified. Value range: ALL, ANY. Default value: ANY. // <br><li> ALL: The verification will success only if all instance types (InstanceType) are available; otherwise, an error will be reported. // <br><li> ANY: The verification will success if any instance type (InstanceType) is available; otherwise, an error will be reported. // // Common reasons why an instance type is unavailable include stock-out of the instance type or the corresponding cloud disk. // If a model in InstanceTypes does not exist or has been discontinued, a verification error will be reported regardless of the value of InstanceTypesCheckPolicy. InstanceTypesCheckPolicy *string `json:"InstanceTypesCheckPolicy,omitempty" name:"InstanceTypesCheckPolicy"` // Display name of the launch configuration, which can contain Chinese characters, letters, numbers, underscores, separators ("-"), and decimal points with a maximum length of 60 bytes. LaunchConfigurationName *string `json:"LaunchConfigurationName,omitempty" name:"LaunchConfigurationName"` // Base64-encoded custom data of up to 16 KB. If you want to clear `UserData`, set it to an empty string. UserData *string `json:"UserData,omitempty" name:"UserData"` // Security group to which the instance belongs. This parameter can be obtained from the `SecurityGroupId` field in the response of the [`DescribeSecurityGroups`](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1) API. // At least one security group is required for this parameter. The security group specified is sequential. SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` // Information of the public network bandwidth configuration. // When the public outbound network bandwidth is 0 Mbps, assigning a public IP is not allowed. Accordingly, if a public IP is assigned, the new public network outbound bandwidth must be greater than 0 Mbps. InternetAccessible *InternetAccessible `json:"InternetAccessible,omitempty" name:"InternetAccessible"` // Instance billing mode. Valid values: // <br><li>POSTPAID_BY_HOUR: pay-as-you-go hourly // <br><li>SPOTPAID: spot instance InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` // Parameter setting for the prepaid mode (monthly subscription mode). This parameter can specify the renewal period, whether to set the auto-renewal, and other attributes of the monthly-subscribed instances. // This parameter is required when changing the instance billing mode to monthly subscription. It will be automatically discarded after you choose another billing mode. // This field requires passing in the `Period` field. Other fields that are not passed in will use their default values. // This field can be modified only when the current billing mode is monthly subscription. InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` // Market-related options for instances, such as parameters related to spot instances. // This parameter is required when changing the instance billing mode to spot instance. It will be automatically discarded after you choose another instance billing mode. // This field requires passing in the `MaxPrice` field under the `SpotOptions`. Other fields that are not passed in will use their default values. // This field can be modified only when the current billing mode is spot instance. InstanceMarketOptions *InstanceMarketOptionsRequest `json:"InstanceMarketOptions,omitempty" name:"InstanceMarketOptions"` // Selection policy of cloud disks. Default value: ORIGINAL. Valid values: // <br><li>ORIGINAL: uses the configured cloud disk type // <br><li>AUTOMATIC: automatically chooses an available cloud disk type DiskTypePolicy *string `json:"DiskTypePolicy,omitempty" name:"DiskTypePolicy"` // Instance system disk configurations SystemDisk *SystemDisk `json:"SystemDisk,omitempty" name:"SystemDisk"` // Configuration information of instance data disks. // Up to 11 data disks can be specified and will be collectively modified. Please provide all the new values for the modification. // The default data disk should be the same as the system disk. DataDisks []*DataDisk `json:"DataDisks,omitempty" name:"DataDisks"` // CVM hostname settings. // This field is not supported for Windows instances. // This field requires passing the `HostName` field. Other fields that are not passed in will use their default values. HostNameSettings *HostNameSettings `json:"HostNameSettings,omitempty" name:"HostNameSettings"` // Settings of CVM instance names. // If this field is configured in a launch configuration, the `InstanceName` of a CVM created by the scaling group will be generated according to the configuration; otherwise, it will be in the `as-{{AutoScalingGroupName }}` format. // This field requires passing in the `InstanceName` field. Other fields that are not passed in will use their default values. InstanceNameSettings *InstanceNameSettings `json:"InstanceNameSettings,omitempty" name:"InstanceNameSettings"` }
func NewModifyLaunchConfigurationAttributesRequest ¶
func NewModifyLaunchConfigurationAttributesRequest() (request *ModifyLaunchConfigurationAttributesRequest)
func (*ModifyLaunchConfigurationAttributesRequest) FromJsonString ¶
func (r *ModifyLaunchConfigurationAttributesRequest) 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 (*ModifyLaunchConfigurationAttributesRequest) ToJsonString ¶
func (r *ModifyLaunchConfigurationAttributesRequest) ToJsonString() string
type ModifyLaunchConfigurationAttributesResponse ¶
type ModifyLaunchConfigurationAttributesResponse struct { *tchttp.BaseResponse Response *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"` } `json:"Response"` }
func NewModifyLaunchConfigurationAttributesResponse ¶
func NewModifyLaunchConfigurationAttributesResponse() (response *ModifyLaunchConfigurationAttributesResponse)
func (*ModifyLaunchConfigurationAttributesResponse) FromJsonString ¶
func (r *ModifyLaunchConfigurationAttributesResponse) 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 (*ModifyLaunchConfigurationAttributesResponse) ToJsonString ¶
func (r *ModifyLaunchConfigurationAttributesResponse) ToJsonString() string
type ModifyLoadBalancersRequest ¶
type ModifyLoadBalancersRequest struct { *tchttp.BaseRequest // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // List of classic CLB IDs. Currently, the maximum length is 20. You cannot specify LoadBalancerIds and ForwardLoadBalancers at the same time. LoadBalancerIds []*string `json:"LoadBalancerIds,omitempty" name:"LoadBalancerIds"` // List of CLBs. Currently, the maximum length is 20. You cannot specify LoadBalancerIds and ForwardLoadBalancers at the same time. ForwardLoadBalancers []*ForwardLoadBalancer `json:"ForwardLoadBalancers,omitempty" name:"ForwardLoadBalancers"` // CLB verification policy. Valid values: "ALL" and "DIFF". Default value: "ALL" // <br><li> ALL. Verification is successful only when all CLBs are valid. Otherwise, verification fails. // <br><li> DIFF. Only the changes in the CLB parameters are verified. If valid, the verification is successful. Otherwise, verification fails. LoadBalancersCheckPolicy *string `json:"LoadBalancersCheckPolicy,omitempty" name:"LoadBalancersCheckPolicy"` }
func NewModifyLoadBalancersRequest ¶
func NewModifyLoadBalancersRequest() (request *ModifyLoadBalancersRequest)
func (*ModifyLoadBalancersRequest) FromJsonString ¶
func (r *ModifyLoadBalancersRequest) 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 (*ModifyLoadBalancersRequest) ToJsonString ¶
func (r *ModifyLoadBalancersRequest) ToJsonString() string
type ModifyLoadBalancersResponse ¶
type ModifyLoadBalancersResponse struct { *tchttp.BaseResponse Response *struct { // Scaling activity ID ActivityId *string `json:"ActivityId,omitempty" name:"ActivityId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyLoadBalancersResponse ¶
func NewModifyLoadBalancersResponse() (response *ModifyLoadBalancersResponse)
func (*ModifyLoadBalancersResponse) FromJsonString ¶
func (r *ModifyLoadBalancersResponse) 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 (*ModifyLoadBalancersResponse) ToJsonString ¶
func (r *ModifyLoadBalancersResponse) ToJsonString() string
type ModifyNotificationConfigurationRequest ¶
type ModifyNotificationConfigurationRequest struct { *tchttp.BaseRequest // ID of the notification to be modified. AutoScalingNotificationId *string `json:"AutoScalingNotificationId,omitempty" name:"AutoScalingNotificationId"` // Notification type, i.e., the set of types of notifications to be subscribed to. Value range: // <li>SCALE_OUT_SUCCESSFUL: scale-out succeeded</li> // <li>SCALE_OUT_FAILED: scale-out failed</li> // <li>SCALE_IN_SUCCESSFUL: scale-in succeeded</li> // <li>SCALE_IN_FAILED: scale-in failed</li> // <li>REPLACE_UNHEALTHY_INSTANCE_SUCCESSFUL: unhealthy instance replacement succeeded</li> // <li>REPLACE_UNHEALTHY_INSTANCE_FAILED: unhealthy instance replacement failed</li> NotificationTypes []*string `json:"NotificationTypes,omitempty" name:"NotificationTypes"` // Notification group ID, which is the set of user group IDs. You can query the user group IDs through the [ListGroups](https://intl.cloud.tencent.com/document/product/598/34589?from_cn_redirect=1) API. NotificationUserGroupIds []*string `json:"NotificationUserGroupIds,omitempty" name:"NotificationUserGroupIds"` }
func NewModifyNotificationConfigurationRequest ¶
func NewModifyNotificationConfigurationRequest() (request *ModifyNotificationConfigurationRequest)
func (*ModifyNotificationConfigurationRequest) FromJsonString ¶
func (r *ModifyNotificationConfigurationRequest) 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 (*ModifyNotificationConfigurationRequest) ToJsonString ¶
func (r *ModifyNotificationConfigurationRequest) ToJsonString() string
type ModifyNotificationConfigurationResponse ¶
type ModifyNotificationConfigurationResponse struct { *tchttp.BaseResponse Response *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"` } `json:"Response"` }
func NewModifyNotificationConfigurationResponse ¶
func NewModifyNotificationConfigurationResponse() (response *ModifyNotificationConfigurationResponse)
func (*ModifyNotificationConfigurationResponse) FromJsonString ¶
func (r *ModifyNotificationConfigurationResponse) 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 (*ModifyNotificationConfigurationResponse) ToJsonString ¶
func (r *ModifyNotificationConfigurationResponse) ToJsonString() string
type ModifyScalingPolicyRequest ¶
type ModifyScalingPolicyRequest struct { *tchttp.BaseRequest // Alarm policy ID. AutoScalingPolicyId *string `json:"AutoScalingPolicyId,omitempty" name:"AutoScalingPolicyId"` // Alarm policy name. ScalingPolicyName *string `json:"ScalingPolicyName,omitempty" name:"ScalingPolicyName"` // The method to adjust the desired number of instances after the alarm is triggered. Value range: <br><li>CHANGE_IN_CAPACITY: Increase or decrease the desired number of instances </li><li>EXACT_CAPACITY: Adjust to the specified desired number of instances </li> <li>PERCENT_CHANGE_IN_CAPACITY: Adjust the desired number of instances by percentage </li> AdjustmentType *string `json:"AdjustmentType,omitempty" name:"AdjustmentType"` // The adjusted value of desired number of instances after the alarm is triggered. Value range: <br><li>When AdjustmentType is CHANGE_IN_CAPACITY, if AdjustmentValue is a positive value, some new instances will be added after the alarm is triggered, and if it is a negative value, some existing instances will be removed after the alarm is triggered </li> <li> When AdjustmentType is EXACT_CAPACITY, the value of AdjustmentValue is the desired number of instances after the alarm is triggered, which should be equal to or greater than 0 </li> <li> When AdjustmentType is PERCENT_CHANGE_IN_CAPACITY, if AdjusmentValue (in %) is a positive value, new instances will be added by percentage after the alarm is triggered; if it is a negative value, existing instances will be removed by percentage after the alarm is triggered. AdjustmentValue *int64 `json:"AdjustmentValue,omitempty" name:"AdjustmentValue"` // Cooldown period in seconds. Cooldown *uint64 `json:"Cooldown,omitempty" name:"Cooldown"` // Alarm monitoring metric. MetricAlarm *MetricAlarm `json:"MetricAlarm,omitempty" name:"MetricAlarm"` // Notification group ID, which is the set of user group IDs. You can query the user group IDs through the [ListGroups](https://intl.cloud.tencent.com/document/product/598/34589?from_cn_redirect=1) API. // If you want to clear the user group, you need to pass in the specific string "NULL" to the list. NotificationUserGroupIds []*string `json:"NotificationUserGroupIds,omitempty" name:"NotificationUserGroupIds"` }
func NewModifyScalingPolicyRequest ¶
func NewModifyScalingPolicyRequest() (request *ModifyScalingPolicyRequest)
func (*ModifyScalingPolicyRequest) FromJsonString ¶
func (r *ModifyScalingPolicyRequest) 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 (*ModifyScalingPolicyRequest) ToJsonString ¶
func (r *ModifyScalingPolicyRequest) ToJsonString() string
type ModifyScalingPolicyResponse ¶
type ModifyScalingPolicyResponse struct { *tchttp.BaseResponse Response *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"` } `json:"Response"` }
func NewModifyScalingPolicyResponse ¶
func NewModifyScalingPolicyResponse() (response *ModifyScalingPolicyResponse)
func (*ModifyScalingPolicyResponse) FromJsonString ¶
func (r *ModifyScalingPolicyResponse) 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 (*ModifyScalingPolicyResponse) ToJsonString ¶
func (r *ModifyScalingPolicyResponse) ToJsonString() string
type ModifyScheduledActionRequest ¶
type ModifyScheduledActionRequest struct { *tchttp.BaseRequest // ID of the scheduled task to be edited ScheduledActionId *string `json:"ScheduledActionId,omitempty" name:"ScheduledActionId"` // Scheduled task name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 60 bytes and must be unique in an auto scaling group. ScheduledActionName *string `json:"ScheduledActionName,omitempty" name:"ScheduledActionName"` // The maximum number of instances set for the auto scaling group when the scheduled task is triggered. MaxSize *uint64 `json:"MaxSize,omitempty" name:"MaxSize"` // The minimum number of instances set for the auto scaling group when the scheduled task is triggered. MinSize *uint64 `json:"MinSize,omitempty" name:"MinSize"` // The desired number of instances set for the auto scaling group when the scheduled task is triggered. DesiredCapacity *uint64 `json:"DesiredCapacity,omitempty" name:"DesiredCapacity"` // Initial triggered time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // End time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard. <br>This parameter and `Recurrence` need to be specified at the same time. After the end time, the scheduled task will no longer take effect. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Repeating mode of the scheduled task, which is in standard cron format. <br>This parameter and `EndTime` need to be specified at the same time. Recurrence *string `json:"Recurrence,omitempty" name:"Recurrence"` }
func NewModifyScheduledActionRequest ¶
func NewModifyScheduledActionRequest() (request *ModifyScheduledActionRequest)
func (*ModifyScheduledActionRequest) FromJsonString ¶
func (r *ModifyScheduledActionRequest) 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 (*ModifyScheduledActionRequest) ToJsonString ¶
func (r *ModifyScheduledActionRequest) ToJsonString() string
type ModifyScheduledActionResponse ¶
type ModifyScheduledActionResponse struct { *tchttp.BaseResponse Response *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"` } `json:"Response"` }
func NewModifyScheduledActionResponse ¶
func NewModifyScheduledActionResponse() (response *ModifyScheduledActionResponse)
func (*ModifyScheduledActionResponse) FromJsonString ¶
func (r *ModifyScheduledActionResponse) 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 (*ModifyScheduledActionResponse) ToJsonString ¶
func (r *ModifyScheduledActionResponse) ToJsonString() string
type NotificationTarget ¶
type NotificationTarget struct { // Target type. Value range: `CMQ_QUEUE`, `CMQ_TOPIC`. // <li> CMQ_QUEUE: CMQ_QUEUE: CMQ queue model.</li> // <li> CMQ_TOPIC: CMQ topic model.</li> TargetType *string `json:"TargetType,omitempty" name:"TargetType"` // Queue name. If `TargetType` is `CMQ_QUEUE`, this parameter is required. QueueName *string `json:"QueueName,omitempty" name:"QueueName"` // Topic name. If `TargetType` is `CMQ_TOPIC`, this parameter is required. TopicName *string `json:"TopicName,omitempty" name:"TopicName"` }
type RemoveInstancesRequest ¶
type RemoveInstancesRequest struct { *tchttp.BaseRequest // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // List of CVM instance IDs InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewRemoveInstancesRequest ¶
func NewRemoveInstancesRequest() (request *RemoveInstancesRequest)
func (*RemoveInstancesRequest) FromJsonString ¶
func (r *RemoveInstancesRequest) 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 (*RemoveInstancesRequest) ToJsonString ¶
func (r *RemoveInstancesRequest) ToJsonString() string
type RemoveInstancesResponse ¶
type RemoveInstancesResponse struct { *tchttp.BaseResponse Response *struct { // Scaling activity ID ActivityId *string `json:"ActivityId,omitempty" name:"ActivityId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewRemoveInstancesResponse ¶
func NewRemoveInstancesResponse() (response *RemoveInstancesResponse)
func (*RemoveInstancesResponse) FromJsonString ¶
func (r *RemoveInstancesResponse) 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 (*RemoveInstancesResponse) ToJsonString ¶
func (r *RemoveInstancesResponse) ToJsonString() string
type RunMonitorServiceEnabled ¶
type RunMonitorServiceEnabled struct { // Whether to enable the [Cloud Monitor](https://intl.cloud.tencent.com/document/product/248?from_cn_redirect=1) service. Value range: <br><li>TRUE: Cloud Monitor is enabled <br><li>FALSE: Cloud Monitor is disabled <br><br>Default value: TRUE. | // Note: This field may return null, indicating that no valid values can be obtained. Enabled *bool `json:"Enabled,omitempty" name:"Enabled"` }
type RunSecurityServiceEnabled ¶
type RunSecurityServiceEnabled struct { // Whether to enable the [Cloud Security](https://intl.cloud.tencent.com/document/product/296?from_cn_redirect=1) service. Value range: <br><li>TRUE: Cloud Security is enabled <br><li>FALSE: Cloud Security is disabled <br><br>Default value: TRUE. // Note: This field may return null, indicating that no valid values can be obtained. Enabled *bool `json:"Enabled,omitempty" name:"Enabled"` }
type ScaleInInstancesRequest ¶
type ScaleInInstancesRequest struct { *tchttp.BaseRequest // Scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Number of instances to be reduced ScaleInNumber *uint64 `json:"ScaleInNumber,omitempty" name:"ScaleInNumber"` }
func NewScaleInInstancesRequest ¶
func NewScaleInInstancesRequest() (request *ScaleInInstancesRequest)
func (*ScaleInInstancesRequest) FromJsonString ¶
func (r *ScaleInInstancesRequest) 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 (*ScaleInInstancesRequest) ToJsonString ¶
func (r *ScaleInInstancesRequest) ToJsonString() string
type ScaleInInstancesResponse ¶
type ScaleInInstancesResponse struct { *tchttp.BaseResponse Response *struct { // Scaling activity ID ActivityId *string `json:"ActivityId,omitempty" name:"ActivityId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewScaleInInstancesResponse ¶
func NewScaleInInstancesResponse() (response *ScaleInInstancesResponse)
func (*ScaleInInstancesResponse) FromJsonString ¶
func (r *ScaleInInstancesResponse) 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 (*ScaleInInstancesResponse) ToJsonString ¶
func (r *ScaleInInstancesResponse) ToJsonString() string
type ScaleOutInstancesRequest ¶
type ScaleOutInstancesRequest struct { *tchttp.BaseRequest // Scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Number of instances to be added ScaleOutNumber *uint64 `json:"ScaleOutNumber,omitempty" name:"ScaleOutNumber"` }
func NewScaleOutInstancesRequest ¶
func NewScaleOutInstancesRequest() (request *ScaleOutInstancesRequest)
func (*ScaleOutInstancesRequest) FromJsonString ¶
func (r *ScaleOutInstancesRequest) 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 (*ScaleOutInstancesRequest) ToJsonString ¶
func (r *ScaleOutInstancesRequest) ToJsonString() string
type ScaleOutInstancesResponse ¶
type ScaleOutInstancesResponse struct { *tchttp.BaseResponse Response *struct { // Scaling activity ID ActivityId *string `json:"ActivityId,omitempty" name:"ActivityId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewScaleOutInstancesResponse ¶
func NewScaleOutInstancesResponse() (response *ScaleOutInstancesResponse)
func (*ScaleOutInstancesResponse) FromJsonString ¶
func (r *ScaleOutInstancesResponse) 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 (*ScaleOutInstancesResponse) ToJsonString ¶
func (r *ScaleOutInstancesResponse) ToJsonString() string
type ScalingPolicy ¶
type ScalingPolicy struct { // Auto scaling group ID. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Alarm trigger policy ID. AutoScalingPolicyId *string `json:"AutoScalingPolicyId,omitempty" name:"AutoScalingPolicyId"` // Alarm trigger policy name. ScalingPolicyName *string `json:"ScalingPolicyName,omitempty" name:"ScalingPolicyName"` // The method to adjust the desired number of instances after the alarm is triggered. Value range: <br><li>CHANGE_IN_CAPACITY: Increase or decrease the desired number of instances </li><li>EXACT_CAPACITY: Adjust to the specified desired number of instances </li> <li>PERCENT_CHANGE_IN_CAPACITY: Adjust the desired number of instances by percentage </li> AdjustmentType *string `json:"AdjustmentType,omitempty" name:"AdjustmentType"` // The adjusted value of desired number of instances after the alarm is triggered. AdjustmentValue *int64 `json:"AdjustmentValue,omitempty" name:"AdjustmentValue"` // Cooldown period. Cooldown *uint64 `json:"Cooldown,omitempty" name:"Cooldown"` // Alarm monitoring metric. MetricAlarm *MetricAlarm `json:"MetricAlarm,omitempty" name:"MetricAlarm"` // Notification group ID, which is the set of user group IDs. NotificationUserGroupIds []*string `json:"NotificationUserGroupIds,omitempty" name:"NotificationUserGroupIds"` }
type ScheduledAction ¶
type ScheduledAction struct { // Scheduled task ID. ScheduledActionId *string `json:"ScheduledActionId,omitempty" name:"ScheduledActionId"` // Scheduled task name. ScheduledActionName *string `json:"ScheduledActionName,omitempty" name:"ScheduledActionName"` // ID of the auto scaling group where the scheduled task is located. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Start time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Repeating mode of the scheduled task. Recurrence *string `json:"Recurrence,omitempty" name:"Recurrence"` // End time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Maximum number of instances set by the scheduled task. MaxSize *uint64 `json:"MaxSize,omitempty" name:"MaxSize"` // Desired number of instances set by the scheduled task. DesiredCapacity *uint64 `json:"DesiredCapacity,omitempty" name:"DesiredCapacity"` // Minimum number of instances set by the scheduled task. MinSize *uint64 `json:"MinSize,omitempty" name:"MinSize"` // Creation time of the scheduled task. The value is in `UTC time` in the format of `YYYY-MM-DDThh:mm:ssZ` according to the `ISO8601` standard. CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` }
type ServiceSettings ¶
type ServiceSettings struct { // Enables unhealthy instance replacement. If this feature is enabled, AS will replace instances that are flagged as unhealthy by Cloud Monitor. If this parameter is not specified, the value will be False by default. ReplaceMonitorUnhealthy *bool `json:"ReplaceMonitorUnhealthy,omitempty" name:"ReplaceMonitorUnhealthy"` // Valid values: // CLASSIC_SCALING: this is the typical scaling method, which creates and terminates instances to perform scaling operations. // WAKE_UP_STOPPED_SCALING: this scaling method first tries to start stopped instances. If the number of instances woken up is insufficient, the system creates new instances for scale-out. For scale-in, instances are terminated as in the typical method. You can use the StopAutoScalingInstances API to stop instances in the scaling group. Scale-out operations triggered by alarms will still create new instances. // Default value: CLASSIC_SCALING ScalingMode *string `json:"ScalingMode,omitempty" name:"ScalingMode"` // Enable unhealthy instance replacement. If this feature is enabled, AS will replace instances that are found unhealthy in the CLB health check. If this parameter is not specified, the default value `False` will be used. ReplaceLoadBalancerUnhealthy *bool `json:"ReplaceLoadBalancerUnhealthy,omitempty" name:"ReplaceLoadBalancerUnhealthy"` }
type SetInstancesProtectionRequest ¶
type SetInstancesProtectionRequest struct { *tchttp.BaseRequest // Auto scaling group ID. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Instance ID. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Whether the instance needs to be protected from scale-in. ProtectedFromScaleIn *bool `json:"ProtectedFromScaleIn,omitempty" name:"ProtectedFromScaleIn"` }
func NewSetInstancesProtectionRequest ¶
func NewSetInstancesProtectionRequest() (request *SetInstancesProtectionRequest)
func (*SetInstancesProtectionRequest) FromJsonString ¶
func (r *SetInstancesProtectionRequest) 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 (*SetInstancesProtectionRequest) ToJsonString ¶
func (r *SetInstancesProtectionRequest) ToJsonString() string
type SetInstancesProtectionResponse ¶
type SetInstancesProtectionResponse struct { *tchttp.BaseResponse Response *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"` } `json:"Response"` }
func NewSetInstancesProtectionResponse ¶
func NewSetInstancesProtectionResponse() (response *SetInstancesProtectionResponse)
func (*SetInstancesProtectionResponse) FromJsonString ¶
func (r *SetInstancesProtectionResponse) 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 (*SetInstancesProtectionResponse) ToJsonString ¶
func (r *SetInstancesProtectionResponse) ToJsonString() string
type SpotMarketOptions ¶
type SpotMarketOptions struct { // Bidding price such as "1.05" MaxPrice *string `json:"MaxPrice,omitempty" name:"MaxPrice"` // Bid request type. Currently, only "one-time" type is supported. Default value: one-time // Note: This field may return null, indicating that no valid values can be obtained. SpotInstanceType *string `json:"SpotInstanceType,omitempty" name:"SpotInstanceType"` }
type SpotMixedAllocationPolicy ¶
type SpotMixedAllocationPolicy struct { // The minimum number of the scaling group’s capacity that must be fulfilled by pay-as-you-go instances. It defaults to 0 if not specified. Its value cannot exceed the max capacity of the scaling group. // Note: this field may return `null`, indicating that no valid value can be obtained. BaseCapacity *uint64 `json:"BaseCapacity,omitempty" name:"BaseCapacity"` // Controls the percentage of pay-as-you-go instances for the additional capacity beyond `BaseCapacity`. Valid range: 0-100. The value 0 indicates that only spot instances are provisioned, while the value 100 indicates that only pay-as-you-go instances are provisioned. It defaults to 70 if not specified. The number of pay-as-you-go instances calculated on the percentage should be rounded up. // For example, if the desired capacity is 3, the `BaseCapacity` is set to 1, and the `OnDemandPercentageAboveBaseCapacity` is set to 1, the scaling group will have 2 pay-as-you-go instance (one comes from the base capacity, and the other comes from the rounded up value of the proportion), and 1 spot instance. // Note: this field may return `null`, indicating that no valid value can be obtained. OnDemandPercentageAboveBaseCapacity *uint64 `json:"OnDemandPercentageAboveBaseCapacity,omitempty" name:"OnDemandPercentageAboveBaseCapacity"` // Specifies how to assign spot instances in a mixed instance mode. Valid values: `COST_OPTIMIZED` and `CAPACITY_OPTIMIZED`; default value: `COST_OPTIMIZED`. // <br><li>`COST_OPTIMIZED`: the lowest cost policy. For each model in the launch configuration, AS tries to purchase it based on the lowest unit price per core in each availability zone. If the purchase failed, try the second-lowest unit price. // <br><li>`CAPACITY_OPTIMIZED`: the optimal capacity policy. For each model in the launch configuration, AS tries to purchase it based on the largest stock in each availability zone, minimizing the automatic repossession probability of spot instances. // Note: this field may return `null`, indicating that no valid value can be obtained. SpotAllocationStrategy *string `json:"SpotAllocationStrategy,omitempty" name:"SpotAllocationStrategy"` // Whether to replace with pay-as-you go instances. Valid values: // <br><li>`TRUE`: yes. After the purchase of spot instances failed due to insufficient stock and other reasons, purchase pay-as-you-go instances. // <br><li>`FALSE`: no. The scaling group only tries the configured model of spot instances when it needs to add spot instances. // // Default value: `TRUE`. // Note: this field may return `null`, indicating that no valid value can be obtained. CompensateWithBaseInstance *bool `json:"CompensateWithBaseInstance,omitempty" name:"CompensateWithBaseInstance"` }
type StartAutoScalingInstancesRequest ¶
type StartAutoScalingInstancesRequest struct { *tchttp.BaseRequest // The scaling group ID. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // The list of the CVM instances you want to start up. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewStartAutoScalingInstancesRequest ¶
func NewStartAutoScalingInstancesRequest() (request *StartAutoScalingInstancesRequest)
func (*StartAutoScalingInstancesRequest) FromJsonString ¶
func (r *StartAutoScalingInstancesRequest) 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 (*StartAutoScalingInstancesRequest) ToJsonString ¶
func (r *StartAutoScalingInstancesRequest) ToJsonString() string
type StartAutoScalingInstancesResponse ¶
type StartAutoScalingInstancesResponse struct { *tchttp.BaseResponse Response *struct { // The scaling activity ID. ActivityId *string `json:"ActivityId,omitempty" name:"ActivityId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewStartAutoScalingInstancesResponse ¶
func NewStartAutoScalingInstancesResponse() (response *StartAutoScalingInstancesResponse)
func (*StartAutoScalingInstancesResponse) FromJsonString ¶
func (r *StartAutoScalingInstancesResponse) 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 (*StartAutoScalingInstancesResponse) ToJsonString ¶
func (r *StartAutoScalingInstancesResponse) ToJsonString() string
type StopAutoScalingInstancesRequest ¶
type StopAutoScalingInstancesRequest struct { *tchttp.BaseRequest // The scaling group ID. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // The list of the CVM instances you want to shut down. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Whether the shutdown instances will be charged. Valid values: // KEEP_CHARGING: keep charging after shutdown. // STOP_CHARGING: stop charging after shutdown. // Default value: KEEP_CHARGING. StoppedMode *string `json:"StoppedMode,omitempty" name:"StoppedMode"` }
func NewStopAutoScalingInstancesRequest ¶
func NewStopAutoScalingInstancesRequest() (request *StopAutoScalingInstancesRequest)
func (*StopAutoScalingInstancesRequest) FromJsonString ¶
func (r *StopAutoScalingInstancesRequest) 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 (*StopAutoScalingInstancesRequest) ToJsonString ¶
func (r *StopAutoScalingInstancesRequest) ToJsonString() string
type StopAutoScalingInstancesResponse ¶
type StopAutoScalingInstancesResponse struct { *tchttp.BaseResponse Response *struct { // The scaling activity ID. ActivityId *string `json:"ActivityId,omitempty" name:"ActivityId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewStopAutoScalingInstancesResponse ¶
func NewStopAutoScalingInstancesResponse() (response *StopAutoScalingInstancesResponse)
func (*StopAutoScalingInstancesResponse) FromJsonString ¶
func (r *StopAutoScalingInstancesResponse) 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 (*StopAutoScalingInstancesResponse) ToJsonString ¶
func (r *StopAutoScalingInstancesResponse) ToJsonString() string
type SystemDisk ¶
type SystemDisk struct { // System disk type. For more information on limits of system disk types, see [Cloud Disk Types](https://intl.cloud.tencent.com/document/product/362/31636). Valid values:<br><li>`LOCAL_BASIC`: local disk <br><li>`LOCAL_SSD`: local SSD disk <br><li>`CLOUD_BASIC`: HDD cloud disk <br><li>`CLOUD_PREMIUM`: premium cloud storage<br><li>`CLOUD_SSD`: SSD cloud disk <br><br>Default value: `CLOUD_PREMIUM`. // Note: this field may return `null`, indicating that no valid value can be obtained. DiskType *string `json:"DiskType,omitempty" name:"DiskType"` // System disk size in GB. Default value: 50 // Note: This field may return null, indicating that no valid values can be obtained. DiskSize *uint64 `json:"DiskSize,omitempty" name:"DiskSize"` }
type Tag ¶
type Tag struct { // Tag key Key *string `json:"Key,omitempty" name:"Key"` // Tag value Value *string `json:"Value,omitempty" name:"Value"` // Type of the resource binded to the tag. Currently supported types include "auto-scaling-group" // Note: This field may return null, indicating that no valid values can be obtained. ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"` }
type TargetAttribute ¶
type UpgradeLaunchConfigurationRequest ¶
type UpgradeLaunchConfigurationRequest struct { *tchttp.BaseRequest // Launch configuration ID. LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // Valid [image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-8toqc6s3`. There are four types of images: <br/><li>Public images </li><li>Custom images </li><li>Shared images </li><li>Marketplace images </li><br/>You can obtain the available image IDs in the following ways: <br/><li>For `public images`, `custom images`, and `shared images`, log in to the [console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE) to query the image IDs; for `marketplace images`, query the image IDs through [Cloud Marketplace](https://market.cloud.tencent.com/list). </li><li>This value can be obtained from the `ImageId` field in the return value of the [DescribeImages API](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1).</li> ImageId *string `json:"ImageId,omitempty" name:"ImageId"` // List of instance models. Different instance models specify different resource specifications. Up to 5 instance models can be supported. InstanceTypes []*string `json:"InstanceTypes,omitempty" name:"InstanceTypes"` // Display name of the launch configuration, which can contain Chinese characters, letters, numbers, underscores, separators ("-"), and decimal points with a maximum length of 60 bytes. LaunchConfigurationName *string `json:"LaunchConfigurationName,omitempty" name:"LaunchConfigurationName"` // Information of the instance's data disk configuration. If this parameter is not specified, no data disk is purchased by default. Up to 11 data disks can be supported. DataDisks []*DataDisk `json:"DataDisks,omitempty" name:"DataDisks"` // Enhanced service. This parameter is used to specify whether to enable Cloud Security, Cloud Monitoring and other services. If this parameter is not specified, Cloud Monitoring and Cloud Security will be enabled by default. EnhancedService *EnhancedService `json:"EnhancedService,omitempty" name:"EnhancedService"` // Instance billing mode. CVM instances take `POSTPAID_BY_HOUR` by default. Valid values: // <br><li>POSTPAID_BY_HOUR: pay-as-you-go hourly // <br><li>SPOTPAID: spot instance InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` // Market-related options of the instance, such as the parameters related to stop instances. If the billing method of instance is specified as bidding, this parameter must be passed in. InstanceMarketOptions *InstanceMarketOptionsRequest `json:"InstanceMarketOptions,omitempty" name:"InstanceMarketOptions"` // Instance type verification policy. Value range: ALL, ANY. Default value: ANY. // <br><li> ALL: The verification will success only if all instance types (InstanceType) are available; otherwise, an error will be reported. // <br><li> ANY: The verification will success if any instance type (InstanceType) is available; otherwise, an error will be reported. // // Common reasons why an instance type is unavailable include stock-out of the instance type and the corresponding cloud disk. // If a model in InstanceTypes does not exist or has been deactivated, a verification error will be reported regardless of the value of InstanceTypesCheckPolicy. InstanceTypesCheckPolicy *string `json:"InstanceTypesCheckPolicy,omitempty" name:"InstanceTypesCheckPolicy"` // Configuration information of public network bandwidth. If this parameter is not specified, the default public network bandwidth is 0 Mbps. InternetAccessible *InternetAccessible `json:"InternetAccessible,omitempty" name:"InternetAccessible"` // Login settings of the instance. This parameter is used to set the login password and key for the instance, or to keep the original login settings for the image. By default, a random password is generated and sent to the user via the internal message. LoginSettings *LoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"` // Project ID of the instance. This parameter can be obtained from the `projectId` field in the returned values of [DescribeProject](https://intl.cloud.tencent.com/document/api/378/4400?from_cn_redirect=1). If this is left empty, default project is used. ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // The security group of instance. This parameter can be obtained by calling the `SecurityGroupId` field in the returned value of [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1). If this parameter is not specified, no security group will be bound by default. SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` // System disk configuration of the instance. If this parameter is not specified, the default value will be assigned to it. SystemDisk *SystemDisk `json:"SystemDisk,omitempty" name:"SystemDisk"` // Base64-encoded custom data of up to 16 KB. UserData *string `json:"UserData,omitempty" name:"UserData"` // List of tags. This parameter is used to bind up to 10 tags to newly added instances. InstanceTags []*InstanceTag `json:"InstanceTags,omitempty" name:"InstanceTags"` // CAM role name, which can be obtained from the roleName field in the return value of the DescribeRoleList API. CamRoleName *string `json:"CamRoleName,omitempty" name:"CamRoleName"` // CVM HostName settings. HostNameSettings *HostNameSettings `json:"HostNameSettings,omitempty" name:"HostNameSettings"` // Settings of CVM instance names. InstanceNameSettings *InstanceNameSettings `json:"InstanceNameSettings,omitempty" name:"InstanceNameSettings"` // Advance payment mode, also known as monthly subscription. This parameter can specify the purchase period and other attributes such as auto-renewal. This parameter is mandatory for prepaid instances. InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` // Selection policy of cloud disks. Default value: ORIGINAL. Valid values: // <br><li>ORIGINAL: uses the configured cloud disk type // <br><li>AUTOMATIC: automatically chooses an available cloud disk type DiskTypePolicy *string `json:"DiskTypePolicy,omitempty" name:"DiskTypePolicy"` }
func NewUpgradeLaunchConfigurationRequest ¶
func NewUpgradeLaunchConfigurationRequest() (request *UpgradeLaunchConfigurationRequest)
func (*UpgradeLaunchConfigurationRequest) FromJsonString ¶
func (r *UpgradeLaunchConfigurationRequest) 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 (*UpgradeLaunchConfigurationRequest) ToJsonString ¶
func (r *UpgradeLaunchConfigurationRequest) ToJsonString() string
type UpgradeLaunchConfigurationResponse ¶
type UpgradeLaunchConfigurationResponse struct { *tchttp.BaseResponse Response *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"` } `json:"Response"` }
func NewUpgradeLaunchConfigurationResponse ¶
func NewUpgradeLaunchConfigurationResponse() (response *UpgradeLaunchConfigurationResponse)
func (*UpgradeLaunchConfigurationResponse) FromJsonString ¶
func (r *UpgradeLaunchConfigurationResponse) 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 (*UpgradeLaunchConfigurationResponse) ToJsonString ¶
func (r *UpgradeLaunchConfigurationResponse) ToJsonString() string
type UpgradeLifecycleHookRequest ¶
type UpgradeLifecycleHookRequest struct { *tchttp.BaseRequest // Lifecycle hook ID LifecycleHookId *string `json:"LifecycleHookId,omitempty" name:"LifecycleHookId"` // Lifecycle hook name LifecycleHookName *string `json:"LifecycleHookName,omitempty" name:"LifecycleHookName"` // Scenario for the lifecycle hook. Value range: "INSTANCE_LAUNCHING", "INSTANCE_TERMINATING" LifecycleTransition *string `json:"LifecycleTransition,omitempty" name:"LifecycleTransition"` // Defines the action to be taken by the auto scaling group upon lifecycle hook timeout. Value range: "CONTINUE", "ABANDON". Default value: "CONTINUE" DefaultResult *string `json:"DefaultResult,omitempty" name:"DefaultResult"` // The maximum length of time (in seconds) that can elapse before the lifecycle hook times out. Value range: 30-7200. Default value: 300 HeartbeatTimeout *int64 `json:"HeartbeatTimeout,omitempty" name:"HeartbeatTimeout"` // Additional information of a notification that Auto Scaling sends to targets. This parameter is left empty by default. NotificationMetadata *string `json:"NotificationMetadata,omitempty" name:"NotificationMetadata"` // Notification target NotificationTarget *NotificationTarget `json:"NotificationTarget,omitempty" name:"NotificationTarget"` // The scenario where the lifecycle hook is applied. `EXTENSION`: the lifecycle hook will be triggered when AttachInstances, DetachInstances or RemoveInstaces is called. `NORMAL`: the lifecycle hook is not triggered by the above APIs. LifecycleTransitionType *string `json:"LifecycleTransitionType,omitempty" name:"LifecycleTransitionType"` }
func NewUpgradeLifecycleHookRequest ¶
func NewUpgradeLifecycleHookRequest() (request *UpgradeLifecycleHookRequest)
func (*UpgradeLifecycleHookRequest) FromJsonString ¶
func (r *UpgradeLifecycleHookRequest) 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 (*UpgradeLifecycleHookRequest) ToJsonString ¶
func (r *UpgradeLifecycleHookRequest) ToJsonString() string
type UpgradeLifecycleHookResponse ¶
type UpgradeLifecycleHookResponse struct { *tchttp.BaseResponse Response *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"` } `json:"Response"` }
func NewUpgradeLifecycleHookResponse ¶
func NewUpgradeLifecycleHookResponse() (response *UpgradeLifecycleHookResponse)
func (*UpgradeLifecycleHookResponse) FromJsonString ¶
func (r *UpgradeLifecycleHookResponse) 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 (*UpgradeLifecycleHookResponse) ToJsonString ¶
func (r *UpgradeLifecycleHookResponse) ToJsonString() string