Register node to a logical gateway
/apiplatform/gatewaynode/v1/registration
Registers the node to a logical gateway on the management tier.
Users requesting this resource must be assigned the Gateway Manager role for the logical gateway this node is to be registered to.
Request
- application/json
-
object ManagementTierUrls
-
object GatewayId
-
object NodeName
-
object GatewayRuntimeCredentials
-
object NodeProperties
The node's properties.
object
-
analyticsManagementUrl(optional):
string
The URL of the analytics service this node is associated with.
-
managementUrl:
string
The URL of the management service this node is associated with.
-
registryManagementUrl(optional):
string
The URL of the registration service this node is associated with.
-
runtimeScope(optional):
string
The scope for the Oracle Identity Cloud Service application associated with the management service.
-
tokenIssuerUrl:
string
The URL of the Oracle Identity Cloud Service instance that the management service is associated with.
object
-
gatewayId:
string
The ID of the logical gateway the node is registered to.
object
-
gatewayRuntimeClientId:
string
The client ID for the client in Oracle Identity Cloud Service that is to be used by the node.
-
gatewayRuntimeClientSecret:
string
The client secret for the client in Oracle Identity Cloud Service that is to be used by the node.
-
gatewayRuntimePassword:
string
The password of the Gateway Runtime user associated with the node.
-
gatewayRuntimeUsername:
string
The username of the Gateway Runtime user associated with the node.
array
-
Array of:
string
Proxy the node uses to communicate with the management tier, in this format:
.:// :
array
-
Array of:
string
The external IP/hostname for the gateway, which is visible to the management tier.
Response
- application/json
- text/plain
200 Response
object
-
message(optional):
string
Message about the state of registration
-
nodeId:
string
The node's ID.
400 Response
object
-
detail(optional):
string
Detailed error message.
-
errorCode(optional):
string
Application-specific error code.
-
errorDetails(optional):
array errorDetails
Additional errors.
-
errorPath(optional):
string
-
instance(optional):
string
URI to the link that provides more detail about the error.
-
status(optional):
string
HTTP status code.
-
title:
string
Summary error message.
-
type:
string
Error type.
array
-
Array of:
object Error
Error Definition.
401 Response
object
-
detail(optional):
string
Detailed error message.
-
errorCode(optional):
string
Application-specific error code.
-
errorDetails(optional):
array errorDetails
Additional errors.
-
errorPath(optional):
string
-
instance(optional):
string
URI to the link that provides more detail about the error.
-
status(optional):
string
HTTP status code.
-
title:
string
Summary error message.
-
type:
string
Error type.
array
-
Array of:
object Error
Error Definition.
403 Response
object
-
detail(optional):
string
Detailed error message.
-
errorCode(optional):
string
Application-specific error code.
-
errorDetails(optional):
array errorDetails
Additional errors.
-
errorPath(optional):
string
-
instance(optional):
string
URI to the link that provides more detail about the error.
-
status(optional):
string
HTTP status code.
-
title:
string
Summary error message.
-
type:
string
Error type.
array
-
Array of:
object Error
Error Definition.
500 Response
object
-
detail(optional):
string
Detailed error message.
-
errorCode(optional):
string
Application-specific error code.
-
errorDetails(optional):
array errorDetails
Additional errors.
-
errorPath(optional):
string
-
instance(optional):
string
URI to the link that provides more detail about the error.
-
status(optional):
string
HTTP status code.
-
title:
string
Summary error message.
-
type:
string
Error type.
array
-
Array of:
object Error
Error Definition.
Examples
The following example shows how to register a gateway node to a logical gateway in an Oracle API Platform Cloud Service - Classic instance by submitting a POST request on the REST resource using cURL. For more information about cURL, see Use cURL
curl -i -X POST -u apicsadmin:password -H "Content-Type: application/json" -d @node.json https://example.com/apiplatform/gatewaynode/v1/registration
Example of Request Body
The following sample request body in JSON format (included with the request above in a file named node.json
) specifies the details of the logical gateway you want to register the node to.
{ "gatewayId": "177", "gatewayNodeName": "Production Gateway Node 1", "tenantId": "SampleTenant", "tenantInstanceId": "SampleInstance", "managementUrl": "https://example.com:7201", "gatewayRuntimeUsername": "gateway-runtime-user", "gatewayRuntimePassword": "password", "properties": { "nodeProxy": ["http://www-proxy.example.com:80", "https://www-proxy.example.com:80"] } }
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 200 OK Date: Fri, 30 Dec 2016 17:58:40 GMT Transfer-Encoding: chunked Content-Type: application/json
Example of Response Body
The following example shows the contents of the response body in JSON format, including the ID of the registered node.
{ "id": "102" }