openapi: 3.2.0 info: description: API Documentation title: Control-plane UI Azure Cluster Controller API version: '1.0' servers: - url: https://facetsdemo.console.facets.cloud description: Generated server url security: - basicAuth: [] tags: - name: ui-azure-cluster-controller paths: /cc-ui/v1/azure/clusters: post: operationId: createAzureCluster requestBody: content: application/json: schema: $ref: '#/components/schemas/AzureClusterRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/AzureCluster' 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-azure-cluster-controller summary: Create azure cluster x-summary-source: derived /cc-ui/v1/azure/clusters/configure/{clusterId}: post: operationId: configureDraftCluster_1 parameters: - in: path name: clusterId required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/AzureClusterRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/AzureCluster' 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-azure-cluster-controller summary: Configure draft cluster 1 x-summary-source: derived /cc-ui/v1/azure/clusters/validate-vnet: get: operationId: validateVnet parameters: - in: query name: vnet required: true schema: type: string - in: query name: resourceGroup required: true schema: type: string - in: query name: accountId required: true schema: type: string responses: '200': content: application/json: schema: type: boolean 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-azure-cluster-controller summary: Validate vnet x-summary-source: derived /cc-ui/v1/azure/clusters/{clusterId}: get: operationId: getAzureCluster parameters: - in: path name: clusterId required: true schema: type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/AzureCluster' 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-azure-cluster-controller summary: Get azure cluster x-summary-source: derived put: operationId: updateAzureCluster parameters: - in: path name: clusterId required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/AzureClusterRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/AzureCluster' 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-azure-cluster-controller summary: Update azure cluster x-summary-source: derived components: schemas: Variables: type: object properties: description: type: string global: type: boolean secret: type: boolean status: type: string enum: - DEFAULT - OVERRIDDEN value: type: string AzureCluster: required: - name - releaseStream - stackName - tz type: object properties: autoSignOffSchedule: type: string azs: type: array items: type: string baseClusterId: type: string baseClusterName: type: string branch: type: string cdPipelineParent: type: string changeLog: type: string writeOnly: true clientId: type: string clientSecret: type: string cloud: type: string enum: - AWS - AZURE - LOCAL - GCP - KUBERNETES - NO_CLOUD cloudAccountId: type: string cloudAccountSecretId: type: string clusterCode: type: string readOnly: true clusterState: type: string enum: - STOPPED - RUNNING - LAUNCHING - DESTROYING - LAUNCH_FAILED - DESTROY_FAILED - UNKNOWN - SCALE_DOWN - SCALING_DOWN - SCALE_DOWN_FAILED - SCALING_UP - SCALE_UP_FAILED commonEnvironmentVariables: type: object additionalProperties: type: string componentVersions: type: object additionalProperties: type: string configured: type: boolean createdBy: type: string creationDate: type: string format: date-time deleted: type: boolean description: type: string enableAutoSignOff: type: boolean globalVariables: type: object additionalProperties: type: string hasK8sCredentials: type: boolean id: type: string instanceTypes: type: array items: type: string isEphemeral: type: boolean k8sRequestsToLimitsRatio: type: number format: double lastModifiedBy: type: string lastModifiedDate: type: string format: date-time name: type: string namespace: type: string pauseReleases: type: boolean region: type: string releaseStream: type: string requireSignOff: type: boolean resourceGroupName: type: string secrets: type: object additionalProperties: type: string stackName: type: string subscriptionId: type: string tenantId: type: string tz: type: string variables: type: object additionalProperties: $ref: '#/components/schemas/Variables' versioningKey: type: string vnetName: type: string vpcCIDR: type: string GithubAppPermissionsPendingErrorDetails: type: object properties: approvalUrl: type: string code: type: string errorCode: type: string message: type: string missingPermissions: type: array items: type: string ErrorDetails: type: object properties: code: type: string message: type: string AzureClusterRequest: required: - clusterName type: object properties: autoSignOffSchedule: type: string azs: type: array items: type: string baseClusterId: type: string cdPipelineParent: type: string clientId: type: string clientSecret: type: string cloud: type: string enum: - AWS - AZURE - LOCAL - GCP - KUBERNETES - NO_CLOUD cloudAccountId: type: string clusterName: maxLength: 40 minLength: 0 pattern: ^[a-z][a-z0-9-]*$ type: string componentVersions: type: object additionalProperties: type: string description: maxLength: 200 minLength: 0 type: string enableAutoSignOff: type: boolean instanceTypes: type: array items: type: string isEphemeral: type: boolean k8sRequestsToLimitsRatio: type: number format: double namespace: type: string region: type: string releaseStream: type: string requireSignOff: type: boolean resourceGroupName: type: string stackName: type: string subscriptionId: type: string tenantId: type: string tz: type: object properties: displayName: type: string dstsavings: type: integer format: int32 id: type: string rawOffset: type: integer format: int32 vnetName: type: string vpcCIDR: type: string securitySchemes: basicAuth: description: Basic Authentication scheme: basic type: http