IP Pools allow you to group your dedicated IPs into customized "pools" to help manage your sending reputation for different mail sending streams.
The behavior of the endpoint depends on the value of the ip
parameter. It can be
one of the following:
all
: the entire domain pool will be removed. As long as Tower is
concerned, such domain will no longer exist.ip_pool
: the DIPP which is currently linked to the domain will be
unlinked.Note that it's impossible to alter domain IPs if a DIPP is linked to the domain.
If the account is not eligible for shared IPs, additional rules apply:
The account must have 'DIPPs' feature enabled.
Either ip
or pool_id
query parameter must be specified, but not both.
If the special value shared
is used for the replacement IP, the account must be
eligible for shared IPs. In this case the system will assign a shared IP as the
replacement.
{- "message": "success"
}
The behavior of the endpoint depends on the value of the ip
parameter. It can be
one of the following:
all
: the entire domain pool will be removed. As long as Tower is
concerned, such domain will no longer exist.ip_pool
: the DIPP which is currently linked to the domain will be
unlinked.Note that it's impossible to alter domain IPs if a DIPP is linked to the domain.
If the account is not eligible for shared IPs, additional rules apply:
The account must have 'DIPPs' feature enabled.
Either ip
or pool_id
query parameter must be specified, but not both.
If the special value shared
is used for the replacement IP, the account must be
eligible for shared IPs. In this case the system will assign a shared IP as the
replacement.
{- "message": "success"
}
Lists all dedicated IP pools of the account. For each pool returns its basic properties (name, description, the list of IPs) and indicates whether the pool is linked to any domains and whether it's an inherited one. Only one pool can be inherited from the parent account.
A 200 response
{- "ip_pools": [
- {
- "description": "long description of the dedicated IP pool",
- "ips": [
- "1.0.0.1",
- "1.0.0.2"
], - "is_inherited": true,
- "is_linked": true,
- "name": "short name of the dedicated IP pool",
- "pool_id": "the id of the dedicated IP pool"
}
], - "message": "success"
}
The account must have 'DIPPs' feature enabled.
Returns the id of the newly created DIPP.
A 200 response
{- "message": "success",
- "pool_id": "658041ae44842b99ee2eaa1b"
}
is_linked
in the response indicates whether the DIPP is currently linked to any
domains. If it's true
, linked_domain
lists those domains.
A 200 response
{- "message": "success",
- "details": {
- "name": "DIPP's short name",
- "pool_id": "658041ae44842b99ee2eaa1b",
- "description": "A long description of the DIPP",
- "ips": [
- "1.2.3.4",
- "5.6.7.8"
], - "is_linked": true,
- "linked_domains": [
- "a.example.com",
- "b.example.com"
]
}
}
The DIPPs
feature must be enabled for the account.
It is not allowed to delete a DIPP inherited from the parent account.
If the DIPP is delegated to subaccounts, those will also be updated.
If the replacement DIPP is specified, all domains linked to the deleted DIPP will be relinked to the replacement DIPP. The latter must contain at least one IP.
If the replacement IP is specified, all domains linked to the deleted DIPP will be unlinked, and the replacement IP will be assigned to them. It is not allowed to delete a DIPP inherited from the parent account and replace it with an IP (subaccounts do not explicitly manage their IPs).
The replacement IP must be a dedicated one; it can't belong to another DIPP. If a
special value shared
is used, appropriate shared IPs will be used (the account must
be eligible for shared IPs in this case).
Omitting both replacement DIPP and replacement IP is allowed only if the DIPP being deleted contains no IPs.
The processing of affected domains and subaccounts happens asynchronously after the endpoint returns a response.
A 200 response
{- "allowed": {
- "shared": 2,
- "dedicated": 1
}
}
The account must have 'DIPPs' feature enabled.
It's not allowed to edit a DIPP inherited from the parent account.
IPs being added to the DIPP must be dedicated ones and belong to the account.
If IPs of the DIPP end up modified, and the DIPP is linked to domains, the domains will be updated asynchronously (after this endpoint returns response).
Returns an error if the passed parameters won't result in any changes.
A 200 response
{- "message": "success"
}
The account must have 'DIPPs' feature enabled.
It is not allowed to modify a DIPP inherited from the parent account.
The IP must be a dedicated one, belong to the account and not belong to any other DIPP.
All domains linked to the DIPP will be updated so that their IPs include the newly added address. If the DIPP is delegated to subaccounts, those will also be updated.
The processing of affected domains and subaccounts happens asynchronously after the endpoint returns a response.
A 200 response
{- "message": "started"
}
The account must have 'DIPPs' feature enabled.
It's not allowed to edit a DIPP inherited from the parent account.
If the DIPP is linked to domains, the domains will be updated asynchronously (after this endpoint returns response).
A 200 response
{- "message": "started"
}
The account must have 'DIPPs' feature enabled.
It is not allowed to modify a DIPP inherited from the parent account.
All IPs must be dedicated ones, belong to the account and not belong to any other DIPP.
All domains linked to the DIPP will be updated so that their IPs include the newly added addresses. If the DIPP is delegated to subaccounts, those will also be updated.
The processing of affected domains and subaccounts happens asynchronously after the endpoint returns a response.
A 200 response
{- "ips": [
- "1.2.3.4",
- "5.6.7.8"
]
}
{- "message": "started"
}