{"meta":{"title":"Puntos de conexión de API REST para configuraciones de red empresarial","intro":"Usa la API REST para interactuar con las configuraciones de red empresarial.","product":"REST API","breadcrumbs":[{"href":"/es/enterprise-cloud@latest/rest","title":"REST API"},{"href":"/es/enterprise-cloud@latest/rest/enterprise-admin","title":"Administración empresarial"},{"href":"/es/enterprise-cloud@latest/rest/enterprise-admin/network-configurations","title":"Configuraciones de red"}],"documentType":"article"},"body":"# Puntos de conexión de API REST para configuraciones de red empresarial\n\nUsa la API REST para interactuar con las configuraciones de red empresarial.\n\n> [!NOTE]\n> Most endpoints use `Authorization: Bearer <YOUR-TOKEN>` and `Accept: application/vnd.github+json` headers, plus `X-GitHub-Api-Version: 2026-03-10`. Curl examples below omit these standard headers for brevity.\n\n## List hosted compute network configurations for an enterprise\n\n```\nGET /enterprises/{enterprise}/network-configurations\n```\n\nLists all hosted compute network configurations configured in an enterprise.\n\n### Parameters\n\n#### Headers\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n- **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n- **`per_page`** (integer)\n  The number of results per page (max 100). For more information, see \"Using pagination in the REST API.\"\n  Default: `30`\n\n- **`page`** (integer)\n  The page number of the results to fetch. For more information, see \"Using pagination in the REST API.\"\n  Default: `1`\n\n### HTTP response status codes\n\n- **200** - OK\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/enterprises/ENTERPRISE/network-configurations\n```\n\n**Response schema (Status: 200):**\n\n* `total_count`: required, integer\n* `network_configurations`: required, array of `Hosted compute network configuration`:\n  * `id`: required, string\n  * `name`: required, string\n  * `compute_service`: string, enum: `none`, `actions`, `codespaces`\n  * `network_settings_ids`: array of string\n  * `failover_network_settings_ids`: array of string\n  * `failover_network_enabled`: boolean\n  * `created_on`: required, string or null, format: date-time\n\n## Create a hosted compute network configuration for an enterprise\n\n```\nPOST /enterprises/{enterprise}/network-configurations\n```\n\nCreates a hosted compute network configuration for an enterprise.\n\n### Parameters\n\n#### Headers\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n- **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n#### Body parameters\n\n- **`name`** (string) (required)\n  Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, ., -, and _.\n\n- **`compute_service`** (string)\n  The hosted compute service to use for the network configuration.\n  Can be one of: `none`, `actions`\n\n- **`network_settings_ids`** (array of strings) (required)\n  A list of identifiers of the network settings resources to use for the network configuration. Exactly one resource identifier must be specified in the list.\n\n- **`failover_network_settings_ids`** (array of strings)\n  A list of identifiers of the failover network settings resources to use for the network configuration. Exactly one resource identifier must be specified in the list.\n\n- **`failover_network_enabled`** (boolean)\n  Indicates whether the failover network resource is enabled.\n\n### HTTP response status codes\n\n- **201** - Created\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X POST \\\n  https://api.github.com/enterprises/ENTERPRISE/network-configurations \\\n  -d '{\n  \"name\": \"my-network-configuration\",\n  \"network_settings_ids\": [\n    \"23456789ABDCEF1\"\n  ],\n  \"compute_service\": \"actions\"\n}'\n```\n\n**Response schema (Status: 201):**\n\n* `id`: required, string\n* `name`: required, string\n* `compute_service`: string, enum: `none`, `actions`, `codespaces`\n* `network_settings_ids`: array of string\n* `failover_network_settings_ids`: array of string\n* `failover_network_enabled`: boolean\n* `created_on`: required, string or null, format: date-time\n\n## Get a hosted compute network configuration for an enterprise\n\n```\nGET /enterprises/{enterprise}/network-configurations/{network_configuration_id}\n```\n\nGets a hosted compute network configuration configured in an enterprise.\n\n### Parameters\n\n#### Headers\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n- **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n- **`network_configuration_id`** (string) (required)\n  Unique identifier of the hosted compute network configuration.\n\n### HTTP response status codes\n\n- **200** - OK\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/enterprises/ENTERPRISE/network-configurations/NETWORK_CONFIGURATION_ID\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Create a hosted compute network configuration for an enterprise](#create-a-hosted-compute-network-configuration-for-an-enterprise).\n\n## Update a hosted compute network configuration for an enterprise\n\n```\nPATCH /enterprises/{enterprise}/network-configurations/{network_configuration_id}\n```\n\nUpdates a hosted compute network configuration for an enterprise.\n\n### Parameters\n\n#### Headers\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n- **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n- **`network_configuration_id`** (string) (required)\n  Unique identifier of the hosted compute network configuration.\n\n#### Body parameters\n\n- **`name`** (string)\n  Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, ., -, and _.\n\n- **`compute_service`** (string)\n  The hosted compute service to use for the network configuration.\n  Can be one of: `none`, `actions`\n\n- **`network_settings_ids`** (array of strings)\n  A list of identifiers of the network settings resources to use for the network configuration. Exactly one resource identifier must be specified in the list.\n\n- **`failover_network_settings_ids`** (array of strings)\n  A list of identifiers of the failover network settings resources to use for the network configuration. Exactly one resource identifier must be specified in the list.\n\n- **`failover_network_enabled`** (boolean)\n  Indicates whether the failover network resource is enabled.\n\n### HTTP response status codes\n\n- **200** - OK\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X PATCH \\\n  https://api.github.com/enterprises/ENTERPRISE/network-configurations/NETWORK_CONFIGURATION_ID \\\n  -d '{\n  \"name\": \"my-network-configuration\",\n  \"network_settings_ids\": [\n    \"23456789ABDCEF1\"\n  ],\n  \"compute_service\": \"actions\"\n}'\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Create a hosted compute network configuration for an enterprise](#create-a-hosted-compute-network-configuration-for-an-enterprise).\n\n## Delete a hosted compute network configuration from an enterprise\n\n```\nDELETE /enterprises/{enterprise}/network-configurations/{network_configuration_id}\n```\n\nDeletes a hosted compute network configuration from an enterprise.\n\n### Parameters\n\n#### Headers\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n- **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n- **`network_configuration_id`** (string) (required)\n  Unique identifier of the hosted compute network configuration.\n\n### HTTP response status codes\n\n- **204** - No Content\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X DELETE \\\n  https://api.github.com/enterprises/ENTERPRISE/network-configurations/NETWORK_CONFIGURATION_ID\n```\n\n**Response schema (Status: 204):**\n\n## Get a hosted compute network settings resource for an enterprise\n\n```\nGET /enterprises/{enterprise}/network-settings/{network_settings_id}\n```\n\nGets a hosted compute network settings resource configured for an enterprise.\n\n### Parameters\n\n#### Headers\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n- **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n- **`network_settings_id`** (string) (required)\n  Unique identifier of the hosted compute network settings.\n\n### HTTP response status codes\n\n- **200** - OK\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/enterprises/ENTERPRISE/network-settings/NETWORK_SETTINGS_ID\n```\n\n**Response schema (Status: 200):**\n\n* `id`: required, string\n* `network_configuration_id`: string\n* `name`: required, string\n* `subnet_id`: required, string\n* `region`: required, string"}