|
323 | 323 | url(r'^keys/?', |
324 | 324 | views.KeyViewSet.as_view({'get': 'list', 'post': 'create'})), |
325 | 325 | # provider |
326 | | - url(r'^providers/(?P<id>[a-z0-9-]+)/?', |
| 326 | + url(r'^providers/(?P<id>[-_\w]+)/?', |
327 | 327 | views.ProviderViewSet.as_view({ |
328 | 328 | 'get': 'retrieve', 'patch': 'partial_update', 'delete': 'destroy'})), |
329 | 329 | url(r'^providers/?', |
330 | 330 | views.ProviderViewSet.as_view({'get': 'list', 'post': 'create'})), |
331 | 331 | # flavor |
332 | | - url(r'^flavors/(?P<id>[a-z0-9-]+)/?', |
| 332 | + url(r'^flavors/(?P<id>[-_\w]+)/?', |
333 | 333 | views.FlavorViewSet.as_view({ |
334 | 334 | 'get': 'retrieve', 'patch': 'partial_update', 'delete': 'destroy'})), |
335 | 335 | url(r'^flavors/?', |
336 | 336 | views.FlavorViewSet.as_view({'get': 'list', 'post': 'create'})), |
337 | 337 | # formation infrastructure |
338 | | - url(r'^formations/(?P<id>[a-z0-9-]+)/layers/(?P<layer>[a-z0-9-]+)/?', |
| 338 | + url(r'^formations/(?P<id>[-_\w]+)/layers/(?P<layer>[-_\w]+)/?', |
339 | 339 | views.FormationLayerViewSet.as_view({ |
340 | 340 | 'get': 'retrieve', 'patch': 'partial_update', 'delete': 'destroy'})), |
341 | | - url(r'^formations/(?P<id>[a-z0-9-]+)/layers/?', |
| 341 | + url(r'^formations/(?P<id>[-_\w]+)/layers/?', |
342 | 342 | views.FormationLayerViewSet.as_view({'get': 'list', 'post': 'create'})), |
343 | | - url(r'^formations/(?P<id>[a-z0-9-]+)/nodes/(?P<node>[a-z0-9-]+)/?', |
| 343 | + url(r'^formations/(?P<id>[-_\w]+)/nodes/(?P<node>[-_\w]+)/?', |
344 | 344 | views.FormationNodeViewSet.as_view({ |
345 | 345 | 'get': 'retrieve', 'delete': 'destroy'})), |
346 | | - url(r'^formations/(?P<id>[a-z0-9-]+)/nodes/?', |
| 346 | + url(r'^formations/(?P<id>[-_\w]+)/nodes/?', |
347 | 347 | views.FormationNodeViewSet.as_view({'get': 'list'})), |
348 | 348 | # formation actions |
349 | | - url(r'^formations/(?P<id>[a-z0-9-]+)/scale/?', |
| 349 | + url(r'^formations/(?P<id>[-_\w]+)/scale/?', |
350 | 350 | views.FormationViewSet.as_view({'post': 'scale'})), |
351 | | - url(r'^formations/(?P<id>[a-z0-9-]+)/balance/?', |
| 351 | + url(r'^formations/(?P<id>[-_\w]+)/balance/?', |
352 | 352 | views.FormationViewSet.as_view({'post': 'balance'})), |
353 | | - url(r'^formations/(?P<id>[a-z0-9-]+)/calculate/?', |
| 353 | + url(r'^formations/(?P<id>[-_\w]+)/calculate/?', |
354 | 354 | views.FormationViewSet.as_view({'post': 'calculate'})), |
355 | | - url(r'^formations/(?P<id>[a-z0-9-]+)/converge/?', |
| 355 | + url(r'^formations/(?P<id>[-_\w]+)/converge/?', |
356 | 356 | views.FormationViewSet.as_view({'post': 'converge'})), |
357 | 357 | # formation base endpoint |
358 | | - url(r'^formations/(?P<id>[a-z0-9-]+)/?', |
| 358 | + url(r'^formations/(?P<id>[-_\w]+)/?', |
359 | 359 | views.FormationViewSet.as_view({ |
360 | 360 | 'get': 'retrieve', 'patch': 'partial_update', 'delete': 'destroy'})), |
361 | 361 | url(r'^formations/?', |
362 | 362 | views.FormationViewSet.as_view({'get': 'list', 'post': 'create'})), |
363 | 363 | # application release components |
364 | | - url(r'^apps/(?P<id>[a-z0-9-]+)/config/?', |
| 364 | + url(r'^apps/(?P<id>[-_\w]+)/config/?', |
365 | 365 | views.AppConfigViewSet.as_view({'get': 'retrieve', 'post': 'create'})), |
366 | | - url(r'^apps/(?P<id>[a-z0-9-]+)/builds/(?P<uuid>[a-z0-9-]+)/?', |
| 366 | + url(r'^apps/(?P<id>[-_\w]+)/builds/(?P<uuid>[-_\w]+)/?', |
367 | 367 | views.AppBuildViewSet.as_view({'get': 'retrieve'})), |
368 | | - url(r'^apps/(?P<id>[a-z0-9-]+)/builds/?', |
| 368 | + url(r'^apps/(?P<id>[-_\w]+)/builds/?', |
369 | 369 | views.AppBuildViewSet.as_view({'get': 'list', 'post': 'create'})), |
370 | | - url(r'^apps/(?P<id>[a-z0-9-]+)/releases/(?P<version>[0-9]+)/?', |
| 370 | + url(r'^apps/(?P<id>[-_\w]+)/releases/(?P<version>[0-9]+)/?', |
371 | 371 | views.AppReleaseViewSet.as_view({'get': 'retrieve'})), |
372 | | - url(r'^apps/(?P<id>[a-z0-9-]+)/releases/?', |
| 372 | + url(r'^apps/(?P<id>[-_\w]+)/releases/?', |
373 | 373 | views.AppReleaseViewSet.as_view({'get': 'list'})), |
374 | 374 | # application infrastructure |
375 | | - url(r'^apps/(?P<id>[a-z0-9-]+)/containers/(?P<type>[a-z0-9-]+)/(?P<num>[a-z0-9-]+)/?', |
| 375 | + url(r'^apps/(?P<id>[-_\w]+)/containers/(?P<type>[-_\w]+)/(?P<num>[-_\w]+)/?', |
376 | 376 | views.AppContainerViewSet.as_view({'get': 'retrieve'})), |
377 | | - url(r'^apps/(?P<id>[a-z0-9-]+)/containers/(?P<type>[a-z0-9-.]+)/?', |
| 377 | + url(r'^apps/(?P<id>[-_\w]+)/containers/(?P<type>[-_\w.]+)/?', |
378 | 378 | views.AppContainerViewSet.as_view({'get': 'list'})), |
379 | | - url(r'^apps/(?P<id>[a-z0-9-]+)/containers/?', |
| 379 | + url(r'^apps/(?P<id>[-_\w]+)/containers/?', |
380 | 380 | views.AppContainerViewSet.as_view({'get': 'list'})), |
381 | 381 | # application actions |
382 | | - url(r'^apps/(?P<id>[a-z0-9-]+)/scale/?', |
| 382 | + url(r'^apps/(?P<id>[-_\w]+)/scale/?', |
383 | 383 | views.AppViewSet.as_view({'post': 'scale'})), |
384 | | - url(r'^apps/(?P<id>[a-z0-9-]+)/logs/?', |
| 384 | + url(r'^apps/(?P<id>[-_\w]+)/logs/?', |
385 | 385 | views.AppViewSet.as_view({'post': 'logs'})), |
386 | | - url(r'^apps/(?P<id>[a-z0-9-]+)/run/?', |
| 386 | + url(r'^apps/(?P<id>[-_\w]+)/run/?', |
387 | 387 | views.AppViewSet.as_view({'post': 'run'})), |
388 | | - url(r'^apps/(?P<id>[a-z0-9-]+)/calculate/?', |
| 388 | + url(r'^apps/(?P<id>[-_\w]+)/calculate/?', |
389 | 389 | views.AppViewSet.as_view({'post': 'calculate'})), |
390 | 390 | # apps base endpoint |
391 | | - url(r'^apps/(?P<id>[a-z0-9-]+)/?', |
| 391 | + url(r'^apps/(?P<id>[-_\w]+)/?', |
392 | 392 | views.AppViewSet.as_view({'get': 'retrieve', 'delete': 'destroy'})), |
393 | 393 | url(r'^apps/?', |
394 | 394 | views.AppViewSet.as_view({'get': 'list', 'post': 'create'})), |
395 | 395 | # nodes |
396 | | - url(r'^nodes/(?P<node>[a-z0-9-]+)/converge/?', |
| 396 | + url(r'^nodes/(?P<node>[-_\w]+)/converge/?', |
397 | 397 | views.NodeViewSet.as_view({'post': 'converge'})), |
398 | | - url(r'^nodes/(?P<node>[a-z0-9-]+)/?', |
| 398 | + url(r'^nodes/(?P<node>[-_\w]+)/?', |
399 | 399 | views.NodeViewSet.as_view({ |
400 | 400 | 'get': 'retrieve', 'delete': 'destroy'})), |
401 | 401 | url(r'^nodes/?', |
|
0 commit comments