From 10820216c0ff9d5e9ed686d73e4a0f93ece3a944 Mon Sep 17 00:00:00 2001 From: Sergei Kliuikov Date: Fri, 21 Jul 2023 14:22:56 +1000 Subject: [PATCH 1/4] Feature(backend): Migrate to vstutils 5.6 --- .gitlab-ci.yml | 77 +- .pylintrc | 2 +- .readthedocs.yaml | 2 +- doc/api_schema.yaml | 15276 ++++++++++++------------ docker-compose.yml | 14 +- polemarch/__init__.py | 2 +- polemarch/api/v4/statistics.py | 8 + polemarch/main/models/utils.py | 51 +- polemarch/main/settings.py | 8 + polemarch/main/utils.py | 9 - polemarch/notificator.py | 10 + polemarch/plugins/history/base.py | 10 +- polemarch/plugins/history/database.py | 4 +- polemarch/plugins/history/logger.py | 2 +- polemarch/settings.ini | 2 +- requirements-doc.txt | 4 +- requirements-test.txt | 2 +- requirements.txt | 12 +- setup.py | 4 +- tests.py | 42 +- 20 files changed, 7690 insertions(+), 7851 deletions(-) create mode 100644 polemarch/notificator.py diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 83798565..3a08f963 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,6 @@ # set to local images because too long execution default: - image: registry.gitlab.com/vstconsulting/images:build + image: registry.gitlab.com/vstconsulting/images:ubuntu-v2 variables: GET_SOURCES_ATTEMPTS: 3 @@ -34,18 +34,24 @@ stages: ########################################### .branch_tests_template: &branch_tests stage: test - image: registry.gitlab.com/vstconsulting/images:tox + image: registry.gitlab.com/vstconsulting/images:ubuntu-v2 coverage: '/\d+\%\s*$/' variables: TOX_ENVS: "" + YARN_CACHE_FOLDER: "${CI_PROJECT_DIR}/yarn" before_script: - - if [ "${CI_BUILD_REF_NAME}" != "master" -a "${CI_BUILD_REF_NAME}" != "developer" ]; then export TOX_ARGS="--workdir /tmp/.tox_polemarchplus_${CI_BUILD_REF_NAME}"; fi + - > + if [ "${CI_COMMIT_REF_NAME}" != "master" -a "${CI_COMMIT_REF_NAME}" != "developer" ]; then + export TOX_ARGS="--workdir /tmp/.tox_polemarch_${CI_COMMIT_REF_NAME}"; + unset BUILD_OPTIMIZATION; + fi + - if [ "${TOX_ENVS}" ]; then export TOX_ARGS="${TOX_ARGS} -e ${TOX_ENVS}"; fi script: - - tox -e $TOX_ENVS $TOX_ARGS + - tox $TOX_ARGS rules: - - if: '$CI_COMMIT_BRANCH == "master"' + - if: '$CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH =~ /^release_/' when: on_success - - if: '$CI_PIPELINE_SOURCE == "merge_request_event" || $CI_PIPELINE_SOURCE == "external_pull_request_event"' + - if: '($CI_COMMIT_BRANCH != "master" && $CI_COMMIT_BRANCH !~ /^release_/) && ($CI_PIPELINE_SOURCE == "merge_request_event" || $CI_PIPELINE_SOURCE == "external_pull_request_event")' when: on_success - if: '$CI_PIPELINE_SOURCE == "web" && $CI_COMMIT_TAG == null' when: on_success @@ -54,7 +60,7 @@ stages: .js_tests_template: &branch_js_tests <<: *branch_tests - image: registry.gitlab.com/vstconsulting/images:node-tests + image: registry.gitlab.com/vstconsulting/images:node18-tests before_script: - yarn install --pure-lockfile --mutex network script: @@ -66,8 +72,11 @@ stages: code_style: <<: *branch_tests stage: code_standarts - variables: - TOX_ENVS: "flake,pylint" + parallel: + matrix: + - TOX_ENVS: + - flake + - pylint js_style: <<: *branch_js_tests @@ -75,53 +84,21 @@ js_style: script: - yarn lint -py311-coverage: - <<: *branch_tests - variables: - TOX_ENVS: "$CI_BUILD_NAME" -py38-install: +functional_test: <<: *branch_tests - variables: - TOX_ENVS: "$CI_BUILD_NAME" + parallel: + matrix: + - TOX_ENVS: + - py38-install + - TOX_ENVS: + - py311-coverage # Realese ########################################### -#deploy_environment: -# stage: release -# image: registry.gitlab.com/vstconsulting/images:tox -# services: -# - name: "docker:19.03-dind" -# alias: "docker_service_host" -# script: -# - tox -e deploy_env -# environment: -# name: review/$CI_COMMIT_REF_NAME -# on_stop: delete_environment -# url: http://polemarch-$KUBE_NAMESPACE.$KUBE_INGRESS_BASE_DOMAIN -# only: -# kubernetes: active -# refs: -# - branches -# when: manual -# -#delete_environment: -# stage: release -# image: registry.gitlab.com/vstconsulting/images:tox -# script: -# - tox -e destroy_env -# environment: -# name: review/$CI_COMMIT_REF_NAME -# action: stop -# only: -# kubernetes: active -# refs: -# - branches -# when: manual - release: stage: release - image: registry.gitlab.com/vstconsulting/images:tox + image: registry.gitlab.com/vstconsulting/images:ubuntu-v2 rules: - if: '$CI_COMMIT_BRANCH == "master" && $GIT_ACCESS_USER && $GIT_ACCESS_PASSWORD' when: on_success @@ -185,7 +162,7 @@ publish_docker: publish_release: stage: publish - image: registry.gitlab.com/vstconsulting/images:tox + image: registry.gitlab.com/vstconsulting/images:ubuntu-v2 allow_failure: true needs: ["release_pypi"] rules: diff --git a/.pylintrc b/.pylintrc index 9b90a70b..a51b6559 100644 --- a/.pylintrc +++ b/.pylintrc @@ -287,7 +287,7 @@ ignored-classes=optparse.Values,thread._local,_thread._local, # List of members which are set dynamically and missed by pylint inference # system, and so shouldn't trigger E1101 when accessed. Python regular # expressions are accepted. -generated-members=RepoTask.task_class,PlusEventLog.delay +generated-members=RepoTask.task_class,PlusEventLog.delay,asyncio.subprocess.Process # List of decorators that produce context managers, such as # contextlib.contextmanager. Add to this list to register other decorators that diff --git a/.readthedocs.yaml b/.readthedocs.yaml index b38ec9af..80968d30 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -10,7 +10,7 @@ build: os: ubuntu-22.04 tools: python: "3.11" - nodejs: "16" + nodejs: "18" # Build documentation in the docs/ directory with Sphinx sphinx: diff --git a/doc/api_schema.yaml b/doc/api_schema.yaml index 86b7efa6..a0bbbbf1 100644 --- a/doc/api_schema.yaml +++ b/doc/api_schema.yaml @@ -17,12 +17,12 @@ info: docs_url: /docs/ x-links: Request: - - url: https://gitlab.com/vstconsulting/polemarch/issues/new?issuable_template%5D=Ask&issue%5Btitle%5D=Ask%20about%20version%203.0.0 - name: Question - - url: https://gitlab.com/vstconsulting/polemarch/issues/new?issuable_template%5D=Bug&issue%5Btitle%5D=Bug%20in%20version%203.0.0 - name: Bug report - - url: https://gitlab.com/vstconsulting/polemarch/issues/new?issuable_template%5D=Feature%20request&issue%5Btitle%5D= - name: Feature request + - url: https://gitlab.com/vstconsulting/polemarch/issues/new?issuable_template%5D=Ask&issue%5Btitle%5D=Ask%20about%20version%203.0.3 + name: Question + - url: https://gitlab.com/vstconsulting/polemarch/issues/new?issuable_template%5D=Bug&issue%5Btitle%5D=Bug%20in%20version%203.0.3 + name: Bug report + - url: https://gitlab.com/vstconsulting/polemarch/issues/new?issuable_template%5D=Feature%20request&issue%5Btitle%5D= + name: Feature request Documentation: url: http://polemarch.readthedocs.io/ name: Official documentation @@ -30,34 +30,34 @@ info: url: https://gitlab.com/vstconsulting/polemarch.git name: Official repository x-menu: - - name: Projects - url: /project - span_class: fas fa-cubes - - name: Community - url: /community_template - span_class: fa fa-cloud - - name: Inventories - url: /inventory - span_class: fa fa-folder - sublinks: - - name: Groups - url: /group - span_class: fas fa-server - - name: Hosts - url: /host - span_class: fas fa-hdd - - name: History - url: /history - span_class: fa fa-calendar - - name: System - span_class: fa fa-cog - sublinks: - - name: Users - url: /user - span_class: fa fa-user - - name: Hooks - url: /hook - span_class: fa fa-plug + - name: Projects + url: /project + span_class: fas fa-cubes + - name: Community + url: /community_template + span_class: fa fa-cloud + - name: Inventories + url: /inventory + span_class: fa fa-folder + sublinks: + - name: Groups + url: /group + span_class: fas fa-server + - name: Hosts + url: /host + span_class: fas fa-hdd + - name: History + url: /history + span_class: fa fa-calendar + - name: System + span_class: fa fa-cog + sublinks: + - name: Users + url: /user + span_class: fa fa-user + - name: Hooks + url: /hook + span_class: fa fa-plug x-page-limit: 20 x-settings: static_path: /static/ @@ -67,115 +67,114 @@ info: login_url: /account/login/ x-subscriptions-prefix: polemarch.update x-versions: - application: 3.0.0 - library: 3.0.0 - vstutils: 5.4.0 - django: 4.1.7 + application: 3.0.3 + library: 3.0.3 + vstutils: 5.6.4 + django: 4.2.3 djangorestframework: 3.14.0 - drf_yasg: 1.21.5 + drf_yasg: 1.21.7 + fastapi: 0.100.0 + celery: 5.3.1 ansible: 2.9.27 version: v4 host: localhost:8080 schemes: - - http +- http basePath: /api/v4 consumes: - - application/json - - application/msgpack +- application/json +- application/msgpack produces: - - application/json - - application/msgpack - - multipart/form-data; boundary=BoUnDaRyStRiNg +- application/json +- application/msgpack securityDefinitions: basic: type: basic security: - - basic: [] +- basic: [] paths: /community_template/: get: operationId: community_template_list description: List of community project templates. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: type - in: query - description: '' - required: false - type: string - enum: - - '' - - GIT - - TAR - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - name - - -name - - type - - -type - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: type + in: query + description: '' + required: false + type: string + enum: + - '' + - GIT + - TAR + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - name + - -name + - type + - -type + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -193,9 +192,9 @@ paths: items: $ref: '#/definitions/ProjectCommunityTemplate' tags: - - community_template + - community_template x-subscribe-labels: - - main.ProjectCommunityTemplate + - main.ProjectCommunityTemplate x-list: true parameters: [] /community_template/{id}/: @@ -209,128 +208,125 @@ paths: schema: $ref: '#/definitions/OneProjectCommunityTemplate' tags: - - community_template + - community_template x-subscribe-labels: - - main.ProjectCommunityTemplate + - main.ProjectCommunityTemplate x-list: false parameters: - - name: id - in: path - description: A unique value identifying this project community template. - required: true - type: integer + - name: id + in: path + description: A unique value identifying this project community template. + required: true + type: integer /community_template/{id}/use_it/: post: operationId: community_template_use_it description: Create a project based on current template. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/ProjectCommunityTemplateUseIt' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/ProjectCommunityTemplateUseIt' responses: '201': description: CREATED schema: $ref: '#/definitions/ProjectCommunityTemplateUseIt' tags: - - community_template + - community_template x-title: Use it x-multiaction: false parameters: - - name: id - in: path - description: A unique value identifying this project community template. - required: true - type: integer + - name: id + in: path + description: A unique value identifying this project community template. + required: true + type: integer /group/: get: operationId: group_list description: Return all groups. parameters: - - name: __deep_parent - in: query - description: '' - required: false - type: integer - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: variables - in: query - description: List of variables to filter. Comma separated "key:value" list. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - children - - -children - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: __deep_parent + in: query + required: false + type: integer + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: variables + in: query + description: List of variables to filter. Comma separated "key:value" list. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - children + - -children + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -348,27 +344,27 @@ paths: items: $ref: '#/definitions/Group' tags: - - group + - group x-subscribe-labels: - - main.Group + - main.Group x-deep-nested-view: groups x-list: true post: operationId: group_add description: Create a new group. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/CreateGroup' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/CreateGroup' responses: '201': description: CREATED schema: $ref: '#/definitions/CreateGroup' tags: - - group + - group parameters: [] /group/{id}/: get: @@ -381,43 +377,43 @@ paths: schema: $ref: '#/definitions/OneGroup' tags: - - group + - group x-subscribe-labels: - - main.Group + - main.Group x-deep-nested-view: groups x-list: false put: operationId: group_update description: Update a group. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneGroup' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneGroup' responses: '200': description: OK schema: $ref: '#/definitions/OneGroup' tags: - - group + - group patch: operationId: group_edit description: Update one or more fields on an existing group. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneGroup' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneGroup' responses: '200': description: OK schema: $ref: '#/definitions/OneGroup' tags: - - group + - group delete: operationId: group_remove description: Remove an existing group. @@ -426,123 +422,120 @@ paths: '204': description: NO CONTENT tags: - - group + - group parameters: - - name: id - in: path - description: A unique integer value identifying this group. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this group. + required: true + type: integer /group/{id}/copy/: post: operationId: group_copy description: Endpoint which copy instance with deps. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/Copy' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/Copy' responses: '201': description: CREATED schema: $ref: '#/definitions/Copy' tags: - - group + - group parameters: - - name: id - in: path - description: A unique integer value identifying this group. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this group. + required: true + type: integer /group/{id}/groups/: get: operationId: group_groups_list description: Return all groups. parameters: - - name: __deep_parent - in: query - description: '' - required: false - type: integer - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: variables - in: query - description: List of variables to filter. Comma separated "key:value" list. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - children - - -children - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: __deep_parent + in: query + required: false + type: integer + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: variables + in: query + description: List of variables to filter. Comma separated "key:value" list. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - children + - -children + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -560,33 +553,33 @@ paths: items: $ref: '#/definitions/Group' tags: - - group + - group x-subscribe-labels: - - main.Group + - main.Group x-list: true post: operationId: group_groups_add description: Create a new group. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/CreateGroup' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/CreateGroup' responses: '201': description: CREATED schema: $ref: '#/definitions/CreateGroup' tags: - - group + - group x-allow-append: true parameters: - - name: id - in: path - description: A unique integer value identifying this group. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this group. + required: true + type: integer /group/{id}/groups/{groups_id}/: get: operationId: group_groups_get @@ -598,42 +591,42 @@ paths: schema: $ref: '#/definitions/OneGroup' tags: - - group + - group x-subscribe-labels: - - main.Group + - main.Group x-list: false put: operationId: group_groups_update description: Update a group. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneGroup' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneGroup' responses: '200': description: OK schema: $ref: '#/definitions/OneGroup' tags: - - group + - group patch: operationId: group_groups_edit description: Update one or more fields on an existing group. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneGroup' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneGroup' responses: '200': description: OK schema: $ref: '#/definitions/OneGroup' tags: - - group + - group delete: operationId: group_groups_remove description: Remove an existing group. @@ -642,137 +635,135 @@ paths: '204': description: NO CONTENT tags: - - group + - group parameters: - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: id - in: path - description: A unique integer value identifying this group. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this group. + required: true + type: integer + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. /group/{id}/groups/{groups_id}/copy/: post: operationId: group_groups_copy description: Endpoint which copy instance with deps. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/Copy' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/Copy' responses: '201': description: CREATED schema: $ref: '#/definitions/Copy' tags: - - group + - group parameters: - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: id - in: path - description: A unique integer value identifying this group. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this group. + required: true + type: integer + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. /group/{id}/groups/{groups_id}/hosts/: get: operationId: group_groups_hosts_list description: Return all hosts. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: type - in: query - description: Instance type. - required: false - type: string - enum: - - '' - - HOST - - RANGE - - name: variables - in: query - description: List of variables to filter. Comma separated "key:value" list. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - type - - -type - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: type + in: query + description: Instance type. + required: false + type: string + enum: + - '' + - HOST + - RANGE + - name: variables + in: query + description: List of variables to filter. Comma separated "key:value" list. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - type + - -type + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -790,38 +781,38 @@ paths: items: $ref: '#/definitions/Host' tags: - - group + - group x-subscribe-labels: - - main.Host + - main.Host x-list: true post: operationId: group_groups_hosts_add description: Create a new host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '201': description: CREATED schema: $ref: '#/definitions/OneHost' tags: - - group + - group x-allow-append: true parameters: - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: id - in: path - description: A unique integer value identifying this group. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this group. + required: true + type: integer + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. /group/{id}/groups/{groups_id}/hosts/{hosts_id}/: get: operationId: group_groups_hosts_get @@ -833,42 +824,42 @@ paths: schema: $ref: '#/definitions/OneHost' tags: - - group + - group x-subscribe-labels: - - main.Host + - main.Host x-list: false put: operationId: group_groups_hosts_update description: Update a host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '200': description: OK schema: $ref: '#/definitions/OneHost' tags: - - group + - group patch: operationId: group_groups_hosts_edit description: Update one or more fields on an existing host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '200': description: OK schema: $ref: '#/definitions/OneHost' tags: - - group + - group delete: operationId: group_groups_hosts_remove description: Remove an existing host. @@ -877,168 +868,166 @@ paths: '204': description: NO CONTENT tags: - - group + - group parameters: - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this group. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this group. + required: true + type: integer + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /group/{id}/groups/{groups_id}/hosts/{hosts_id}/copy/: post: operationId: group_groups_hosts_groups_copy description: Endpoint which copy instance with deps. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/Copy' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/Copy' responses: '201': description: CREATED schema: $ref: '#/definitions/Copy' tags: - - group + - group parameters: - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this group. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this group. + required: true + type: integer + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /group/{id}/groups/{groups_id}/hosts/{hosts_id}/set_owner/: patch: operationId: group_groups_hosts_groups_set_owner description: Change instance owner. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/SetOwner' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/SetOwner' responses: '200': description: OK schema: $ref: '#/definitions/SetOwner' tags: - - group + - group x-title: Set owner x-multiaction: false parameters: - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this group. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this group. + required: true + type: integer + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /group/{id}/groups/{groups_id}/hosts/{hosts_id}/variables/: get: operationId: group_groups_hosts_variables_list description: Return all variables of inventory host. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: key - in: query - description: A key name string value (or comma separated list) of instance. - required: false - type: string - - name: value - in: query - description: A value of instance. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - key - - -key - - value - - -value - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: key + in: query + description: A key name string value (or comma separated list) of instance. + required: false + type: string + - name: value + in: query + description: A value of instance. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - key + - -key + - value + - -value + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -1056,43 +1045,43 @@ paths: items: $ref: '#/definitions/InventoryVariable' tags: - - group + - group x-subscribe-labels: - - main.Variable + - main.Variable x-list: true post: operationId: group_groups_hosts_variables_add description: Create a new variable of inventory host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '201': description: CREATED schema: $ref: '#/definitions/InventoryVariable' tags: - - group + - group x-allow-append: false parameters: - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this group. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this group. + required: true + type: integer + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /group/{id}/groups/{groups_id}/hosts/{hosts_id}/variables/{variables_id}/: get: operationId: group_groups_hosts_variables_get @@ -1104,42 +1093,42 @@ paths: schema: $ref: '#/definitions/InventoryVariable' tags: - - group + - group x-subscribe-labels: - - main.Variable + - main.Variable x-list: false put: operationId: group_groups_hosts_variables_update description: Update variable value. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - group + - group patch: operationId: group_groups_hosts_variables_edit description: Update one or more fields on an existing variable. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - group + - group delete: operationId: group_groups_hosts_variables_remove description: Remove an existing variable. @@ -1148,136 +1137,133 @@ paths: '204': description: NO CONTENT tags: - - group + - group parameters: - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this group. - required: true - type: integer - - name: variables_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this variables - sublist. + - name: id + in: path + description: A unique integer value identifying this group. + required: true + type: integer + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. + - name: variables_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this variables sublist. /group/{id}/groups/{groups_id}/set_owner/: patch: operationId: group_groups_set_owner description: Change instance owner. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/SetOwner' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/SetOwner' responses: '200': description: OK schema: $ref: '#/definitions/SetOwner' tags: - - group + - group x-title: Set owner x-multiaction: false parameters: - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: id - in: path - description: A unique integer value identifying this group. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this group. + required: true + type: integer + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. /group/{id}/groups/{groups_id}/variables/: get: operationId: group_groups_variables_list description: Return all variables of inventory host. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: key - in: query - description: A key name string value (or comma separated list) of instance. - required: false - type: string - - name: value - in: query - description: A value of instance. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - key - - -key - - value - - -value - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: key + in: query + description: A key name string value (or comma separated list) of instance. + required: false + type: string + - name: value + in: query + description: A value of instance. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - key + - -key + - value + - -value + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -1295,38 +1281,38 @@ paths: items: $ref: '#/definitions/InventoryVariable' tags: - - group + - group x-subscribe-labels: - - main.Variable + - main.Variable x-list: true post: operationId: group_groups_variables_add description: Create a new variable of inventory host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '201': description: CREATED schema: $ref: '#/definitions/InventoryVariable' tags: - - group + - group x-allow-append: false parameters: - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: id - in: path - description: A unique integer value identifying this group. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this group. + required: true + type: integer + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. /group/{id}/groups/{groups_id}/variables/{variables_id}/: get: operationId: group_groups_variables_get @@ -1338,42 +1324,42 @@ paths: schema: $ref: '#/definitions/InventoryVariable' tags: - - group + - group x-subscribe-labels: - - main.Variable + - main.Variable x-list: false put: operationId: group_groups_variables_update description: Update variable value. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - group + - group patch: operationId: group_groups_variables_edit description: Update one or more fields on an existing variable. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - group + - group delete: operationId: group_groups_variables_remove description: Remove an existing variable. @@ -1382,24 +1368,23 @@ paths: '204': description: NO CONTENT tags: - - group + - group parameters: - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: id - in: path - description: A unique integer value identifying this group. - required: true - type: integer - - name: variables_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this variables - sublist. + - name: id + in: path + description: A unique integer value identifying this group. + required: true + type: integer + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. + - name: variables_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this variables sublist. /group/{id}/hosts/: get: operationId: group_hosts_list @@ -1423,92 +1408,90 @@ paths: update: Update a host. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: type - in: query - description: Instance type. - required: false - type: string - enum: - - '' - - HOST - - RANGE - - name: variables - in: query - description: List of variables to filter. Comma separated "key:value" list. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - type - - -type - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: type + in: query + description: Instance type. + required: false + type: string + enum: + - '' + - HOST + - RANGE + - name: variables + in: query + description: List of variables to filter. Comma separated "key:value" list. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - responses: - '200': - description: OK + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - type + - -type + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer + responses: + '200': + description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -1526,9 +1509,9 @@ paths: items: $ref: '#/definitions/Host' tags: - - group + - group x-subscribe-labels: - - main.Host + - main.Host x-list: true post: operationId: group_hosts_add @@ -1552,25 +1535,25 @@ paths: update: Update a host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '201': description: CREATED schema: $ref: '#/definitions/OneHost' tags: - - group + - group x-allow-append: true parameters: - - name: id - in: path - description: A unique integer value identifying this group. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this group. + required: true + type: integer /group/{id}/hosts/{hosts_id}/: get: operationId: group_hosts_get @@ -1600,9 +1583,9 @@ paths: schema: $ref: '#/definitions/OneHost' tags: - - group + - group x-subscribe-labels: - - main.Host + - main.Host x-list: false put: operationId: group_hosts_update @@ -1626,18 +1609,18 @@ paths: update: Update a host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '200': description: OK schema: $ref: '#/definitions/OneHost' tags: - - group + - group patch: operationId: group_hosts_edit summary: Manage inventory hosts. @@ -1660,18 +1643,18 @@ paths: update: Update a host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '200': description: OK schema: $ref: '#/definitions/OneHost' tags: - - group + - group delete: operationId: group_hosts_remove summary: Manage inventory hosts. @@ -1698,18 +1681,18 @@ paths: '204': description: NO CONTENT tags: - - group + - group parameters: - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this group. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this group. + required: true + type: integer + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /group/{id}/hosts/{hosts_id}/copy/: post: operationId: group_hosts_copy @@ -1733,59 +1716,59 @@ paths: update: Update a host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/Copy' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/Copy' responses: '201': description: CREATED schema: $ref: '#/definitions/Copy' tags: - - group + - group parameters: - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this group. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this group. + required: true + type: integer + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /group/{id}/hosts/{hosts_id}/set_owner/: patch: operationId: group_hosts_set_owner description: Change instance owner. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/SetOwner' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/SetOwner' responses: '200': description: OK schema: $ref: '#/definitions/SetOwner' tags: - - group + - group x-title: Set owner x-multiaction: false parameters: - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this group. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this group. + required: true + type: integer + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /group/{id}/hosts/{hosts_id}/variables/: get: operationId: group_hosts_variables_list @@ -1809,78 +1792,76 @@ paths: update: Update a host. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: key - in: query - description: A key name string value (or comma separated list) of instance. - required: false - type: string - - name: value - in: query - description: A value of instance. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - key - - -key - - value - - -value - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: key + in: query + description: A key name string value (or comma separated list) of instance. + required: false + type: string + - name: value + in: query + description: A value of instance. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - key + - -key + - value + - -value + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -1898,9 +1879,9 @@ paths: items: $ref: '#/definitions/InventoryVariable' tags: - - group + - group x-subscribe-labels: - - main.Variable + - main.Variable x-list: true post: operationId: group_hosts_variables_add @@ -1924,30 +1905,30 @@ paths: update: Update a host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '201': description: CREATED schema: $ref: '#/definitions/InventoryVariable' tags: - - group + - group x-allow-append: false parameters: - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this group. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this group. + required: true + type: integer + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /group/{id}/hosts/{hosts_id}/variables/{variables_id}/: get: operationId: group_hosts_variables_get @@ -1977,9 +1958,9 @@ paths: schema: $ref: '#/definitions/InventoryVariable' tags: - - group + - group x-subscribe-labels: - - main.Variable + - main.Variable x-list: false put: operationId: group_hosts_variables_update @@ -2003,18 +1984,18 @@ paths: update: Update a host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - group + - group patch: operationId: group_hosts_variables_edit summary: Manage inventory hosts. @@ -2037,18 +2018,18 @@ paths: update: Update a host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - group + - group delete: operationId: group_hosts_variables_remove summary: Manage inventory hosts. @@ -2075,49 +2056,48 @@ paths: '204': description: NO CONTENT tags: - - group + - group parameters: - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this group. - required: true - type: integer - - name: variables_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this variables - sublist. + - name: id + in: path + description: A unique integer value identifying this group. + required: true + type: integer + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. + - name: variables_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this variables sublist. /group/{id}/set_owner/: patch: operationId: group_set_owner description: Change instance owner. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/SetOwner' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/SetOwner' responses: '200': description: OK schema: $ref: '#/definitions/SetOwner' tags: - - group + - group x-title: Set owner x-multiaction: false parameters: - - name: id - in: path - description: A unique integer value identifying this group. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this group. + required: true + type: integer /group/{id}/variables/: get: operationId: group_variables_list @@ -2141,78 +2121,76 @@ paths: update: Update variable value. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: key - in: query - description: A key name string value (or comma separated list) of instance. - required: false - type: string - - name: value - in: query - description: A value of instance. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - key - - -key - - value - - -value - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: key + in: query + description: A key name string value (or comma separated list) of instance. + required: false + type: string + - name: value + in: query + description: A value of instance. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - key + - -key + - value + - -value + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -2230,9 +2208,9 @@ paths: items: $ref: '#/definitions/InventoryVariable' tags: - - group + - group x-subscribe-labels: - - main.Variable + - main.Variable x-list: true post: operationId: group_variables_add @@ -2256,25 +2234,25 @@ paths: update: Update variable value. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '201': description: CREATED schema: $ref: '#/definitions/InventoryVariable' tags: - - group + - group x-allow-append: false parameters: - - name: id - in: path - description: A unique integer value identifying this group. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this group. + required: true + type: integer /group/{id}/variables/{variables_id}/: get: operationId: group_variables_get @@ -2304,9 +2282,9 @@ paths: schema: $ref: '#/definitions/InventoryVariable' tags: - - group + - group x-subscribe-labels: - - main.Variable + - main.Variable x-list: false put: operationId: group_variables_update @@ -2330,18 +2308,18 @@ paths: update: Update variable value. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - group + - group patch: operationId: group_variables_edit summary: Inventory hosts variables. @@ -2364,18 +2342,18 @@ paths: update: Update variable value. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - group + - group delete: operationId: group_variables_remove summary: Inventory hosts variables. @@ -2402,135 +2380,132 @@ paths: '204': description: NO CONTENT tags: - - group + - group parameters: - - name: id - in: path - description: A unique integer value identifying this group. - required: true - type: integer - - name: variables_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this variables - sublist. + - name: id + in: path + description: A unique integer value identifying this group. + required: true + type: integer + - name: variables_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this variables sublist. /history/: get: operationId: history_list description: Return all history instances of executions. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: status - in: query - description: Status of execution. - required: false - type: string - enum: - - '' - - DELAY - - RUN - - OK - - ERROR - - OFFLINE - - INTERRUPTED - - name: mode - in: query - description: Module or playbook name. - required: false - type: string - - name: kind - in: query - description: Kind of execution. - required: false - type: string - - name: older - in: query - description: Older then this time - required: false - type: string - - name: newer - in: query - description: Newer then this time - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - start_time - - -start_time - - executor - - -executor - - initiator - - -initiator - - initiator_type - - -initiator_type - - project - - -project - - inventory - - -inventory - - kind - - -kind - - mode - - -mode - - status - - -status - - stop_time - - -stop_time - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: status + in: query + description: Status of execution. + required: false + type: string + enum: + - '' + - DELAY + - RUN + - OK + - ERROR + - OFFLINE + - INTERRUPTED + - name: mode + in: query + description: Module or playbook name. + required: false + type: string + - name: kind + in: query + description: Kind of execution. + required: false + type: string + - name: older + in: query + description: Older then this time + required: false + type: string + - name: newer + in: query + description: Newer then this time + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - start_time + - -start_time + - executor + - -executor + - initiator + - -initiator + - initiator_type + - -initiator_type + - project + - -project + - inventory + - -inventory + - kind + - -kind + - mode + - -mode + - status + - -status + - stop_time + - -stop_time + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -2548,9 +2523,9 @@ paths: items: $ref: '#/definitions/History' tags: - - history + - history x-subscribe-labels: - - main.History + - main.History x-list: true parameters: [] /history/{id}/: @@ -2564,9 +2539,9 @@ paths: schema: $ref: '#/definitions/OneHistory' tags: - - history + - history x-subscribe-labels: - - main.History + - main.History x-list: false delete: operationId: history_remove @@ -2576,38 +2551,38 @@ paths: '204': description: NO CONTENT tags: - - history + - history parameters: - - name: id - in: path - description: A unique integer value identifying this history. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this history. + required: true + type: integer /history/{id}/cancel/: patch: operationId: history_cancel description: Cancel working task. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/Empty' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/Empty' responses: '200': description: OK schema: $ref: '#/definitions/Response' tags: - - history + - history x-title: Cancel x-multiaction: false parameters: - - name: id - in: path - description: A unique integer value identifying this history. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this history. + required: true + type: integer /history/{id}/clear/: delete: operationId: history_clear @@ -2617,15 +2592,15 @@ paths: '204': description: NO CONTENT tags: - - history + - history x-title: Clear x-multiaction: false parameters: - - name: id - in: path - description: A unique integer value identifying this history. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this history. + required: true + type: integer /history/{id}/facts/: get: operationId: history_facts @@ -2637,123 +2612,121 @@ paths: schema: $ref: '#/definitions/FactsResponse' tags: - - history + - history x-subscribe-labels: - - main.History + - main.History x-list: false parameters: - - name: id - in: path - description: A unique integer value identifying this history. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this history. + required: true + type: integer /hook/: get: operationId: hook_list description: Return all hooks. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: when - in: query - description: '' - required: false - type: string - enum: - - '' - - on_execution - - after_execution - - on_user_add - - on_user_upd - - on_user_del - - on_object_add - - on_object_upd - - on_object_del - - name: type - in: query - description: Instance type. - required: false - type: string - enum: - - '' - - HTTP - - SCRIPT - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - type - - -type - - when - - -when - - enable - - -enable - - recipients - - -recipients - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: when + in: query + description: '' + required: false + type: string + enum: + - '' + - on_execution + - after_execution + - on_user_add + - on_user_upd + - on_user_del + - on_object_add + - on_object_upd + - on_object_del + - name: type + in: query + description: Instance type. + required: false + type: string + enum: + - '' + - HTTP + - SCRIPT + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - type + - -type + - when + - -when + - enable + - -enable + - recipients + - -recipients + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -2771,26 +2744,26 @@ paths: items: $ref: '#/definitions/Hook' tags: - - hook + - hook x-subscribe-labels: - - main.Hook + - main.Hook x-list: true post: operationId: hook_add description: Create a new hook. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHook' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHook' responses: '201': description: CREATED schema: $ref: '#/definitions/OneHook' tags: - - hook + - hook parameters: [] /hook/{id}/: get: @@ -2803,42 +2776,42 @@ paths: schema: $ref: '#/definitions/OneHook' tags: - - hook + - hook x-subscribe-labels: - - main.Hook + - main.Hook x-list: false put: operationId: hook_update description: Update a hook. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHook' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHook' responses: '200': description: OK schema: $ref: '#/definitions/OneHook' tags: - - hook + - hook patch: operationId: hook_edit description: Update one or more fields on an existing hook. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHook' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHook' responses: '200': description: OK schema: $ref: '#/definitions/OneHook' tags: - - hook + - hook delete: operationId: hook_remove description: Remove an existing hook. @@ -2847,104 +2820,102 @@ paths: '204': description: NO CONTENT tags: - - hook + - hook parameters: - - name: id - in: path - description: A unique integer value identifying this hook. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this hook. + required: true + type: integer /host/: get: operationId: host_list description: Return all hosts. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: type - in: query - description: Instance type. - required: false - type: string - enum: - - '' - - HOST - - RANGE - - name: variables - in: query - description: List of variables to filter. Comma separated "key:value" list. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - type - - -type - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: type + in: query + description: Instance type. + required: false + type: string + enum: + - '' + - HOST + - RANGE + - name: variables + in: query + description: List of variables to filter. Comma separated "key:value" list. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - type + - -type + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -2962,26 +2933,26 @@ paths: items: $ref: '#/definitions/Host' tags: - - host + - host x-subscribe-labels: - - main.Host + - main.Host x-list: true post: operationId: host_add description: Create a new host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '201': description: CREATED schema: $ref: '#/definitions/OneHost' tags: - - host + - host parameters: [] /host/{id}/: get: @@ -2994,42 +2965,42 @@ paths: schema: $ref: '#/definitions/OneHost' tags: - - host + - host x-subscribe-labels: - - main.Host + - main.Host x-list: false put: operationId: host_update description: Update a host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '200': description: OK schema: $ref: '#/definitions/OneHost' tags: - - host + - host patch: operationId: host_edit description: Update one or more fields on an existing host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '200': description: OK schema: $ref: '#/definitions/OneHost' tags: - - host + - host delete: operationId: host_remove description: Remove an existing host. @@ -3038,61 +3009,61 @@ paths: '204': description: NO CONTENT tags: - - host + - host parameters: - - name: id - in: path - description: A unique integer value identifying this host. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this host. + required: true + type: integer /host/{id}/copy/: post: operationId: host_copy description: Endpoint which copy instance with deps. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/Copy' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/Copy' responses: '201': description: CREATED schema: $ref: '#/definitions/Copy' tags: - - host + - host parameters: - - name: id - in: path - description: A unique integer value identifying this host. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this host. + required: true + type: integer /host/{id}/set_owner/: patch: operationId: host_set_owner description: Change instance owner. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/SetOwner' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/SetOwner' responses: '200': description: OK schema: $ref: '#/definitions/SetOwner' tags: - - host + - host x-title: Set owner x-multiaction: false parameters: - - name: id - in: path - description: A unique integer value identifying this host. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this host. + required: true + type: integer /host/{id}/variables/: get: operationId: host_variables_list @@ -3116,78 +3087,76 @@ paths: update: Update variable value. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: key - in: query - description: A key name string value (or comma separated list) of instance. - required: false - type: string - - name: value - in: query - description: A value of instance. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - key - - -key - - value - - -value - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: key + in: query + description: A key name string value (or comma separated list) of instance. + required: false + type: string + - name: value + in: query + description: A value of instance. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - key + - -key + - value + - -value + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -3205,9 +3174,9 @@ paths: items: $ref: '#/definitions/InventoryVariable' tags: - - host + - host x-subscribe-labels: - - main.Variable + - main.Variable x-list: true post: operationId: host_variables_add @@ -3231,25 +3200,25 @@ paths: update: Update variable value. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '201': description: CREATED schema: $ref: '#/definitions/InventoryVariable' tags: - - host + - host x-allow-append: false parameters: - - name: id - in: path - description: A unique integer value identifying this host. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this host. + required: true + type: integer /host/{id}/variables/{variables_id}/: get: operationId: host_variables_get @@ -3279,9 +3248,9 @@ paths: schema: $ref: '#/definitions/InventoryVariable' tags: - - host + - host x-subscribe-labels: - - main.Variable + - main.Variable x-list: false put: operationId: host_variables_update @@ -3305,18 +3274,18 @@ paths: update: Update variable value. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - host + - host patch: operationId: host_variables_edit summary: Inventory hosts variables. @@ -3339,18 +3308,18 @@ paths: update: Update variable value. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - host + - host delete: operationId: host_variables_remove summary: Inventory hosts variables. @@ -3377,111 +3346,108 @@ paths: '204': description: NO CONTENT tags: - - host + - host parameters: - - name: id - in: path - description: A unique integer value identifying this host. - required: true - type: integer - - name: variables_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this variables - sublist. + - name: id + in: path + description: A unique integer value identifying this host. + required: true + type: integer + - name: variables_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this variables sublist. /inventory/: get: operationId: inventory_list description: Return all inventories. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: variables - in: query - description: List of variables to filter. Comma separated "key:value" list. - required: false - type: string - - name: plugin - in: query - description: '' - required: false - type: array - items: - type: string - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - plugin - - -plugin - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: variables + in: query + description: List of variables to filter. Comma separated "key:value" list. + required: false + type: string + - name: plugin + in: query + description: '' + required: false + type: array + items: + type: string + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - plugin + - -plugin + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -3499,44 +3465,44 @@ paths: items: $ref: '#/definitions/Inventory' tags: - - inventory + - inventory x-subscribe-labels: - - main.Inventory + - main.Inventory x-list: true post: operationId: inventory_add description: Create a new inventory. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/CreateInventory' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/CreateInventory' responses: '201': description: CREATED schema: $ref: '#/definitions/CreateInventory' tags: - - inventory + - inventory parameters: [] /inventory/import_inventory/: post: operationId: inventory_import_inventory description: Import inventory from file. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/ImportInventory' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/ImportInventory' responses: '201': description: CREATED schema: $ref: '#/definitions/ImportInventory' tags: - - inventory + - inventory x-title: Import inventory x-multiaction: false parameters: [] @@ -3551,42 +3517,42 @@ paths: schema: $ref: '#/definitions/OneInventory' tags: - - inventory + - inventory x-subscribe-labels: - - main.Inventory + - main.Inventory x-list: false put: operationId: inventory_update description: Update a inventory. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneInventory' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneInventory' responses: '200': description: OK schema: $ref: '#/definitions/OneInventory' tags: - - inventory + - inventory patch: operationId: inventory_edit description: Update one or more fields on an existing inventory. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneInventory' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneInventory' responses: '200': description: OK schema: $ref: '#/definitions/OneInventory' tags: - - inventory + - inventory delete: operationId: inventory_remove description: Remove an existing inventory. @@ -3595,100 +3561,97 @@ paths: '204': description: NO CONTENT tags: - - inventory + - inventory parameters: - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer /inventory/{id}/all_groups/: get: operationId: inventory_all_groups_list description: Return all groups. parameters: - - name: __deep_parent - in: query - description: '' - required: false - type: integer - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: variables - in: query - description: List of variables to filter. Comma separated "key:value" list. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - children - - -children - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: __deep_parent + in: query + required: false + type: integer + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: variables + in: query + description: List of variables to filter. Comma separated "key:value" list. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - children + - -children + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -3706,17 +3669,17 @@ paths: items: $ref: '#/definitions/Group' tags: - - inventory + - inventory x-subscribe-labels: - - main.Group + - main.Group x-deep-nested-view: groups x-list: true parameters: - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer /inventory/{id}/all_groups/{all_groups_id}/: get: operationId: inventory_all_groups_get @@ -3728,21 +3691,21 @@ paths: schema: $ref: '#/definitions/OneGroup' tags: - - inventory + - inventory x-subscribe-labels: - - main.Group + - main.Group x-deep-nested-view: groups x-list: false parameters: - - name: all_groups_id - in: path - required: true - type: string - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: all_groups_id + in: path + required: true + type: string /inventory/{id}/all_hosts/: get: operationId: inventory_all_hosts_list @@ -3766,92 +3729,90 @@ paths: update: Update a host. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: type - in: query - description: Instance type. - required: false - type: string - enum: - - '' - - HOST - - RANGE - - name: variables - in: query - description: List of variables to filter. Comma separated "key:value" list. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - type - - -type - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: type + in: query + description: Instance type. + required: false + type: string + enum: + - '' + - HOST + - RANGE + - name: variables + in: query + description: List of variables to filter. Comma separated "key:value" list. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - type + - -type + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -3869,16 +3830,16 @@ paths: items: $ref: '#/definitions/Host' tags: - - inventory + - inventory x-subscribe-labels: - - main.Host + - main.Host x-list: true parameters: - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer /inventory/{id}/all_hosts/{all_hosts_id}/: get: operationId: inventory_all_hosts_get @@ -3908,130 +3869,127 @@ paths: schema: $ref: '#/definitions/OneHost' tags: - - inventory + - inventory x-subscribe-labels: - - main.Host + - main.Host x-list: false parameters: - - name: all_hosts_id - in: path - required: true - type: string - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: all_hosts_id + in: path + required: true + type: string /inventory/{id}/copy/: post: operationId: inventory_copy description: Endpoint which copy instance with deps. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/Copy' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/Copy' responses: '201': description: CREATED schema: $ref: '#/definitions/Copy' tags: - - inventory + - inventory parameters: - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer /inventory/{id}/group/: get: operationId: inventory_group_list description: Return all groups. parameters: - - name: __deep_parent - in: query - description: '' - required: false - type: integer - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: variables - in: query - description: List of variables to filter. Comma separated "key:value" list. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - children - - -children - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: __deep_parent + in: query + required: false + type: integer + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: variables + in: query + description: List of variables to filter. Comma separated "key:value" list. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - children + - -children + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -4049,34 +4007,34 @@ paths: items: $ref: '#/definitions/Group' tags: - - inventory + - inventory x-subscribe-labels: - - main.Group + - main.Group x-deep-nested-view: groups x-list: true post: operationId: inventory_group_add description: Create a new group. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/CreateGroup' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/CreateGroup' responses: '201': description: CREATED schema: $ref: '#/definitions/CreateGroup' tags: - - inventory + - inventory x-allow-append: true parameters: - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer /inventory/{id}/group/{group_id}/: get: operationId: inventory_group_get @@ -4088,43 +4046,43 @@ paths: schema: $ref: '#/definitions/OneGroup' tags: - - inventory + - inventory x-subscribe-labels: - - main.Group + - main.Group x-deep-nested-view: groups x-list: false put: operationId: inventory_group_update description: Update a group. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneGroup' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneGroup' responses: '200': description: OK schema: $ref: '#/definitions/OneGroup' tags: - - inventory + - inventory patch: operationId: inventory_group_edit description: Update one or more fields on an existing group. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneGroup' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneGroup' responses: '200': description: OK schema: $ref: '#/definitions/OneGroup' tags: - - inventory + - inventory delete: operationId: inventory_group_remove description: Remove an existing group. @@ -4133,131 +4091,128 @@ paths: '204': description: NO CONTENT tags: - - inventory + - inventory parameters: - - name: group_id - in: path - required: true - type: string - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: group_id + in: path + required: true + type: string /inventory/{id}/group/{group_id}/copy/: post: operationId: inventory_group_copy description: Endpoint which copy instance with deps. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/Copy' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/Copy' responses: '201': description: CREATED schema: $ref: '#/definitions/Copy' tags: - - inventory + - inventory parameters: - - name: group_id - in: path - required: true - type: string - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: group_id + in: path + required: true + type: string /inventory/{id}/group/{group_id}/groups/: get: operationId: inventory_group_groups_list description: Return all groups. parameters: - - name: __deep_parent - in: query - description: '' - required: false - type: integer - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: variables - in: query - description: List of variables to filter. Comma separated "key:value" list. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - children - - -children - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: __deep_parent + in: query + required: false + type: integer + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: variables + in: query + description: List of variables to filter. Comma separated "key:value" list. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - children + - -children + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -4275,37 +4230,37 @@ paths: items: $ref: '#/definitions/Group' tags: - - inventory + - inventory x-subscribe-labels: - - main.Group + - main.Group x-list: true post: operationId: inventory_group_groups_add description: Create a new group. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/CreateGroup' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/CreateGroup' responses: '201': description: CREATED schema: $ref: '#/definitions/CreateGroup' tags: - - inventory + - inventory x-allow-append: true parameters: - - name: group_id - in: path - required: true - type: string - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: group_id + in: path + required: true + type: string /inventory/{id}/group/{group_id}/groups/{groups_id}/: get: operationId: inventory_group_groups_get @@ -4317,42 +4272,42 @@ paths: schema: $ref: '#/definitions/OneGroup' tags: - - inventory + - inventory x-subscribe-labels: - - main.Group + - main.Group x-list: false put: operationId: inventory_group_groups_update description: Update a group. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneGroup' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneGroup' responses: '200': description: OK schema: $ref: '#/definitions/OneGroup' tags: - - inventory + - inventory patch: operationId: inventory_group_groups_edit description: Update one or more fields on an existing group. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneGroup' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneGroup' responses: '200': description: OK schema: $ref: '#/definitions/OneGroup' tags: - - inventory + - inventory delete: operationId: inventory_group_groups_remove description: Remove an existing group. @@ -4361,145 +4316,143 @@ paths: '204': description: NO CONTENT tags: - - inventory + - inventory parameters: - - name: group_id - in: path - required: true - type: string - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: group_id + in: path + required: true + type: string + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. /inventory/{id}/group/{group_id}/groups/{groups_id}/copy/: post: operationId: inventory_group_groups_group_copy description: Endpoint which copy instance with deps. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/Copy' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/Copy' responses: '201': description: CREATED schema: $ref: '#/definitions/Copy' tags: - - inventory + - inventory parameters: - - name: group_id - in: path - required: true - type: string - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: group_id + in: path + required: true + type: string + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. /inventory/{id}/group/{group_id}/groups/{groups_id}/hosts/: get: operationId: inventory_group_groups_hosts_list description: Return all hosts. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: type - in: query - description: Instance type. - required: false - type: string - enum: - - '' - - HOST - - RANGE - - name: variables - in: query - description: List of variables to filter. Comma separated "key:value" list. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - type - - -type - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: type + in: query + description: Instance type. + required: false + type: string + enum: + - '' + - HOST + - RANGE + - name: variables + in: query + description: List of variables to filter. Comma separated "key:value" list. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - type + - -type + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -4517,42 +4470,42 @@ paths: items: $ref: '#/definitions/Host' tags: - - inventory + - inventory x-subscribe-labels: - - main.Host + - main.Host x-list: true post: operationId: inventory_group_groups_hosts_add description: Create a new host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '201': description: CREATED schema: $ref: '#/definitions/OneHost' tags: - - inventory + - inventory x-allow-append: true parameters: - - name: group_id - in: path - required: true - type: string - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: group_id + in: path + required: true + type: string + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. /inventory/{id}/group/{group_id}/groups/{groups_id}/hosts/{hosts_id}/: get: operationId: inventory_group_groups_hosts_get @@ -4564,42 +4517,42 @@ paths: schema: $ref: '#/definitions/OneHost' tags: - - inventory + - inventory x-subscribe-labels: - - main.Host + - main.Host x-list: false put: operationId: inventory_group_groups_hosts_update description: Update a host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '200': description: OK schema: $ref: '#/definitions/OneHost' tags: - - inventory + - inventory patch: operationId: inventory_group_groups_hosts_edit description: Update one or more fields on an existing host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '200': description: OK schema: $ref: '#/definitions/OneHost' tags: - - inventory + - inventory delete: operationId: inventory_group_groups_hosts_remove description: Remove an existing host. @@ -4608,180 +4561,178 @@ paths: '204': description: NO CONTENT tags: - - inventory + - inventory parameters: - - name: group_id - in: path - required: true - type: string - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: group_id + in: path + required: true + type: string + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /inventory/{id}/group/{group_id}/groups/{groups_id}/hosts/{hosts_id}/copy/: post: operationId: inventory_group_groups_hosts_group_groups_copy description: Endpoint which copy instance with deps. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/Copy' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/Copy' responses: '201': description: CREATED schema: $ref: '#/definitions/Copy' tags: - - inventory + - inventory parameters: - - name: group_id - in: path - required: true - type: string - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: group_id + in: path + required: true + type: string + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /inventory/{id}/group/{group_id}/groups/{groups_id}/hosts/{hosts_id}/set_owner/: patch: operationId: inventory_group_groups_hosts_group_groups_set_owner description: Change instance owner. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/SetOwner' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/SetOwner' responses: '200': description: OK schema: $ref: '#/definitions/SetOwner' tags: - - inventory + - inventory x-title: Set owner x-multiaction: false parameters: - - name: group_id - in: path - required: true - type: string - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: group_id + in: path + required: true + type: string + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /inventory/{id}/group/{group_id}/groups/{groups_id}/hosts/{hosts_id}/variables/: get: operationId: inventory_group_groups_hosts_variables_list description: Return all variables of inventory host. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: key - in: query - description: A key name string value (or comma separated list) of instance. - required: false - type: string - - name: value - in: query - description: A value of instance. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - key - - -key - - value - - -value - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: key + in: query + description: A key name string value (or comma separated list) of instance. + required: false + type: string + - name: value + in: query + description: A value of instance. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - key + - -key + - value + - -value + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -4799,47 +4750,47 @@ paths: items: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory x-subscribe-labels: - - main.Variable + - main.Variable x-list: true post: operationId: inventory_group_groups_hosts_variables_add description: Create a new variable of inventory host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '201': description: CREATED schema: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory x-allow-append: false parameters: - - name: group_id - in: path - required: true - type: string - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: group_id + in: path + required: true + type: string + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /inventory/{id}/group/{group_id}/groups/{groups_id}/hosts/{hosts_id}/variables/{variables_id}/: get: operationId: inventory_group_groups_hosts_variables_get @@ -4851,42 +4802,42 @@ paths: schema: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory x-subscribe-labels: - - main.Variable + - main.Variable x-list: false put: operationId: inventory_group_groups_hosts_variables_update description: Update variable value. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory patch: operationId: inventory_group_groups_hosts_variables_edit description: Update one or more fields on an existing variable. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory delete: operationId: inventory_group_groups_hosts_variables_remove description: Remove an existing variable. @@ -4895,144 +4846,141 @@ paths: '204': description: NO CONTENT tags: - - inventory + - inventory parameters: - - name: group_id - in: path - required: true - type: string - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer - - name: variables_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this variables - sublist. + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: group_id + in: path + required: true + type: string + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. + - name: variables_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this variables sublist. /inventory/{id}/group/{group_id}/groups/{groups_id}/set_owner/: patch: operationId: inventory_group_groups_group_set_owner description: Change instance owner. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/SetOwner' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/SetOwner' responses: '200': description: OK schema: $ref: '#/definitions/SetOwner' tags: - - inventory + - inventory x-title: Set owner x-multiaction: false parameters: - - name: group_id - in: path - required: true - type: string - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: group_id + in: path + required: true + type: string + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. /inventory/{id}/group/{group_id}/groups/{groups_id}/variables/: get: operationId: inventory_group_groups_variables_list description: Return all variables of inventory host. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: key - in: query - description: A key name string value (or comma separated list) of instance. - required: false - type: string - - name: value - in: query - description: A value of instance. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - key - - -key - - value - - -value - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: key + in: query + description: A key name string value (or comma separated list) of instance. + required: false + type: string + - name: value + in: query + description: A value of instance. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - key + - -key + - value + - -value + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -5050,42 +4998,42 @@ paths: items: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory x-subscribe-labels: - - main.Variable + - main.Variable x-list: true post: operationId: inventory_group_groups_variables_add description: Create a new variable of inventory host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '201': description: CREATED schema: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory x-allow-append: false parameters: - - name: group_id - in: path - required: true - type: string - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: group_id + in: path + required: true + type: string + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. /inventory/{id}/group/{group_id}/groups/{groups_id}/variables/{variables_id}/: get: operationId: inventory_group_groups_variables_get @@ -5097,42 +5045,42 @@ paths: schema: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory x-subscribe-labels: - - main.Variable + - main.Variable x-list: false put: operationId: inventory_group_groups_variables_update description: Update variable value. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory patch: operationId: inventory_group_groups_variables_edit description: Update one or more fields on an existing variable. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory delete: operationId: inventory_group_groups_variables_remove description: Remove an existing variable. @@ -5141,119 +5089,116 @@ paths: '204': description: NO CONTENT tags: - - inventory + - inventory parameters: - - name: group_id - in: path - required: true - type: string - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer - - name: variables_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this variables - sublist. + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: group_id + in: path + required: true + type: string + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. + - name: variables_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this variables sublist. /inventory/{id}/group/{group_id}/hosts/: get: operationId: inventory_group_hosts_list description: Return all hosts. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: type - in: query - description: Instance type. - required: false - type: string - enum: - - '' - - HOST - - RANGE - - name: variables - in: query - description: List of variables to filter. Comma separated "key:value" list. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - type - - -type - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: type + in: query + description: Instance type. + required: false + type: string + enum: + - '' + - HOST + - RANGE + - name: variables + in: query + description: List of variables to filter. Comma separated "key:value" list. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - type + - -type + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -5271,37 +5216,37 @@ paths: items: $ref: '#/definitions/Host' tags: - - inventory + - inventory x-subscribe-labels: - - main.Host + - main.Host x-list: true post: operationId: inventory_group_hosts_add description: Create a new host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '201': description: CREATED schema: $ref: '#/definitions/OneHost' tags: - - inventory + - inventory x-allow-append: true parameters: - - name: group_id - in: path - required: true - type: string - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: group_id + in: path + required: true + type: string /inventory/{id}/group/{group_id}/hosts/{hosts_id}/: get: operationId: inventory_group_hosts_get @@ -5313,42 +5258,42 @@ paths: schema: $ref: '#/definitions/OneHost' tags: - - inventory + - inventory x-subscribe-labels: - - main.Host + - main.Host x-list: false put: operationId: inventory_group_hosts_update description: Update a host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '200': description: OK schema: $ref: '#/definitions/OneHost' tags: - - inventory + - inventory patch: operationId: inventory_group_hosts_edit description: Update one or more fields on an existing host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '200': description: OK schema: $ref: '#/definitions/OneHost' tags: - - inventory + - inventory delete: operationId: inventory_group_hosts_remove description: Remove an existing host. @@ -5357,165 +5302,163 @@ paths: '204': description: NO CONTENT tags: - - inventory + - inventory parameters: - - name: group_id - in: path - required: true - type: string - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: group_id + in: path + required: true + type: string + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /inventory/{id}/group/{group_id}/hosts/{hosts_id}/copy/: post: operationId: inventory_group_hosts_group_copy description: Endpoint which copy instance with deps. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/Copy' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/Copy' responses: '201': description: CREATED schema: $ref: '#/definitions/Copy' tags: - - inventory + - inventory parameters: - - name: group_id - in: path - required: true - type: string - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: group_id + in: path + required: true + type: string + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /inventory/{id}/group/{group_id}/hosts/{hosts_id}/set_owner/: patch: operationId: inventory_group_hosts_group_set_owner description: Change instance owner. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/SetOwner' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/SetOwner' responses: '200': description: OK schema: $ref: '#/definitions/SetOwner' tags: - - inventory + - inventory x-title: Set owner x-multiaction: false parameters: - - name: group_id - in: path - required: true - type: string - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: group_id + in: path + required: true + type: string + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /inventory/{id}/group/{group_id}/hosts/{hosts_id}/variables/: get: operationId: inventory_group_hosts_variables_list description: Return all variables of inventory host. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: key - in: query - description: A key name string value (or comma separated list) of instance. - required: false - type: string - - name: value - in: query - description: A value of instance. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - key - - -key - - value - - -value - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: key + in: query + description: A key name string value (or comma separated list) of instance. + required: false + type: string + - name: value + in: query + description: A value of instance. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - key + - -key + - value + - -value + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -5533,42 +5476,42 @@ paths: items: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory x-subscribe-labels: - - main.Variable + - main.Variable x-list: true post: operationId: inventory_group_hosts_variables_add description: Create a new variable of inventory host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '201': description: CREATED schema: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory x-allow-append: false parameters: - - name: group_id - in: path - required: true - type: string - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: group_id + in: path + required: true + type: string + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /inventory/{id}/group/{group_id}/hosts/{hosts_id}/variables/{variables_id}/: get: operationId: inventory_group_hosts_variables_get @@ -5580,42 +5523,42 @@ paths: schema: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory x-subscribe-labels: - - main.Variable + - main.Variable x-list: false put: operationId: inventory_group_hosts_variables_update description: Update variable value. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory patch: operationId: inventory_group_hosts_variables_edit description: Update one or more fields on an existing variable. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory delete: operationId: inventory_group_hosts_variables_remove description: Remove an existing variable. @@ -5624,134 +5567,131 @@ paths: '204': description: NO CONTENT tags: - - inventory + - inventory parameters: - - name: group_id - in: path - required: true - type: string - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer - - name: variables_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this variables - sublist. + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: group_id + in: path + required: true + type: string + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. + - name: variables_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this variables sublist. /inventory/{id}/group/{group_id}/set_owner/: patch: operationId: inventory_group_set_owner description: Change instance owner. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/SetOwner' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/SetOwner' responses: '200': description: OK schema: $ref: '#/definitions/SetOwner' tags: - - inventory + - inventory x-title: Set owner x-multiaction: false parameters: - - name: group_id - in: path - required: true - type: string - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: group_id + in: path + required: true + type: string /inventory/{id}/group/{group_id}/variables/: get: operationId: inventory_group_variables_list description: Return all variables of inventory host. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: key - in: query - description: A key name string value (or comma separated list) of instance. - required: false - type: string - - name: value - in: query - description: A value of instance. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - key - - -key - - value - - -value - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: key + in: query + description: A key name string value (or comma separated list) of instance. + required: false + type: string + - name: value + in: query + description: A value of instance. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - key + - -key + - value + - -value + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -5769,37 +5709,37 @@ paths: items: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory x-subscribe-labels: - - main.Variable + - main.Variable x-list: true post: operationId: inventory_group_variables_add description: Create a new variable of inventory host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '201': description: CREATED schema: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory x-allow-append: false parameters: - - name: group_id - in: path - required: true - type: string - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: group_id + in: path + required: true + type: string /inventory/{id}/group/{group_id}/variables/{variables_id}/: get: operationId: inventory_group_variables_get @@ -5811,42 +5751,42 @@ paths: schema: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory x-subscribe-labels: - - main.Variable + - main.Variable x-list: false put: operationId: inventory_group_variables_update description: Update variable value. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory patch: operationId: inventory_group_variables_edit description: Update one or more fields on an existing variable. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory delete: operationId: inventory_group_variables_remove description: Remove an existing variable. @@ -5855,23 +5795,22 @@ paths: '204': description: NO CONTENT tags: - - inventory + - inventory parameters: - - name: group_id - in: path - required: true - type: string - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer - - name: variables_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this variables - sublist. + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: group_id + in: path + required: true + type: string + - name: variables_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this variables sublist. /inventory/{id}/hosts/: get: operationId: inventory_hosts_list @@ -5895,92 +5834,90 @@ paths: update: Update a host. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: type - in: query - description: Instance type. - required: false - type: string - enum: - - '' - - HOST - - RANGE - - name: variables - in: query - description: List of variables to filter. Comma separated "key:value" list. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - type - - -type - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: type + in: query + description: Instance type. + required: false + type: string + enum: + - '' + - HOST + - RANGE + - name: variables + in: query + description: List of variables to filter. Comma separated "key:value" list. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - type + - -type + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -5998,9 +5935,9 @@ paths: items: $ref: '#/definitions/Host' tags: - - inventory + - inventory x-subscribe-labels: - - main.Host + - main.Host x-list: true post: operationId: inventory_hosts_add @@ -6024,25 +5961,25 @@ paths: update: Update a host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '201': description: CREATED schema: $ref: '#/definitions/OneHost' tags: - - inventory + - inventory x-allow-append: true parameters: - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer /inventory/{id}/hosts/{hosts_id}/: get: operationId: inventory_hosts_get @@ -6072,9 +6009,9 @@ paths: schema: $ref: '#/definitions/OneHost' tags: - - inventory + - inventory x-subscribe-labels: - - main.Host + - main.Host x-list: false put: operationId: inventory_hosts_update @@ -6098,18 +6035,18 @@ paths: update: Update a host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '200': description: OK schema: $ref: '#/definitions/OneHost' tags: - - inventory + - inventory patch: operationId: inventory_hosts_edit summary: Manage inventory hosts. @@ -6132,18 +6069,18 @@ paths: update: Update a host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '200': description: OK schema: $ref: '#/definitions/OneHost' tags: - - inventory + - inventory delete: operationId: inventory_hosts_remove summary: Manage inventory hosts. @@ -6170,18 +6107,18 @@ paths: '204': description: NO CONTENT tags: - - inventory + - inventory parameters: - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /inventory/{id}/hosts/{hosts_id}/copy/: post: operationId: inventory_hosts_copy @@ -6205,59 +6142,59 @@ paths: update: Update a host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/Copy' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/Copy' responses: '201': description: CREATED schema: $ref: '#/definitions/Copy' tags: - - inventory + - inventory parameters: - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /inventory/{id}/hosts/{hosts_id}/set_owner/: patch: operationId: inventory_hosts_set_owner description: Change instance owner. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/SetOwner' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/SetOwner' responses: '200': description: OK schema: $ref: '#/definitions/SetOwner' tags: - - inventory + - inventory x-title: Set owner x-multiaction: false parameters: - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /inventory/{id}/hosts/{hosts_id}/variables/: get: operationId: inventory_hosts_variables_list @@ -6281,78 +6218,76 @@ paths: update: Update a host. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: key - in: query - description: A key name string value (or comma separated list) of instance. - required: false - type: string - - name: value - in: query - description: A value of instance. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - key - - -key - - value - - -value - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: key + in: query + description: A key name string value (or comma separated list) of instance. + required: false + type: string + - name: value + in: query + description: A value of instance. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - key + - -key + - value + - -value + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -6370,9 +6305,9 @@ paths: items: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory x-subscribe-labels: - - main.Variable + - main.Variable x-list: true post: operationId: inventory_hosts_variables_add @@ -6396,30 +6331,30 @@ paths: update: Update a host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '201': description: CREATED schema: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory x-allow-append: false parameters: - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /inventory/{id}/hosts/{hosts_id}/variables/{variables_id}/: get: operationId: inventory_hosts_variables_get @@ -6449,9 +6384,9 @@ paths: schema: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory x-subscribe-labels: - - main.Variable + - main.Variable x-list: false put: operationId: inventory_hosts_variables_update @@ -6475,18 +6410,18 @@ paths: update: Update a host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory patch: operationId: inventory_hosts_variables_edit summary: Manage inventory hosts. @@ -6509,18 +6444,18 @@ paths: update: Update a host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory delete: operationId: inventory_hosts_variables_remove summary: Manage inventory hosts. @@ -6547,49 +6482,48 @@ paths: '204': description: NO CONTENT tags: - - inventory + - inventory parameters: - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer - - name: variables_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this variables - sublist. + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. + - name: variables_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this variables sublist. /inventory/{id}/set_owner/: patch: operationId: inventory_set_owner description: Change instance owner. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/SetOwner' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/SetOwner' responses: '200': description: OK schema: $ref: '#/definitions/SetOwner' tags: - - inventory + - inventory x-title: Set owner x-multiaction: false parameters: - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer /inventory/{id}/state/: get: operationId: inventory_state_get @@ -6601,33 +6535,33 @@ paths: schema: $ref: '#/definitions/InventoryState' tags: - - inventory + - inventory x-subscribe-labels: - - main.Inventory + - main.Inventory x-list: false put: operationId: inventory_state_update description: State parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryStateUpdate' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryStateUpdate' responses: '200': description: OK schema: $ref: '#/definitions/InventoryState' tags: - - inventory + - inventory x-multiaction: false parameters: - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer /inventory/{id}/variables/: get: operationId: inventory_variables_list @@ -6651,78 +6585,76 @@ paths: update: Update variable value. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: key - in: query - description: A key name string value (or comma separated list) of instance. - required: false - type: string - - name: value - in: query - description: A value of instance. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - key - - -key - - value - - -value - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: key + in: query + description: A key name string value (or comma separated list) of instance. + required: false + type: string + - name: value + in: query + description: A value of instance. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - key + - -key + - value + - -value + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -6740,9 +6672,9 @@ paths: items: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory x-subscribe-labels: - - main.Variable + - main.Variable x-list: true post: operationId: inventory_variables_add @@ -6766,25 +6698,25 @@ paths: update: Update variable value. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '201': description: CREATED schema: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory x-allow-append: false parameters: - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer /inventory/{id}/variables/{variables_id}/: get: operationId: inventory_variables_get @@ -6814,9 +6746,9 @@ paths: schema: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory x-subscribe-labels: - - main.Variable + - main.Variable x-list: false put: operationId: inventory_variables_update @@ -6840,18 +6772,18 @@ paths: update: Update variable value. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory patch: operationId: inventory_variables_edit summary: Inventory hosts variables. @@ -6874,18 +6806,18 @@ paths: update: Update variable value. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - inventory + - inventory delete: operationId: inventory_variables_remove summary: Inventory hosts variables. @@ -6912,116 +6844,113 @@ paths: '204': description: NO CONTENT tags: - - inventory + - inventory parameters: - - name: id - in: path - description: A unique integer value identifying this inventory. - required: true - type: integer - - name: variables_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this variables - sublist. + - name: id + in: path + description: A unique integer value identifying this inventory. + required: true + type: integer + - name: variables_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this variables sublist. /project/: get: operationId: project_list description: Return all projects. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: status - in: query - description: Project sync status. - required: false - type: array - items: - type: string - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: status__not - in: query - description: Project sync status. - required: false - type: array - items: - type: string - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: + type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: status + in: query + description: Project sync status. + required: false + type: array + items: type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - status - - -status - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: status__not + in: query + description: Project sync status. + required: false + type: array + items: type: string - - name: limit - in: query - description: Number of results to return per page. - required: false - type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - status + - -status + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -7039,26 +6968,26 @@ paths: items: $ref: '#/definitions/Project' tags: - - project + - project x-subscribe-labels: - - main.Project + - main.Project x-list: true post: operationId: project_add description: Create a new project. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/CreateProject' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/CreateProject' responses: '201': description: CREATED schema: $ref: '#/definitions/CreateProject' tags: - - project + - project parameters: [] /project/{id}/: get: @@ -7071,42 +7000,42 @@ paths: schema: $ref: '#/definitions/OneProject' tags: - - project + - project x-subscribe-labels: - - main.Project + - main.Project x-list: false put: operationId: project_update description: Update a project. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneProject' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneProject' responses: '200': description: OK schema: $ref: '#/definitions/OneProject' tags: - - project + - project patch: operationId: project_edit description: Update one or more fields on an existing project. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneProject' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneProject' responses: '200': description: OK schema: $ref: '#/definitions/OneProject' tags: - - project + - project delete: operationId: project_remove description: Remove an existing project. @@ -7115,85 +7044,83 @@ paths: '204': description: NO CONTENT tags: - - project + - project parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer /project/{id}/_project_template_options/: get: operationId: project__template_options_list description: ExecutionTemplateOption(id, name, template, notes, arguments) parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: string - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: template - in: query - description: Search by template's primary key or name - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: + type: string + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: template + in: query + description: Search by template's primary key or name + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: string - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - template - - -template - - extended_name - - -extended_name - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: type: string - - name: limit - in: query - description: Number of results to return per page. - required: false - type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false - type: integer + format: ordering_choices + enum: + - id + - -id + - template + - -template + - extended_name + - -extended_name + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -7211,17 +7138,17 @@ paths: items: $ref: '#/definitions/ProjectTemplateOption' tags: - - project + - project x-subscribe-labels: - - main.ExecutionTemplateOption + - main.ExecutionTemplateOption x-list: true x-hidden: true parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer /project/{id}/_project_template_options/{_project_template_options_id}/: get: operationId: project__template_options_get @@ -7233,20 +7160,20 @@ paths: schema: $ref: '#/definitions/OneProjectTemplateOption' tags: - - project + - project x-subscribe-labels: - - main.ExecutionTemplateOption + - main.ExecutionTemplateOption x-list: false parameters: - - name: _project_template_options_id - in: path - required: true - type: string - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: _project_template_options_id + in: path + required: true + type: string /project/{id}/ansible_modules/: get: operationId: project_ansible_modules_list @@ -7258,64 +7185,62 @@ paths: list: Return all available modules of project. parameters: - - name: path - in: query - description: Full path to module. - required: false - type: string - - name: path__not - in: query - description: Full path to module. - required: false - type: string - - name: name - in: query - description: Full path to module. - required: false - type: string - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - path - - -path - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false + - name: path + in: query + description: Full path to module. + required: false + type: string + - name: path__not + in: query + description: Full path to module. + required: false + type: string + - name: name + in: query + description: Full path to module. + required: false + type: string + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: type: string - - name: limit - in: query - description: Number of results to return per page. - required: false - type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false - type: integer + format: ordering_choices + enum: + - id + - -id + - path + - -path + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -7333,16 +7258,16 @@ paths: items: $ref: '#/definitions/AnsibleModule' tags: - - project + - project x-subscribe-labels: - - main.Module + - main.Module x-list: true parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer /project/{id}/ansible_modules/{ansible_modules_id}/: get: operationId: project_ansible_modules_get @@ -7360,22 +7285,22 @@ paths: schema: $ref: '#/definitions/OneAnsibleModule' tags: - - project + - project x-subscribe-labels: - - main.Module + - main.Module x-list: false parameters: - - name: ansible_modules_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this ansible_modules - sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: ansible_modules_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this ansible_modules + sublist. /project/{id}/ansible_playbooks/: get: operationId: project_ansible_playbooks_list @@ -7387,61 +7312,59 @@ paths: list: Return all playbooks of project. parameters: - - name: playbook - in: query - description: Playbook filename. - required: false - type: string - - name: playbook__not - in: query - description: Playbook filename. - required: false - type: string - - name: pb_filter - in: query - description: Playbook filename - filter for prefetch. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - playbook - - -playbook - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false + - name: playbook + in: query + description: Playbook filename. + required: false + type: string + - name: playbook__not + in: query + description: Playbook filename. + required: false + type: string + - name: pb_filter + in: query + description: Playbook filename - filter for prefetch. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: type: string - - name: limit - in: query - description: Number of results to return per page. - required: false - type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false - type: integer + format: ordering_choices + enum: + - id + - -id + - name + - -name + - playbook + - -playbook + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -7459,16 +7382,16 @@ paths: items: $ref: '#/definitions/AnsiblePlaybook' tags: - - project + - project x-subscribe-labels: - - main.AnsiblePlaybook + - main.AnsiblePlaybook x-list: true parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer /project/{id}/ansible_playbooks/{ansible_playbooks_id}/: get: operationId: project_ansible_playbooks_get @@ -7486,95 +7409,95 @@ paths: schema: $ref: '#/definitions/OneAnsiblePlaybook' tags: - - project + - project x-subscribe-labels: - - main.AnsiblePlaybook + - main.AnsiblePlaybook x-list: false parameters: - - name: ansible_playbooks_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this ansible_playbooks - sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: ansible_playbooks_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this ansible_playbooks + sublist. /project/{id}/copy/: post: operationId: project_copy description: Endpoint which copy instance with deps. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/Project' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/Project' responses: '201': description: CREATED schema: $ref: '#/definitions/Project' tags: - - project + - project parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer /project/{id}/execute_ansible_module/: post: operationId: project_execute_ansible_module description: Execute ANSIBLE_MODULE plugin. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/ExecuteAnsibleModule' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/ExecuteAnsibleModule' responses: '201': description: CREATED schema: $ref: '#/definitions/ProjectExecuteResponse' tags: - - project + - project x-title: Execute ansible module x-multiaction: false parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer /project/{id}/execute_ansible_playbook/: post: operationId: project_execute_ansible_playbook description: Execute ANSIBLE_PLAYBOOK plugin. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/ExecuteAnsiblePlaybook' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/ExecuteAnsiblePlaybook' responses: '201': description: CREATED schema: $ref: '#/definitions/ProjectExecuteResponse' tags: - - project + - project x-title: Execute ansible playbook x-multiaction: false parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer /project/{id}/execution_templates/: get: operationId: project_execution_templates_list @@ -7598,87 +7521,85 @@ paths: update: Update an execution template. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: plugin - in: query - description: '' - required: false - type: string - enum: - - '' - - ANSIBLE_PLAYBOOK - - ANSIBLE_MODULE - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - plugin - - -plugin - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: plugin + in: query + description: '' + required: false + type: string + enum: + - '' + - ANSIBLE_PLAYBOOK + - ANSIBLE_MODULE + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - plugin + - -plugin + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -7696,9 +7617,9 @@ paths: items: $ref: '#/definitions/ExecutionTemplate' tags: - - project + - project x-subscribe-labels: - - main.ExecutionTemplate + - main.ExecutionTemplate x-list: true post: operationId: project_execution_templates_add @@ -7722,25 +7643,25 @@ paths: update: Update an execution template. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/CreateExecutionTemplate' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/CreateExecutionTemplate' responses: '201': description: CREATED schema: $ref: '#/definitions/CreateExecutionTemplate' tags: - - project + - project x-allow-append: false parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer /project/{id}/execution_templates/{execution_templates_id}/: get: operationId: project_execution_templates_get @@ -7770,9 +7691,9 @@ paths: schema: $ref: '#/definitions/OneExecutionTemplate' tags: - - project + - project x-subscribe-labels: - - main.ExecutionTemplate + - main.ExecutionTemplate x-list: false put: operationId: project_execution_templates_update @@ -7796,18 +7717,18 @@ paths: update: Update an execution template. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneExecutionTemplate' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneExecutionTemplate' responses: '200': description: OK schema: $ref: '#/definitions/OneExecutionTemplate' tags: - - project + - project patch: operationId: project_execution_templates_edit summary: Manage execution templates of project. @@ -7830,18 +7751,18 @@ paths: update: Update an execution template. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneExecutionTemplate' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneExecutionTemplate' responses: '200': description: OK schema: $ref: '#/definitions/OneExecutionTemplate' tags: - - project + - project delete: operationId: project_execution_templates_remove summary: Manage execution templates of project. @@ -7868,50 +7789,50 @@ paths: '204': description: NO CONTENT tags: - - project + - project parameters: - - name: execution_templates_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this execution_templates - sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: execution_templates_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this execution_templates + sublist. /project/{id}/execution_templates/{execution_templates_id}/execute/: post: operationId: project_execution_templates_execute description: Execute template with option. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/ExecuteTemplate' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/ExecuteTemplate' responses: '201': description: CREATED schema: $ref: '#/definitions/ExecuteTemplateResponse' tags: - - project + - project x-title: Execute x-multiaction: false parameters: - - name: execution_templates_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this execution_templates - sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: execution_templates_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this execution_templates + sublist. /project/{id}/execution_templates/{execution_templates_id}/history/: get: operationId: project_execution_templates_history_list @@ -7935,117 +7856,115 @@ paths: update: Update an execution template. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: status - in: query - description: Status of execution. - required: false - type: string - enum: - - '' - - DELAY - - RUN - - OK - - ERROR - - OFFLINE - - INTERRUPTED - - name: mode - in: query - description: Module or playbook name. - required: false - type: string - - name: kind - in: query - description: Kind of execution. - required: false - type: string - - name: older - in: query - description: Older then this time - required: false - type: string - - name: newer - in: query - description: Newer then this time - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - start_time - - -start_time - - executor - - -executor - - initiator - - -initiator - - initiator_type - - -initiator_type - - project - - -project - - inventory - - -inventory - - kind - - -kind - - mode - - -mode - - status - - -status - - stop_time - - -stop_time - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: status + in: query + description: Status of execution. + required: false + type: string + enum: + - '' + - DELAY + - RUN + - OK + - ERROR + - OFFLINE + - INTERRUPTED + - name: mode + in: query + description: Module or playbook name. + required: false + type: string + - name: kind + in: query + description: Kind of execution. + required: false + type: string + - name: older + in: query + description: Older then this time + required: false + type: string + - name: newer + in: query + description: Newer then this time + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - start_time + - -start_time + - executor + - -executor + - initiator + - -initiator + - initiator_type + - -initiator_type + - project + - -project + - inventory + - -inventory + - kind + - -kind + - mode + - -mode + - status + - -status + - stop_time + - -stop_time + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -8063,22 +7982,22 @@ paths: items: $ref: '#/definitions/History' tags: - - project + - project x-subscribe-labels: - - main.History + - main.History x-list: true parameters: - - name: execution_templates_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this execution_templates - sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: execution_templates_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this execution_templates + sublist. /project/{id}/execution_templates/{execution_templates_id}/history/{history_id}/: get: operationId: project_execution_templates_history_get @@ -8108,9 +8027,9 @@ paths: schema: $ref: '#/definitions/OneHistory' tags: - - project + - project x-subscribe-labels: - - main.History + - main.History x-list: false delete: operationId: project_execution_templates_history_remove @@ -8138,60 +8057,60 @@ paths: '204': description: NO CONTENT tags: - - project + - project parameters: - - name: execution_templates_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this execution_templates - sublist. - - name: history_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this history sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: execution_templates_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this execution_templates + sublist. + - name: history_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this history sublist. /project/{id}/execution_templates/{execution_templates_id}/history/{history_id}/cancel/: patch: operationId: project_execution_templates_history_execution_templates_cancel description: Cancel working task. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/Empty' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/Empty' responses: '200': description: OK schema: $ref: '#/definitions/Response' tags: - - project + - project x-title: Cancel x-multiaction: false parameters: - - name: execution_templates_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this execution_templates - sublist. - - name: history_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this history sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: execution_templates_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this execution_templates + sublist. + - name: history_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this history sublist. /project/{id}/execution_templates/{execution_templates_id}/history/{history_id}/clear/: delete: operationId: project_execution_templates_history_execution_templates_clear @@ -8201,26 +8120,26 @@ paths: '204': description: NO CONTENT tags: - - project + - project x-title: Clear x-multiaction: false parameters: - - name: execution_templates_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this execution_templates - sublist. - - name: history_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this history sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: execution_templates_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this execution_templates + sublist. + - name: history_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this history sublist. /project/{id}/execution_templates/{execution_templates_id}/history/{history_id}/facts/: get: operationId: project_execution_templates_history_execution_templates_facts @@ -8232,27 +8151,27 @@ paths: schema: $ref: '#/definitions/FactsResponse' tags: - - project + - project x-subscribe-labels: - - main.History + - main.History x-list: false parameters: - - name: execution_templates_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this execution_templates - sublist. - - name: history_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this history sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: execution_templates_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this execution_templates + sublist. + - name: history_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this history sublist. /project/{id}/execution_templates/{execution_templates_id}/options/: get: operationId: project_execution_templates_options_list @@ -8276,76 +8195,74 @@ paths: update: Update an execution template. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: string - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: string - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: type: string - - name: limit - in: query - description: Number of results to return per page. - required: false - type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false - type: integer + format: ordering_choices + enum: + - id + - -id + - name + - -name + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -8363,9 +8280,9 @@ paths: items: $ref: '#/definitions/ExecutionTemplateOption' tags: - - project + - project x-subscribe-labels: - - main.ExecutionTemplateOption + - main.ExecutionTemplateOption x-list: true post: operationId: project_execution_templates_options_add @@ -8389,31 +8306,31 @@ paths: update: Update an execution template. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneExecutionTemplateOption' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneExecutionTemplateOption' responses: '201': description: CREATED schema: $ref: '#/definitions/OneExecutionTemplateOption' tags: - - project + - project x-allow-append: false parameters: - - name: execution_templates_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this execution_templates - sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: execution_templates_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this execution_templates + sublist. /project/{id}/execution_templates/{execution_templates_id}/options/{options_id}/: get: operationId: project_execution_templates_options_get @@ -8443,9 +8360,9 @@ paths: schema: $ref: '#/definitions/OneExecutionTemplateOption' tags: - - project + - project x-subscribe-labels: - - main.ExecutionTemplateOption + - main.ExecutionTemplateOption x-list: false put: operationId: project_execution_templates_options_update @@ -8469,18 +8386,18 @@ paths: update: Update an execution template. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneExecutionTemplateOption' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneExecutionTemplateOption' responses: '200': description: OK schema: $ref: '#/definitions/OneExecutionTemplateOption' tags: - - project + - project patch: operationId: project_execution_templates_options_edit summary: Manage execution templates of project. @@ -8503,18 +8420,18 @@ paths: update: Update an execution template. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneExecutionTemplateOption' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneExecutionTemplateOption' responses: '200': description: OK schema: $ref: '#/definitions/OneExecutionTemplateOption' tags: - - project + - project delete: operationId: project_execution_templates_options_remove summary: Manage execution templates of project. @@ -8541,58 +8458,58 @@ paths: '204': description: NO CONTENT tags: - - project + - project parameters: - - name: execution_templates_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this execution_templates - sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: options_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: execution_templates_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this execution_templates + sublist. + - name: options_id + in: path + required: true + type: string /project/{id}/execution_templates/{execution_templates_id}/options/{options_id}/execute/: post: operationId: project_execution_templates_options_execution_templates_execute description: Execute template with option. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/Empty' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/Empty' responses: '201': description: CREATED schema: $ref: '#/definitions/ExecuteTemplateResponse' tags: - - project + - project x-title: Execute x-multiaction: false parameters: - - name: execution_templates_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this execution_templates - sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: options_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: execution_templates_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this execution_templates + sublist. + - name: options_id + in: path + required: true + type: string /project/{id}/execution_templates/{execution_templates_id}/options/{options_id}/periodic_tasks/: get: operationId: project_execution_templates_options_periodic_tasks_list @@ -8616,97 +8533,95 @@ paths: update: Update an execution template. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: schedule - in: query - description: '' - required: false - type: string - - name: enabled - in: query - description: '' - required: false - type: boolean - - name: save_result - in: query - description: '' - required: false - type: boolean - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - schedule - - -schedule - - enabled - - -enabled - - save_result - - -save_result - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: schedule + in: query + description: '' + required: false + type: string + - name: enabled + in: query + description: '' + required: false + type: boolean + - name: save_result + in: query + description: '' + required: false + type: boolean + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - schedule + - -schedule + - enabled + - -enabled + - save_result + - -save_result + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -8724,9 +8639,9 @@ paths: items: $ref: '#/definitions/TemplatePeriodicTask' tags: - - project + - project x-subscribe-labels: - - main.TemplatePeriodicTask + - main.TemplatePeriodicTask x-list: true post: operationId: project_execution_templates_options_periodic_tasks_add @@ -8750,35 +8665,35 @@ paths: update: Update an execution template. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneTemplatePeriodicTask' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneTemplatePeriodicTask' responses: '201': description: CREATED schema: $ref: '#/definitions/OneTemplatePeriodicTask' tags: - - project + - project x-allow-append: false parameters: - - name: execution_templates_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this execution_templates - sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: options_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: execution_templates_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this execution_templates + sublist. + - name: options_id + in: path + required: true + type: string /project/{id}/execution_templates/{execution_templates_id}/options/{options_id}/periodic_tasks/{periodic_tasks_id}/: get: operationId: project_execution_templates_options_periodic_tasks_get @@ -8808,9 +8723,9 @@ paths: schema: $ref: '#/definitions/OneTemplatePeriodicTask' tags: - - project + - project x-subscribe-labels: - - main.TemplatePeriodicTask + - main.TemplatePeriodicTask x-list: false put: operationId: project_execution_templates_options_periodic_tasks_update @@ -8834,18 +8749,18 @@ paths: update: Update an execution template. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneTemplatePeriodicTask' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneTemplatePeriodicTask' responses: '200': description: OK schema: $ref: '#/definitions/OneTemplatePeriodicTask' tags: - - project + - project patch: operationId: project_execution_templates_options_periodic_tasks_edit summary: Manage execution templates of project. @@ -8868,18 +8783,18 @@ paths: update: Update an execution template. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneTemplatePeriodicTask' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneTemplatePeriodicTask' responses: '200': description: OK schema: $ref: '#/definitions/OneTemplatePeriodicTask' tags: - - project + - project delete: operationId: project_execution_templates_options_periodic_tasks_remove summary: Manage execution templates of project. @@ -8906,27 +8821,27 @@ paths: '204': description: NO CONTENT tags: - - project + - project parameters: - - name: execution_templates_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this execution_templates - sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: options_id - in: path - required: true - type: string - - name: periodic_tasks_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: execution_templates_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this execution_templates + sublist. + - name: options_id + in: path + required: true + type: string + - name: periodic_tasks_id + in: path + required: true + type: string /project/{id}/history/: get: operationId: project_history_list @@ -8941,117 +8856,115 @@ paths: destroy: Remove an existing history record. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: status - in: query - description: Status of execution. - required: false - type: string - enum: - - '' - - DELAY - - RUN - - OK - - ERROR - - OFFLINE - - INTERRUPTED - - name: mode - in: query - description: Module or playbook name. - required: false - type: string - - name: kind - in: query - description: Kind of execution. - required: false - type: string - - name: older - in: query - description: Older then this time - required: false - type: string - - name: newer - in: query - description: Newer then this time - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - start_time - - -start_time - - executor - - -executor - - initiator - - -initiator - - initiator_type - - -initiator_type - - project - - -project - - inventory - - -inventory - - kind - - -kind - - mode - - -mode - - status - - -status - - stop_time - - -stop_time - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: status + in: query + description: Status of execution. + required: false + type: string + enum: + - '' + - DELAY + - RUN + - OK + - ERROR + - OFFLINE + - INTERRUPTED + - name: mode + in: query + description: Module or playbook name. + required: false + type: string + - name: kind + in: query + description: Kind of execution. + required: false + type: string + - name: older + in: query + description: Older then this time + required: false + type: string + - name: newer + in: query + description: Newer then this time + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - start_time + - -start_time + - executor + - -executor + - initiator + - -initiator + - initiator_type + - -initiator_type + - project + - -project + - inventory + - -inventory + - kind + - -kind + - mode + - -mode + - status + - -status + - stop_time + - -stop_time + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -9069,16 +8982,16 @@ paths: items: $ref: '#/definitions/History' tags: - - project + - project x-subscribe-labels: - - main.History + - main.History x-list: true parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer /project/{id}/history/{history_id}/: get: operationId: project_history_get @@ -9099,9 +9012,9 @@ paths: schema: $ref: '#/definitions/OneHistory' tags: - - project + - project x-subscribe-labels: - - main.History + - main.History x-list: false delete: operationId: project_history_remove @@ -9120,48 +9033,48 @@ paths: '204': description: NO CONTENT tags: - - project + - project parameters: - - name: history_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this history sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: history_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this history sublist. /project/{id}/history/{history_id}/cancel/: patch: operationId: project_history_cancel description: Cancel working task. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/Empty' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/Empty' responses: '200': description: OK schema: $ref: '#/definitions/Response' tags: - - project + - project x-title: Cancel x-multiaction: false parameters: - - name: history_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this history sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: history_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this history sublist. /project/{id}/history/{history_id}/clear/: delete: operationId: project_history_clear @@ -9171,20 +9084,20 @@ paths: '204': description: NO CONTENT tags: - - project + - project x-title: Clear x-multiaction: false parameters: - - name: history_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this history sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: history_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this history sublist. /project/{id}/history/{history_id}/facts/: get: operationId: project_history_facts @@ -9196,113 +9109,111 @@ paths: schema: $ref: '#/definitions/FactsResponse' tags: - - project + - project x-subscribe-labels: - - main.History + - main.History x-list: false parameters: - - name: history_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this history sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: history_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this history sublist. /project/{id}/inventory/: get: operationId: project_inventory_list description: Inventory(id, hidden, notes, owner, name, plugin, _inventory_state) parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: variables - in: query - description: List of variables to filter. Comma separated "key:value" list. - required: false - type: string - - name: plugin - in: query - description: '' - required: false - type: array - items: - type: string - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - plugin - - -plugin - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: variables + in: query + description: List of variables to filter. Comma separated "key:value" list. + required: false + type: string + - name: plugin + in: query + description: '' + required: false + type: array + items: + type: string + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - plugin + - -plugin + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -9320,58 +9231,58 @@ paths: items: $ref: '#/definitions/Inventory' tags: - - project + - project x-subscribe-labels: - - main.Inventory + - main.Inventory x-list: true post: operationId: project_inventory_add description: Inventory(id, hidden, notes, owner, name, plugin, _inventory_state) parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/CreateInventory' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/CreateInventory' responses: '201': description: CREATED schema: $ref: '#/definitions/CreateInventory' tags: - - project + - project x-allow-append: true parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer /project/{id}/inventory/import_inventory/: post: operationId: project_inventory_import_inventory description: Import inventory from file. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/ProjectImportInventory' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/ProjectImportInventory' responses: '201': description: CREATED schema: $ref: '#/definitions/ProjectImportInventory' tags: - - project + - project x-title: Import inventory x-multiaction: false parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer /project/{id}/inventory/{inventory_id}/: get: operationId: project_inventory_get @@ -9383,42 +9294,42 @@ paths: schema: $ref: '#/definitions/OneInventory' tags: - - project + - project x-subscribe-labels: - - main.Inventory + - main.Inventory x-list: false put: operationId: project_inventory_update description: Inventory(id, hidden, notes, owner, name, plugin, _inventory_state) parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneInventory' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneInventory' responses: '200': description: OK schema: $ref: '#/definitions/OneInventory' tags: - - project + - project patch: operationId: project_inventory_edit description: Inventory(id, hidden, notes, owner, name, plugin, _inventory_state) parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneInventory' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneInventory' responses: '200': description: OK schema: $ref: '#/definitions/OneInventory' tags: - - project + - project delete: operationId: project_inventory_remove description: Inventory(id, hidden, notes, owner, name, plugin, _inventory_state) @@ -9427,104 +9338,101 @@ paths: '204': description: NO CONTENT tags: - - project + - project parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string /project/{id}/inventory/{inventory_id}/all_groups/: get: operationId: project_inventory_all_groups_list description: Return all groups. parameters: - - name: __deep_parent - in: query - description: '' - required: false - type: integer - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: variables - in: query - description: List of variables to filter. Comma separated "key:value" list. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - children - - -children - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: __deep_parent + in: query + required: false + type: integer + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: variables + in: query + description: List of variables to filter. Comma separated "key:value" list. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - children + - -children + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -9542,21 +9450,21 @@ paths: items: $ref: '#/definitions/Group' tags: - - project + - project x-subscribe-labels: - - main.Group + - main.Group x-deep-nested-view: groups x-list: true parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string /project/{id}/inventory/{inventory_id}/all_groups/{all_groups_id}/: get: operationId: project_inventory_all_groups_get @@ -9568,116 +9476,114 @@ paths: schema: $ref: '#/definitions/OneGroup' tags: - - project + - project x-subscribe-labels: - - main.Group + - main.Group x-deep-nested-view: groups x-list: false parameters: - - name: all_groups_id - in: path - required: true - type: string - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: all_groups_id + in: path + required: true + type: string /project/{id}/inventory/{inventory_id}/all_hosts/: get: operationId: project_inventory_all_hosts_list description: Return all hosts. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: type - in: query - description: Instance type. - required: false - type: string - enum: - - '' - - HOST - - RANGE - - name: variables - in: query - description: List of variables to filter. Comma separated "key:value" list. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - type - - -type - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: type + in: query + description: Instance type. + required: false + type: string + enum: + - '' + - HOST + - RANGE + - name: variables + in: query + description: List of variables to filter. Comma separated "key:value" list. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - type + - -type + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -9695,20 +9601,20 @@ paths: items: $ref: '#/definitions/Host' tags: - - project + - project x-subscribe-labels: - - main.Host + - main.Host x-list: true parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string /project/{id}/inventory/{inventory_id}/all_hosts/{all_hosts_id}/: get: operationId: project_inventory_all_hosts_get @@ -9720,138 +9626,135 @@ paths: schema: $ref: '#/definitions/OneHost' tags: - - project + - project x-subscribe-labels: - - main.Host + - main.Host x-list: false parameters: - - name: all_hosts_id - in: path - required: true - type: string - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: all_hosts_id + in: path + required: true + type: string /project/{id}/inventory/{inventory_id}/copy/: post: operationId: project_inventory_copy description: Endpoint which copy instance with deps. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/Copy' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/Copy' responses: '201': description: CREATED schema: $ref: '#/definitions/Copy' tags: - - project + - project parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string /project/{id}/inventory/{inventory_id}/group/: get: operationId: project_inventory_group_list description: Return all groups. parameters: - - name: __deep_parent - in: query - description: '' - required: false + - name: __deep_parent + in: query + required: false + type: integer + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: variables - in: query - description: List of variables to filter. Comma separated "key:value" list. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - children - - -children - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false - type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: variables + in: query + description: List of variables to filter. Comma separated "key:value" list. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - children + - -children + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -9869,38 +9772,38 @@ paths: items: $ref: '#/definitions/Group' tags: - - project + - project x-subscribe-labels: - - main.Group + - main.Group x-deep-nested-view: groups x-list: true post: operationId: project_inventory_group_add description: Create a new group. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/CreateGroup' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/CreateGroup' responses: '201': description: CREATED schema: $ref: '#/definitions/CreateGroup' tags: - - project + - project x-allow-append: true parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string /project/{id}/inventory/{inventory_id}/group/{group_id}/: get: operationId: project_inventory_group_get @@ -9912,43 +9815,43 @@ paths: schema: $ref: '#/definitions/OneGroup' tags: - - project + - project x-subscribe-labels: - - main.Group + - main.Group x-deep-nested-view: groups x-list: false put: operationId: project_inventory_group_update description: Update a group. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneGroup' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneGroup' responses: '200': description: OK schema: $ref: '#/definitions/OneGroup' tags: - - project + - project patch: operationId: project_inventory_group_edit description: Update one or more fields on an existing group. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneGroup' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneGroup' responses: '200': description: OK schema: $ref: '#/definitions/OneGroup' tags: - - project + - project delete: operationId: project_inventory_group_remove description: Remove an existing group. @@ -9957,139 +9860,136 @@ paths: '204': description: NO CONTENT tags: - - project + - project parameters: - - name: group_id - in: path - required: true - type: string - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: group_id + in: path + required: true + type: string /project/{id}/inventory/{inventory_id}/group/{group_id}/copy/: post: operationId: project_inventory_group_inventory_copy description: Endpoint which copy instance with deps. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/Copy' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/Copy' responses: '201': description: CREATED schema: $ref: '#/definitions/Copy' tags: - - project + - project parameters: - - name: group_id - in: path - required: true - type: string - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: group_id + in: path + required: true + type: string /project/{id}/inventory/{inventory_id}/group/{group_id}/groups/: get: operationId: project_inventory_group_groups_list description: Return all groups. parameters: - - name: __deep_parent - in: query - description: '' - required: false - type: integer - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: variables - in: query - description: List of variables to filter. Comma separated "key:value" list. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - children - - -children - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: __deep_parent + in: query + required: false + type: integer + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: variables + in: query + description: List of variables to filter. Comma separated "key:value" list. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - children + - -children + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -10107,41 +10007,41 @@ paths: items: $ref: '#/definitions/Group' tags: - - project + - project x-subscribe-labels: - - main.Group + - main.Group x-list: true post: operationId: project_inventory_group_groups_add description: Create a new group. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/CreateGroup' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/CreateGroup' responses: '201': description: CREATED schema: $ref: '#/definitions/CreateGroup' tags: - - project + - project x-allow-append: true parameters: - - name: group_id - in: path - required: true - type: string - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: group_id + in: path + required: true + type: string /project/{id}/inventory/{inventory_id}/group/{group_id}/groups/{groups_id}/: get: operationId: project_inventory_group_groups_get @@ -10153,42 +10053,42 @@ paths: schema: $ref: '#/definitions/OneGroup' tags: - - project + - project x-subscribe-labels: - - main.Group + - main.Group x-list: false put: operationId: project_inventory_group_groups_update description: Update a group. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneGroup' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneGroup' responses: '200': description: OK schema: $ref: '#/definitions/OneGroup' tags: - - project + - project patch: operationId: project_inventory_group_groups_edit description: Update one or more fields on an existing group. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneGroup' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneGroup' responses: '200': description: OK schema: $ref: '#/definitions/OneGroup' tags: - - project + - project delete: operationId: project_inventory_group_groups_remove description: Remove an existing group. @@ -10197,153 +10097,151 @@ paths: '204': description: NO CONTENT tags: - - project + - project parameters: - - name: group_id - in: path - required: true - type: string - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: group_id + in: path + required: true + type: string + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. /project/{id}/inventory/{inventory_id}/group/{group_id}/groups/{groups_id}/copy/: post: operationId: project_inventory_group_groups_inventory_group_copy description: Endpoint which copy instance with deps. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/Copy' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/Copy' responses: '201': description: CREATED schema: $ref: '#/definitions/Copy' tags: - - project + - project parameters: - - name: group_id - in: path - required: true - type: string - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: group_id + in: path + required: true + type: string + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. /project/{id}/inventory/{inventory_id}/group/{group_id}/groups/{groups_id}/hosts/: get: operationId: project_inventory_group_groups_hosts_list description: Return all hosts. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: type - in: query - description: Instance type. - required: false - type: string - enum: - - '' - - HOST - - RANGE - - name: variables - in: query - description: List of variables to filter. Comma separated "key:value" list. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - type - - -type - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: type + in: query + description: Instance type. + required: false + type: string + enum: + - '' + - HOST + - RANGE + - name: variables + in: query + description: List of variables to filter. Comma separated "key:value" list. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - type + - -type + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -10361,46 +10259,46 @@ paths: items: $ref: '#/definitions/Host' tags: - - project + - project x-subscribe-labels: - - main.Host + - main.Host x-list: true post: operationId: project_inventory_group_groups_hosts_add description: Create a new host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '201': description: CREATED schema: $ref: '#/definitions/OneHost' tags: - - project + - project x-allow-append: true parameters: - - name: group_id - in: path - required: true - type: string - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: group_id + in: path + required: true + type: string + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. /project/{id}/inventory/{inventory_id}/group/{group_id}/groups/{groups_id}/hosts/{hosts_id}/: get: operationId: project_inventory_group_groups_hosts_get @@ -10412,42 +10310,42 @@ paths: schema: $ref: '#/definitions/OneHost' tags: - - project + - project x-subscribe-labels: - - main.Host + - main.Host x-list: false put: operationId: project_inventory_group_groups_hosts_update description: Update a host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '200': description: OK schema: $ref: '#/definitions/OneHost' tags: - - project + - project patch: operationId: project_inventory_group_groups_hosts_edit description: Update one or more fields on an existing host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '200': description: OK schema: $ref: '#/definitions/OneHost' tags: - - project + - project delete: operationId: project_inventory_group_groups_hosts_remove description: Remove an existing host. @@ -10456,192 +10354,190 @@ paths: '204': description: NO CONTENT tags: - - project + - project parameters: - - name: group_id - in: path - required: true - type: string - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: group_id + in: path + required: true + type: string + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /project/{id}/inventory/{inventory_id}/group/{group_id}/groups/{groups_id}/hosts/{hosts_id}/copy/: post: operationId: project_inventory_group_groups_hosts_inventory_group_groups_copy description: Endpoint which copy instance with deps. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/Copy' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/Copy' responses: '201': description: CREATED schema: $ref: '#/definitions/Copy' tags: - - project + - project parameters: - - name: group_id - in: path - required: true - type: string - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: group_id + in: path + required: true + type: string + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /project/{id}/inventory/{inventory_id}/group/{group_id}/groups/{groups_id}/hosts/{hosts_id}/set_owner/: patch: operationId: project_inventory_group_groups_hosts_inventory_group_groups_set_owner description: Change instance owner. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/SetOwner' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/SetOwner' responses: '200': description: OK schema: $ref: '#/definitions/SetOwner' tags: - - project + - project x-title: Set owner x-multiaction: false parameters: - - name: group_id - in: path - required: true - type: string - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: group_id + in: path + required: true + type: string + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /project/{id}/inventory/{inventory_id}/group/{group_id}/groups/{groups_id}/hosts/{hosts_id}/variables/: get: operationId: project_inventory_group_groups_hosts_variables_list description: Return all variables of inventory host. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: key - in: query - description: A key name string value (or comma separated list) of instance. - required: false - type: string - - name: value - in: query - description: A value of instance. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - key - - -key - - value - - -value - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: key + in: query + description: A key name string value (or comma separated list) of instance. + required: false + type: string + - name: value + in: query + description: A value of instance. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - key + - -key + - value + - -value + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -10659,51 +10555,51 @@ paths: items: $ref: '#/definitions/InventoryVariable' tags: - - project + - project x-subscribe-labels: - - main.Variable + - main.Variable x-list: true post: operationId: project_inventory_group_groups_hosts_variables_add description: Create a new variable of inventory host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '201': description: CREATED schema: $ref: '#/definitions/InventoryVariable' tags: - - project + - project x-allow-append: false parameters: - - name: group_id - in: path - required: true - type: string - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: group_id + in: path + required: true + type: string + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /project/{id}/inventory/{inventory_id}/group/{group_id}/groups/{groups_id}/hosts/{hosts_id}/variables/{variables_id}/: get: operationId: project_inventory_group_groups_hosts_variables_get @@ -10715,42 +10611,42 @@ paths: schema: $ref: '#/definitions/InventoryVariable' tags: - - project + - project x-subscribe-labels: - - main.Variable + - main.Variable x-list: false put: operationId: project_inventory_group_groups_hosts_variables_update description: Update variable value. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - project + - project patch: operationId: project_inventory_group_groups_hosts_variables_edit description: Update one or more fields on an existing variable. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - project + - project delete: operationId: project_inventory_group_groups_hosts_variables_remove description: Remove an existing variable. @@ -10759,152 +10655,149 @@ paths: '204': description: NO CONTENT tags: - - project + - project parameters: - - name: group_id - in: path - required: true - type: string - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string - - name: variables_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this variables - sublist. + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: group_id + in: path + required: true + type: string + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. + - name: variables_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this variables sublist. /project/{id}/inventory/{inventory_id}/group/{group_id}/groups/{groups_id}/set_owner/: patch: operationId: project_inventory_group_groups_inventory_group_set_owner description: Change instance owner. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/SetOwner' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/SetOwner' responses: '200': description: OK schema: $ref: '#/definitions/SetOwner' tags: - - project + - project x-title: Set owner x-multiaction: false parameters: - - name: group_id - in: path - required: true - type: string - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: group_id + in: path + required: true + type: string + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. /project/{id}/inventory/{inventory_id}/group/{group_id}/groups/{groups_id}/variables/: get: operationId: project_inventory_group_groups_variables_list description: Return all variables of inventory host. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: key - in: query - description: A key name string value (or comma separated list) of instance. - required: false - type: string - - name: value - in: query - description: A value of instance. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - key - - -key - - value - - -value - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: key + in: query + description: A key name string value (or comma separated list) of instance. + required: false + type: string + - name: value + in: query + description: A value of instance. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - key + - -key + - value + - -value + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -10922,46 +10815,46 @@ paths: items: $ref: '#/definitions/InventoryVariable' tags: - - project + - project x-subscribe-labels: - - main.Variable + - main.Variable x-list: true post: operationId: project_inventory_group_groups_variables_add description: Create a new variable of inventory host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '201': description: CREATED schema: $ref: '#/definitions/InventoryVariable' tags: - - project + - project x-allow-append: false parameters: - - name: group_id - in: path - required: true - type: string - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: group_id + in: path + required: true + type: string + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. /project/{id}/inventory/{inventory_id}/group/{group_id}/groups/{groups_id}/variables/{variables_id}/: get: operationId: project_inventory_group_groups_variables_get @@ -10973,42 +10866,42 @@ paths: schema: $ref: '#/definitions/InventoryVariable' tags: - - project + - project x-subscribe-labels: - - main.Variable + - main.Variable x-list: false put: operationId: project_inventory_group_groups_variables_update description: Update variable value. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - project + - project patch: operationId: project_inventory_group_groups_variables_edit description: Update one or more fields on an existing variable. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - project + - project delete: operationId: project_inventory_group_groups_variables_remove description: Remove an existing variable. @@ -11017,123 +10910,120 @@ paths: '204': description: NO CONTENT tags: - - project + - project parameters: - - name: group_id - in: path - required: true - type: string - - name: groups_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this groups sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string - - name: variables_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this variables - sublist. + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: group_id + in: path + required: true + type: string + - name: groups_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this groups sublist. + - name: variables_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this variables sublist. /project/{id}/inventory/{inventory_id}/group/{group_id}/hosts/: get: operationId: project_inventory_group_hosts_list description: Return all hosts. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: type - in: query - description: Instance type. - required: false - type: string - enum: - - '' - - HOST - - RANGE - - name: variables - in: query - description: List of variables to filter. Comma separated "key:value" list. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - type - - -type - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: type + in: query + description: Instance type. + required: false + type: string + enum: + - '' + - HOST + - RANGE + - name: variables + in: query + description: List of variables to filter. Comma separated "key:value" list. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - type + - -type + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -11151,41 +11041,41 @@ paths: items: $ref: '#/definitions/Host' tags: - - project + - project x-subscribe-labels: - - main.Host + - main.Host x-list: true post: operationId: project_inventory_group_hosts_add description: Create a new host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '201': description: CREATED schema: $ref: '#/definitions/OneHost' tags: - - project + - project x-allow-append: true parameters: - - name: group_id - in: path - required: true - type: string - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: group_id + in: path + required: true + type: string /project/{id}/inventory/{inventory_id}/group/{group_id}/hosts/{hosts_id}/: get: operationId: project_inventory_group_hosts_get @@ -11197,42 +11087,42 @@ paths: schema: $ref: '#/definitions/OneHost' tags: - - project + - project x-subscribe-labels: - - main.Host + - main.Host x-list: false put: operationId: project_inventory_group_hosts_update description: Update a host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '200': description: OK schema: $ref: '#/definitions/OneHost' tags: - - project + - project patch: operationId: project_inventory_group_hosts_edit description: Update one or more fields on an existing host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '200': description: OK schema: $ref: '#/definitions/OneHost' tags: - - project + - project delete: operationId: project_inventory_group_hosts_remove description: Remove an existing host. @@ -11241,177 +11131,175 @@ paths: '204': description: NO CONTENT tags: - - project + - project parameters: - - name: group_id - in: path - required: true - type: string - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: group_id + in: path + required: true + type: string + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /project/{id}/inventory/{inventory_id}/group/{group_id}/hosts/{hosts_id}/copy/: post: operationId: project_inventory_group_hosts_inventory_group_copy description: Endpoint which copy instance with deps. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/Copy' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/Copy' responses: '201': description: CREATED schema: $ref: '#/definitions/Copy' tags: - - project + - project parameters: - - name: group_id - in: path - required: true - type: string - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: group_id + in: path + required: true + type: string + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /project/{id}/inventory/{inventory_id}/group/{group_id}/hosts/{hosts_id}/set_owner/: patch: operationId: project_inventory_group_hosts_inventory_group_set_owner description: Change instance owner. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/SetOwner' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/SetOwner' responses: '200': description: OK schema: $ref: '#/definitions/SetOwner' tags: - - project + - project x-title: Set owner x-multiaction: false parameters: - - name: group_id - in: path - required: true - type: string - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: group_id + in: path + required: true + type: string + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /project/{id}/inventory/{inventory_id}/group/{group_id}/hosts/{hosts_id}/variables/: get: operationId: project_inventory_group_hosts_variables_list description: Return all variables of inventory host. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: key - in: query - description: A key name string value (or comma separated list) of instance. - required: false - type: string - - name: value - in: query - description: A value of instance. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - key - - -key - - value - - -value - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: key + in: query + description: A key name string value (or comma separated list) of instance. + required: false + type: string + - name: value + in: query + description: A value of instance. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - key + - -key + - value + - -value + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -11429,46 +11317,46 @@ paths: items: $ref: '#/definitions/InventoryVariable' tags: - - project + - project x-subscribe-labels: - - main.Variable + - main.Variable x-list: true post: operationId: project_inventory_group_hosts_variables_add description: Create a new variable of inventory host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '201': description: CREATED schema: $ref: '#/definitions/InventoryVariable' tags: - - project + - project x-allow-append: false parameters: - - name: group_id - in: path - required: true - type: string - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: group_id + in: path + required: true + type: string + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /project/{id}/inventory/{inventory_id}/group/{group_id}/hosts/{hosts_id}/variables/{variables_id}/: get: operationId: project_inventory_group_hosts_variables_get @@ -11480,42 +11368,42 @@ paths: schema: $ref: '#/definitions/InventoryVariable' tags: - - project + - project x-subscribe-labels: - - main.Variable + - main.Variable x-list: false put: operationId: project_inventory_group_hosts_variables_update description: Update variable value. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - project + - project patch: operationId: project_inventory_group_hosts_variables_edit description: Update one or more fields on an existing variable. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - project + - project delete: operationId: project_inventory_group_hosts_variables_remove description: Remove an existing variable. @@ -11524,142 +11412,139 @@ paths: '204': description: NO CONTENT tags: - - project + - project parameters: - - name: group_id - in: path - required: true - type: string - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string - - name: variables_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this variables - sublist. + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: group_id + in: path + required: true + type: string + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. + - name: variables_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this variables sublist. /project/{id}/inventory/{inventory_id}/group/{group_id}/set_owner/: patch: operationId: project_inventory_group_inventory_set_owner description: Change instance owner. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/SetOwner' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/SetOwner' responses: '200': description: OK schema: $ref: '#/definitions/SetOwner' tags: - - project + - project x-title: Set owner x-multiaction: false parameters: - - name: group_id - in: path - required: true - type: string - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: group_id + in: path + required: true + type: string /project/{id}/inventory/{inventory_id}/group/{group_id}/variables/: get: operationId: project_inventory_group_variables_list description: Return all variables of inventory host. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: key - in: query - description: A key name string value (or comma separated list) of instance. - required: false - type: string - - name: value - in: query - description: A value of instance. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - key - - -key - - value - - -value - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: key + in: query + description: A key name string value (or comma separated list) of instance. + required: false + type: string + - name: value + in: query + description: A value of instance. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - key + - -key + - value + - -value + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -11677,41 +11562,41 @@ paths: items: $ref: '#/definitions/InventoryVariable' tags: - - project + - project x-subscribe-labels: - - main.Variable + - main.Variable x-list: true post: operationId: project_inventory_group_variables_add description: Create a new variable of inventory host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '201': description: CREATED schema: $ref: '#/definitions/InventoryVariable' tags: - - project + - project x-allow-append: false parameters: - - name: group_id - in: path - required: true - type: string - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: group_id + in: path + required: true + type: string /project/{id}/inventory/{inventory_id}/group/{group_id}/variables/{variables_id}/: get: operationId: project_inventory_group_variables_get @@ -11723,42 +11608,42 @@ paths: schema: $ref: '#/definitions/InventoryVariable' tags: - - project + - project x-subscribe-labels: - - main.Variable + - main.Variable x-list: false put: operationId: project_inventory_group_variables_update description: Update variable value. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - project + - project patch: operationId: project_inventory_group_variables_edit description: Update one or more fields on an existing variable. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - project + - project delete: operationId: project_inventory_group_variables_remove description: Remove an existing variable. @@ -11767,118 +11652,115 @@ paths: '204': description: NO CONTENT tags: - - project + - project parameters: - - name: group_id - in: path - required: true - type: string - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string - - name: variables_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this variables - sublist. + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: group_id + in: path + required: true + type: string + - name: variables_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this variables sublist. /project/{id}/inventory/{inventory_id}/hosts/: get: operationId: project_inventory_hosts_list description: Return all hosts. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: type - in: query - description: Instance type. - required: false - type: string - enum: - - '' - - HOST - - RANGE - - name: variables - in: query - description: List of variables to filter. Comma separated "key:value" list. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: name__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - name - - -name - - type - - -type - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: type + in: query + description: Instance type. + required: false + type: string + enum: + - '' + - HOST + - RANGE + - name: variables + in: query + description: List of variables to filter. Comma separated "key:value" list. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: name__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - name + - -name + - type + - -type + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -11896,37 +11778,37 @@ paths: items: $ref: '#/definitions/Host' tags: - - project + - project x-subscribe-labels: - - main.Host + - main.Host x-list: true post: operationId: project_inventory_hosts_add description: Create a new host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '201': description: CREATED schema: $ref: '#/definitions/OneHost' tags: - - project + - project x-allow-append: true parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string /project/{id}/inventory/{inventory_id}/hosts/{hosts_id}/: get: operationId: project_inventory_hosts_get @@ -11938,42 +11820,42 @@ paths: schema: $ref: '#/definitions/OneHost' tags: - - project + - project x-subscribe-labels: - - main.Host + - main.Host x-list: false put: operationId: project_inventory_hosts_update description: Update a host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '200': description: OK schema: $ref: '#/definitions/OneHost' tags: - - project + - project patch: operationId: project_inventory_hosts_edit description: Update one or more fields on an existing host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneHost' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneHost' responses: '200': description: OK schema: $ref: '#/definitions/OneHost' tags: - - project + - project delete: operationId: project_inventory_hosts_remove description: Remove an existing host. @@ -11982,165 +11864,163 @@ paths: '204': description: NO CONTENT tags: - - project + - project parameters: - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /project/{id}/inventory/{inventory_id}/hosts/{hosts_id}/copy/: post: operationId: project_inventory_hosts_inventory_copy description: Endpoint which copy instance with deps. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/Copy' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/Copy' responses: '201': description: CREATED schema: $ref: '#/definitions/Copy' tags: - - project + - project parameters: - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /project/{id}/inventory/{inventory_id}/hosts/{hosts_id}/set_owner/: patch: operationId: project_inventory_hosts_inventory_set_owner description: Change instance owner. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/SetOwner' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/SetOwner' responses: '200': description: OK schema: $ref: '#/definitions/SetOwner' tags: - - project + - project x-title: Set owner x-multiaction: false parameters: - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /project/{id}/inventory/{inventory_id}/hosts/{hosts_id}/variables/: get: operationId: project_inventory_hosts_variables_list description: Return all variables of inventory host. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: key - in: query - description: A key name string value (or comma separated list) of instance. - required: false - type: string - - name: value - in: query - description: A value of instance. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - key - - -key - - value - - -value - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: key + in: query + description: A key name string value (or comma separated list) of instance. + required: false + type: string + - name: value + in: query + description: A value of instance. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - key + - -key + - value + - -value + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -12158,42 +12038,42 @@ paths: items: $ref: '#/definitions/InventoryVariable' tags: - - project + - project x-subscribe-labels: - - main.Variable + - main.Variable x-list: true post: operationId: project_inventory_hosts_variables_add description: Create a new variable of inventory host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '201': description: CREATED schema: $ref: '#/definitions/InventoryVariable' tags: - - project + - project x-allow-append: false parameters: - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. /project/{id}/inventory/{inventory_id}/hosts/{hosts_id}/variables/{variables_id}/: get: operationId: project_inventory_hosts_variables_get @@ -12205,42 +12085,42 @@ paths: schema: $ref: '#/definitions/InventoryVariable' tags: - - project + - project x-subscribe-labels: - - main.Variable + - main.Variable x-list: false put: operationId: project_inventory_hosts_variables_update description: Update variable value. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - project + - project patch: operationId: project_inventory_hosts_variables_edit description: Update one or more fields on an existing variable. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - project + - project delete: operationId: project_inventory_hosts_variables_remove description: Remove an existing variable. @@ -12249,57 +12129,56 @@ paths: '204': description: NO CONTENT tags: - - project + - project parameters: - - name: hosts_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this hosts sublist. - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string - - name: variables_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this variables - sublist. + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: hosts_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this hosts sublist. + - name: variables_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this variables sublist. /project/{id}/inventory/{inventory_id}/set_owner/: patch: operationId: project_inventory_set_owner description: Change instance owner. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/SetOwner' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/SetOwner' responses: '200': description: OK schema: $ref: '#/definitions/SetOwner' tags: - - project + - project x-title: Set owner x-multiaction: false parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string /project/{id}/inventory/{inventory_id}/state/: get: operationId: project_inventory_state_get @@ -12311,114 +12190,112 @@ paths: schema: $ref: '#/definitions/InventoryState' tags: - - project + - project x-subscribe-labels: - - main.Inventory + - main.Inventory x-list: false put: operationId: project_inventory_state_update description: State parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryStateUpdate' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryStateUpdate' responses: '200': description: OK schema: $ref: '#/definitions/InventoryState' tags: - - project + - project x-multiaction: false parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string /project/{id}/inventory/{inventory_id}/variables/: get: operationId: project_inventory_variables_list description: Return all variables of inventory host. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: key - in: query - description: A key name string value (or comma separated list) of instance. - required: false - type: string - - name: value - in: query - description: A value of instance. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - key - - -key - - value - - -value - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: key + in: query + description: A key name string value (or comma separated list) of instance. + required: false + type: string + - name: value + in: query + description: A value of instance. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - key + - -key + - value + - -value + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -12436,37 +12313,37 @@ paths: items: $ref: '#/definitions/InventoryVariable' tags: - - project + - project x-subscribe-labels: - - main.Variable + - main.Variable x-list: true post: operationId: project_inventory_variables_add description: Create a new variable of inventory host. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '201': description: CREATED schema: $ref: '#/definitions/InventoryVariable' tags: - - project + - project x-allow-append: false parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string /project/{id}/inventory/{inventory_id}/variables/{variables_id}/: get: operationId: project_inventory_variables_get @@ -12478,42 +12355,42 @@ paths: schema: $ref: '#/definitions/InventoryVariable' tags: - - project + - project x-subscribe-labels: - - main.Variable + - main.Variable x-list: false put: operationId: project_inventory_variables_update description: Update variable value. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - project + - project patch: operationId: project_inventory_variables_edit description: Update one or more fields on an existing variable. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/InventoryVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/InventoryVariable' responses: '200': description: OK schema: $ref: '#/definitions/InventoryVariable' tags: - - project + - project delete: operationId: project_inventory_variables_remove description: Remove an existing variable. @@ -12522,150 +12399,147 @@ paths: '204': description: NO CONTENT tags: - - project + - project parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: inventory_id - in: path - required: true - type: string - - name: variables_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this variables - sublist. + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: inventory_id + in: path + required: true + type: string + - name: variables_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this variables sublist. /project/{id}/set_owner/: patch: operationId: project_set_owner description: Change instance owner. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/SetOwner' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/SetOwner' responses: '200': description: OK schema: $ref: '#/definitions/SetOwner' tags: - - project + - project x-title: Set owner x-multiaction: false parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer /project/{id}/sync/: patch: operationId: project_sync description: Synchronize project with repository. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/Empty' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/Empty' responses: '200': description: OK schema: $ref: '#/definitions/Response' tags: - - project + - project x-title: Sync x-multiaction: false parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer /project/{id}/variables/: get: operationId: project_variables_list description: Variable(id, hidden, content_type, object_id, key, value) parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: key - in: query - description: A key name string value (or comma separated list) of instance. - required: false - type: string - - name: value - in: query - description: A value of instance. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - key - - -key - - value - - -value - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: key + in: query + description: A key name string value (or comma separated list) of instance. + required: false + type: string + - name: value + in: query + description: A value of instance. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - key + - -key + - value + - -value + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -12683,33 +12557,33 @@ paths: items: $ref: '#/definitions/ProjectVariable' tags: - - project + - project x-subscribe-labels: - - main.Variable + - main.Variable x-list: true post: operationId: project_variables_add description: Variable(id, hidden, content_type, object_id, key, value) parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/ProjectVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/ProjectVariable' responses: '201': description: CREATED schema: $ref: '#/definitions/ProjectVariable' tags: - - project + - project x-allow-append: false parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer /project/{id}/variables/{variables_id}/: get: operationId: project_variables_get @@ -12721,42 +12595,42 @@ paths: schema: $ref: '#/definitions/ProjectVariable' tags: - - project + - project x-subscribe-labels: - - main.Variable + - main.Variable x-list: false put: operationId: project_variables_update description: Variable(id, hidden, content_type, object_id, key, value) parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/ProjectVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/ProjectVariable' responses: '200': description: OK schema: $ref: '#/definitions/ProjectVariable' tags: - - project + - project patch: operationId: project_variables_edit description: Variable(id, hidden, content_type, object_id, key, value) parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/ProjectVariable' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/ProjectVariable' responses: '200': description: OK schema: $ref: '#/definitions/ProjectVariable' tags: - - project + - project delete: operationId: project_variables_remove description: Variable(id, hidden, content_type, object_id, key, value) @@ -12765,88 +12639,30 @@ paths: '204': description: NO CONTENT tags: - - project + - project parameters: - - name: id - in: path - description: A unique integer value identifying this project. - required: true - type: integer - - name: variables_id - in: path - required: true - type: integer - description: A unique integer value identifying instance of this variables - sublist. + - name: id + in: path + description: A unique integer value identifying this project. + required: true + type: integer + - name: variables_id + in: path + required: true + type: integer + description: A unique integer value identifying instance of this variables sublist. /stats/: get: operationId: stats_list description: '' - parameters: - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - projects - - -projects - - inventories - - -inventories - - users - - -users - - execution_plugins - - -execution_plugins - - inventory_plugins - - -inventory_plugins - - jobs - - -jobs - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false - type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false - type: integer + parameters: [] responses: '200': description: OK schema: - required: - - count - - results - type: object - properties: - count: - type: integer - next: - type: string - format: uri - x-nullable: true - previous: - type: string - format: uri - x-nullable: true - results: - type: array - items: - $ref: '#/definitions/Stats' + $ref: '#/definitions/Stats' tags: - - stats + - stats x-list: true parameters: [] /user/: @@ -12854,100 +12670,98 @@ paths: operationId: user_list description: Return all users. parameters: - - name: id - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: username - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: is_active - in: query - description: Boolean value meaning status of user. - required: false - type: boolean - - name: first_name - in: query - description: Users first name. - required: false - type: string - - name: last_name - in: query - description: Users last name. - required: false - type: string - - name: email - in: query - description: Users e-mail value. - required: false - type: string - - name: id__not - in: query - description: A unique integer value (or comma separated list) identifying - this instance. - required: false - type: array - items: - type: integer - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: username__not - in: query - description: A name string value (or comma separated list) of instance. - required: false - type: string - - name: ordering - in: query - description: Which field to use when ordering the results. - required: false - type: array - items: - type: string - format: ordering_choices - enum: - - id - - -id - - username - - -username - - is_active - - -is_active - - email - - -email - collectionFormat: csv - minItems: 1 - uniqueItems: true - - name: __search - in: query - description: A search term. - required: false - type: string - - name: limit - in: query - description: Number of results to return per page. - required: false + - name: id + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer - - name: offset - in: query - description: The initial index from which to return the results. - required: false + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: username + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: is_active + in: query + description: Boolean value meaning status of user. + required: false + type: boolean + - name: first_name + in: query + description: Users first name. + required: false + type: string + - name: last_name + in: query + description: Users last name. + required: false + type: string + - name: email + in: query + description: Users e-mail value. + required: false + type: string + - name: id__not + in: query + description: A unique integer value (or comma separated list) identifying + this instance. + required: false + type: array + items: type: integer + collectionFormat: csv + minItems: 1 + uniqueItems: true + - name: username__not + in: query + description: A name string value (or comma separated list) of instance. + required: false + type: string + - name: ordering + in: query + description: Which field to use when ordering the results. + required: false + type: array + items: + type: string + format: ordering_choices + enum: + - id + - -id + - username + - -username + - is_active + - -is_active + - email + - -email + x-title: Ordering + - name: __search + in: query + description: A search term. + required: false + type: string + - name: limit + in: query + description: Number of results to return per page. + required: false + type: integer + - name: offset + in: query + description: The initial index from which to return the results. + required: false + type: integer responses: '200': description: OK schema: required: - - count - - results + - count + - results type: object properties: count: @@ -12965,26 +12779,26 @@ paths: items: $ref: '#/definitions/User' tags: - - user + - user x-subscribe-labels: - - auth.User + - auth.User x-list: true post: operationId: user_add description: Create a new user. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/CreateUser' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/CreateUser' responses: '201': description: CREATED schema: $ref: '#/definitions/CreateUser' tags: - - user + - user parameters: [] /user/{id}/: get: @@ -12997,42 +12811,42 @@ paths: schema: $ref: '#/definitions/OneUser' tags: - - user + - user x-subscribe-labels: - - auth.User + - auth.User x-list: false put: operationId: user_update description: Update a user. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneUser' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneUser' responses: '200': description: OK schema: $ref: '#/definitions/OneUser' tags: - - user + - user patch: operationId: user_edit description: Update one or more fields on an existing user. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/OneUser' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/OneUser' responses: '200': description: OK schema: $ref: '#/definitions/OneUser' tags: - - user + - user delete: operationId: user_remove description: Remove an existing user. @@ -13041,13 +12855,13 @@ paths: '204': description: NO CONTENT tags: - - user + - user parameters: - - name: id - in: path - description: A unique integer value identifying this user. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this user. + required: true + type: integer /user/{id}/_settings/: get: operationId: user__settings_get @@ -13059,78 +12873,78 @@ paths: schema: $ref: '#/definitions/_UserSettings' tags: - - user + - user x-subscribe-labels: - - auth.User + - auth.User x-list: false put: operationId: user__settings_update description: Manage users. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/_UserSettings' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/_UserSettings' responses: '200': description: OK schema: $ref: '#/definitions/_UserSettings' tags: - - user + - user parameters: - - name: id - in: path - description: A unique integer value identifying this user. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this user. + required: true + type: integer /user/{id}/change_password/: post: operationId: user_change_password description: Manage users. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/ChangePassword' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/ChangePassword' responses: '201': description: CREATED schema: $ref: '#/definitions/ChangePassword' tags: - - user + - user parameters: - - name: id - in: path - description: A unique integer value identifying this user. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this user. + required: true + type: integer /user/{id}/copy/: post: operationId: user_copy description: Endpoint which copy instance with deps. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/User' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/User' responses: '201': description: CREATED schema: $ref: '#/definitions/User' tags: - - user + - user parameters: - - name: id - in: path - description: A unique integer value identifying this user. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this user. + required: true + type: integer /user/{id}/twofa/: get: operationId: user_twofa_get @@ -13142,37 +12956,37 @@ paths: schema: $ref: '#/definitions/TwoFA' tags: - - user + - user x-subscribe-labels: - - auth.User + - auth.User x-list: false put: operationId: user_twofa_update description: Manage users. parameters: - - name: data - in: body - required: true - schema: - $ref: '#/definitions/TwoFA' + - name: data + in: body + required: true + schema: + $ref: '#/definitions/TwoFA' responses: '200': description: OK schema: $ref: '#/definitions/TwoFA' tags: - - user + - user parameters: - - name: id - in: path - description: A unique integer value identifying this user. - required: true - type: integer + - name: id + in: path + description: A unique integer value identifying this user. + required: true + type: integer definitions: ProjectCommunityTemplate: required: - - id - - name + - id + - name type: object properties: id: @@ -13187,20 +13001,20 @@ definitions: title: Type type: string enum: - - GIT - - TAR + - GIT + - TAR x-properties-groups: '': - - id - - name - - type + - id + - name + - type x-view-field-name: name OneProjectCommunityTemplate: required: - - id - - name - - description - - repository + - id + - name + - description + - repository type: object properties: id: @@ -13219,8 +13033,8 @@ definitions: title: Type type: string enum: - - GIT - - TAR + - GIT + - TAR repository: title: Repository type: string @@ -13228,11 +13042,11 @@ definitions: minLength: 1 x-properties-groups: '': - - id - - name - - description - - type - - repository + - id + - name + - description + - type + - repository x-view-field-name: name ProjectCommunityTemplateUseIt: type: object @@ -13253,8 +13067,8 @@ definitions: minLength: 1 x-properties-groups: '': - - project_id - - name + - project_id + - name x-view-field-name: name Group: type: object @@ -13273,9 +13087,9 @@ definitions: type: boolean x-properties-groups: '': - - id - - name - - children + - id + - name + - children x-view-field-name: name CreateGroup: type: object @@ -13313,11 +13127,11 @@ definitions: filters: null x-properties-groups: '': - - id - - name - - notes - - children - - owner + - id + - name + - notes + - children + - owner x-view-field-name: name OneGroup: type: object @@ -13355,11 +13169,11 @@ definitions: filters: null x-properties-groups: '': - - id - - name - - notes - - children - - owner + - id + - name + - notes + - children + - owner x-view-field-name: name Copy: type: object @@ -13375,8 +13189,8 @@ definitions: minLength: 1 x-properties-groups: '': - - id - - name + - id + - name x-view-field-name: name Host: type: object @@ -13397,9 +13211,9 @@ definitions: minLength: 1 x-properties-groups: '': - - id - - name - - type + - id + - name + - type x-view-field-name: name OneHost: type: object @@ -13421,8 +13235,8 @@ definitions: title: Type type: string enum: - - HOST - - RANGE + - HOST + - RANGE default: HOST owner: title: Owner @@ -13440,15 +13254,15 @@ definitions: filters: null x-properties-groups: '': - - id - - name - - notes - - type - - owner + - id + - name + - notes + - type + - owner x-view-field-name: name SetOwner: required: - - owner + - owner type: object properties: owner: @@ -13466,12 +13280,12 @@ definitions: filters: null x-properties-groups: '': - - owner + - owner x-view-field-name: owner InventoryVariable: required: - - key - - value + - key + - value type: object properties: id: @@ -13483,31 +13297,31 @@ definitions: type: string format: autocomplete enum: - - ansible_host - - ansible_port - - ansible_user - - ansible_connection - - ansible_password - - ansible_ssh_pass - - ansible_ssh_private_key_file - - ansible_ssh_common_args - - ansible_sftp_extra_args - - ansible_scp_extra_args - - ansible_ssh_extra_args - - ansible_ssh_executable - - ansible_ssh_pipelining - - ansible_become - - ansible_become_method - - ansible_become_user - - ansible_become_pass - - ansible_become_password - - ansible_become_exe - - ansible_become_flags - - ansible_shell_type - - ansible_python_interpreter - - ansible_ruby_interpreter - - ansible_perl_interpreter - - ansible_shell_executable + - ansible_host + - ansible_port + - ansible_user + - ansible_connection + - ansible_password + - ansible_ssh_pass + - ansible_ssh_private_key_file + - ansible_ssh_common_args + - ansible_sftp_extra_args + - ansible_scp_extra_args + - ansible_ssh_extra_args + - ansible_ssh_executable + - ansible_ssh_pipelining + - ansible_become + - ansible_become_method + - ansible_become_user + - ansible_become_pass + - ansible_become_password + - ansible_become_exe + - ansible_become_flags + - ansible_shell_type + - ansible_python_interpreter + - ansible_ruby_interpreter + - ansible_perl_interpreter + - ansible_shell_executable value: title: Value type: string @@ -13538,18 +13352,18 @@ definitions: format: secretfile x-options: media_types: - - '*/*' + - '*/*' x-properties-groups: '': - - id - - key - - value + - id + - key + - value x-view-field-name: key History: required: - - executor - - mode - - status + - executor + - mode + - status type: object properties: id: @@ -13635,12 +13449,12 @@ definitions: title: Status type: string enum: - - DELAY - - RUN - - OK - - ERROR - - OFFLINE - - INTERRUPTED + - DELAY + - RUN + - OK + - ERROR + - OFFLINE + - INTERRUPTED stop_time: title: Stop time type: string @@ -13648,26 +13462,26 @@ definitions: x-nullable: true x-properties-groups: '': - - id - - start_time - - executor - - initiator - - initiator_type - - project - - inventory - - kind - - mode - - options - - status - - stop_time + - id + - start_time + - executor + - initiator + - initiator_type + - project + - inventory + - kind + - mode + - options + - status + - stop_time x-view-field-name: start_time OneHistory: required: - - status - - executor - - mode - - execute_args - - execution_time + - status + - executor + - mode + - execute_args + - execution_time type: object properties: id: @@ -13678,12 +13492,12 @@ definitions: title: Status type: string enum: - - DELAY - - RUN - - OK - - ERROR - - OFFLINE - - INTERRUPTED + - DELAY + - RUN + - OK + - ERROR + - OFFLINE + - INTERRUPTED executor: title: Executor type: string @@ -13755,7 +13569,7 @@ definitions: types: ANSIBLE_PLAYBOOK: required: - - playbook + - playbook type: object properties: playbook: @@ -13846,7 +13660,7 @@ definitions: format: secretfile x-options: media_types: - - '*/*' + - '*/*' scp_extra_args: title: Scp extra args description: specify extra arguments to pass to scp only (e.g. -l) @@ -13902,7 +13716,7 @@ definitions: format: secretfile x-options: media_types: - - '*/*' + - '*/*' verbose: title: Verbose description: verbose mode (-vvv for more, -vvvv to enable connection @@ -13912,41 +13726,41 @@ definitions: minimum: 0 x-properties-groups: '': - - playbook - - args - - become - - become_method - - check - - connection - - diff - - extra_vars - - flush_cache - - force_handlers - - forks - - inventory - - limit - - list_hosts - - list_tags - - list_tasks - - private_key - - scp_extra_args - - sftp_extra_args - - skip_tags - - ssh_common_args - - ssh_extra_args - - start_at_task - - step - - syntax_check - - tags - - timeout - - user - - vault_password_file - - verbose + - playbook + - args + - become + - become_method + - check + - connection + - diff + - extra_vars + - flush_cache + - force_handlers + - forks + - inventory + - limit + - list_hosts + - list_tags + - list_tasks + - private_key + - scp_extra_args + - sftp_extra_args + - skip_tags + - ssh_common_args + - ssh_extra_args + - start_at_task + - step + - syntax_check + - tags + - timeout + - user + - vault_password_file + - verbose x-view-field-name: args x-hide-not-required: true ANSIBLE_MODULE: required: - - module + - module type: object properties: module: @@ -14039,7 +13853,7 @@ definitions: format: secretfile x-options: media_types: - - '*/*' + - '*/*' scp_extra_args: title: Scp extra args description: specify extra arguments to pass to scp only (e.g. -l) @@ -14082,7 +13896,7 @@ definitions: format: secretfile x-options: media_types: - - '*/*' + - '*/*' verbose: title: Verbose description: verbose mode (-vvv for more, -vvvv to enable connection @@ -14096,34 +13910,34 @@ definitions: default: all x-properties-groups: '': - - module - - args - - background - - become - - become_method - - check - - connection - - diff - - extra_vars - - forks - - inventory - - limit - - list_hosts - - one_line - - playbook_dir - - poll - - private_key - - scp_extra_args - - sftp_extra_args - - ssh_common_args - - ssh_extra_args - - syntax_check - - timeout - - tree - - user - - vault_password_file - - verbose - - group + - module + - args + - background + - become + - become_method + - check + - connection + - diff + - extra_vars + - forks + - inventory + - limit + - list_hosts + - one_line + - playbook_dir + - poll + - private_key + - scp_extra_args + - sftp_extra_args + - ssh_common_args + - ssh_extra_args + - syntax_check + - timeout + - tree + - user + - vault_password_file + - verbose + - group x-view-field-name: args x-hide-not-required: true execution_time: @@ -14165,24 +13979,24 @@ definitions: minLength: 1 x-properties-groups: '': - - id - - status - - executor - - project - - revision - - inventory - - kind - - mode - - execute_args - - execution_time - - start_time - - stop_time - - initiator - - initiator_type - - options - - raw_args - - raw_stdout - - raw_inventory + - id + - status + - executor + - project + - revision + - inventory + - kind + - mode + - execute_args + - execution_time + - start_time + - stop_time + - initiator + - initiator_type + - options + - raw_args + - raw_stdout + - raw_inventory x-view-field-name: status Empty: type: object @@ -14200,7 +14014,7 @@ definitions: minLength: 1 x-properties-groups: '': - - detail + - detail x-view-field-name: detail FactsResponse: type: object @@ -14212,12 +14026,12 @@ definitions: readOnly: true x-properties-groups: '': - - facts + - facts x-view-field-name: facts Hook: required: - - type - - recipients + - type + - recipients type: object properties: id: @@ -14249,18 +14063,18 @@ definitions: minLength: 1 x-properties-groups: '': - - id - - name - - type - - when - - enable - - recipients - x-view-field-name: name - OneHook: - required: + - id + - name - type - when + - enable - recipients + x-view-field-name: name + OneHook: + required: + - type + - when + - recipients type: object properties: id: @@ -14276,20 +14090,20 @@ definitions: title: Type type: string enum: - - HTTP - - SCRIPT + - HTTP + - SCRIPT when: title: When type: string enum: - - on_execution - - after_execution - - on_user_add - - on_user_upd - - on_user_del - - on_object_add - - on_object_upd - - on_object_del + - on_execution + - after_execution + - on_user_add + - on_user_upd + - on_user_del + - on_object_add + - on_object_upd + - on_object_del enable: title: Enable type: boolean @@ -14301,12 +14115,12 @@ definitions: minLength: 1 x-properties-groups: '': - - id - - name - - type - - when - - enable - - recipients + - id + - name + - type + - when + - enable + - recipients x-view-field-name: name Inventory: type: object @@ -14324,9 +14138,9 @@ definitions: title: Plugin type: string enum: - - POLEMARCH_DB - - ANSIBLE_STRING - - ANSIBLE_FILE + - POLEMARCH_DB + - ANSIBLE_STRING + - ANSIBLE_FILE readOnly: true state_managed: title: State managed @@ -14334,14 +14148,14 @@ definitions: readOnly: true x-properties-groups: '': - - id - - name - - plugin - - state_managed + - id + - name + - plugin + - state_managed x-view-field-name: name CreateInventory: required: - - plugin + - plugin type: object properties: id: @@ -14357,9 +14171,9 @@ definitions: title: Plugin type: string enum: - - POLEMARCH_DB - - ANSIBLE_STRING - - ANSIBLE_FILE + - POLEMARCH_DB + - ANSIBLE_STRING + - ANSIBLE_FILE owner: title: Owner type: integer @@ -14384,18 +14198,18 @@ definitions: readOnly: true x-properties-groups: '': - - id - - name - - plugin - - owner - - notes - - state_managed + - id + - name + - plugin + - owner + - notes + - state_managed x-view-field-name: name ImportInventory: required: - - name - - plugin - - data + - name + - plugin + - data type: object properties: inventory_id: @@ -14415,8 +14229,8 @@ definitions: title: Plugin type: string enum: - - POLEMARCH_DB - - ANSIBLE_STRING + - POLEMARCH_DB + - ANSIBLE_STRING data: title: Data type: string @@ -14427,7 +14241,7 @@ definitions: types: POLEMARCH_DB: required: - - body + - body type: object properties: body: @@ -14436,14 +14250,14 @@ definitions: format: file x-options: media_types: - - '*/*' + - '*/*' x-properties-groups: '': - - body + - body x-view-field-name: body ANSIBLE_STRING: required: - - file + - file type: object properties: file: @@ -14463,14 +14277,14 @@ definitions: x-validators: {} x-properties-groups: '': - - file + - file x-view-field-name: file x-properties-groups: '': - - inventory_id - - name - - plugin - - data + - inventory_id + - name + - plugin + - data x-view-field-name: name OneInventory: type: object @@ -14488,9 +14302,9 @@ definitions: title: Plugin type: string enum: - - POLEMARCH_DB - - ANSIBLE_STRING - - ANSIBLE_FILE + - POLEMARCH_DB + - ANSIBLE_STRING + - ANSIBLE_FILE readOnly: true owner: title: Owner @@ -14516,16 +14330,16 @@ definitions: readOnly: true x-properties-groups: '': - - id - - name - - plugin - - owner - - notes - - state_managed + - id + - name + - plugin + - owner + - notes + - state_managed x-view-field-name: name InventoryState: required: - - data + - data type: object properties: data: @@ -14545,7 +14359,7 @@ definitions: x-view-field-name: null ANSIBLE_STRING: required: - - body + - body type: object properties: body: @@ -14554,15 +14368,19 @@ definitions: format: file x-options: media_types: - - '*/*' + - '*/*' + filename: + title: Filename + type: string + default: '' extension: title: Extension type: string format: autocomplete enum: - - yaml - - ini - - json + - yaml + - ini + - json default: yaml executable: title: Executable @@ -14570,10 +14388,11 @@ definitions: default: false x-properties-groups: '': - - body - - extension - - executable - x-view-field-name: extension + - body + - filename + - extension + - executable + x-view-field-name: filename ANSIBLE_FILE: type: object properties: @@ -14584,15 +14403,15 @@ definitions: minLength: 1 x-properties-groups: '': - - path + - path x-view-field-name: path x-properties-groups: '': - - data + - data x-view-field-name: data InventoryStateUpdate: required: - - data + - data type: object properties: data: @@ -14612,7 +14431,7 @@ definitions: x-view-field-name: null ANSIBLE_STRING: required: - - body + - body type: object properties: body: @@ -14621,15 +14440,19 @@ definitions: format: file x-options: media_types: - - '*/*' + - '*/*' + filename: + title: Filename + type: string + default: '' extension: title: Extension type: string format: autocomplete enum: - - yaml - - ini - - json + - yaml + - ini + - json default: yaml executable: title: Executable @@ -14637,10 +14460,11 @@ definitions: default: false x-properties-groups: '': - - body - - extension - - executable - x-view-field-name: extension + - body + - filename + - extension + - executable + x-view-field-name: filename ANSIBLE_FILE: type: object properties: @@ -14651,11 +14475,11 @@ definitions: minLength: 1 x-properties-groups: '': - - path + - path x-view-field-name: path x-properties-groups: '': - - data + - data x-view-field-name: data Project: type: object @@ -14678,22 +14502,22 @@ definitions: title: Status type: string enum: - - NEW - - WAIT_SYNC - - SYNC - - ERROR - - OK + - NEW + - WAIT_SYNC + - SYNC + - ERROR + - OK readOnly: true x-properties-groups: '': - - id - - name - - type - - status + - id + - name + - type + - status x-view-field-name: name CreateProject: required: - - name + - name type: object properties: id: @@ -14708,9 +14532,9 @@ definitions: title: Repo type type: string enum: - - MANUAL - - GIT - - TAR + - MANUAL + - GIT + - TAR default: MANUAL repository: title: Repo url @@ -14742,9 +14566,9 @@ definitions: GIT: type: string enum: - - NONE - - KEY - - PASSWORD + - NONE + - KEY + - PASSWORD default: NONE auth_data: title: Repo auth data @@ -14761,7 +14585,7 @@ definitions: format: secretfile x-options: media_types: - - '*/*' + - '*/*' PASSWORD: type: string format: password @@ -14794,17 +14618,17 @@ definitions: minLength: 1 x-properties-groups: General: - - name - - type - - additional_playbook_path + - name + - type + - additional_playbook_path Repository: - - repository - - branch - - repo_auth - - auth_data + - repository + - branch + - repo_auth + - auth_data '': - - id - - status + - id + - status x-view-field-name: name Data: type: object @@ -14834,11 +14658,11 @@ definitions: title: Status type: string enum: - - NEW - - WAIT_SYNC - - SYNC - - ERROR - - OK + - NEW + - WAIT_SYNC + - SYNC + - ERROR + - OK readOnly: true revision: title: Revision @@ -14875,21 +14699,21 @@ definitions: $ref: '#/definitions/Data' x-properties-groups: '': - - id - - name - - repository - - status - - revision - - branch - - owner - - notes - - readme_content - - execute_view_data + - id + - name + - repository + - status + - revision + - branch + - owner + - notes + - readme_content + - execute_view_data x-view-field-name: name ProjectTemplateOption: required: - - template - - extended_name + - template + - extended_name type: object properties: id: @@ -14915,14 +14739,14 @@ definitions: minLength: 1 x-properties-groups: '': - - id - - template - - extended_name + - id + - template + - extended_name x-view-field-name: template OneProjectTemplateOption: required: - - template - - extended_name + - template + - extended_name type: object properties: id: @@ -14948,13 +14772,13 @@ definitions: minLength: 1 x-properties-groups: '': - - id - - template - - extended_name + - id + - template + - extended_name x-view-field-name: template AnsibleModule: required: - - path + - path type: object properties: id: @@ -14968,13 +14792,13 @@ definitions: minLength: 1 x-properties-groups: '': - - id - - path + - id + - path x-view-field-name: path OneAnsibleModule: required: - - path - - data + - path + - data type: object properties: id: @@ -14992,13 +14816,13 @@ definitions: format: json x-properties-groups: '': - - id - - path - - data + - id + - path + - data x-view-field-name: path AnsiblePlaybook: required: - - playbook + - playbook type: object properties: id: @@ -15017,13 +14841,13 @@ definitions: minLength: 1 x-properties-groups: '': - - id - - name - - playbook + - id + - name + - playbook x-view-field-name: name OneAnsiblePlaybook: required: - - playbook + - playbook type: object properties: id: @@ -15042,13 +14866,13 @@ definitions: minLength: 1 x-properties-groups: '': - - id - - name - - playbook + - id + - name + - playbook x-view-field-name: name ExecuteAnsibleModule: required: - - module + - module type: object properties: module: @@ -15139,7 +14963,7 @@ definitions: format: secretfile x-options: media_types: - - '*/*' + - '*/*' scp_extra_args: title: Scp extra args description: specify extra arguments to pass to scp only (e.g. -l) @@ -15179,7 +15003,7 @@ definitions: format: secretfile x-options: media_types: - - '*/*' + - '*/*' verbose: title: Verbose description: verbose mode (-vvv for more, -vvvv to enable connection debugging) @@ -15192,34 +15016,34 @@ definitions: default: all x-properties-groups: '': - - module - - args - - background - - become - - become_method - - check - - connection - - diff - - extra_vars - - forks - - inventory - - limit - - list_hosts - - one_line - - playbook_dir - - poll - - private_key - - scp_extra_args - - sftp_extra_args - - ssh_common_args - - ssh_extra_args - - syntax_check - - timeout - - tree - - user - - vault_password_file - - verbose - - group + - module + - args + - background + - become + - become_method + - check + - connection + - diff + - extra_vars + - forks + - inventory + - limit + - list_hosts + - one_line + - playbook_dir + - poll + - private_key + - scp_extra_args + - sftp_extra_args + - ssh_common_args + - ssh_extra_args + - syntax_check + - timeout + - tree + - user + - vault_password_file + - verbose + - group x-view-field-name: args x-hide-not-required: true ProjectExecuteResponse: @@ -15257,13 +15081,13 @@ definitions: x-nullable: true x-properties-groups: '': - - detail - - history_id - - executor + - detail + - history_id + - executor x-view-field-name: history_id ExecuteAnsiblePlaybook: required: - - playbook + - playbook type: object properties: playbook: @@ -15352,7 +15176,7 @@ definitions: format: secretfile x-options: media_types: - - '*/*' + - '*/*' scp_extra_args: title: Scp extra args description: specify extra arguments to pass to scp only (e.g. -l) @@ -15404,7 +15228,7 @@ definitions: format: secretfile x-options: media_types: - - '*/*' + - '*/*' verbose: title: Verbose description: verbose mode (-vvv for more, -vvvv to enable connection debugging) @@ -15413,42 +15237,42 @@ definitions: minimum: 0 x-properties-groups: '': - - playbook - - args - - become - - become_method - - check - - connection - - diff - - extra_vars - - flush_cache - - force_handlers - - forks - - inventory - - limit - - list_hosts - - list_tags - - list_tasks - - private_key - - scp_extra_args - - sftp_extra_args - - skip_tags - - ssh_common_args - - ssh_extra_args - - start_at_task - - step - - syntax_check - - tags - - timeout - - user - - vault_password_file - - verbose + - playbook + - args + - become + - become_method + - check + - connection + - diff + - extra_vars + - flush_cache + - force_handlers + - forks + - inventory + - limit + - list_hosts + - list_tags + - list_tasks + - private_key + - scp_extra_args + - sftp_extra_args + - skip_tags + - ssh_common_args + - ssh_extra_args + - start_at_task + - step + - syntax_check + - tags + - timeout + - user + - vault_password_file + - verbose x-view-field-name: args x-hide-not-required: true ExecutionTemplate: required: - - name - - plugin + - name + - plugin type: object properties: id: @@ -15467,15 +15291,15 @@ definitions: minLength: 1 x-properties-groups: '': - - id - - name - - plugin + - id + - name + - plugin x-view-field-name: name CreateExecutionTemplate: required: - - name - - plugin - - arguments + - name + - plugin + - arguments type: object properties: id: @@ -15490,8 +15314,8 @@ definitions: title: Plugin type: string enum: - - ANSIBLE_PLAYBOOK - - ANSIBLE_MODULE + - ANSIBLE_PLAYBOOK + - ANSIBLE_MODULE arguments: title: Arguments type: string @@ -15502,7 +15326,7 @@ definitions: types: ANSIBLE_PLAYBOOK: required: - - playbook + - playbook type: object properties: playbook: @@ -15593,7 +15417,7 @@ definitions: format: secretfile x-options: media_types: - - '*/*' + - '*/*' scp_extra_args: title: Scp extra args description: specify extra arguments to pass to scp only (e.g. -l) @@ -15649,7 +15473,7 @@ definitions: format: secretfile x-options: media_types: - - '*/*' + - '*/*' verbose: title: Verbose description: verbose mode (-vvv for more, -vvvv to enable connection @@ -15659,41 +15483,41 @@ definitions: minimum: 0 x-properties-groups: '': - - playbook - - args - - become - - become_method - - check - - connection - - diff - - extra_vars - - flush_cache - - force_handlers - - forks - - inventory - - limit - - list_hosts - - list_tags - - list_tasks - - private_key - - scp_extra_args - - sftp_extra_args - - skip_tags - - ssh_common_args - - ssh_extra_args - - start_at_task - - step - - syntax_check - - tags - - timeout - - user - - vault_password_file - - verbose + - playbook + - args + - become + - become_method + - check + - connection + - diff + - extra_vars + - flush_cache + - force_handlers + - forks + - inventory + - limit + - list_hosts + - list_tags + - list_tasks + - private_key + - scp_extra_args + - sftp_extra_args + - skip_tags + - ssh_common_args + - ssh_extra_args + - start_at_task + - step + - syntax_check + - tags + - timeout + - user + - vault_password_file + - verbose x-view-field-name: args x-hide-not-required: true ANSIBLE_MODULE: required: - - module + - module type: object properties: module: @@ -15786,7 +15610,7 @@ definitions: format: secretfile x-options: media_types: - - '*/*' + - '*/*' scp_extra_args: title: Scp extra args description: specify extra arguments to pass to scp only (e.g. -l) @@ -15829,7 +15653,7 @@ definitions: format: secretfile x-options: media_types: - - '*/*' + - '*/*' verbose: title: Verbose description: verbose mode (-vvv for more, -vvvv to enable connection @@ -15843,46 +15667,46 @@ definitions: default: all x-properties-groups: '': - - module - - args - - background - - become - - become_method - - check - - connection - - diff - - extra_vars - - forks - - inventory - - limit - - list_hosts - - one_line - - playbook_dir - - poll - - private_key - - scp_extra_args - - sftp_extra_args - - ssh_common_args - - ssh_extra_args - - syntax_check - - timeout - - tree - - user - - vault_password_file - - verbose - - group + - module + - args + - background + - become + - become_method + - check + - connection + - diff + - extra_vars + - forks + - inventory + - limit + - list_hosts + - one_line + - playbook_dir + - poll + - private_key + - scp_extra_args + - sftp_extra_args + - ssh_common_args + - ssh_extra_args + - syntax_check + - timeout + - tree + - user + - vault_password_file + - verbose + - group x-view-field-name: args x-hide-not-required: true x-properties-groups: '': - - id - - name - - plugin - - arguments + - id + - name + - plugin + - arguments x-view-field-name: name OneExecutionTemplate: required: - - name + - name type: object properties: id: @@ -15905,14 +15729,14 @@ definitions: minLength: 1 x-properties-groups: '': - - id - - name - - notes - - plugin + - id + - name + - notes + - plugin x-view-field-name: name ExecuteTemplate: required: - - option + - option type: object properties: option: @@ -15930,7 +15754,7 @@ definitions: filters: null x-properties-groups: '': - - option + - option x-view-field-name: option ExecuteTemplateResponse: type: object @@ -15967,13 +15791,13 @@ definitions: x-nullable: true x-properties-groups: '': - - detail - - history_id - - executor + - detail + - history_id + - executor x-view-field-name: history_id ExecutionTemplateOption: required: - - name + - name type: object properties: id: @@ -15987,13 +15811,13 @@ definitions: minLength: 1 x-properties-groups: '': - - id - - name + - id + - name x-view-field-name: name OneExecutionTemplateOption: required: - - name - - arguments + - name + - arguments type: object properties: id: @@ -16021,7 +15845,7 @@ definitions: types: ANSIBLE_PLAYBOOK: required: - - playbook + - playbook type: object properties: playbook: @@ -16112,7 +15936,7 @@ definitions: format: secretfile x-options: media_types: - - '*/*' + - '*/*' scp_extra_args: title: Scp extra args description: specify extra arguments to pass to scp only (e.g. -l) @@ -16168,7 +15992,7 @@ definitions: format: secretfile x-options: media_types: - - '*/*' + - '*/*' verbose: title: Verbose description: verbose mode (-vvv for more, -vvvv to enable connection @@ -16178,41 +16002,41 @@ definitions: minimum: 0 x-properties-groups: '': - - playbook - - args - - become - - become_method - - check - - connection - - diff - - extra_vars - - flush_cache - - force_handlers - - forks - - inventory - - limit - - list_hosts - - list_tags - - list_tasks - - private_key - - scp_extra_args - - sftp_extra_args - - skip_tags - - ssh_common_args - - ssh_extra_args - - start_at_task - - step - - syntax_check - - tags - - timeout - - user - - vault_password_file - - verbose + - playbook + - args + - become + - become_method + - check + - connection + - diff + - extra_vars + - flush_cache + - force_handlers + - forks + - inventory + - limit + - list_hosts + - list_tags + - list_tasks + - private_key + - scp_extra_args + - sftp_extra_args + - skip_tags + - ssh_common_args + - ssh_extra_args + - start_at_task + - step + - syntax_check + - tags + - timeout + - user + - vault_password_file + - verbose x-view-field-name: args x-hide-not-required: true ANSIBLE_MODULE: required: - - module + - module type: object properties: module: @@ -16305,7 +16129,7 @@ definitions: format: secretfile x-options: media_types: - - '*/*' + - '*/*' scp_extra_args: title: Scp extra args description: specify extra arguments to pass to scp only (e.g. -l) @@ -16348,7 +16172,7 @@ definitions: format: secretfile x-options: media_types: - - '*/*' + - '*/*' verbose: title: Verbose description: verbose mode (-vvv for more, -vvvv to enable connection @@ -16362,47 +16186,47 @@ definitions: default: all x-properties-groups: '': - - module - - args - - background - - become - - become_method - - check - - connection - - diff - - extra_vars - - forks - - inventory - - limit - - list_hosts - - one_line - - playbook_dir - - poll - - private_key - - scp_extra_args - - sftp_extra_args - - ssh_common_args - - ssh_extra_args - - syntax_check - - timeout - - tree - - user - - vault_password_file - - verbose - - group + - module + - args + - background + - become + - become_method + - check + - connection + - diff + - extra_vars + - forks + - inventory + - limit + - list_hosts + - one_line + - playbook_dir + - poll + - private_key + - scp_extra_args + - sftp_extra_args + - ssh_common_args + - ssh_extra_args + - syntax_check + - timeout + - tree + - user + - vault_password_file + - verbose + - group x-view-field-name: args x-hide-not-required: true x-properties-groups: '': - - id - - name - - notes - - arguments + - id + - name + - notes + - arguments x-view-field-name: name TemplatePeriodicTask: required: - - name - - schedule + - name + - schedule type: object properties: id: @@ -16436,17 +16260,17 @@ definitions: type: boolean x-properties-groups: '': - - id - - name - - schedule - - enabled - - save_result + - id + - name + - schedule + - enabled + - save_result x-view-field-name: name OneTemplatePeriodicTask: required: - - name - - type - - schedule + - name + - type + - schedule type: object properties: id: @@ -16462,8 +16286,8 @@ definitions: title: Type type: string enum: - - INTERVAL - - CRONTAB + - INTERVAL + - CRONTAB schedule: title: Schedule type: string @@ -16490,19 +16314,19 @@ definitions: format: textarea x-properties-groups: '': - - id - - name - - type - - schedule - - enabled - - save_result - - notes + - id + - name + - type + - schedule + - enabled + - save_result + - notes x-view-field-name: name ProjectImportInventory: required: - - name - - plugin - - data + - name + - plugin + - data type: object properties: inventory_id: @@ -16522,8 +16346,8 @@ definitions: title: Plugin type: string enum: - - POLEMARCH_DB - - ANSIBLE_STRING + - POLEMARCH_DB + - ANSIBLE_STRING data: title: Data type: string @@ -16534,7 +16358,7 @@ definitions: types: POLEMARCH_DB: required: - - body + - body type: object properties: body: @@ -16543,14 +16367,14 @@ definitions: format: file x-options: media_types: - - '*/*' + - '*/*' x-properties-groups: '': - - body + - body x-view-field-name: body ANSIBLE_STRING: required: - - file + - file type: object properties: file: @@ -16570,19 +16394,19 @@ definitions: x-validators: {} x-properties-groups: '': - - file + - file x-view-field-name: file x-properties-groups: '': - - inventory_id - - name - - plugin - - data + - inventory_id + - name + - plugin + - data x-view-field-name: name ProjectVariable: required: - - key - - value + - key + - value type: object properties: id: @@ -16594,14 +16418,14 @@ definitions: type: string format: autocomplete enum: - - repo_type - - repo_sync_on_run - - repo_sync_on_run_timeout - - repo_branch - - repo_password - - repo_key - - playbook_path - - ci_template + - repo_type + - repo_sync_on_run + - repo_sync_on_run_timeout + - repo_branch + - repo_password + - repo_key + - playbook_path + - ci_template value: title: Value type: string @@ -16621,7 +16445,7 @@ definitions: format: secretfile x-options: media_types: - - '*/*' + - '*/*' repo_sync_on_run_timeout: type: integer format: uptime @@ -16643,21 +16467,21 @@ definitions: repo_type: type: string enum: - - MANUAL - - GIT - - TAR + - MANUAL + - GIT + - TAR x-properties-groups: '': - - id - - key - - value + - id + - key + - value x-view-field-name: key DayJob: required: - - status - - sum - - all - - day + - status + - sum + - all + - day type: object properties: status: @@ -16676,17 +16500,17 @@ definitions: format: date-time x-properties-groups: '': - - status - - sum - - all - - day - x-view-field-name: sum - MonthJob: - required: - status - sum - all - - month + - day + x-view-field-name: sum + MonthJob: + required: + - status + - sum + - all + - month type: object properties: status: @@ -16705,17 +16529,17 @@ definitions: format: date-time x-properties-groups: '': - - status - - sum - - all - - month - x-view-field-name: sum - YearJob: - required: - status - sum - all - - year + - month + x-view-field-name: sum + YearJob: + required: + - status + - sum + - all + - year type: object properties: status: @@ -16734,16 +16558,16 @@ definitions: format: date-time x-properties-groups: '': - - status - - sum - - all - - year + - status + - sum + - all + - year x-view-field-name: sum StatsJobs: required: - - day - - month - - year + - day + - month + - year type: object properties: day: @@ -16760,18 +16584,18 @@ definitions: $ref: '#/definitions/YearJob' x-properties-groups: '': - - day - - month - - year + - day + - month + - year x-view-field-name: month Stats: required: - - projects - - inventories - - users - - execution_plugins - - inventory_plugins - - jobs + - projects + - inventories + - users + - execution_plugins + - inventory_plugins + - jobs type: object properties: projects: @@ -16793,16 +16617,16 @@ definitions: $ref: '#/definitions/StatsJobs' x-properties-groups: '': - - projects - - inventories - - users - - execution_plugins - - inventory_plugins - - jobs + - projects + - inventories + - users + - execution_plugins + - inventory_plugins + - jobs x-view-field-name: inventories User: required: - - username + - username type: object properties: id: @@ -16828,16 +16652,16 @@ definitions: minLength: 1 x-properties-groups: '': - - id - - username - - is_active - - email + - id + - username + - is_active + - email x-view-field-name: username CreateUser: required: - - username - - password - - password2 + - username + - password + - password2 type: object properties: id: @@ -16879,18 +16703,18 @@ definitions: format: password x-properties-groups: '': - - id - - username - - is_active - - first_name - - last_name - - email - - password - - password2 + - id + - username + - is_active + - first_name + - last_name + - email + - password + - password2 x-view-field-name: username OneUser: required: - - username + - username type: object properties: id: @@ -16924,12 +16748,12 @@ definitions: minLength: 1 x-properties-groups: '': - - id - - username - - is_active - - first_name - - last_name - - email + - id + - username + - is_active + - first_name + - last_name + - email x-view-field-name: username _MainSettings: type: object @@ -16938,16 +16762,16 @@ definitions: title: Language type: string enum: - - en - - ru + - en + - ru dark_mode: title: Dark mode type: boolean default: false x-properties-groups: '': - - language - - dark_mode + - language + - dark_mode x-view-field-name: dark_mode _UserSettings: type: object @@ -16961,14 +16785,14 @@ definitions: default: {} x-properties-groups: '': - - main - - custom + - main + - custom x-view-field-name: custom ChangePassword: required: - - old_password - - password - - password2 + - old_password + - password + - password2 type: object properties: old_password: @@ -16985,9 +16809,9 @@ definitions: format: password x-properties-groups: '': - - old_password - - password - - password2 + - old_password + - password + - password2 x-view-field-name: password TwoFA: type: object @@ -17011,8 +16835,8 @@ definitions: minLength: 1 x-properties-groups: '': - - enabled - - secret - - pin - - recovery + - enabled + - secret + - pin + - recovery x-view-field-name: secret diff --git a/docker-compose.yml b/docker-compose.yml index c9edc97b..1e0a1e3d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,8 +23,12 @@ services: build: . restart: unless-stopped depends_on: - - redis - - database + redis: + condition: service_healthy + database: + condition: service_healthy + centrifugo: + condition: service_healthy healthcheck: test: [ "CMD", "curl", "-f", "http://localhost:8080/api/health/" ] interval: 3s @@ -38,6 +42,12 @@ services: redis: image: "redis:6" restart: unless-stopped + healthcheck: + test: ["CMD", "redis-cli", "ping"] + interval: 3s + timeout: 3s + retries: 3 + database: image: mysql:8.0 diff --git a/polemarch/__init__.py b/polemarch/__init__.py index ab19da1b..2f04dd3d 100644 --- a/polemarch/__init__.py +++ b/polemarch/__init__.py @@ -31,6 +31,6 @@ "VST_ROOT_URLCONF": os.getenv("VST_ROOT_URLCONF", 'vstutils.urls'), } -__version__ = "3.0.2" +__version__ = "3.0.3" prepare_environment(**default_settings) diff --git a/polemarch/api/v4/statistics.py b/polemarch/api/v4/statistics.py index dcaa5001..4b245e4b 100644 --- a/polemarch/api/v4/statistics.py +++ b/polemarch/api/v4/statistics.py @@ -1,5 +1,7 @@ from django.contrib.auth import get_user_model +from django.utils.decorators import method_decorator from rest_framework import fields as drffields +from drf_yasg.utils import swagger_auto_schema from vstutils.api.base import NonModelsViewSet from vstutils.api.serializers import BaseSerializer from vstutils.api.responses import HTTP_200_OK @@ -46,10 +48,16 @@ class StatsSerializer(BaseSerializer): inventory_plugins = drffields.IntegerField() jobs = StatsJobsSerializer() + class Meta: + ref_name = 'Stats' + +@method_decorator(name='list', decorator=swagger_auto_schema(responses={200: StatsSerializer()})) class StatsViewSet(NonModelsViewSet): base_name = 'stats' serializer_class = StatsSerializer + pagination_class = None + filter_backends = () def _get_projects_count(self): return Project.objects.count() diff --git a/polemarch/main/models/utils.py b/polemarch/main/models/utils.py index 0e41bbef..afbdfb5c 100644 --- a/polemarch/main/models/utils.py +++ b/polemarch/main/models/utils.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals +import asyncio import contextlib import threading from typing import Any, Iterable, Type, Union, Optional @@ -12,7 +13,8 @@ import signal from pathlib import Path from collections import OrderedDict -from subprocess import Popen + +from asgiref.sync import async_to_sync from django.apps import apps from django.utils import timezone from django.conf import settings @@ -116,7 +118,7 @@ def write_line(self, value: str, number: int, endl: str = ''): # nocv # pylint: disable=unused-argument logger.info(value) - def save(self) -> None: + def save(self, *_, **__) -> None: pass @@ -141,8 +143,11 @@ def __init__(self, history: Union[History, DummyHistory], writers: tuple = ()): else: notificator_class = apps.get_app_config('vstutils_api').module.notificator_class self.notificator = notificator_class([], label='history_lines') - self.notificator_lock = threading.Lock() - self.notification_last_time = 0 + if self.notificator.is_usable(): + self.notificator_lock = threading.Lock() + self.notification_last_time = 0 + else: + self.notificator = None self.must_die = False signal.signal(signal.SIGTERM, self.signal_handler) @@ -150,44 +155,37 @@ def __init__(self, history: Union[History, DummyHistory], writers: tuple = ()): def signal_handler(self, signum, frame): self.must_die = True # nocv - @property - def output(self) -> str: - # Optimize for better performance. - return '' - - @output.setter - def output(self, value) -> None: - pass # nocv - - def working_handler(self, proc: Popen): - if proc.poll() is None and self.must_die: # nocv + async def working_handler(self, proc: asyncio.subprocess.Process): + if not proc.stdout.at_eof() and self.must_die: # nocv proc.terminate() - proc.wait() + await proc.wait() if self.notificator and time.time() - self.notification_last_time > 1: with self.notificator_lock: if self.notificator.queue: self.notification_last_time = time.time() self.notificator.send() - def write_output(self, line: str): + async def write_output(self, line: str): + # pylint: disable=invalid-overridden-method self.counter += 1 - for writer in self.writers: - writer.write_line(line, self.counter, '\n') + await asyncio.gather(*( + writer.awrite_line(line, self.counter, '\n' if line[-1] != '\n' else '') + for writer in self.writers + )) if self.notificator: with self.notificator_lock: self.notificator.create_notification_from_instance(self.history) - def execute(self, cmd: Iterable[str], cwd: str, env_vars: dict): - self.env = env_vars + async def aexecute(self, cmd: Iterable[str], cwd: Union[str, Path], env: dict = None): + self.env = env if env is not None else {} pm_ansible_path = ' '.join(self.pm_ansible()) plain_command = ' '.join(cmd).replace(pm_ansible_path, '').lstrip() if not self.history.raw_args: self.history.raw_args = plain_command else: self.history.raw_args += f' && {plain_command}' - ret = super().execute(cmd, cwd) + ret = await super().aexecute(cmd, cwd) if self.notificator: - self.notificator.disconnect_all() with self.notificator_lock: if self.notificator.queue: self.notificator.send() @@ -284,7 +282,7 @@ def execute(self) -> None: finally: self.history.stop_time = timezone.now() - self.history.save() + self.history.save(update_fields={'status', 'stop_time', 'raw_args'}) for writer in self.writers: with contextlib.suppress(Exception): writer.finalize_output() @@ -333,11 +331,12 @@ def get_execution_revision(self) -> str: return self.project.branch return self.project.vars.get('repo_branch', '') - def verbose_output(self, message: str, level: int = 3) -> None: + @async_to_sync + async def verbose_output(self, message: str, level: int = 3) -> None: if self.verbose_level >= level: executor = getattr(self, 'executor', None) if executor is not None: - executor.write_output(message) + await executor.write_output(message) logger.debug(message) def __del__(self): diff --git a/polemarch/main/settings.py b/polemarch/main/settings.py index 74f08ca2..77ccb3d1 100644 --- a/polemarch/main/settings.py +++ b/polemarch/main/settings.py @@ -1,3 +1,5 @@ +import os + from vstutils.settings import * WEBSERVER_COMMAND = 'webserver' @@ -85,6 +87,11 @@ SWAGGER_SETTINGS['DEFAULT_INFO'] = '{}.api.swagger.api_info'.format(VST_PROJECT_LIB_NAME) SWAGGER_SETTINGS['DEFAULT_AUTO_SCHEMA_CLASS'] = '{}.api.schema.PolemarchAutoSchema'.format(VST_PROJECT_LIB_NAME) +REST_FRAMEWORK['DEFAULT_AUTHENTICATION_CLASSES'] += ( + 'rest_framework.authentication.TokenAuthentication', + 'rest_framework.authentication.BasicAuthentication', +) + OPENAPI_EXTRA_LINKS = dict() OPENAPI_EXTRA_LINKS['Request'] = [ { @@ -369,6 +376,7 @@ class ExecutionPluginOptionsSection(ExecutionPluginSection): # TEST settings if "test" in sys.argv: + os.environ['DJANGO_ALLOW_ASYNC_UNSAFE'] = 'true' REPO_BACKENDS['GIT']['OPTIONS']['CLONE_KWARGS']['local'] = True CLONE_RETRY = 0 PROJECTS_DIR = '/tmp/polemarch_projects' + str(KWARGS['PY_VER']) diff --git a/polemarch/main/utils.py b/polemarch/main/utils.py index 167e650e..6653d705 100644 --- a/polemarch/main/utils.py +++ b/polemarch/main/utils.py @@ -28,7 +28,6 @@ ON_POSIX, translate as _ ) -from vstutils.models.cent_notify import Notificator from vstutils.utils import ObjectHandlers from vstutils.utils import raise_context @@ -329,14 +328,6 @@ class AnsibleConfigParser(PMAnsible): ref_name = 'config' -class PolemarchNotificator(Notificator): - def create_notification_from_instance(self, instance): - super().create_notification_from_instance(instance) - # pylint: disable=protected-access - if instance.__class__._meta.label in settings.NOTIFY_WITHOUT_QUEUE_MODELS and self.label != 'history_lines': - self.send() - - class ExecutionHandlers(ObjectHandlers): __slots__ = () diff --git a/polemarch/notificator.py b/polemarch/notificator.py new file mode 100644 index 00000000..d55854d6 --- /dev/null +++ b/polemarch/notificator.py @@ -0,0 +1,10 @@ +from django.conf import settings +from vstutils.models.cent_notify import Notificator + + +class PolemarchNotificator(Notificator): + def create_notification_from_instance(self, instance): + super().create_notification_from_instance(instance) + # pylint: disable=protected-access + if instance.__class__._meta.label in settings.NOTIFY_WITHOUT_QUEUE_MODELS and self.label != 'history_lines': + self.send() diff --git a/polemarch/plugins/history/base.py b/polemarch/plugins/history/base.py index 32561aea..1f94228c 100644 --- a/polemarch/plugins/history/base.py +++ b/polemarch/plugins/history/base.py @@ -2,6 +2,7 @@ import contextlib import orjson +from asgiref.sync import async_to_sync from ...main.models import History @@ -16,11 +17,14 @@ def __init__(self, history: History, **options): self.history = history self.options = options - def write_line(self, line: str, number: int, endl: str = ''): + async def awrite_line(self, line: str, number: int, endl: str = ''): with contextlib.suppress(Exception): - self._write_line(line, number, endl) + await self._write_line(line, number, endl) + + def write_line(self, line: str, number: int, endl: str = ''): + async_to_sync(self.awrite_line)(line, number, endl) - def _write_line(self, line: str, number: int, endl: str = ''): + async def _write_line(self, line: str, number: int, endl: str = ''): raise NotImplementedError # nocv def get_lines(self, **filters): diff --git a/polemarch/plugins/history/database.py b/polemarch/plugins/history/database.py index 7e79a1ac..77c6cb37 100644 --- a/polemarch/plugins/history/database.py +++ b/polemarch/plugins/history/database.py @@ -8,8 +8,8 @@ class Plugin(BasePlugin): writeable = True readable = True - def _write_line(self, line: str, number: int, endl: str = ''): - HistoryLines.objects.bulk_create([ + async def _write_line(self, line: str, number: int, endl: str = ''): + await HistoryLines.objects.abulk_create([ HistoryLines(line_gnumber=number, line_number=1, line=line + endl, history=self.history) ]) diff --git a/polemarch/plugins/history/logger.py b/polemarch/plugins/history/logger.py index 842673c6..2468c3f6 100644 --- a/polemarch/plugins/history/logger.py +++ b/polemarch/plugins/history/logger.py @@ -18,5 +18,5 @@ def __init__(self, *args, **kwargs): "PROJECT_ID": self.history.project_id, } - def _write_line(self, line: str, number: int, endl: str = ''): + async def _write_line(self, line: str, number: int, endl: str = ''): logger.info(f"{line}", extra=self.extra) diff --git a/polemarch/settings.ini b/polemarch/settings.ini index a2b39e96..81240dad 100644 --- a/polemarch/settings.ini +++ b/polemarch/settings.ini @@ -1,5 +1,5 @@ [web] -notificator_client_class = {LIB_NAME}.main.utils.PolemarchNotificator +notificator_client_class = {LIB_NAME}.notificator.PolemarchNotificator [uwsgi] skip-atexit-teardown = true diff --git a/requirements-doc.txt b/requirements-doc.txt index 0352aab4..34b07a87 100644 --- a/requirements-doc.txt +++ b/requirements-doc.txt @@ -1,4 +1,4 @@ # Docs -rrequirements.txt -vstutils[doc]~=5.4.2 -sphinxcontrib-openapi~=0.7.0 +vstutils[doc]~=5.6.4 +sphinxcontrib-openapi~=0.8.1 diff --git a/requirements-test.txt b/requirements-test.txt index ab661dd2..9b4ba495 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1 +1 @@ -django-test-migrations~=1.2.0 +django-test-migrations~=1.3.0 diff --git a/requirements.txt b/requirements.txt index 81587387..80ba78fb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,14 +1,18 @@ # Main -vstutils[rpc,prod]~=5.4.2 -markdown2~=2.4.8 +vstutils[rpc,prod]~=5.6.4 +markdown2~=2.4.9 # Repo types -gitpython~=3.1.30 +gitpython~=3.1.32 gitdb2~=4.0.2 # Hooks -requests~=2.27.1 +requests~=2.31.0 # Ansible required packages polemarch-ansible~=2.2.0 netaddr + +# Deprecated libs +coreapi~=2.3.3 +coreschema~=0.0.4 diff --git a/setup.py b/setup.py index 2694e5a4..37bd2ab4 100644 --- a/setup.py +++ b/setup.py @@ -412,8 +412,8 @@ def make_setup(**opts): for i in install_requirements if isinstance(i, str) and 'vstutils' in i ], - 'mysql': ['mysqlclient'], - 'postgresql': ['psycopg2'], + 'mysql': ['mysqlclient<2.2'], + 'postgresql': ['psycopg[pool,c]'], }, dependency_links=[ ] + load_requirements('requirements-git.txt', os.getcwd()), diff --git a/tests.py b/tests.py index 6a205876..ad425fba 100644 --- a/tests.py +++ b/tests.py @@ -686,7 +686,7 @@ def test_ansible_string_inventory(self): { 'method': 'delete', 'path': ['project', self.project.id, 'inventory', inventory_id], - 'headers': {'HTTP_X_Purge_Nested': 'true'} + 'headers': {'X-Purge-Nested': 'true'} }, ]) self.assertFalse(self.get_model_filter('main.Inventory').filter(id=inventory_id).exists()) @@ -771,7 +771,7 @@ def test_ansible_file_inventory(self, temp_dir): { 'method': 'delete', 'path': ['project', project_id, 'inventory', inventory_id], - 'headers': {'HTTP_X_Purge_Nested': 'true'} + 'headers': {'X-Purge-Nested': 'true'} }, ]) self.assertFalse(self.get_model_filter('main.Inventory').filter(id=inventory_id).exists()) @@ -1034,7 +1034,7 @@ def test_delete_linked_inventory(self): { 'method': 'delete', 'path': ['project', self.project.id, 'inventory', self.inventory.id], - 'headers': {'HTTP_X_Purge_Nested': 'true'}, + 'headers': {'X-Purge-Nested': 'true'}, } ]) self.assertFalse(self.get_model_filter('main.ExecutionTemplateOption').filter(id=option_id).exists()) @@ -1342,12 +1342,12 @@ def generate_group_chain_bulk_data(first, count): { # [10] delete non-children group 'method': 'delete', 'path': ['group', second_to_last_group_id, 'groups', '<<0[data][id]>>'], - 'headers': {'HTTP_X_Purge_Nested': 'true'} + 'headers': {'X-Purge-Nested': 'true'} }, { # [11] delete children group 'method': 'delete', 'path': ['group', second_to_last_group_id, 'groups', last_children_group_id], - 'headers': {'HTTP_X_Purge_Nested': 'true'} + 'headers': {'X-Purge-Nested': 'true'} }, ]) self.assertEqual(results[8]['data']['name'], 'non_children_group') @@ -3746,22 +3746,26 @@ def send(*args): pass with self.patch( - f'{settings.VST_PROJECT_LIB_NAME}.main.utils.PolemarchNotificator.get_client', + f'{settings.VST_PROJECT_LIB_NAME}.notificator.PolemarchNotificator.get_client', return_value=DummyClient() ) as client_getter: - self.assertEqual(client_getter.call_count, 0) - self.bulk_transactional([self.sync_project_bulk_data()]) - client_getter.assert_any_call() - client_getter.reset_mock() - client_getter.assert_not_called() - self.bulk_transactional([ - self.execute_plugin_bulk_data( - plugin='ANSIBLE_MODULE', - module='system.ping', - inventory=self.inventory.id, - ) - ]) - client_getter.assert_any_call() + with self.patch( + f'{settings.VST_PROJECT_LIB_NAME}.notificator.PolemarchNotificator.is_usable', + return_value=True + ): + self.assertEqual(client_getter.call_count, 0) + self.bulk_transactional([self.sync_project_bulk_data()]) + client_getter.assert_any_call() + client_getter.reset_mock() + client_getter.assert_not_called() + self.bulk_transactional([ + self.execute_plugin_bulk_data( + plugin='ANSIBLE_MODULE', + module='system.ping', + inventory=self.inventory.id, + ) + ]) + client_getter.assert_any_call() def test_execute_test_module(self): results = self.bulk_transactional([ From 86bd70ebecb742450208cd9817de1c8eabb74c6a Mon Sep 17 00:00:00 2001 From: Sergey Klyuykov Date: Thu, 20 Jul 2023 22:27:17 -0700 Subject: [PATCH 2/4] Fix(dev): Building with docker compose. --- .dockerignore | 16 +++++++++++++++- docker-compose.yml | 5 ++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index f0bfbf08..bf10519d 100644 --- a/.dockerignore +++ b/.dockerignore @@ -270,11 +270,25 @@ test_data test_data_ce tests.py tests_ce.py +ce/.tox +ce/helm +ce/dist +ce/build +ce/env +ce/venv +ce/node_modules + +node_modules +.coverage +.cache +.ruff_cache +env +dist +.tox !Dockerfile !.dockerignore !ce/Dockerfile -ce !ce/polemarch !ce/setup.py !ce/doc diff --git a/docker-compose.yml b/docker-compose.yml index 1e0a1e3d..b67842b9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,7 +20,10 @@ services: polemarch: image: ${WERF_MAIN_DOCKER_IMAGE_NAME:-polemarch} - build: . + build: + context: . + args: + PACKAGE_NAME: ${PACKAGE_NAME:-polemarch} restart: unless-stopped depends_on: redis: From 52aacba82011b06589ba02d3cb6d3ff4b2bfffa1 Mon Sep 17 00:00:00 2001 From: Sergey Klyuykov Date: Thu, 20 Jul 2023 22:49:47 -0700 Subject: [PATCH 3/4] Update compilation block. --- setup.py | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/setup.py b/setup.py index 37bd2ab4..62a13b63 100644 --- a/setup.py +++ b/setup.py @@ -32,10 +32,11 @@ has_sphinx = False +PY_MAJOR, PY_MINOR = sys.version_info[0:2] ignored_keys = ['-h', '--help', '--version'] is_help = any([a for a in ignored_keys if a in sys.argv]) is_develop = 'develop' in sys.argv -is_build = (any([a for a in ['compile', 'bdist_wheel', 'bdist'] if a in sys.argv]) or is_develop) and not is_help +is_build = (any([a for a in ['compile', 'bdist_wheel', 'bdist', 'sdist'] if a in sys.argv]) or is_develop) and not is_help def get_discription(file_path='README.rst', folder=os.getcwd()): @@ -120,9 +121,12 @@ def make_extensions(extensions_list, packages): extra_compile_args = [ '-g0', '-ggdb1', "-fno-strict-aliasing", - "-fno-var-tracking-assignments", - "-pipe", "-std=c99", '-Werror=sign-compare' + "-fno-var-tracking-assignments" if PY_MINOR != 6 else "", + "-pipe", "-std=c99", '-Werror=sign-compare', ] + if 'compile' in sys.argv: + extra_compile_args.append("-DBUILD_FROM_SOURCE") + extra_compile_args = list(filter(bool, extra_compile_args)) ext_modules = list( make_extention(m, f, extra_compile_args) for m, f in extensions_dict.items() @@ -186,10 +190,11 @@ def minify_static_files(base_dir, files, exclude=None): with codecs.open(fext_file, 'w', encoding='utf-8') as static_file_fd: static_file_fd.write(minified) print('Minfied file {fext_file}.'.format(fext_file=fext_file)) - with open(fext_file, 'rb') as f_in: - with gzip.open("{}.gz".format(fext_file), 'wb') as f_out: - shutil.copyfileobj(f_in, f_out) - print('Compressed file {fext_file}.'.format(fext_file=fext_file)) + if not os.environ.get('NOT_COMPRESS', False): + with open(fext_file, 'rb') as f_in: + with gzip.open("{}.gz".format(fext_file), 'wb') as f_out: + shutil.copyfileobj(f_in, f_out) + print('Compressed file {fext_file}.'.format(fext_file=fext_file)) def compile_py_func(fullname, compile_file_func): @@ -372,11 +377,7 @@ def make_setup(**opts): webpack_path = os.path.join(os.getcwd(), 'webpack.config.js') if os.path.exists(webpack_path) and is_build and os.environ.get('DONT_YARN', "") != 'true': try: - subprocess.check_call( - ['yarn', 'install', '--pure-lockfile', '--mutex network'], - stdout=sys.stdout, - stderr=sys.stderr - ) + subprocess.check_call(['yarn', 'install', '--pure-lockfile', '--mutex network'], stdout=sys.stdout, stderr=sys.stderr) subprocess.check_call(['yarn', 'devBuild' if is_develop else 'build'], stdout=sys.stdout, stderr=sys.stderr) except Exception as err: raise errors.CompileError(str(err)) @@ -386,6 +387,8 @@ def make_setup(**opts): ######################################################################################## # end block +os.environ.setdefault('NOT_COMPRESS', 'true') + ext_list = [] if 'develop' in sys.argv: From fb07f50356dcb3a3df7dc20390db641f0db0aad6 Mon Sep 17 00:00:00 2001 From: Sergey Klyuykov Date: Fri, 21 Jul 2023 15:29:59 -0700 Subject: [PATCH 4/4] Update compilation block. --- polemarch/plugins/inventory/base.py | 9 ++++++--- requirements.txt | 2 ++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/polemarch/plugins/inventory/base.py b/polemarch/plugins/inventory/base.py index 38ecfe4c..d2b2761a 100644 --- a/polemarch/plugins/inventory/base.py +++ b/polemarch/plugins/inventory/base.py @@ -1,9 +1,12 @@ import typing as _t from pathlib import Path +from django.conf import settings from rest_framework.fields import Field from vstutils.api.serializers import BaseSerializer from ...main.exceptions import NotSupported -from ...main.models.hosts import Inventory + + +InventoryType = f"{settings.VST_PROJECT_LIB_NAME}.main.models.hosts.Inventory" class BasePlugin: @@ -48,7 +51,7 @@ class BasePlugin: def __init__(self, options): self.options = options - def render_inventory(self, instance: Inventory, execution_dir: Path) -> _t.Tuple[Path, list]: + def render_inventory(self, instance: InventoryType, execution_dir: Path) -> _t.Tuple[Path, list]: """ Renders inventory into text file and puts it into ``execution_dir`` directory. Additional files may be returned by second argument as list (or empty list, if no any). @@ -70,7 +73,7 @@ def get_raw_inventory(cls, inventory_string: str) -> str: return '' # nocv @classmethod - def import_inventory(cls, instance: Inventory, data: dict): + def import_inventory(cls, instance: InventoryType, data: dict): """ Method which implements importing inventory from external source. Must be implemented if ``supports_import`` is ``True``. diff --git a/requirements.txt b/requirements.txt index 80ba78fb..3713a53f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,6 +8,8 @@ gitdb2~=4.0.2 # Hooks requests~=2.31.0 +# support for CentOS/RH/Oracle 7 +urllib3~=1.26.16 # Ansible required packages polemarch-ansible~=2.2.0