swagger: '2.0'
info:
  description: Configuration for Autoscale Group details resource.
  version: 'v2'
  title: autoscalegroup
host: 'adm.cloud.com'
schemes:
 - https
# tags are used for organizing operations
tags:
  - name: autoscalegroup
    description: Autoscale Group details
consumes:
  - application/json
produces:
  - application/json
securityDefinitions:
  UserSecurity:
    type: basic
security:
  - UserSecurity: []
parameters:
  idParam:
   name: id
   in: path
   type: string
   description: Id is system generated key for all the auto-scale groups
   required: true
  authParam:
      in: header
      name: Authorization
      type: string
      required: true
      description: Session Id for authentication.Should be mentioned in the format CwsAuth bearer=sessionIdValue
  cloudParam:
      in: header
      name: isCloud
      type: string
      required: true
      description: set the value to true in case of Cloud services, false for on-prem deployment
paths:
  /massvc/{customerid}/nitro/v2/config/autoscalegroup:
    get:
      tags:
        - autoscalegroup
      summary: GET all autoscalegroup
      operationId: getall_autoscalegroup
      description: Use this operation to get auto-scale groups
      consumes:
        - application/json
      produces:
        - application/json
      parameters:
        - in: path
          name: customerid
          type: string
          required: true
          description: Customer Id of the user
        - in: header
          name: Authorization
          type: string
          required: true
          description: Session Id for authentication.Should be mentioned in the format CwsAuth bearer=sessionIdValue
        - in: header
          name: isCloud
          type: string
          required: true
          description: set the value to true in case of Cloud services, false for on-prem deployment
        - in: query
          name: filter
          type: string
          required: false
          description: "Use this query-parameter to get the filtered set of vm_device resources configured on the system. You can set a filter on any property of the resource.Example:  property-name1:property-value1 "
        - in: query
          name: pagesize
          type: integer
          required: false
          description: Use this query-parameter to get the autoscalegroup resources in chunks.To be used along with pageno query parameter.
        - in: query
          name: pageno
          type: integer
          required: false
          description: Use this query-parameter to get the autoscalegroup resources in chunks.To be used along with pagesize query parameter.
        - in: query
          name: count
          type: string
          required: false
          description: Use this query-parameter to get the count of autoscalegroup resources.
          enum:
            - yes
      responses:
        200:
          description:  for autoscalegroup
          schema: 
              $ref: '#/definitions/getautoscalegroupsResponse'
        400:
          description: Bad input parameter
          schema: 
              $ref: '#/definitions/Error'
        401:
          description: Failed Authentication
          schema: 
              $ref: '#/definitions/Error'
        403:
          description: Unauthorized
          schema: 
              $ref: '#/definitions/Error'
        404:
          description: Item not found
          schema: 
              $ref: '#/definitions/Error'
        409:
          description: Resource Conflict
          schema: 
              $ref: '#/definitions/Error'
        500:
          description: Server Error
          schema: 
              $ref: '#/definitions/Error'
        504:
          description: Gateway Timeout
          schema: 
              $ref: '#/definitions/Error'

    post:
      tags:
        - autoscalegroup
      summary: POST operation for autoscalegroup
      operationId: post_autoscalegroup
      description: POST operation for autoscalegroup
      consumes:
        - application/json
      produces:
        - application/json
      parameters:
        - in: path
          name: customerid
          type: string
          required: true
          description: Customer Id of the user
        - in: header
          name: Authorization
          type: string
          required: true
          description: Session Id for authentication.Should be mentioned in the format CwsAuth bearer=sessionIdValue
        - in: header
          name: isCloud
          type: string
          required: true
          description: set the value to true in case of Cloud services, false for on-prem deployment
        - in: query
          name: onerror
          description: Use this parameter to set the onerror status for nitro request. Applicable only for bulk requests.
          required: false
          type: string
          default: CONTINUE
          enum:
            - EXIT
            - CONTINUE
        - in: body
          name: autoscalegroup
          description: autoscalegroup object
          schema:
              $ref: '#/definitions/addautoscalegroupRequest'
      responses:
        200:
          description: add for autoscalegroup
          schema: 
              $ref: '#/definitions/addautoscalegroupResponse'
        400:
          description: Bad input parameter
          schema: 
              $ref: '#/definitions/Error'
        401:
          description: Failed Authentication
          schema: 
              $ref: '#/definitions/Error'
        403:
          description: Unauthorized
          schema: 
              $ref: '#/definitions/Error'
        404:
          description: Item not found
          schema: 
              $ref: '#/definitions/Error'
        409:
          description: Resource Conflict
          schema: 
              $ref: '#/definitions/Error'
        500:
          description: Server Error
          schema: 
              $ref: '#/definitions/Error'
        504:
          description: Gateway Timeout
          schema: 
              $ref: '#/definitions/Error'

  /massvc/{customerid}/nitro/v2/config/autoscalegroup/{id}:
    get:
      tags:
        - autoscalegroup
      summary: GET by key for autoscalegroup
      operationId: getbykey_autoscalegroup
      description: Use this operation to get auto-scale groups
      consumes:
        - application/json
      produces:
        - application/json
      parameters:
        - $ref: '#/parameters/idParam'
        - in: path
          name: customerid
          type: string
          required: true
          description: Customer Id of the user
        - in: header
          name: Authorization
          type: string
          required: true
          description: Session Id for authentication.Should be mentioned in the format CwsAuth bearer=sessionIdValue
        - in: header
          name: isCloud
          type: string
          required: true
          description: set the value to true in case of Cloud services, false for on-prem deployment
      responses:
        200:
          description: add for autoscalegroup
          schema: 
              $ref: '#/definitions/getautoscalegroupResponse'
        400:
          description: Bad input parameter
          schema: 
              $ref: '#/definitions/Error'
        401:
          description: Failed Authentication
          schema: 
              $ref: '#/definitions/Error'
        403:
          description: Unauthorized
          schema: 
              $ref: '#/definitions/Error'
        404:
          description: Item not found
          schema: 
              $ref: '#/definitions/Error'
        409:
          description: Resource Conflict
          schema: 
              $ref: '#/definitions/Error'
        500:
          description: Server Error
          schema: 
              $ref: '#/definitions/Error'
        504:
          description: Gateway Timeout
          schema: 
              $ref: '#/definitions/Error'

    put:
      tags:
        - autoscalegroup
      summary: PUT for autoscalegroup
      operationId: putbykey_autoscalegroup
      description: Use this operation to modify auto-scale group
      consumes:
        - application/json
      produces:
        - application/json
      parameters:
        - $ref: '#/parameters/idParam'
        - in: path
          name: customerid
          type: string
          required: true
          description: Customer Id of the user
        - in: header
          name: Authorization
          type: string
          required: true
          description: Session Id for authentication.Should be mentioned in the format CwsAuth bearer=sessionIdValue
        - in: header
          name: isCloud
          type: string
          required: true
          description: set the value to true in case of Cloud services, false for on-prem deployment
        - in: body
          name: autoscalegroup
          description: autoscalegroup object
          schema:
              $ref: '#/definitions/modifyautoscalegroupRequest'
      responses:
        200:
          description: add for autoscalegroup
          schema: 
              $ref: '#/definitions/modifyautoscalegroupResponse'
        400:
          description: Bad input parameter
          schema: 
              $ref: '#/definitions/Error'
        401:
          description: Failed Authentication
          schema: 
              $ref: '#/definitions/Error'
        403:
          description: Unauthorized
          schema: 
              $ref: '#/definitions/Error'
        404:
          description: Item not found
          schema: 
              $ref: '#/definitions/Error'
        409:
          description: Resource Conflict
          schema: 
              $ref: '#/definitions/Error'
        500:
          description: Server Error
          schema: 
              $ref: '#/definitions/Error'
        504:
          description: Gateway Timeout
          schema: 
              $ref: '#/definitions/Error'

    delete:
      tags:
        - autoscalegroup
      summary: Delete for autoscalegroup
      operationId: deletebykey_autoscalegroup
      description: Use this operation to delete auto-scale group(s)
      consumes:
        - application/json
      produces:
        - application/json
      parameters:
        - $ref: '#/parameters/idParam'
        - in: path
          name: customerid
          type: string
          required: true
          description: Customer Id of the user
        - in: header
          name: Authorization
          type: string
          required: true
          description: Session Id for authentication.Should be mentioned in the format CwsAuth bearer=sessionIdValue
        - in: header
          name: isCloud
          type: string
          required: true
          description: set the value to true in case of Cloud services, false for on-prem deployment
      responses:
        204:
          description: add for autoscalegroup
        400:
          description: Bad input parameter
          schema: 
              $ref: '#/definitions/Error'
        401:
          description: Failed Authentication
          schema: 
              $ref: '#/definitions/Error'
        403:
          description: Unauthorized
          schema: 
              $ref: '#/definitions/Error'
        404:
          description: Item not found
          schema: 
              $ref: '#/definitions/Error'
        409:
          description: Resource Conflict
          schema: 
              $ref: '#/definitions/Error'
        500:
          description: Server Error
          schema: 
              $ref: '#/definitions/Error'
        504:
          description: Gateway Timeout
          schema: 
              $ref: '#/definitions/Error'

