日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

文檔

GetAutoScalingPolicy - 查看彈性伸縮策略

更新時間:

調試

您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。

授權信息

下表是API對應的授權信息,可以在RAM權限策略語句的Action元素中使用,用來給RAM用戶或RAM角色授予調用此API的權限。具體說明如下:

  • 操作:是指具體的權限點。
  • 訪問級別:是指每個操作的訪問級別,取值為寫入(Write)、讀?。≧ead)或列出(List)。
  • 資源類型:是指操作中支持授權的資源類型。具體說明如下:
    • 對于必選的資源類型,用背景高亮的方式表示。
    • 對于不支持資源級授權的操作,用全部資源表示。
  • 條件關鍵字:是指云產品自身定義的條件關鍵字。
  • 關聯操作:是指成功執行操作所需要的其他權限。操作者必須同時具備關聯操作的權限,操作才能成功。
操作訪問級別資源類型條件關鍵字關聯操作
emr:GetAutoScalingPolicyget
  • 全部資源
    *

請求參數

名稱類型必填描述示例值
RegionIdstring

地域 ID。

cn-hangzhou
ClusterIdstring

集群 ID。

c-b933c5aac8fe****
NodeGroupIdstring

節點組 ID。

ng-869471354ecd****

返回參數

名稱類型描述示例值
object

返回數據

ScalingPolicyobject

彈性伸縮策略。

NodeGroupIdstring

節點組 ID。

ng-869471354ecd****
ClusterIdstring

集群 ID。

c-b933c5aac8fe****
ScalingRulesarray<object>

伸縮規則列表

ScalingRuleDTOobject
RuleNamestring

彈性伸縮規則名稱。

scaling-out-memory
TriggerTypestring

伸縮規則類型。取值范圍:

  • TIME_TRIGGER:按時間伸縮。
  • METRICS_TRIGGER:按負載伸縮。
TIME_TRIGGER
ActivityTypestring

伸縮活動類型。取值范圍:

  • SCALE_OUT:擴容。
  • SCALE_IN:縮容。
SCALE_OUT
AdjustmentTypestring

調整類型。

CHANGE_IN_CAPACITY
AdjustmentValueinteger

調整值。需要為正數,代表需要擴容或者縮容的實例數量。

100
TimeTriggerTimeTrigger

按照時間伸縮描述。

MetricsTriggerMetricsTrigger

按照負載伸縮描述。

ScalingPolicyIdstring

伸縮策略 ID。

asp-asduwe23znl***
Constraintsobject

節點組的節點數最大最小值約束。

MaxCapacityinteger

節點組最大節點數。 默認值:2000。

2000
MinCapacityinteger

節點組最小節點數。 默認值:0。

0
RequestIdstring

請求 ID。

DD6B1B2A-5837-5237-ABE4-FF0C8944****

示例

正常返回示例

JSON格式

{
  "ScalingPolicy": {
    "NodeGroupId": "ng-869471354ecd****",
    "ClusterId": "c-b933c5aac8fe****",
    "ScalingRules": [
      {
        "RuleName": "scaling-out-memory",
        "TriggerType": "TIME_TRIGGER",
        "ActivityType": "SCALE_OUT",
        "AdjustmentType": "CHANGE_IN_CAPACITY",
        "AdjustmentValue": 100,
        "TimeTrigger": {
          "LaunchTime": "17:30",
          "StartTime": 1639714800000,
          "EndTime": 1639714800000,
          "LaunchExpirationTime": 600,
          "RecurrenceType": "WEEKLY",
          "RecurrenceValue": "MON,FRI,SUN"
        },
        "MetricsTrigger": {
          "TimeWindow": 30,
          "EvaluationCount": 2,
          "CoolDownInterval": 300,
          "TimeConstraints": [
            {
              "StartTime": "06:00",
              "EndTime": "23:59"
            }
          ],
          "ConditionLogicOperator": "Or",
          "Conditions": [
            {
              "MetricName": "yarn_resourcemanager_queue_PendingVCores",
              "Tags": [
                {
                  "Key": "department",
                  "Value": "IT"
                }
              ],
              "Statistics": "AVG",
              "ComparisonOperator": "LT",
              "Threshold": 12.5
            }
          ]
        }
      }
    ],
    "ScalingPolicyId": "asp-asduwe23znl***",
    "Constraints": {
      "MaxCapacity": 2000,
      "MinCapacity": 0
    }
  },
  "RequestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****"
}

錯誤碼

HTTP status code錯誤碼錯誤信息描述
400ConflictParametersParameters that must not be used together. %s多個參數間存在沖突。
400IncompleteSignatureThe request signature is invalid.API請求簽名不合法。
400InvalidActionThe action %s requested is invalid.不合法的Action。
400InvalidParameterThe specified parameter %s is not valid.參數錯誤。
400InvalidParameterValueThe input parameter %s is invalid or out of range.參數值超出范圍。
400MissingActionThe action %s requested is missing.缺少Action參數
400MissingParameterThe input parameter %s that is mandatory for processing this request is not supplied.參數缺失。
400NotAuthorizedYou do not have permission to perform this action. %s沒有權限。
400ThrottlingExceptionThe request was denied due to request throttling. %s限流。
404ResourceNotFoundThe resource not found by %s.請求的資源未找到。
500InternalErrorThe request processing has failed due to some unknown error, exception or failure.內部錯誤。
503ServiceFailureThe request has failed due to a temporary failure of %s service.依賴的阿里云其他服務不可用。
503ServiceUnavailableThe request has failed due to a temporary failure of the server.請求超時或者服務不可用。

訪問錯誤中心查看更多錯誤碼。

變更歷史

變更時間變更內容概要操作
2024-06-18OpenAPI 返回結構發生變更查看變更詳情
2024-03-15OpenAPI 返回結構發生變更查看變更詳情