openapi: 3.2.0 info: description: API Documentation title: Control-plane Application Controller API version: '1.0' servers: - url: https://facetsdemo.console.facets.cloud description: Generated server url security: - basicAuth: [] tags: - name: application controller paths: /api/cc-users: post: operationId: createUserCC requestBody: content: application/json: schema: $ref: '#/components/schemas/User' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/User' description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - application controller summary: Create user CC x-summary-source: derived /api/login: delete: operationId: login_5 responses: '200': content: application/json: schema: type: string description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - application controller summary: Login 5 x-summary-source: derived get: operationId: login responses: '200': content: application/json: schema: type: string description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - application controller summary: Login x-summary-source: derived head: operationId: login_1 responses: '200': content: application/json: schema: type: string description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - application controller summary: Login 1 x-summary-source: derived options: operationId: login_6 responses: '200': content: application/json: schema: type: string description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - application controller summary: Login 6 x-summary-source: derived patch: operationId: login_4 responses: '200': content: application/json: schema: type: string description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - application controller summary: Login 4 x-summary-source: derived post: operationId: login_2 responses: '200': content: application/json: schema: type: string description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - application controller summary: Login 2 x-summary-source: derived put: operationId: login_3 responses: '200': content: application/json: schema: type: string description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - application controller summary: Login 3 x-summary-source: derived /api/me: get: operationId: me responses: '200': content: application/json: schema: $ref: '#/components/schemas/SimpleOauth2User' description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - application controller summary: Me x-summary-source: derived /api/users: get: operationId: getUsers responses: '200': content: application/json: schema: type: array items: $ref: '#/components/schemas/User' description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - application controller summary: Get users x-summary-source: derived post: operationId: createUser requestBody: content: application/json: schema: $ref: '#/components/schemas/User' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/User' description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - application controller summary: Create user x-summary-source: derived /api/users/{userId}: put: operationId: updateUser parameters: - in: path name: userId required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/User' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/User' description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - application controller summary: Update user x-summary-source: derived /api/users/{userId}/changePassword: put: operationId: changePassword parameters: - in: path name: userId required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/PasswordChange' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/User' description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - application controller summary: Change password x-summary-source: derived components: schemas: GrantedAuthority: type: object properties: authority: type: string GithubAppPermissionsPendingErrorDetails: type: object properties: approvalUrl: type: string code: type: string errorCode: type: string message: type: string missingPermissions: type: array items: type: string User: type: object properties: clusterIds: uniqueItems: true type: array items: type: string description: maxLength: 200 minLength: 0 type: string groupId: type: string deprecated: true groupIds: type: array items: type: string id: type: string password: type: string writeOnly: true picture: type: string roles: uniqueItems: true type: array items: type: string serviceAccount: type: boolean teams: uniqueItems: true type: array items: type: string userName: type: string StackResource: type: object properties: resources: uniqueItems: true type: array items: $ref: '#/components/schemas/FacetsResource' stackName: type: string ClusterResourceBinding: type: object properties: clusterId: type: string resources: uniqueItems: true type: array items: $ref: '#/components/schemas/FacetsResource' stackName: type: string ErrorDetails: type: object properties: code: type: string message: type: string PasswordChange: type: object properties: newPassword: type: string oldPassword: type: string SimpleOauth2User: type: object properties: allowedAccounts: uniqueItems: true type: array items: type: string allowedClusterIds: uniqueItems: true type: array items: type: string allowedStackNames: uniqueItems: true type: array items: type: string associatedToResourceGroup: type: boolean attributes: type: object additionalProperties: type: object authorities: type: array items: $ref: '#/components/schemas/GrantedAuthority' clusterResourceBindings: type: object additionalProperties: $ref: '#/components/schemas/ClusterResourceBinding' clusterRoleBinding: type: object additionalProperties: type: string grantedAuthorities: type: array writeOnly: true items: $ref: '#/components/schemas/GrantedAuthority' name: type: string stackResources: uniqueItems: true type: array items: $ref: '#/components/schemas/StackResource' userId: type: string FacetsResource: type: object properties: resourceName: type: string resourceType: type: string securitySchemes: basicAuth: description: Basic Authentication scheme: basic type: http