Endpoint
/v1/portal/spokes/{id}
GET
Retrieve the relationship status and configuration for the specified spoke portal. Important
This preview REST API is under development. Its functionality or backwards compatibility can change without notice.
This preview REST API is under development. Its functionality or backwards compatibility can change without notice.
Parameters
Name | Description | Required |
---|---|---|
id |
Portal ID | Yes |
Response
Codes
Code | Description |
---|---|
200 | Return value on success |
Schema
{
"description": "api_portal_spoke_relationship",
"type": "object",
"properties": {
"id": {
"description": "Spoke portal ID",
"type": "number"
},
"state": {
"type": "string",
"enum": [
"UNLINKED",
"PENDING",
"ACTIVE",
"ENDED"
],
"description": "State of the portal:\n * `ACTIVE` - PORTAL_ACTIVE,\n * `ENDED` - PORTAL_ENDED,\n * `PENDING` - PORTAL_PENDING,\n * `UNLINKED` - PORTAL_UNLINKED"
},
"spoke_type": {
"type": "string",
"enum": [
"SPOKE_READ_ONLY",
"SPOKE_READ_WRITE"
],
"description": "Type of the spoke portal:\n * `SPOKE_READ_ONLY` - SPOKE_READ_ONLY,\n * `SPOKE_READ_WRITE` - SPOKE_READ_WRITE"
},
"spoke_root": {
"description": "Local spoke portal root directory file ID",
"type": "string"
},
"spoke_root_path": {
"description": "Local spoke portal root directory path",
"type": "string"
},
"hub_id": {
"description": "Corresponding remote hub portal ID (if in a relationship)",
"type": "number"
},
"hub_cluster_uuid": {
"description": "UUID of the cluster with the hub portal (if in a relationship)",
"type": "string"
},
"hub_root": {
"description": "Remote hub portal root directory (if in a relationship)",
"type": "string"
},
"hub_address": {
"description": "IP address of a node in the cluster with the hub portal (if in a relationship)",
"type": "string"
},
"hub_port": {
"description": "TCP port for the cluster with the hub portal (if in a relationship)",
"type": "number"
}
}
}
DELETE
Delete the specified spoke portal from the current cluster. Important
This preview REST API is under development. Its functionality or backwards compatibility can change without notice.
This preview REST API is under development. Its functionality or backwards compatibility can change without notice.
Parameters
Name | Description | Required |
---|---|---|
id |
Portal ID | Yes |
Response
Codes
Code | Description |
---|---|
200 | Return value on success |
PATCH
Change configuration for the specified spoke portal. Important
This preview REST API is under development. Its functionality or backwards compatibility can change without notice.
This preview REST API is under development. Its functionality or backwards compatibility can change without notice.
Parameters
Name | Description | Required |
---|---|---|
id |
Portal ID | Yes |
If-Match |
ETag for expected version | No |
Request
Schema
{
"description": "api_portal_spoke_relationship_patch",
"type": "object",
"properties": {
"id": {
"description": "Spoke portal ID",
"type": "number"
},
"state": {
"type": "string",
"enum": [
"UNLINKED",
"PENDING",
"ACTIVE",
"ENDED"
],
"description": "State of the portal:\n * `ACTIVE` - PORTAL_ACTIVE,\n * `ENDED` - PORTAL_ENDED,\n * `PENDING` - PORTAL_PENDING,\n * `UNLINKED` - PORTAL_UNLINKED"
},
"spoke_type": {
"type": "string",
"enum": [
"SPOKE_READ_ONLY",
"SPOKE_READ_WRITE"
],
"description": "Type of the spoke portal:\n * `SPOKE_READ_ONLY` - SPOKE_READ_ONLY,\n * `SPOKE_READ_WRITE` - SPOKE_READ_WRITE"
},
"spoke_root": {
"description": "Local spoke portal root directory file ID",
"type": "string"
},
"spoke_root_path": {
"description": "Local spoke portal root directory path",
"type": "string"
},
"hub_id": {
"description": "Corresponding remote hub portal ID (if in a relationship)",
"type": "number"
},
"hub_cluster_uuid": {
"description": "UUID of the cluster with the hub portal (if in a relationship)",
"type": "string"
},
"hub_root": {
"description": "Remote hub portal root directory (if in a relationship)",
"type": "string"
},
"hub_address": {
"description": "IP address of a node in the cluster with the hub portal (if in a relationship)",
"type": "string"
},
"hub_port": {
"description": "TCP port for the cluster with the hub portal (if in a relationship)",
"type": "number"
}
}
}
Response
Codes
Code | Description |
---|---|
200 | Return value on success |
Schema
{
"description": "api_portal_spoke_relationship",
"type": "object",
"properties": {
"id": {
"description": "Spoke portal ID",
"type": "number"
},
"state": {
"type": "string",
"enum": [
"UNLINKED",
"PENDING",
"ACTIVE",
"ENDED"
],
"description": "State of the portal:\n * `ACTIVE` - PORTAL_ACTIVE,\n * `ENDED` - PORTAL_ENDED,\n * `PENDING` - PORTAL_PENDING,\n * `UNLINKED` - PORTAL_UNLINKED"
},
"spoke_type": {
"type": "string",
"enum": [
"SPOKE_READ_ONLY",
"SPOKE_READ_WRITE"
],
"description": "Type of the spoke portal:\n * `SPOKE_READ_ONLY` - SPOKE_READ_ONLY,\n * `SPOKE_READ_WRITE` - SPOKE_READ_WRITE"
},
"spoke_root": {
"description": "Local spoke portal root directory file ID",
"type": "string"
},
"spoke_root_path": {
"description": "Local spoke portal root directory path",
"type": "string"
},
"hub_id": {
"description": "Corresponding remote hub portal ID (if in a relationship)",
"type": "number"
},
"hub_cluster_uuid": {
"description": "UUID of the cluster with the hub portal (if in a relationship)",
"type": "string"
},
"hub_root": {
"description": "Remote hub portal root directory (if in a relationship)",
"type": "string"
},
"hub_address": {
"description": "IP address of a node in the cluster with the hub portal (if in a relationship)",
"type": "string"
},
"hub_port": {
"description": "TCP port for the cluster with the hub portal (if in a relationship)",
"type": "number"
}
}
}