Skip to content

Get a hosted compute network configuration for an organization

GET
/orgs/{org}/settings/network-configurations/{network_configuration_id}

Gets a hosted compute network configuration configured in an organization.

OAuth app tokens and personal access tokens (classic) need the read:network_configurations scope to use this endpoint.

API method documentation

org
required
string

The organization name. The name is not case sensitive.

network_configuration_id
required
string

Unique identifier of the hosted compute network configuration.

Response

Media type application/json
Hosted compute network configuration

A hosted compute network configuration.

object
id
required

The unique identifier of the network configuration.

string
name
required

The name of the network configuration.

string
compute_service

The hosted compute service the network configuration supports.

string
Allowed values: none actions codespaces
network_settings_ids

The unique identifier of each network settings in the configuration.

Array<string>
failover_network_settings_ids

The unique identifier of each failover network settings in the configuration.

Array<string>
failover_network_enabled

Indicates whether the failover network resource is enabled.

boolean
created_on
required

The time at which the network configuration was created, in ISO 8601 format.

string format: date-time
nullable
Examples
Example default
{
"id": "123456789ABCDEF",
"name": "My network configuration",
"compute_service": "actions",
"network_settings_ids": [
"23456789ABDCEF1",
"3456789ABDCEF12"
],
"created_on": "2022-10-09T23:39:01Z"
}
Link
string
Example
<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last"