POST /accounts/{account_id}/infrastructure/targets
Servers
- https://api.cloudflare.com/client/v4
Path parameters
Name | Type | Required | Description |
---|---|---|---|
account_id |
String | Yes |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
hostname |
String | Yes |
A non-unique field that refers to a target. Case insensitive, maximum length of 255 characters, supports the use of special characters dash and period, does not support spaces, and must start and end with an alphanumeric character. |
ip |
Object | Yes |
The IPv4/IPv6 address that identifies where to reach a target |
ip.ipv4 |
Object | No |
The target's IPv4 address |
ip.ipv4.virtual_network_id |
String | No |
(optional) Private virtual network identifier for the target. If omitted, the default virtual network ID will be used. |
ip.ipv4.ip_addr |
String | No |
IP address of the target |
ip.ipv6 |
Object | No |
The target's IPv6 address |
ip.ipv6.virtual_network_id |
String | No |
(optional) Private virtual network identifier for the target. If omitted, the default virtual network ID will be used. |
ip.ipv6.ip_addr |
String | No |
IP address of the target |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.