GET
/api/networks/{networkId}/resources/{resourceId}Retrieve a network resource
Retrieves a network resource from a specified network. Use networkId and resourceId to identify the network and resource to retrieve. The response includes the resource's address, status, and group information.
networkIdstringrequired
The unique identifier of the network containing the resource.
resourceIdstringrequired
The unique identifier of the network resource to retrieve.
200Returns the network resource object, including its identifier, type, groups, address, name, enabled status, and description.
groupsarray<object>required
Groups that the resource belongs to
idstringrequired
Network Resource ID
typestringrequired
Network resource type based of the address
addressstringrequired
Network resource address (either a direct host like 1.1.1.1 or 1.1.1.1/32, or a subnet like 192.168.178.0/24, or domains like example.com and *.example.com)
descriptionstringoptional
Network resource description
enabledbooleanrequired
Network resource status
namestringrequired
Network resource name
400Returned when the request is invalid.
401Returned when the request lacks valid authentication.
403Returned when the authenticated user is not permitted to retrieve the network resource.
500Returned when an internal server error occurs.
Error handling
A 400 indicates an invalid request; a 401 indicates missing or invalid authentication; a 403 indicates insufficient permission; and a 500 indicates an internal server error. The networkId path parameter must identify the network, and the resourceId path parameter must identify the resource to retrieve.