Register node to a logical gateway

post

/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

Supported Media Types
Body ()
Root Schema : RegistrationRequest
Match All
Show Source
Nested Schema : ManagementTierUrls
Type: object
Show Source
Nested Schema : GatewayId
Type: object
Show Source
Nested Schema : NodeName
Type: object
Show Source
Nested Schema : GatewayRuntimeCredentials
Type: object
Show Source
Nested Schema : NodeProperties
Type: object
The node's properties.
Show Source
Nested Schema : properties
Type: object
Show Source
Nested Schema : nodeProxy
Type: array
Show Source
Nested Schema : phoneHomeProxy
Type: array
Show Source
  • Proxy the node uses to communicate with the management tier, in this format: ://:.
Nested Schema : publishUrls
Type: array
Show Source
  • The external IP/hostname for the gateway, which is visible to the management tier.
Back to Top

Response

Supported Media Types

200 Response

Registration completed successfully.
Body ()
Root Schema : RegistrationNodeId
Type: object
Show Source

400 Response

Bad request, indicates a problem with the input parameters.
Body ()
Error Definition.
Root Schema : Error
Type: object
Error Definition.
Show Source
Nested Schema : errorDetails
Type: array
Additional errors.
Show Source

401 Response

Authentication required.
Body ()
Error Definition.
Root Schema : Error
Type: object
Error Definition.
Show Source
Nested Schema : errorDetails
Type: array
Additional errors.
Show Source

403 Response

Forbidden.
Body ()
Error Definition.
Root Schema : Error
Type: object
Error Definition.
Show Source
Nested Schema : errorDetails
Type: array
Additional errors.
Show Source

500 Response

Unexpected error.
Body ()
Error Definition.
Root Schema : Error
Type: object
Error Definition.
Show Source
Nested Schema : errorDetails
Type: array
Additional errors.
Show Source
Back to Top

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"
}
Back to Top