Method: Ionoscloud::TargetGroupsApi#targetgroups_put

Defined in:
lib/ionoscloud/api/target_groups_api.rb

#targetgroups_put(target_group_id, target_group, opts = {}) ⇒ TargetGroup

Modify a Target Group by ID Modifies the properties of the target group specified by its ID.

Parameters:

  • target_group_id (String)

    The unique ID of the target group.

  • target_group (TargetGroupPut)

    The modified target group.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :pretty (Boolean)

    Controls whether the response is pretty-printed (with indentations and new lines). (default to true)

  • :depth (Integer)

    Controls the detail depth of the response objects. GET /datacenters/ - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=… and so on (default to 0)

  • :x_contract_number (Integer)

    Users with multiple contracts must provide the contract number, for which all API requests are to be executed.

Returns:



451
452
453
454
# File 'lib/ionoscloud/api/target_groups_api.rb', line 451

def targetgroups_put(target_group_id, target_group, opts = {})
  data, _status_code, _headers = targetgroups_put_with_http_info(target_group_id, target_group, opts)
  data
end