@@ -48,17 +48,24 @@ $ curl \
48
48
``` json
49
49
[
50
50
{
51
- "CreateIndex" : 31 ,
52
- "Description" : " Production API Servers" ,
53
- "ModifyIndex" : 31 ,
54
- "Name" : " api-prod" ,
51
+ "Capabilities" : null ,
52
+ "CreateIndex" : 1 ,
53
+ "Description" : " Default shared namespace" ,
54
+ "Meta" : null ,
55
+ "ModifyIndex" : 1 ,
56
+ "Name" : " default" ,
55
57
"Quota" : " "
56
58
},
57
59
{
58
- "CreateIndex" : 5 ,
59
- "Description" : " Default shared namespace" ,
60
- "ModifyIndex" : 5 ,
61
- "Name" : " default" ,
60
+ "Capabilities" : null ,
61
+ "CreateIndex" : 17 ,
62
+ "Description" : " Development Staging Namespace" ,
63
+ "Meta" : {
64
+ "type" : " dev" ,
65
+
66
+ },
67
+ "ModifyIndex" : 17 ,
68
+ "Name" : " staging" ,
62
69
"Quota" : " "
63
70
}
64
71
]
@@ -88,19 +95,23 @@ The table below shows this endpoint's support for
88
95
89
96
``` shell-session
90
97
$ curl \
91
- https://localhost:4646/v1/namespace/api-prod
98
+ https://localhost:4646/v1/namespace/staging
92
99
```
93
100
94
101
### Sample Response
95
102
96
103
``` json
97
104
{
98
- "CreateIndex" : 31 ,
99
- "Description" : " Production API Servers" ,
100
- "Quota" : " " ,
101
- "Hash" : " N8WvePwqkp6J354eLJMKyhvsFdPELAos0VuBfMoVKoU=" ,
102
- "ModifyIndex" : 31 ,
103
- "Name" : " api-prod"
105
+ "Capabilities" : null ,
106
+ "CreateIndex" : 17 ,
107
+ "Description" : " Development Staging Namespace" ,
108
+ "Meta" : {
109
+ "type" : " dev" ,
110
+
111
+ },
112
+ "ModifyIndex" : 17 ,
113
+ "Name" : " staging" ,
114
+ "Quota" : " "
104
115
}
105
116
```
106
117
@@ -128,6 +139,10 @@ The table below shows this endpoint's support for
128
139
- ` Description ` ` (string: "") ` - Specifies an optional human-readable
129
140
description of the namespace.
130
141
142
+ - ` Meta ` ` (object: null) ` - Optional object with string keys and values of
143
+ metadata to attach to the namespace. Namespace metadata is not used by Nomad
144
+ and is intended for use by operators and third party tools.
145
+
131
146
- ` Quota ` ` (string: "") ` - Specifies an quota to attach to the namespace.
132
147
133
148
### Sample Payload
@@ -136,10 +151,15 @@ The table below shows this endpoint's support for
136
151
{
137
152
" Name" : " api-prod" ,
138
153
" Description" : " Production API Servers" ,
154
+ " Meta" : {
155
+
156
+ },
139
157
" Quota" : " prod-quota"
140
158
}
141
159
```
142
160
161
+ Note that the ` Quota ` key is Enterprise-only.
162
+
143
163
### Sample Request
144
164
145
165
``` shell-session
0 commit comments