---
title: Créer une règle de transfert NLB
slug: creer-une-regle-de-transfert-nlb
docTags: 
createdAt: 2026-06-04T15:50:56.155Z
---

{
  "id": "Uz5vOOlqRcdNdeCN1qH88",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://api.ionos.com/cloudapi/v6/datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/forwardingrules",
    "servers": [
      {
        "url": "https://api.ionos.com/cloudapi/v6/datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/forwardingrules"
      }
    ],
    "name": "Create a NLB Forwarding Rule",
    "description": "Creates a forwarding rule for the specified Network Load Balancer.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "datacenterId",
          "type": "string",
          "description": "The unique ID of the data center."
        },
        {
          "kind": "required",
          "name": "networkLoadBalancerId",
          "type": "string",
          "description": "The unique ID of the Network Load Balancer."
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        },
        {
          "kind": "optional",
          "name": "X-Contract-Number",
          "type": "integer<int32>",
          "description": "<p>Users with multiple contracts must provide the contract number, for which all API requests are to be executed.</p>",
          "format": "int32"
        }
      ],
      "queryParameters": [
        {
          "kind": "optional",
          "name": "pretty",
          "type": "boolean",
          "description": "<p>Controls whether the response is pretty-printed (with indentations and new lines).</p>",
          "default": true
        },
        {
          "kind": "optional",
          "name": "depth",
          "type": "integer<int32>",
          "description": "<p>Controls the detail depth of the response objects.\nGET /datacenters/[ID]\n- depth=0: Only direct properties are included; children (servers and other elements) are not included.\n- depth=1: Direct properties and children references are included.\n- depth=2: Direct properties and children properties are included.\n- depth=3: Direct properties and children properties and children's children are included.\n- depth=... and so on</p>",
          "default": 0,
          "format": "int32",
          "minimum": 0,
          "maximum": 10
        }
      ],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "description": "The forwarding rule to create.",
          "customType": "NetworkLoadBalancerForwardingRule",
          "schema": [
            {
              "name": "type",
              "kind": "optional",
              "type": "object",
              "description": "",
              "complexType": "allOf",
              "complexItems": [
                {
                  "name": "Type",
                  "description": "",
                  "modelRef": "#/components/schemas/Type",
                  "schema": []
                }
              ],
              "schema": []
            },
            {
              "name": "metadata",
              "kind": "optional",
              "type": "object",
              "description": "",
              "modelRef": "#/components/schemas/DatacenterElementMetadata",
              "customType": "DatacenterElementMetadata",
              "schema": [
                {
                  "name": "etag",
                  "kind": "optional",
                  "type": "string",
                  "readOnly": true,
                  "description": "<p>Resource's Entity Tag as defined in <a href=\"http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11\" target=\"_blank\">http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11</a>  Entity Tag is also added as an 'ETag response header to requests which don't use 'depth' parameter.</p>",
                  "example": "45480eb3fbfc31f1d916c1eaa4abdcc3"
                },
                {
                  "name": "createdDate",
                  "kind": "optional",
                  "type": "string<date-time>",
                  "readOnly": true,
                  "description": "The last time the resource was created.",
                  "example": "2015-12-04T14:34:09.809Z",
                  "format": "date-time"
                },
                {
                  "name": "createdBy",
                  "kind": "optional",
                  "type": "string",
                  "readOnly": true,
                  "description": "The user who created the resource.",
                  "example": "user@example.com"
                },
                {
                  "name": "createdByUserId",
                  "kind": "optional",
                  "type": "string",
                  "readOnly": true,
                  "description": "The unique ID of the user who created the resource.",
                  "example": "user@example.com"
                },
                {
                  "name": "lastModifiedDate",
                  "kind": "optional",
                  "type": "string<date-time>",
                  "readOnly": true,
                  "description": "The last time the resource was modified.",
                  "example": "2015-12-04T14:34:09.809Z",
                  "format": "date-time"
                },
                {
                  "name": "lastModifiedBy",
                  "kind": "optional",
                  "type": "string",
                  "readOnly": true,
                  "description": "The user who last modified the resource.",
                  "example": "user@example.com"
                },
                {
                  "name": "lastModifiedByUserId",
                  "kind": "optional",
                  "type": "string",
                  "readOnly": true,
                  "description": "The unique ID of the user who last modified the resource.",
                  "example": "63cef532-26fe-4a64-a4e0-de7c8a506c90"
                },
                {
                  "name": "state",
                  "kind": "optional",
                  "type": "string<AVAILABLE | INACTIVE | BUSY | DEPLOYING | ACTIVE | FAILED | SUSPENDED | FAILED_SUSPENDED | UPDATING | FAILED_UPDATING | DESTROYING | FAILED_DESTROYING | TERMINATED | HIBERNATING | FAILED_HIBERNATING | MAINTENANCE | FAILED_MAINTENANCE | UNKNOWN>",
                  "readOnly": true,
                  "description": "<p>State of the resource. <em>AVAILABLE</em> There are no pending modification requests for this item; <em>BUSY</em> There is at least one modification request pending and all following requests will be queued; <em>INACTIVE</em> Resource has been de-provisioned; <em>DEPLOYING</em> Resource state DEPLOYING - relevant for Kubernetes cluster/nodepool; <em>ACTIVE</em> Resource state ACTIVE - relevant for Kubernetes cluster/nodepool; <em>FAILED</em> Resource state FAILED - relevant for Kubernetes cluster/nodepool; <em>SUSPENDED</em> Resource state SUSPENDED - relevant for Kubernetes cluster/nodepool; <em>FAILED_SUSPENDED</em> Resource state FAILED_SUSPENDED - relevant for Kubernetes cluster; <em>UPDATING</em> Resource state UPDATING - relevant for Kubernetes cluster/nodepool; <em>FAILED_UPDATING</em> Resource state FAILED_UPDATING - relevant for Kubernetes cluster/nodepool; <em>DESTROYING</em> Resource state DESTROYING - relevant for Kubernetes cluster; <em>FAILED_DESTROYING</em> Resource state FAILED_DESTROYING - relevant for Kubernetes cluster/nodepool; <em>TERMINATED</em> Resource state TERMINATED - relevant for Kubernetes cluster/nodepool; <em>HIBERNATING</em> Resource state HIBERNATING - relevant for Kubernetes cluster/nodepool; <em>FAILED_HIBERNATING</em> Resource state FAILED_HIBERNATING - relevant for Kubernetes cluster/nodepool; <em>MAINTENANCE</em> Resource state MAINTENANCE - relevant for Kubernetes cluster/nodepool; <em>FAILED_HIBERNATING</em> Resource state FAILED_HIBERNATING - relevant for Kubernetes cluster/nodepool.</p>",
                  "example": "AVAILABLE",
                  "enum": [
                    "AVAILABLE",
                    "INACTIVE",
                    "BUSY",
                    "DEPLOYING",
                    "ACTIVE",
                    "FAILED",
                    "SUSPENDED",
                    "FAILED_SUSPENDED",
                    "UPDATING",
                    "FAILED_UPDATING",
                    "DESTROYING",
                    "FAILED_DESTROYING",
                    "TERMINATED",
                    "HIBERNATING",
                    "FAILED_HIBERNATING",
                    "MAINTENANCE",
                    "FAILED_MAINTENANCE",
                    "UNKNOWN"
                  ]
                }
              ]
            },
            {
              "name": "properties",
              "kind": "required",
              "type": "object",
              "description": "",
              "modelRef": "#/components/schemas/NetworkLoadBalancerForwardingRuleProperties",
              "customType": "NetworkLoadBalancerForwardingRuleProperties",
              "schema": [
                {
                  "name": "name",
                  "kind": "required",
                  "type": "string",
                  "description": "The name of the Network Load Balancer forwarding rule.",
                  "example": "My Network Load Balancer forwarding rule"
                },
                {
                  "name": "algorithm",
                  "kind": "required",
                  "type": "string<ROUND_ROBIN | LEAST_CONNECTION | RANDOM | SOURCE_IP>",
                  "description": "Balancing algorithm",
                  "example": "ROUND_ROBIN",
                  "enum": [
                    "ROUND_ROBIN",
                    "LEAST_CONNECTION",
                    "RANDOM",
                    "SOURCE_IP"
                  ]
                },
                {
                  "name": "protocol",
                  "kind": "required",
                  "type": "string<HTTP | TCP>",
                  "description": "Balancing protocol",
                  "example": "HTTP",
                  "enum": [
                    "HTTP",
                    "TCP"
                  ]
                },
                {
                  "name": "listenerIp",
                  "kind": "required",
                  "type": "string",
                  "description": "<p>Listening (inbound) IP.</p>",
                  "example": "81.173.1.2"
                },
                {
                  "name": "listenerPort",
                  "kind": "required",
                  "type": "integer<int32>",
                  "description": "<p>Listening (inbound) port number; valid range is 1 to 65535.</p>",
                  "example": 8080,
                  "format": "int32"
                },
                {
                  "name": "healthCheck",
                  "kind": "optional",
                  "type": "object",
                  "description": "",
                  "modelRef": "#/components/schemas/NetworkLoadBalancerForwardingRuleHealthCheck",
                  "customType": "NetworkLoadBalancerForwardingRuleHealthCheck",
                  "schema": [
                    {
                      "name": "clientTimeout",
                      "kind": "optional",
                      "type": "integer<int32>",
                      "description": "<p>The maximum time in milliseconds to wait for the client to acknowledge or send data; default is 50,000 (50 seconds).</p>",
                      "example": 50,
                      "format": "int32"
                    },
                    {
                      "name": "connectTimeout",
                      "kind": "optional",
                      "type": "integer<int32>",
                      "description": "<p>The maximum time in milliseconds to wait for a connection attempt to a target to succeed; default is 5000 (five seconds).</p>",
                      "example": 5000,
                      "format": "int32"
                    },
                    {
                      "name": "targetTimeout",
                      "kind": "optional",
                      "type": "integer<int32>",
                      "description": "<p>The maximum time in milliseconds that a target can remain inactive; default is 50,000 (50 seconds).</p>",
                      "example": 50000,
                      "format": "int32"
                    },
                    {
                      "name": "retries",
                      "kind": "optional",
                      "type": "integer<int32>",
                      "description": "The maximum number of attempts to reconnect to a target after a connection failure. Valid range is 0 to 65535 and default is three reconnection attempts.",
                      "example": 3,
                      "format": "int32"
                    }
                  ]
                },
                {
                  "name": "targets",
                  "kind": "required",
                  "type": "array",
                  "description": "Array of items in the collection.",
                  "modelRef": "#/components/schemas/NetworkLoadBalancerForwardingRuleTarget",
                  "customType": "NetworkLoadBalancerForwardingRuleTarget[]",
                  "schema": [
                    {
                      "name": "ip",
                      "kind": "required",
                      "type": "string",
                      "description": "The IP of the balanced target VM.",
                      "example": "22.231.2.2"
                    },
                    {
                      "name": "port",
                      "kind": "required",
                      "type": "integer<int32>",
                      "description": "<p>The port of the balanced target service; valid range is 1 to 65535.</p>",
                      "example": 8080,
                      "format": "int32"
                    },
                    {
                      "name": "weight",
                      "kind": "required",
                      "type": "integer<int32>",
                      "description": "<p>Traffic is distributed in proportion to target weight, relative to the combined weight of all targets. A target with higher weight receives a greater share of traffic. Valid range is 0 to 256 and default is 1. Targets with weight of 0 do not participate in load balancing but still accept persistent connections. It is best to assign weights in the middle of the range to leave room for later adjustments.</p>",
                      "example": 123,
                      "format": "int32"
                    },
                    {
                      "name": "proxyProtocol",
                      "kind": "optional",
                      "type": "string<none | v1 | v2 | v2ssl>",
                      "description": "Proxy protocol version.",
                      "example": "v1",
                      "default": "none",
                      "enum": [
                        "none",
                        "v1",
                        "v2",
                        "v2ssl"
                      ]
                    },
                    {
                      "name": "healthCheck",
                      "kind": "optional",
                      "type": "object",
                      "description": "",
                      "modelRef": "#/components/schemas/NetworkLoadBalancerForwardingRuleTargetHealthCheck",
                      "customType": "NetworkLoadBalancerForwardingRuleTargetHealthCheck",
                      "schema": [
                        {
                          "name": "check",
                          "kind": "optional",
                          "type": "boolean",
                          "description": "<p>Makes the target available only if it accepts periodic health check TCP connection attempts; when turned off, the target is considered always available. The health check only consists of a connection attempt to the address and port of the target.</p>"
                        },
                        {
                          "name": "checkInterval",
                          "kind": "optional",
                          "type": "integer<int32>",
                          "description": "<p>The interval in milliseconds between consecutive health checks; default is 2000.</p>",
                          "example": 2000,
                          "format": "int32"
                        },
                        {
                          "name": "maintenance",
                          "kind": "optional",
                          "type": "boolean",
                          "description": "Maintenance mode prevents the target from receiving balanced traffic."
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ],
          "modelRef": "#/components/schemas/NetworkLoadBalancerForwardingRule",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "BasicAuthentication",
          "name": "BasicAuthentication",
          "kind": "optional",
          "type": "http",
          "description": "<p>You will need to base64 encode the string containing your credentials. \nNote:\n\n</p>",
          "scheme": "basic"
        },
        {
          "id": "TokenAuthentication",
          "name": "Authorization",
          "kind": "optional",
          "type": "apiKey",
          "description": "<p>Please provide header value as 'Bearer ' and don't forget to add 'Bearer' HTTP Authorization Scheme before the token.</p>",
          "in": "header"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "202",
        "description": "Successful operation",
        "jsonExample": "",
        "isExpanded": true,
        "headers": [
          {
            "kind": "optional",
            "name": "X-RateLimit-Remaining",
            "type": "integer<int32>",
            "description": "The number of requests that can still be made without triggering a failure response.",
            "format": "int32"
          },
          {
            "kind": "optional",
            "name": "X-RateLimit-Limit",
            "type": "integer<int32>",
            "description": "The average number of requests per minute allowed.",
            "format": "int32"
          },
          {
            "kind": "optional",
            "name": "X-RateLimit-Burst",
            "type": "integer<int32>",
            "description": "The maximum number of concurrent API requests allowed.",
            "format": "int32"
          },
          {
            "kind": "optional",
            "name": "Location",
            "type": "string",
            "description": "Callback URL to poll async operation status.",
            "pattern": "https://[apiBaseUri]/requests/[requestId]/status"
          }
        ],
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "NetworkLoadBalancerForwardingRule",
            "schema": [
              {
                "name": "id",
                "kind": "optional",
                "type": "string",
                "readOnly": true,
                "description": "The resource's unique identifier.",
                "example": "15f67991-0f51-4efc-a8ad-ef1fb31a480c"
              },
              {
                "name": "type",
                "kind": "optional",
                "type": "object",
                "description": "",
                "complexType": "allOf",
                "complexItems": [
                  {
                    "name": "Type",
                    "description": "",
                    "modelRef": "#/components/schemas/Type",
                    "schema": []
                  }
                ],
                "schema": []
              },
              {
                "name": "href",
                "kind": "optional",
                "type": "string<uri>",
                "readOnly": true,
                "description": "<p>URL to the object representation (absolute path).</p>",
                "example": "<RESOURCE-URI>",
                "format": "uri"
              },
              {
                "name": "metadata",
                "kind": "optional",
                "type": "object",
                "description": "",
                "modelRef": "#/components/schemas/DatacenterElementMetadata",
                "customType": "DatacenterElementMetadata",
                "schema": [
                  {
                    "name": "etag",
                    "kind": "optional",
                    "type": "string",
                    "readOnly": true,
                    "description": "<p>Resource's Entity Tag as defined in <a href=\"http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11\" target=\"_blank\">http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11</a>  Entity Tag is also added as an 'ETag response header to requests which don't use 'depth' parameter.</p>",
                    "example": "45480eb3fbfc31f1d916c1eaa4abdcc3"
                  },
                  {
                    "name": "createdDate",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "readOnly": true,
                    "description": "The last time the resource was created.",
                    "example": "2015-12-04T14:34:09.809Z",
                    "format": "date-time"
                  },
                  {
                    "name": "createdBy",
                    "kind": "optional",
                    "type": "string",
                    "readOnly": true,
                    "description": "The user who created the resource.",
                    "example": "user@example.com"
                  },
                  {
                    "name": "createdByUserId",
                    "kind": "optional",
                    "type": "string",
                    "readOnly": true,
                    "description": "The unique ID of the user who created the resource.",
                    "example": "user@example.com"
                  },
                  {
                    "name": "lastModifiedDate",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "readOnly": true,
                    "description": "The last time the resource was modified.",
                    "example": "2015-12-04T14:34:09.809Z",
                    "format": "date-time"
                  },
                  {
                    "name": "lastModifiedBy",
                    "kind": "optional",
                    "type": "string",
                    "readOnly": true,
                    "description": "The user who last modified the resource.",
                    "example": "user@example.com"
                  },
                  {
                    "name": "lastModifiedByUserId",
                    "kind": "optional",
                    "type": "string",
                    "readOnly": true,
                    "description": "The unique ID of the user who last modified the resource.",
                    "example": "63cef532-26fe-4a64-a4e0-de7c8a506c90"
                  },
                  {
                    "name": "state",
                    "kind": "optional",
                    "type": "string<AVAILABLE | INACTIVE | BUSY | DEPLOYING | ACTIVE | FAILED | SUSPENDED | FAILED_SUSPENDED | UPDATING | FAILED_UPDATING | DESTROYING | FAILED_DESTROYING | TERMINATED | HIBERNATING | FAILED_HIBERNATING | MAINTENANCE | FAILED_MAINTENANCE | UNKNOWN>",
                    "readOnly": true,
                    "description": "<p>State of the resource. <em>AVAILABLE</em> There are no pending modification requests for this item; <em>BUSY</em> There is at least one modification request pending and all following requests will be queued; <em>INACTIVE</em> Resource has been de-provisioned; <em>DEPLOYING</em> Resource state DEPLOYING - relevant for Kubernetes cluster/nodepool; <em>ACTIVE</em> Resource state ACTIVE - relevant for Kubernetes cluster/nodepool; <em>FAILED</em> Resource state FAILED - relevant for Kubernetes cluster/nodepool; <em>SUSPENDED</em> Resource state SUSPENDED - relevant for Kubernetes cluster/nodepool; <em>FAILED_SUSPENDED</em> Resource state FAILED_SUSPENDED - relevant for Kubernetes cluster; <em>UPDATING</em> Resource state UPDATING - relevant for Kubernetes cluster/nodepool; <em>FAILED_UPDATING</em> Resource state FAILED_UPDATING - relevant for Kubernetes cluster/nodepool; <em>DESTROYING</em> Resource state DESTROYING - relevant for Kubernetes cluster; <em>FAILED_DESTROYING</em> Resource state FAILED_DESTROYING - relevant for Kubernetes cluster/nodepool; <em>TERMINATED</em> Resource state TERMINATED - relevant for Kubernetes cluster/nodepool; <em>HIBERNATING</em> Resource state HIBERNATING - relevant for Kubernetes cluster/nodepool; <em>FAILED_HIBERNATING</em> Resource state FAILED_HIBERNATING - relevant for Kubernetes cluster/nodepool; <em>MAINTENANCE</em> Resource state MAINTENANCE - relevant for Kubernetes cluster/nodepool; <em>FAILED_HIBERNATING</em> Resource state FAILED_HIBERNATING - relevant for Kubernetes cluster/nodepool.</p>",
                    "example": "AVAILABLE",
                    "enum": [
                      "AVAILABLE",
                      "INACTIVE",
                      "BUSY",
                      "DEPLOYING",
                      "ACTIVE",
                      "FAILED",
                      "SUSPENDED",
                      "FAILED_SUSPENDED",
                      "UPDATING",
                      "FAILED_UPDATING",
                      "DESTROYING",
                      "FAILED_DESTROYING",
                      "TERMINATED",
                      "HIBERNATING",
                      "FAILED_HIBERNATING",
                      "MAINTENANCE",
                      "FAILED_MAINTENANCE",
                      "UNKNOWN"
                    ]
                  }
                ]
              },
              {
                "name": "properties",
                "kind": "required",
                "type": "object",
                "description": "",
                "modelRef": "#/components/schemas/NetworkLoadBalancerForwardingRuleProperties",
                "customType": "NetworkLoadBalancerForwardingRuleProperties",
                "schema": [
                  {
                    "name": "name",
                    "kind": "required",
                    "type": "string",
                    "description": "The name of the Network Load Balancer forwarding rule.",
                    "example": "My Network Load Balancer forwarding rule"
                  },
                  {
                    "name": "algorithm",
                    "kind": "required",
                    "type": "string<ROUND_ROBIN | LEAST_CONNECTION | RANDOM | SOURCE_IP>",
                    "description": "Balancing algorithm",
                    "example": "ROUND_ROBIN",
                    "enum": [
                      "ROUND_ROBIN",
                      "LEAST_CONNECTION",
                      "RANDOM",
                      "SOURCE_IP"
                    ]
                  },
                  {
                    "name": "protocol",
                    "kind": "required",
                    "type": "string<HTTP | TCP>",
                    "description": "Balancing protocol",
                    "example": "HTTP",
                    "enum": [
                      "HTTP",
                      "TCP"
                    ]
                  },
                  {
                    "name": "listenerIp",
                    "kind": "required",
                    "type": "string",
                    "description": "<p>Listening (inbound) IP.</p>",
                    "example": "81.173.1.2"
                  },
                  {
                    "name": "listenerPort",
                    "kind": "required",
                    "type": "integer<int32>",
                    "description": "<p>Listening (inbound) port number; valid range is 1 to 65535.</p>",
                    "example": 8080,
                    "format": "int32"
                  },
                  {
                    "name": "healthCheck",
                    "kind": "optional",
                    "type": "object",
                    "description": "",
                    "modelRef": "#/components/schemas/NetworkLoadBalancerForwardingRuleHealthCheck",
                    "customType": "NetworkLoadBalancerForwardingRuleHealthCheck",
                    "schema": [
                      {
                        "name": "clientTimeout",
                        "kind": "optional",
                        "type": "integer<int32>",
                        "description": "<p>The maximum time in milliseconds to wait for the client to acknowledge or send data; default is 50,000 (50 seconds).</p>",
                        "example": 50,
                        "format": "int32"
                      },
                      {
                        "name": "connectTimeout",
                        "kind": "optional",
                        "type": "integer<int32>",
                        "description": "<p>The maximum time in milliseconds to wait for a connection attempt to a target to succeed; default is 5000 (five seconds).</p>",
                        "example": 5000,
                        "format": "int32"
                      },
                      {
                        "name": "targetTimeout",
                        "kind": "optional",
                        "type": "integer<int32>",
                        "description": "<p>The maximum time in milliseconds that a target can remain inactive; default is 50,000 (50 seconds).</p>",
                        "example": 50000,
                        "format": "int32"
                      },
                      {
                        "name": "retries",
                        "kind": "optional",
                        "type": "integer<int32>",
                        "description": "The maximum number of attempts to reconnect to a target after a connection failure. Valid range is 0 to 65535 and default is three reconnection attempts.",
                        "example": 3,
                        "format": "int32"
                      }
                    ]
                  },
                  {
                    "name": "targets",
                    "kind": "required",
                    "type": "array",
                    "description": "Array of items in the collection.",
                    "modelRef": "#/components/schemas/NetworkLoadBalancerForwardingRuleTarget",
                    "customType": "NetworkLoadBalancerForwardingRuleTarget[]",
                    "schema": [
                      {
                        "name": "ip",
                        "kind": "required",
                        "type": "string",
                        "description": "The IP of the balanced target VM.",
                        "example": "22.231.2.2"
                      },
                      {
                        "name": "port",
                        "kind": "required",
                        "type": "integer<int32>",
                        "description": "<p>The port of the balanced target service; valid range is 1 to 65535.</p>",
                        "example": 8080,
                        "format": "int32"
                      },
                      {
                        "name": "weight",
                        "kind": "required",
                        "type": "integer<int32>",
                        "description": "<p>Traffic is distributed in proportion to target weight, relative to the combined weight of all targets. A target with higher weight receives a greater share of traffic. Valid range is 0 to 256 and default is 1. Targets with weight of 0 do not participate in load balancing but still accept persistent connections. It is best to assign weights in the middle of the range to leave room for later adjustments.</p>",
                        "example": 123,
                        "format": "int32"
                      },
                      {
                        "name": "proxyProtocol",
                        "kind": "optional",
                        "type": "string<none | v1 | v2 | v2ssl>",
                        "description": "Proxy protocol version.",
                        "example": "v1",
                        "default": "none",
                        "enum": [
                          "none",
                          "v1",
                          "v2",
                          "v2ssl"
                        ]
                      },
                      {
                        "name": "healthCheck",
                        "kind": "optional",
                        "type": "object",
                        "description": "",
                        "modelRef": "#/components/schemas/NetworkLoadBalancerForwardingRuleTargetHealthCheck",
                        "customType": "NetworkLoadBalancerForwardingRuleTargetHealthCheck",
                        "schema": [
                          {
                            "name": "check",
                            "kind": "optional",
                            "type": "boolean",
                            "description": "<p>Makes the target available only if it accepts periodic health check TCP connection attempts; when turned off, the target is considered always available. The health check only consists of a connection attempt to the address and port of the target.</p>"
                          },
                          {
                            "name": "checkInterval",
                            "kind": "optional",
                            "type": "integer<int32>",
                            "description": "<p>The interval in milliseconds between consecutive health checks; default is 2000.</p>",
                            "example": 2000,
                            "format": "int32"
                          },
                          {
                            "name": "maintenance",
                            "kind": "optional",
                            "type": "boolean",
                            "description": "Maintenance mode prevents the target from receiving balanced traffic."
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/NetworkLoadBalancerForwardingRule",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "default",
        "description": "<p>Any erroneous status code: 400 (parse error), 401 (auth error), 402 (trial access), 403 (insufficient privileges), 404 (not found), 405 (unsupported HTTP method), 415 (unsupported content type, 422 (validation error), 429 (request rate limit exceeded), 500 (server error), or 503 (maintenance).</p>",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "Error",
            "schema": [
              {
                "name": "httpStatus",
                "kind": "optional",
                "type": "integer<int32>",
                "readOnly": true,
                "description": "HTTP status code of the operation.",
                "example": 400,
                "format": "int32"
              },
              {
                "name": "messages",
                "kind": "optional",
                "type": "array",
                "description": "",
                "modelRef": "#/components/schemas/ErrorMessage",
                "customType": "ErrorMessage[]",
                "schema": [
                  {
                    "name": "errorCode",
                    "kind": "optional",
                    "type": "string",
                    "readOnly": true,
                    "description": "Application internal error code.",
                    "example": "123"
                  },
                  {
                    "name": "message",
                    "kind": "optional",
                    "type": "string",
                    "readOnly": true,
                    "description": "<p>A human-readable message.</p>",
                    "example": "Error message example."
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/Error",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "p8lFPcnMuU-KAKeq704uu",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url 'https://api.ionos.com/cloudapi/v6/datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/forwardingrules?pretty=true&depth=integer%3Cint32%3E' \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"type\": {},\n     \"properties\": {\n     \"name\": \"My Network Load Balancer forwarding rule\",\n     \"algorithm\": \"ROUND_ROBIN\",\n     \"protocol\": \"HTTP\",\n     \"listenerIp\": \"81.173.1.2\",\n     \"listenerPort\": 8080,\n     \"targets\": [\n     {\n     \"ip\": \"22.231.2.2\",\n     \"port\": 8080,\n     \"weight\": 123,\n     \"proxyProtocol\": \"none\"\n     }\n     ]\n     }\n     }'"
        },
        {
          "id": "RBfQqWcosd-Vt3UKAgOau",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"type\": {},\n   \"properties\": {\n      \"name\": \"My Network Load Balancer forwarding rule\",\n      \"algorithm\": \"ROUND_ROBIN\",\n      \"protocol\": \"HTTP\",\n      \"listenerIp\": \"81.173.1.2\",\n      \"listenerPort\": 8080,\n      \"targets\": [\n         {\n            \"ip\": \"22.231.2.2\",\n            \"port\": 8080,\n            \"weight\": 123,\n            \"proxyProtocol\": \"none\"\n         }\n      ]\n   }\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.ionos.com/cloudapi/v6/datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/forwardingrules?pretty=true&depth=integer<int32>\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "U2DFNegvqMPV3o7uxf7Y1",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.ionos.com/cloudapi/v6/datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/forwardingrules?pretty=true&depth=integer<int32>\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"type\": {},\n   \"properties\": {\n      \"name\": \"My Network Load Balancer forwarding rule\",\n      \"algorithm\": \"ROUND_ROBIN\",\n      \"protocol\": \"HTTP\",\n      \"listenerIp\": \"81.173.1.2\",\n      \"listenerPort\": 8080,\n      \"targets\": [\n         {\n            \"ip\": \"22.231.2.2\",\n            \"port\": 8080,\n            \"weight\": 123,\n            \"proxyProtocol\": \"none\"\n         }\n      ]\n   }\n})\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "IIzSB3YB3EFunmiwuKnsh",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.ionos.com/cloudapi/v6/datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/forwardingrules?pretty=true&depth=integer<int32>\"\n\npayload = json.dumps({\n   \"type\": {},\n   \"properties\": {\n      \"name\": \"My Network Load Balancer forwarding rule\",\n      \"algorithm\": \"ROUND_ROBIN\",\n      \"protocol\": \"HTTP\",\n      \"listenerIp\": \"81.173.1.2\",\n      \"listenerPort\": 8080,\n      \"targets\": [\n         {\n            \"ip\": \"22.231.2.2\",\n            \"port\": 8080,\n            \"weight\": 123,\n            \"proxyProtocol\": \"none\"\n         }\n      ]\n   }\n})\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "p8lFPcnMuU-KAKeq704uu"
    },
    "results": {
      "languages": [
        {
          "id": "8jYT6C8LRhbPE3eyF6G5e",
          "language": "202",
          "code": "// Successful operation\n{\n  \"id\": \"15f67991-0f51-4efc-a8ad-ef1fb31a480c\",\n  \"type\": {},\n  \"href\": \"<RESOURCE-URI>\",\n  \"metadata\": {\n    \"etag\": \"45480eb3fbfc31f1d916c1eaa4abdcc3\",\n    \"createdDate\": \"2015-12-04T14:34:09.809Z\",\n    \"createdBy\": \"user@example.com\",\n    \"createdByUserId\": \"user@example.com\",\n    \"lastModifiedDate\": \"2015-12-04T14:34:09.809Z\",\n    \"lastModifiedBy\": \"user@example.com\",\n    \"lastModifiedByUserId\": \"63cef532-26fe-4a64-a4e0-de7c8a506c90\",\n    \"state\": \"AVAILABLE\"\n  },\n  \"properties\": {\n    \"name\": \"My Network Load Balancer forwarding rule\",\n    \"algorithm\": \"ROUND_ROBIN\",\n    \"protocol\": \"HTTP\",\n    \"listenerIp\": \"81.173.1.2\",\n    \"listenerPort\": 8080,\n    \"healthCheck\": {\n      \"clientTimeout\": 50,\n      \"connectTimeout\": 5000,\n      \"targetTimeout\": 50000,\n      \"retries\": 3\n    },\n    \"targets\": [\n      {\n        \"ip\": \"22.231.2.2\",\n        \"port\": 8080,\n        \"weight\": 123,\n        \"proxyProtocol\": \"v1\",\n        \"healthCheck\": {\n          \"check\": false,\n          \"checkInterval\": 2000,\n          \"maintenance\": false\n        }\n      }\n    ]\n  }\n}"
        },
        {
          "id": "aqDduwVlJRwC-cXjO_5Bd",
          "language": "default",
          "code": "// Any erroneous status code: 400 (parse error), 401 (auth error), 402 (trial access), 403 (insufficient privileges), 404 (not found), 405 (unsupported HTTP method), 415 (unsupported content type, 422 (validation error), 429 (request rate limit exceeded), 500 (server error), or 503 (maintenance).\n{\n  \"httpStatus\": 400,\n  \"messages\": [\n    {\n      \"errorCode\": \"123\",\n      \"message\": \"Error message example.\"\n    }\n  ]\n}"
        }
      ],
      "selectedLanguageId": "8jYT6C8LRhbPE3eyF6G5e"
    }
  },
  "children": [
    {
      "text": "",
      "id": "QduYQX2-9SHKdEETBJWKz"
    }
  ]
}