openapi: 3.2.0 info: description: API Documentation title: Control-plane UI User Group Controller API version: '1.0' servers: - url: https://facetsdemo.console.facets.cloud description: Generated server url security: - basicAuth: [] tags: - name: ui-user-group-controller paths: /cc-ui/v1/user-groups/: get: operationId: getAllGroup responses: '200': content: application/json: schema: type: array items: $ref: '#/components/schemas/UserGroup' 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: - ui-user-group-controller summary: Get all group x-summary-source: derived post: operationId: createUserGroup requestBody: content: application/json: schema: $ref: '#/components/schemas/UserGroup' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/UserGroup' 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: - ui-user-group-controller summary: Create user group x-summary-source: derived put: operationId: updateUserGroup requestBody: content: application/json: schema: $ref: '#/components/schemas/UserGroup' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/UserGroup' 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: - ui-user-group-controller summary: Update user group x-summary-source: derived /cc-ui/v1/user-groups/list/groups-expanded: get: operationId: getAllUserGroupsExpanded responses: '200': content: application/json: schema: type: array items: $ref: '#/components/schemas/ExpandedUserGroup' 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: - ui-user-group-controller summary: Get all user groups expanded x-summary-source: derived /cc-ui/v1/user-groups/{groupId}: delete: operationId: deleteUserGroup parameters: - in: path name: groupId required: true schema: type: string responses: '200': 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: - ui-user-group-controller summary: Delete user group x-summary-source: derived get: operationId: getUserGroup parameters: - in: path name: groupId required: true schema: type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/UserGroup' 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: - ui-user-group-controller summary: Get user group x-summary-source: derived /cc-ui/v1/user-groups/{groupId}/group-expanded: get: operationId: getUserGroupExpanded parameters: - in: path name: groupId required: true schema: type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/ExpandedUserGroup' 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: - ui-user-group-controller summary: Get user group expanded x-summary-source: derived components: schemas: ExpandedUserGroup: type: object properties: accessibleAccounts: type: array items: $ref: '#/components/schemas/IdName' accessibleEnvironments: type: array items: $ref: '#/components/schemas/EnvInfo' accessibleProjects: uniqueItems: true type: array items: type: string associatedResourceGroups: type: array items: $ref: '#/components/schemas/IdName' baseRole: $ref: '#/components/schemas/RoleInfo' envSpecificRoles: type: array items: $ref: '#/components/schemas/EnvSpecificAccess' groupId: type: string groupName: type: string UserGroup: type: object properties: accounts: uniqueItems: true type: array items: type: string additionalRoles: uniqueItems: true type: array items: type: string associatedResourceGroups: type: array items: type: string baseRole: type: string changeLog: type: string clusterIds: uniqueItems: true type: array items: type: string clusterRoleBindings: type: object additionalProperties: type: string description: maxLength: 200 minLength: 0 type: string groupName: type: string id: type: string stackNames: uniqueItems: true type: array items: type: string versioningKey: type: string GithubAppPermissionsPendingErrorDetails: type: object properties: approvalUrl: type: string code: type: string errorCode: type: string message: type: string missingPermissions: type: array items: type: string RoleInfo: type: object properties: label: type: string roleName: type: string EnvInfo: type: object properties: clusterId: type: string envName: type: string project: type: string IdName: type: object properties: id: type: string name: type: string ErrorDetails: type: object properties: code: type: string message: type: string EnvSpecificAccess: type: object properties: clusterId: type: string envName: type: string project: type: string roleInfo: $ref: '#/components/schemas/RoleInfo' securitySchemes: basicAuth: description: Basic Authentication scheme: basic type: http