Retrieve a namespace for a cloud
GET /accounts/{account_id}/topology/v1/clouds/{cloud_id}/clusters/{cluster_id}/namespaces/{namespace_id}
Returns the stored Namespace API resource in the JSON response body.
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
account_id |
string |
path |
True |
ID of the containing account resource
|
cloud_id |
string |
path |
True |
ID of the containing cloud resource |
cluster_id |
string |
path |
True |
ID of the containing cluster resource |
namespace_id |
string |
path |
True |
ID of the namespace collection to list |
Response
Status: 200, Returns the stored Namespace API resource in the JSON response body.
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
Media type of the resource. Defined values are:
|
version |
string |
True |
Version of the resource. Defined values are:
|
id |
string |
True |
Globally unique identifier of the resource. Defined values are:
|
links |
array[type_astra_link] |
True |
Links describing supported operations against the resource. |
name |
string |
True |
JSON string containing a value indicating the name of the namespace. Defined values are:
|
namespaceState |
string |
True |
JSON string containing a value indicating the state of the namespace. Defined values are:
|
namespaceStateDetails |
array[type_astra_stateDetail] |
True |
JSON array of JSON objects that lists additional details about why "state" transitioned into "state a", "state b", or "state c". If no details are available, this array will be empty. Defined values are:
|
kubernetesLabels |
array[type_astra_label] |
False |
JSON array of JSON objects, each containing a Kubernetes label associated with the namespace. Defined values are:
|
kubernetesUID |
string |
True |
JSON string containing the Kubernetes generated UID of the namespace resource |
clusterID |
string |
True |
JSON string containing a globally unique identifier of the cluster that the namespace is contained in. Defined values are:
|
systemType |
string |
False |
JSON string that denotes that the namespace is a type of system namespace. This field identifies what type of system namespace, if any, the namespace is (version 1.1 only). Defined values are:
|
metadata |
True |
Client and service-specified metadata associated with the resource. Defined values are:
|
Example response
{
"type": "application/astra-namespace",
"version": "1.2",
"id": "214dc2eb-19a6-5444-b156-f4b6b551a81a",
"links": [
{
"rel": "canonical",
"href": "/accounts/0b311ae7-d89a-4a11-a52c-1349ca090415/topology/v1/namespaces/7d451d2f-196e-4234-aee9-7e2376047e63",
"type": "application/vnd.netapp.astra.namespace"
},
{
"rel": "collection",
"href": "/accounts/0b311ae7-d89a-4a11-a52c-1349ca090415/topology/v1/clouds/e0490197-872e-4de8-9287-b04a938e801f/clusters/0f284377-e5dc-4dcd-bacd-3197f2b8a347/namespaces",
"type": "application/vnd.netapp.astra.namespaces"
}
],
"name": "kube-system",
"namespaceState": "discovered",
"namespaceStateDetails": [
{
"type": "https://astra.netapp.io/stateDetails/9",
"title": "Namespace Discovered",
"detail": "The namespace was discovered in the indicated managed cluster"
}
],
"kubernetesLabels": [
{
"name": "app.kubernetes.io/environment",
"value": "dev"
}
],
"clusterID": "0f284377-e5dc-4dcd-bacd-3197f2b8a347",
"kubernetesUID": "4f28c377-e5dc-4dcd-b7cd-319cf2b8a345",
"systemType": "kubernetes",
"metadata": {
"labels": [],
"creationTimestamp": "2022-10-06T20:58:16.305662Z",
"modificationTimestamp": "2022-10-06T20:58:16.305662Z",
"createdBy": "8f84cf09-8036-51e4-b579-bd30cb07b269"
}
}
Response
Status: 401, Unauthorized
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
|
title |
string |
True |
|
detail |
string |
True |
|
status |
string |
True |
|
correlationID |
string |
False |
Example response
{
"type": "https://astra.netapp.io/problems/3",
"title": "Missing bearer token",
"detail": "The request is missing the required bearer token.",
"status": "401"
}
Response
Status: 400, Bad request
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
|
title |
string |
True |
|
detail |
string |
True |
|
status |
string |
True |
|
correlationID |
string |
False |
|
invalidParams |
array[invalidParams] |
False |
List of invalid query parameters |
Example response
{
"type": "https://astra.netapp.io/problems/5",
"title": "Invalid query parameters",
"detail": "The supplied query parameters are invalid.",
"status": "400"
}
Response
Status: 403, Forbidden
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
|
title |
string |
True |
|
detail |
string |
True |
|
status |
string |
True |
|
correlationID |
string |
False |
Example response
{
"type": "https://astra.netapp.io/problems/11",
"title": "Operation not permitted",
"detail": "The requested operation isn't permitted.",
"status": "403"
}
Error
Status: 404, Not found
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
|
title |
string |
True |
|
detail |
string |
True |
|
status |
string |
True |
|
correlationID |
string |
False |
Example error response
{
"type": "https://astra.netapp.io/problems/2",
"title": "Collection not found",
"detail": "The collection specified in the request URI wasn't found.",
"status": "404"
}
Definitions
See Definitions
targetSchema
accept-post
accept-put
hints
Name | Type | Required | Description |
---|---|---|---|
status |
string |
False |
|
allow |
array[string] |
False |
|
accept-post |
False |
||
permissions |
array[string] |
False |
|
accept-put |
False |
type_astra_link
Name | Type | Required | Description |
---|---|---|---|
rel |
string |
True |
|
href |
string |
True |
|
type |
string |
False |
|
targetSchema |
False |
||
title |
string |
False |
|
hints |
False |
additionalDetails
type_astra_stateDetail
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
|
title |
string |
True |
|
detail |
string |
True |
|
additionalDetails |
False |
type_astra_label
Name | Type | Required | Description |
---|---|---|---|
name |
string |
True |
|
value |
string |
True |
type_astra_metadata
Client and service-specified metadata associated with the resource. Defined values are:
-
Conforms to the Astra Metadata Schema
Name | Type | Required | Description |
---|---|---|---|
labels |
array[type_astra_label] |
True |
|
creationTimestamp |
string |
True |
|
modificationTimestamp |
string |
True |
|
createdBy |
string |
True |
|
modifiedBy |
string |
False |
invalidParams
Name | Type | Required | Description |
---|---|---|---|
name |
string |
True |
Name of the invalid query parameter |
reason |
string |
True |
Reason why the query parameter is invalid |