v0.5.0: 3 стенда — изоляция состояния, WSGI middleware, OpenAPI server selector, POLYGON_STANDS env
- loader.py: STANDS dict, get_services/get_ops_index per stand, POLYGON_STANDS env
- mock_state.py: get_state(stand_id) — ленивая инициализация
- app.py: StandMiddleware — перезапись PATH_INFO до Flask-роутинга
- Все роуты: LocalProxy(state), LocalProxy(SERVICES/OPS_INDEX) через g.stand_id
- openapi.py: _build_servers() — по одному серверу на стенд
- services/stand{1,2,3}/ — 37 YAML на стенд из STANDS/dev и STANDS/test
- tests/test_api.py: +4 multi-stand теста (изоляция, fail-next, OpenAPI servers)
- Обратная совместимость: /api/v1/svc/... → стенд по умолчанию
This commit is contained in:
@@ -0,0 +1,186 @@
|
||||
name: vcexternalip
|
||||
service_id: 25
|
||||
service_display_name: Публичные IP адреса
|
||||
service_short_name: vcexternalip
|
||||
service_man: '**Обычно эта услуга разворачивается автоматически при развёртывании более сложных услуг**<br/>Вручную создавать можно, однако услуга требует много параметров, о которых можно просто не знать<br/><br/>Резервировать
|
||||
публичные IP адреса можно только после создания NGcloud Organization, NGcloud Виртуальный датацентр, NGcloud Каталог, Сетевой шлюз периметра.<br/>Вы можете назначить IP адрес для существующего экземпляра
|
||||
сервиса.'
|
||||
lifecycle:
|
||||
suspendOnDestroyDefault: false
|
||||
adoptExistingOnCreateDefault: false
|
||||
operations:
|
||||
- svcOperationId: 56
|
||||
operation: create
|
||||
kind: instance
|
||||
action: create
|
||||
- svcOperationId: 57
|
||||
operation: delete
|
||||
kind: instance
|
||||
action: delete
|
||||
- svcOperationId: 197
|
||||
operation: modify
|
||||
kind: instance
|
||||
action: modify
|
||||
stateOut: {}
|
||||
cfsParams:
|
||||
- svcOperationCfsParamId: 140
|
||||
svcOperationCfsParam: serviceUid
|
||||
dataType: string
|
||||
isRequired: true
|
||||
defaultValue: ''
|
||||
isModifiable: true
|
||||
- svcOperationCfsParamId: 141
|
||||
svcOperationCfsParam: dnatCreate
|
||||
dataType: boolean
|
||||
isRequired: true
|
||||
defaultValue: 'true'
|
||||
isModifiable: true
|
||||
- svcOperationCfsParamId: 142
|
||||
svcOperationCfsParam: internalPortAccess
|
||||
dataType: string
|
||||
isRequired: true
|
||||
defaultValue: '5432'
|
||||
isModifiable: true
|
||||
- svcOperationCfsParamId: 143
|
||||
svcOperationCfsParam: snatCreate
|
||||
dataType: boolean
|
||||
isRequired: false
|
||||
defaultValue: ''
|
||||
isModifiable: true
|
||||
- svcOperationCfsParamId: 144
|
||||
svcOperationCfsParam: internalAddrAccess
|
||||
dataType: string
|
||||
isRequired: true
|
||||
defaultValue: ''
|
||||
isModifiable: true
|
||||
- svcOperationCfsParamId: 324
|
||||
svcOperationCfsParam: fromServiceNamespace
|
||||
dataType: string
|
||||
isRequired: true
|
||||
defaultValue: ''
|
||||
isModifiable: false
|
||||
- svcOperationCfsParamId: 325
|
||||
svcOperationCfsParam: fromServiceCloudEdgeName
|
||||
dataType: string
|
||||
isRequired: false
|
||||
defaultValue: ''
|
||||
isModifiable: false
|
||||
- svcOperationCfsParamId: 326
|
||||
svcOperationCfsParam: fromServiceCloudVdcName
|
||||
dataType: string
|
||||
isRequired: false
|
||||
defaultValue: ''
|
||||
isModifiable: false
|
||||
- svcOperationCfsParamId: 327
|
||||
svcOperationCfsParam: fromServiceCloudOrgName
|
||||
dataType: string
|
||||
isRequired: false
|
||||
defaultValue: ''
|
||||
isModifiable: false
|
||||
- svcOperationCfsParamId: 328
|
||||
svcOperationCfsParam: fromServiceCloudVmwareUrl
|
||||
dataType: string
|
||||
isRequired: false
|
||||
defaultValue: ''
|
||||
isModifiable: false
|
||||
- svcOperationCfsParamId: 336
|
||||
svcOperationCfsParam: ipSpaceName
|
||||
dataType: string
|
||||
isRequired: true
|
||||
defaultValue: ''
|
||||
isModifiable: true
|
||||
- svcOperationCfsParamId: 488
|
||||
svcOperationCfsParam: resourceRealm
|
||||
dataType: string
|
||||
isRequired: true
|
||||
defaultValue: sandbox.nubes.ru
|
||||
isModifiable: false
|
||||
valueList:
|
||||
- sandbox.nubes.ru
|
||||
- svcOperationCfsParamId: 624
|
||||
svcOperationCfsParam: fromServiceCloudEdgeScope
|
||||
dataType: string
|
||||
isRequired: false
|
||||
defaultValue: ''
|
||||
isModifiable: false
|
||||
- svcOperationCfsParamId: 626
|
||||
svcOperationCfsParam: fromServiceVdcGroupName
|
||||
dataType: string
|
||||
isRequired: false
|
||||
defaultValue: ''
|
||||
isModifiable: false
|
||||
- svcOperationCfsParamId: 627
|
||||
svcOperationCfsParam: serviceUid
|
||||
dataType: string
|
||||
isRequired: true
|
||||
defaultValue: ''
|
||||
isModifiable: true
|
||||
- svcOperationCfsParamId: 628
|
||||
svcOperationCfsParam: ipSpaceName
|
||||
dataType: string
|
||||
isRequired: true
|
||||
defaultValue: ''
|
||||
isModifiable: true
|
||||
- svcOperationCfsParamId: 629
|
||||
svcOperationCfsParam: dnatCreate
|
||||
dataType: boolean
|
||||
isRequired: true
|
||||
defaultValue: ''
|
||||
isModifiable: true
|
||||
- svcOperationCfsParamId: 630
|
||||
svcOperationCfsParam: snatCreate
|
||||
dataType: boolean
|
||||
isRequired: true
|
||||
defaultValue: ''
|
||||
isModifiable: true
|
||||
- svcOperationCfsParamId: 631
|
||||
svcOperationCfsParam: internalPortAccess
|
||||
dataType: string
|
||||
isRequired: true
|
||||
defaultValue: ''
|
||||
isModifiable: true
|
||||
- svcOperationCfsParamId: 632
|
||||
svcOperationCfsParam: internalAddrAccess
|
||||
dataType: string
|
||||
isRequired: true
|
||||
defaultValue: ''
|
||||
isModifiable: true
|
||||
cfsParamsByOp:
|
||||
56:
|
||||
- 140
|
||||
- 141
|
||||
- 142
|
||||
- 143
|
||||
- 144
|
||||
- 324
|
||||
- 325
|
||||
- 326
|
||||
- 327
|
||||
- 328
|
||||
- 336
|
||||
- 488
|
||||
- 624
|
||||
- 626
|
||||
57: []
|
||||
197:
|
||||
- 627
|
||||
- 628
|
||||
- 629
|
||||
- 630
|
||||
- 631
|
||||
- 632
|
||||
stateParams:
|
||||
serviceUid: ''
|
||||
dnatCreate: 'true'
|
||||
internalPortAccess: '5432'
|
||||
snatCreate: ''
|
||||
internalAddrAccess: ''
|
||||
fromServiceNamespace: ''
|
||||
fromServiceCloudEdgeName: ''
|
||||
fromServiceCloudVdcName: ''
|
||||
fromServiceCloudOrgName: ''
|
||||
fromServiceCloudVmwareUrl: ''
|
||||
ipSpaceName: ''
|
||||
resourceRealm: sandbox.nubes.ru
|
||||
fromServiceCloudEdgeScope: ''
|
||||
fromServiceVdcGroupName: ''
|
||||
Reference in New Issue
Block a user