IP Restriction Endpoints

PUT /api/v3/accounts/{account_id}/ip-restrictions/{id}

Changed on

Update an existing ip restriction rule

Note: As long as at least one cidr was successfully saved a 2XX will be returned. Check the extra key within the response for a list of cidrs that failed to save.

Request

  • Base URL
    https://cloud.getdbt.com
  • Auth
    HTTP bearer

Path parameters

account_idinteger required
idinteger required

Request body

namestring required
type1 | 2 required
  • 1 - ALLOW
  • 2 - DENY
rule_set_enabledboolean required
account_idinteger required
descriptionstring
idinteger required

Example request

{
  "cidrs": [
    {
      "state": 1
    }
  ]
}

Response

namestring required
typeinteger required
stateinteger required

A value of 1 means this entity is active and a value of 2 means this entity is deleted

ip_restriction_rule_set_idinteger required
rule_set_enabledboolean required
account_idinteger required
created_by_idinteger
created_by_service_token_idinteger
descriptionstring

Example response

{
  "state": 1,
  "cidrs": [
    {
      "state": 1
    }
  ]
}

Changes

    • breaking

      the request property format changed from no format to int64 (media type: application/json)

    • breaking

      the request property format changed from no format to int64 (media type: application/x-www-form-urlencoded)

    • breaking

      the request property format changed from no format to int64 (media type: multipart/form-data)

    • breaking

      the // request property format changed from no format to int64 (media type: application/json)

    • breaking

      the // request property format changed from no format to int64 (media type: application/x-www-form-urlencoded)

    • breaking

      the // request property format changed from no format to int64 (media type: multipart/form-data)

    • breaking

      the request property format changed from no format to int64 (media type: application/json)

    • breaking

      the request property format changed from no format to int64 (media type: application/x-www-form-urlencoded)

    • breaking

      the request property format changed from no format to int64 (media type: multipart/form-data)

    • breaking

      for the path request parameter account_id, the format changed from no format to int64

    • breaking

      for the path request parameter id, the format changed from no format to int64