definitions:
  addautoscalegroupRequest:
    type: object
    required:
      - autoscalegroup
    properties:
      autoscalegroup:
        $ref: '#/definitions/autoscalegroup_readwrite'
    title: addautoscalegroupRequest
    example:
      autoscalegroup:
        drain_connection_timeout: "3"
        mode: "1"
        auto_retry_count: "1"
        site_id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        no_of_cold_nodes: "1"
        provision_profile_map: "[{\"parent_id\":\"c970e730-6bc5-44c2-a2bf-8dd1382ffb5f\",\"parent_name\":\"asg_1\",\"availability_zone\":\"us-east-1\",\"provision_profile_id\":\"a970e730-6bc5-44c2-a2bf-8dd1382ffb51\",\"azure_resource_group_name\":\"\",\"is_availability_set\":\"f\"}]"
        memory_min: "40"
        is_autoupgrade_enabled: "false"
        activity_id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        throughput_min: "40"
        name: "asg_test"
        cpu_min: "40"
        mem_threshold_enabled: "false"
        auto_retry_interval: "5"
        cpu_max: "80"
        watch_time: "3"
        memory_max: "80"
        status: "true"
        access_profile_id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        min_node: "1"
        cool_down_period: "3"
        max_node: "3"
        ttl_timeout: "30"
        cloud_type: "AWS"
        cpu_threshold_enabled: "false"
        enable_cold_node: "false"
        throughput_max: "80"
        agent_id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        throughput_threshold_enabled: "false"
        tags: [{        prop_value: "string_value"
,        prop_key: "string_value"
}]

  addautoscalegroupResponse:
    type: object
    required:
      - autoscalegroup
    properties:
      autoscalegroup:
        $ref: '#/definitions/autoscalegroup'
    title: addautoscalegroupResponse
    example:
      autoscalegroup:
        drain_connection_timeout: "3"
        mode: "1"
        auto_retry_count: "1"
        site_id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        no_of_cold_nodes: "1"
        state: "ASG_CLUSTER_PROVISION"
        provision_profile_map: "[{\"parent_id\":\"c970e730-6bc5-44c2-a2bf-8dd1382ffb5f\",\"parent_name\":\"asg_1\",\"availability_zone\":\"us-east-1\",\"provision_profile_id\":\"a970e730-6bc5-44c2-a2bf-8dd1382ffb51\",\"azure_resource_group_name\":\"\",\"is_availability_set\":\"f\"}]"
        memory_min: "40"
        do_create_ipset: "false"
        last_updated_time: "1580940000"
        is_autoupgrade_enabled: "false"
        id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        dummy_ip: "0.1.0.1"
        activity_id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        throughput_min: "40"
        name: "asg_test"
        cpu_min: "40"
        mem_threshold_enabled: "false"
        auto_retry_interval: "5"
        cpu_max: "80"
        watch_time: "3"
        customer_name: "admTenant"
        memory_max: "80"
        status: "true"
        access_profile_id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        min_node: "1"
        cool_down_period: "3"
        max_node: "3"
        ttl_timeout: "30"
        cloud_type: "AWS"
        cpu_threshold_enabled: "false"
        enable_cold_node: "false"
        throughput_max: "80"
        agent_id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        is_ipset_created: "f"
        throughput_threshold_enabled: "false"
        site_in_use: "false"
        agent_in_use: "false"
        force_delete: "false"
        do_provision: "false"
        no_of_cluster_instances: "1"
        tags: [{        prop_value: "string_value"
,        prop_key: "string_value"
}]

  getautoscalegroupResponse:
    type: object
    required:
      - autoscalegroup
    properties:
      autoscalegroup:
        $ref: '#/definitions/autoscalegroup'
    title: getautoscalegroupResponse
    example:
      autoscalegroup:
        drain_connection_timeout: "3"
        mode: "1"
        auto_retry_count: "1"
        site_id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        no_of_cold_nodes: "1"
        state: "ASG_CLUSTER_PROVISION"
        provision_profile_map: "[{\"parent_id\":\"c970e730-6bc5-44c2-a2bf-8dd1382ffb5f\",\"parent_name\":\"asg_1\",\"availability_zone\":\"us-east-1\",\"provision_profile_id\":\"a970e730-6bc5-44c2-a2bf-8dd1382ffb51\",\"azure_resource_group_name\":\"\",\"is_availability_set\":\"f\"}]"
        memory_min: "40"
        do_create_ipset: "false"
        last_updated_time: "1580940000"
        is_autoupgrade_enabled: "false"
        id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        dummy_ip: "0.1.0.1"
        activity_id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        throughput_min: "40"
        name: "asg_test"
        cpu_min: "40"
        mem_threshold_enabled: "false"
        auto_retry_interval: "5"
        cpu_max: "80"
        watch_time: "3"
        customer_name: "admTenant"
        memory_max: "80"
        status: "true"
        access_profile_id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        min_node: "1"
        cool_down_period: "3"
        max_node: "3"
        ttl_timeout: "30"
        cloud_type: "AWS"
        cpu_threshold_enabled: "false"
        enable_cold_node: "false"
        throughput_max: "80"
        agent_id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        is_ipset_created: "f"
        throughput_threshold_enabled: "false"
        site_in_use: "false"
        agent_in_use: "false"
        force_delete: "false"
        do_provision: "false"
        no_of_cluster_instances: "1"
        tags: [{        prop_value: "string_value"
,        prop_key: "string_value"
}]

  getautoscalegroupsResponse:
    type: object
    required:
      - autoscalegroup
    properties:
      autoscalegroup:
        type: array
        items:
          $ref: '#/definitions/autoscalegroup'
    title: getautoscalegroupsResponse
    example:
      autoscalegroup:
        drain_connection_timeout: "3"
        mode: "1"
        auto_retry_count: "1"
        site_id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        no_of_cold_nodes: "1"
        state: "ASG_CLUSTER_PROVISION"
        provision_profile_map: "[{\"parent_id\":\"c970e730-6bc5-44c2-a2bf-8dd1382ffb5f\",\"parent_name\":\"asg_1\",\"availability_zone\":\"us-east-1\",\"provision_profile_id\":\"a970e730-6bc5-44c2-a2bf-8dd1382ffb51\",\"azure_resource_group_name\":\"\",\"is_availability_set\":\"f\"}]"
        memory_min: "40"
        do_create_ipset: "false"
        last_updated_time: "1580940000"
        is_autoupgrade_enabled: "false"
        id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        dummy_ip: "0.1.0.1"
        activity_id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        throughput_min: "40"
        name: "asg_test"
        cpu_min: "40"
        mem_threshold_enabled: "false"
        auto_retry_interval: "5"
        cpu_max: "80"
        watch_time: "3"
        customer_name: "admTenant"
        memory_max: "80"
        status: "true"
        access_profile_id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        min_node: "1"
        cool_down_period: "3"
        max_node: "3"
        ttl_timeout: "30"
        cloud_type: "AWS"
        cpu_threshold_enabled: "false"
        enable_cold_node: "false"
        throughput_max: "80"
        agent_id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        is_ipset_created: "f"
        throughput_threshold_enabled: "false"
        site_in_use: "false"
        agent_in_use: "false"
        force_delete: "false"
        do_provision: "false"
        no_of_cluster_instances: "1"
        tags: [{        prop_value: "string_value"
,        prop_key: "string_value"
}]

  modifyautoscalegroupRequest:
    type: object
    required:
      - autoscalegroup
    properties:
      autoscalegroup:
        $ref: '#/definitions/autoscalegroup_readwrite'
    title: modifyautoscalegroupRequest
    example:
      autoscalegroup:
        drain_connection_timeout: "3"
        mode: "1"
        auto_retry_count: "1"
        site_id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        no_of_cold_nodes: "1"
        provision_profile_map: "[{\"parent_id\":\"c970e730-6bc5-44c2-a2bf-8dd1382ffb5f\",\"parent_name\":\"asg_1\",\"availability_zone\":\"us-east-1\",\"provision_profile_id\":\"a970e730-6bc5-44c2-a2bf-8dd1382ffb51\",\"azure_resource_group_name\":\"\",\"is_availability_set\":\"f\"}]"
        memory_min: "40"
        is_autoupgrade_enabled: "false"
        activity_id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        throughput_min: "40"
        name: "asg_test"
        cpu_min: "40"
        mem_threshold_enabled: "false"
        auto_retry_interval: "5"
        cpu_max: "80"
        watch_time: "3"
        memory_max: "80"
        status: "true"
        access_profile_id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        min_node: "1"
        cool_down_period: "3"
        max_node: "3"
        ttl_timeout: "30"
        cloud_type: "AWS"
        cpu_threshold_enabled: "false"
        enable_cold_node: "false"
        throughput_max: "80"
        agent_id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        throughput_threshold_enabled: "false"
        tags: [{        prop_value: "string_value"
,        prop_key: "string_value"
}]

  modifyautoscalegroupResponse:
    type: object
    required:
      - autoscalegroup
    properties:
      autoscalegroup:
        $ref: '#/definitions/autoscalegroup'
    title: modifyautoscalegroupResponse
    example:
      autoscalegroup:
        drain_connection_timeout: "3"
        mode: "1"
        auto_retry_count: "1"
        site_id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        no_of_cold_nodes: "1"
        state: "ASG_CLUSTER_PROVISION"
        provision_profile_map: "[{\"parent_id\":\"c970e730-6bc5-44c2-a2bf-8dd1382ffb5f\",\"parent_name\":\"asg_1\",\"availability_zone\":\"us-east-1\",\"provision_profile_id\":\"a970e730-6bc5-44c2-a2bf-8dd1382ffb51\",\"azure_resource_group_name\":\"\",\"is_availability_set\":\"f\"}]"
        memory_min: "40"
        do_create_ipset: "false"
        last_updated_time: "1580940000"
        is_autoupgrade_enabled: "false"
        id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        dummy_ip: "0.1.0.1"
        activity_id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        throughput_min: "40"
        name: "asg_test"
        cpu_min: "40"
        mem_threshold_enabled: "false"
        auto_retry_interval: "5"
        cpu_max: "80"
        watch_time: "3"
        customer_name: "admTenant"
        memory_max: "80"
        status: "true"
        access_profile_id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        min_node: "1"
        cool_down_period: "3"
        max_node: "3"
        ttl_timeout: "30"
        cloud_type: "AWS"
        cpu_threshold_enabled: "false"
        enable_cold_node: "false"
        throughput_max: "80"
        agent_id: "c970e730-6bc5-44c2-a2bf-8dd1382ffb5f"
        is_ipset_created: "f"
        throughput_threshold_enabled: "false"
        site_in_use: "false"
        agent_in_use: "false"
        force_delete: "false"
        do_provision: "false"
        no_of_cluster_instances: "1"
        tags: [{        prop_value: "string_value"
,        prop_key: "string_value"
}]

  autoscalegroup_readwrite:
    type: object
    properties:
      drain_connection_timeout:
        description: "Drain Connection Timeout in minutes"
        type: integer
        format: int32
      mode:
        description: "Mode (1.DNS/2.NLB/3.ALB/4.GLB)"
        type: integer
        format: int32
      auto_retry_count:
        description: "Max auto retry count for retryable errors in an ASG."
        type: integer
        format: int32
      site_id:
        description: "site"
        type: string
        format: uuid
        maxLength: 128
      no_of_cold_nodes:
        description: "No of cold node supported per AutoscaleGroup"
        type: integer
        format: int32
      provision_profile_map:
        type: array
        items:
          $ref: '#/definitions/autoscalegroup_profile_map_readwrite'
      memory_min:
        description: "Minimum Memory Threshold Limit"
        type: number
        format: double
        minimum: 1
        maximum: 
      is_autoupgrade_enabled:
        description: "Enabled when autoupgrade for autoscalegroup is in progress."
        type: boolean
        format: boolean
      activity_id:
        description: "Most recent activity_id of this autoscalegroup"
        type: string
        format: uuid
        maxLength: 128
      throughput_min:
        description: "Minimum Throughput Threshold Limit"
        type: number
        format: double
        minimum: 1
        maximum: 
      name:
        description: "Auto-Scale Group Name"
        type: string
        format: string
        minLength: 1
        maxLength: 40
      cpu_min:
        description: "Minimum CPU Threshold Limit"
        type: number
        format: double
        minimum: 1
        maximum: 
      mem_threshold_enabled:
        description: "Status of Memory Threshold Config"
        type: boolean
        format: boolean
      auto_retry_interval:
        description: "Delay between two auto retries in minutes."
        type: integer
        format: int32
      cpu_max:
        description: "Maximum CPU Threshold Limit"
        type: number
        format: double
        minimum: 1
        maximum: 
      watch_time:
        description: "Watch Time (No of intervels before triggering auto scale up/down)"
        type: integer
        format: int32
      memory_max:
        description: "Maximum Memory Threshold Limit"
        type: number
        format: double
        minimum: 1
        maximum: 
      status:
        description: "Status of Auto-Scale Group (Enable/Disable)"
        type: boolean
        format: boolean
      access_profile_id:
        description: "The access profile id"
        type: string
        format: uuid
        maxLength: 128
      min_node:
        description: "Minimum number of nodes"
        type: integer
        format: int32
      cool_down_period:
        description: "Cool Down Period (Waiting time in minutes after triggering scale up/down before initiating next provisioning/de-provisioing"
        type: integer
        format: int32
      max_node:
        description: "Maximum number of nodes"
        type: integer
        format: int32
      ttl_timeout:
        description: "TTL Timeout in seconds"
        type: integer
        format: int32
      cloud_type:
        description: "Type of cloud (AWS/Azure)"
        type: string
        format: string
        maxLength: 64
      cpu_threshold_enabled:
        description: "Status of CPU Threshold Config"
        type: boolean
        format: boolean
      enable_cold_node:
        description: "Enable/Disable Autoscale cold node support"
        type: boolean
        format: boolean
      throughput_max:
        description: "Maximum Throughput Threshold Limit"
        type: number
        format: double
        minimum: 1
        maximum: 
      agent_id:
        description: "The ID of Agent"
        type: string
        format: uuid
        maxLength: 128
      throughput_threshold_enabled:
        description: "Status of Throughput Threshold Config"
        type: boolean
        format: boolean
      tags:
        type: array
        items:
          $ref: '#/definitions/property_map_readwrite'

  autoscalegroup:
    allOf:
      -
        properties:
          id:
            description: Id is system generated key for all the auto-scale groups
            type: string
            format: uuid
      - $ref: '#/definitions/autoscalegroup_readwrite'

  property_map_readwrite:
    type: object
    properties:
      prop_value:
        description: "Property value"
        type: string
        format: string
        minLength: 1
        maxLength: 512
      prop_key:
        description: "Property key"
        type: string
        format: string
        minLength: 1
        maxLength: 128

  property_map:
    allOf:
      - $ref: '#/definitions/property_map_readwrite'

  autoscalegroup_profile_map_readwrite:
    type: object
    properties:
      azure_resource_group_name:
        description: "Resource group name for Azure"
        type: string
        format: string
        maxLength: 128
      az_type:
        description: "Type of availabilty_zone/cluster (1.ORIGINAL, 2.BACKUP)"
        type: integer
        format: int32
      cluster_id:
        description: "NetScaler Cluster ID for the availability zone"
        type: string
        format: uuid
        maxLength: 128
      parent_id:
        description: "Parent Id of autoscalegroup"
        type: string
        format: uuid
      node_id:
        description: "The managed_device id which has reference to the node provisioned or to be deprovisioned"
        type: string
        format: uuid
        maxLength: 128
      provision_profile_id:
        description: "ID of provision profile"
        type: string
        format: uuid
        minLength: 1
      is_active_node_prov:
        description: "This is to refer if the provisioning inprogress/failed/success is on active/passive node"
        type: boolean
        format: boolean
      provision_request_id:
        description: "The request id generated for provisoning of cluster from provisioning service"
        type: string
        format: uuid
        maxLength: 128
      parent_name:
        description: "Parent name of autoscale group"
        type: string
        format: string
      activity_id:
        description: "Most recent activity_id of this availability_zone/cluster"
        type: string
        format: uuid
      provision_job_id:
        description: "The job id generated for provisoning of failed node from provisioning service"
        type: string
        format: uuid
        maxLength: 128
      retry_count:
        description: "current auto retry count for a retryable error in a cluster."
        type: integer
        format: int32
      availability_zone:
        description: "availability_zone of autoscalegroup"
        type: string
        format: string
        minLength: 1
        maxLength: 128
      is_availability_set:
        description: "Azure: If this profile belongs to availability set"
        type: boolean
        format: boolean
      az_version:
        description: "Version of availabilty_zone/cluster. Auto generated."
        type: string
        format: string
      retry_err_type:
        description: "Enable/Disable provisioning retry"
        type: string
        format: string
        maxLength: 50
      bandwidth_limit:
        description: "Bandwidth limit per ADC"
        type: integer
        format: int32
      node_count:
        description: "Number of nodes to be provisioned in the cluster"
        type: integer
        format: int32
      error_message:
        description: "Provision error message"
        type: string
        format: string
        maxLength: 255
      autoscalegroup_name:
        description: "Auto-Scale Group Name"
        type: string
        format: string
      delay:
        description: "For mock test: Delay in seconds introduced to get the response."
        type: integer
        format: int32
      error_type:
        description: "For mock test: simulates response type. 0-success,1-failed,2-validation failed with no delay"
        type: integer
        format: int32

  autoscalegroup_profile_map:
    allOf:
      -
        properties:
          id:
            description: Id is system generated key for all the profiles
            type: string
            format: uuid
          cluster_ip_address:
             description: "NetScaler Cluster IP Address"
             type: string
             format: ipaddress
             minLength: 1
             maxLength: 64
      - $ref: '#/definitions/autoscalegroup_profile_map_readwrite'

  Error:
    properties:
      errorcode:
        type: number
        format: int32
        example: 1001
      errormessage:
        type: string
        format: string
        example: "id cannot be found"
