diff --git a/spec/application_manager_v2.yml b/spec/application_manager_v2.yml new file mode 100644 index 0000000..27bc651 --- /dev/null +++ b/spec/application_manager_v2.yml @@ -0,0 +1,686 @@ +#Sourced from : https://anypoint.mulesoft.com/exchange/portals/anypoint-platform/f1e97bc6-315a-4490-82a7-23abe036327a.anypoint-platform/amc-application-manager/minor/4.0/console/summary/ + +openapi: 3.0.0 +info: + title: Deployment + description: > + The Application Manager API exists to provide Mule Application management operations from Anypoint Control Planes to any Runtime Plane, with capabilities that include: + - Deploying a Mule Application or API to a Mule Runtime + - Scaling up or down a running application + - Managing application settings (ie: properties) + - Deleting a Mule Application Deployment + - Changing artifact version or configurations of a deployment + - Starting, Stopping or Restarting applications + - etc. + This API currently supports deployments to Runtime Fabric and CloudHub 2.0 targets only. + version: 1.0.0 + +servers: + - url: https://anypoint.mulesoft.com/amc/application-manager/api/v2 + description: Anypoint Cloudhub + - url: https://eu1.anypoint.mulesoft.com/amc/application-manager/api/v2 + description: Anypoint Cloudhub EU + - url: https://gov.anypoint.mulesoft.com/amc/application-manager/api/v2 + description: Anypoint Cloudhub GOV + +security: + - bearerAuth: [] + +paths: + /organizations/{orgId}/environments/{envId}/deployments: + parameters: + - name: orgId + in: path + description: The ID of the organization in GUID format + required: true + schema: + type: string + - name: envId + in: path + description: The ID of the environment in GUID format + required: true + schema: + type: string + get: + operationId: GetAllDeployments + summary: List deployments + description: Retrieves a list of deployments for the specified query. If the query returns no results, then an empty list is returned. + parameters: + - name: provider + in: query + description: The provider of the target the deployments are deployed to. + required: false + schema: + type: string + - name: targetId + in: query + description: The id of the target the deployments are deployed to. + required: false + schema: + type: string + - name: offset + in: query + description: Offset used to retrieve the results. + required: false + schema: + type: integer + - name: limit + in: query + description: Maximum records to retrieve. + required: false + schema: + type: integer + responses: + "401": + $ref: "#/components/responses/UnauthorizedError" + "200": + $ref: "#/components/responses/GetAllDeployments" + post: + operationId: PostDeployment + summary: Create deployment + description: Deploys a new application with the provided data. + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/DeploymentRequestBody" + responses: + "401": + $ref: "#/components/responses/UnauthorizedError" + "404": + $ref: "#/components/responses/DeploymentNotFoundError" + "200": + $ref: "#/components/responses/PostDeployment" + + /organizations/{orgId}/environments/{envId}/deployments/{deploymentId}: + parameters: + - name: orgId + in: path + description: The ID of the organization in GUID format + required: true + schema: + type: string + - name: envId + in: path + description: The ID of the environment in GUID format + required: true + schema: + type: string + - name: deploymentId + in: path + description: The ID of the deployment in GUID format. + required: true + schema: + type: string + get: + operationId: GetDeploymentById + summary: Get a deploymnt + description: Retrieves a specific deployment by in a given org, environment and with a specific id. + responses: + "401": + $ref: "#/components/responses/UnauthorizedError" + "404": + $ref: "#/components/responses/DeploymentNotFoundError" + "200": + $ref: "#/components/responses/GetDeployment" + patch: + operationId: PatchDeployment + summary: Patch a deployment + description: Updates an existing deployment with the provided details. + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/DeploymentRequestBody" + responses: + "401": + $ref: "#/components/responses/UnauthorizedError" + "202": + $ref: "#/components/responses/PostDeployment" + "404": + $ref: "#/components/responses/DeploymentNotFoundError" + delete: + operationId: DeleteDeployment + summary: Delete deployment + description: Deletes the specified deploymentId. + responses: + "401": + $ref: "#/components/responses/UnauthorizedError" + "204": + $ref: "#/components/responses/DeleteDeployment" + "404": + $ref: "#/components/responses/DeploymentNotFoundError" + +components: + securitySchemes: + bearerAuth: # arbitrary name for the security scheme + type: http + scheme: bearer + bearerFormat: JWT + + responses: + UnauthorizedError: + description: Access token is missing or invalid + DeploymentNotFoundError: + description: Deployment not found + DeleteDeployment: + description: Deployment deleted + PostDeployment: + description: POST - Deployment Detail Response + content: + application/json: + schema: + $ref: "#/components/schemas/Deployment" + GetAllDeployments: + description: GET all Deployments Detail Response + content: + application/json: + schema: + $ref: "#/components/schemas/DeploymentResponsePaged" + GetDeployment: + description: GET a Deployment Detail Response + content: + application/json: + schema: + $ref: "#/components/schemas/Deployment" + + PatchDeployment: + description: GET - Deployment Detail Response + content: + application/json: + schema: + $ref: "#/components/schemas/Deployment" + + schemas: + Deployment: + title: Deployment + type: object + properties: + id: + type: string + title: id + name: + type: string + title: name + creationDate: + type: integer + format: int64 + title: creationDate + lastModifiedDate: + type: integer + format: int64 + title: lastModifiedDate + desiredVersion: + type: string + title: desiredVersion + replicas: + type: array + title: Replicas + items: + $ref: '#/components/schemas/Replicas' + status: + type: string + application: + $ref: "#/components/schemas/Application" + target: + $ref: "#/components/schemas/Target" + lastSuccessfulVersion: + nullable: true + type: string + + Target: + title: Target + description: The details of the target to perform the deployment on. + type: object + properties: + provider: + type: string + title: TargetProvider + description: The cloud provider the target belongs to. + targetId: + type: string + title: TargetId + description: The unique identifier of the target. + deploymentSettings: + $ref: '#/components/schemas/DeploymentSettings' + replicas: + description: The number of replicas of the deployment. + type: integer + + DeploymentSettings: + title: DeploymentSettings + type: object + description: The settings of the target for the deployment to perform. + properties: + clustered: + title: DeploymentSettingsClustered + type: boolean + enforceDeployingReplicasAcrossNodes: + title: EnforceDeployingReplicasAcrossNodes + type: boolean + http: + title: Http + type: object + properties: + inbound: + title: HttpInbound + type: object + properties: + publicUrl: + title: HttpInboundPublicUrl + type: string + pathRewrite: + title: HttpInboundPathRewrite + type: string + description: This field is not supported on deployments to Shared Spaces. Requests containing values other than null will be rejected. + lastMileSecurity: + title: HttpInboundLastMileSecurity + type: boolean + forwardSslSession: + title: HttpInboundForwardSslSession + type: boolean + internalUrl: + title: HttpInboundInternalUrl + type: string + uniqueId: + title: HttpInboundUniqueId + type: string + jvm: + title: Jvm + type: object + properties: + args: + type: string + runtime: + title: Runtime + type: object + description: > + On deployment operations use this object to pick the runtime version. All fields are optional. + + * On new deployment operations, if not provided, the default values will be used. + * On re-deployment operations, if not provided, the current version of the deployment will be used. + properties: + version: + title: RuntimeVersion + type: string + description: > + On deployment operations it can be set to: + * a full image version with tag (i.e "4.6.0:40e-java17"), + * a base version with a partial tag not indicating the java version (i.e. "4.6.0:40") + * or only a base version (i.e. "4.6.0"). + Defaults to the latest image version. + This field has precedence over the legacy 'target.deploymentSettings.runtimeVersion' + example: 4.6.0:40-java17 + releaseChannel: + title: RuntimeReleaseChannel + type: string + description: > + On deployment operations it can be set to one of: + * "LTS" + * "EDGE" + * "LEGACY". + Defaults to "EDGE". This field has precedence over the legacy 'target.deploymentSettings.runtimeReleaseChannel'. + Learn more on release channels at https://docs.mulesoft.com/release-notes/mule-runtime/lts-edge-release-cadence. + java: + title: RuntimeJava + type: string + description: > + On deployment operations it can be set to one of: + * "8" + * "17" + Defaults to "8". + Learn more about Java support at https://docs.mulesoft.com/general/java-support. + autoscaling: + title: Autoscaling + type: object + description: > + Use this object to provide CPU Based Horizontal Autoscaling configuration on deployment and redeployment operations. This object is optional. + If Autoscaling is disabled and the fields "minReplicas" and "maxReplicas" are provided, they must match the value of "target.replicas" field. + Learn more about Autoscaling at https://docs.mulesoft.com/cloudhub-2/ch2-configure-horizontal-autoscaling. + properties: + enabled: + title: AutoscalingEnabled + type: boolean + description: > + Enables or disables the Autoscaling feature. The possible values are: true or false. + minReplicas: + title: AutoscalingMinReplicas + type: integer + description: > + Set the minimum amount of replicas for your deployment. The minimum accepted value is 1. The maximum is 3. + maxReplicas: + title: AutoscalingMaxReplicas + type: integer + description: > + Set the maximum amount of replicas your application can scale to. The minimum accepted value is 2. The maximum is 32. + updateStrategy: + title: UpdateStrategy + type: string + resources: + title: Resources + type: object + properties: + cpu: + title: ResourcesCpu + type: object + properties: + limit: + title: ResourcesCpuLimit + type: string + reserved: + title: ResourcesCpuReserved + type: string + memory: + title: ResourcesMemory + type: object + properties: + limit: + title: ResourcesMemoryLimit + type: string + reserved: + title: ResourcesMemoryReserved + type: string + storage: + title: ResourcesStorage + type: object + properties: + limit: + title: ResourcesStorageLimit + type: string + reserved: + title: ResourcesStorageReserved + type: string + lastMileSecurity: + title: LastMileSecurity + type: boolean + disableAmLogForwarding: + title: DisableAmLogForwarding + type: boolean + persistentObjectStore: + title: PersistentObjectStore + type: boolean + anypointMonitoringScope: + title: AnypointMonitoringScope + type: string + sidecars: + title: Sidecars + type: object + properties: + anypoint-monitoring: + title: AnypointMonitoring + type: object + properties: + image: + type: string + resources: + type: object + properties: + cpu: + type: object + properties: + limit: + type: string + reserved: + type: string + memory: + type: object + properties: + limit: + type: string + reserved: + type: string + forwardSslSession: + title: ForwardSslSession + type: boolean + disableExternalLogForwarding: + title: DisableExternalLogForwarding + type: boolean + tracingEnabled: + title: TracingEnabled + type: boolean + description: > + Exposes tracing information in OpenTelemetry standard from Mule Runtime into all APM solutions. Supported only on: + * Mule Runtime versions 4.6 and above. + * RTF agent 2.6.33 and above. + Learn more at https://docs.mulesoft.com/cloudhub-2/ch2-deploy-private-space#enable-trace-data-collection + generateDefaultPublicUrl: + title: GenerateDefaultPublicUrl + type: boolean + + Application: + title: Application + description: The details of the application to deploy. + type: object + properties: + status: + type: string + description: The status of the application. + enum: + - RUNNING + - NOT_RUNNING + desiredState: + nullable: true + description: The desired state of the application. + type: string + ref: + nullable: true + description: The source where the application is stored. + $ref: "#/components/schemas/Ref" + configuration: + $ref: "#/components/schemas/AppConfiguration" + resourceAssets: + type: object + vCores: + type: number + description: The application allocated virtual cores. + integrations: + type: object + properties: + services: + $ref: "#/components/schemas/Services" + objectStoreV2Enabled: + type: boolean + + AppConfiguration: + description: The configuration of the application. + title: AppConfiguration + type: object + properties: + mule.agent.application.properties.service: + title: MuleAgentAppPropService + type: object + properties: + applicationName: + type: string + properties: + type: object + secureProperties: + type: object + mule.agent.logging.service: + title: MuleAgentLoggingService + type: object + properties: + artifactName: + type: string + scopeLoggingConfigurations: + title: ScopeLoggingConfigurations + type: array + items: + title: scopeLoggingConfiguration + type: object + properties: + scope: + type: string + logLevel: + type: string + mule.agent.scheduling.service: + title: MuleAgentSchedulingService + type: object + properties: + applicationName: + type: string + schedulers: + title: Schedulers + type: array + items: + title: Scheduler + properties: + name: + type: string + type: + type: string + flowName: + type: string + enabled: + type: boolean + timeUnit: + type: string + enum: + - NANOSECONDS + - MICROSECONDS + - MILLISECONDS + - SECONDS + - MINUTES + - HOURS + - DAYS + frequency: + type: string + startDelay: + type: string + expression: + type: string + timeZone: + type: string + + Replicas: + title: Replicas + type: object + description: The list of replicas for the specified deployment. + properties: + id: + type: string + description: The id of the replica in RTF + state: + type: string + description: The current state of the replica + deploymentLocation: + type: string + description: The node id in which the replica is deployed. + currentDeploymentVersion: + type: string + description: The version deployed in the replica. + reason: + type: string + description: In case of an error, it should provide information about the root cause. + + Services: + type: object + properties: + objectStoreV2: + $ref: "#/components/schemas/ObjectStoreV2" + + ObjectStoreV2: + type: object + properties: + enabled: + type: boolean + + Ref: + type: object + properties: + classifier: + nullable: true + type: string + type: + nullable: true + type: string + groupId: + type: string + description: The groupId of the application. + artifactId: + type: string + description: The artifactId of the application. + version: + type: string + description: The version of the application. + packaging: + type: string + description: The packaging of the application. + + State: + type: string + enum: + - PARTIALLY_STARTED + - DEPLOYMENT_FAILED + - STARTING + - STARTED + - STOPPING + - STOPPED + - UNDEPLOYING + - UNDEPLOYED + - UPDATED + - APPLIED + - APPLYING + - FAILED + - DELETED + + DeploymentResponsePaged: + title: DeploymentResponsePaged + type: object + properties: + total: + type: integer + title: total + items: + type: array + title: deploymentItems + items: + title: deploymentItem + type: object + properties: + id: + type: string + description: deployment id + name: + type: string + description: the name of deployment + creationDate: + type: integer + format: int64 + lastModifiedDate: + type: integer + format: int64 + target: + type: object + properties: + provider: + type: string + targetId: + type: string + status: + type: string + application: + type: object + properties: + status: + type: string + currentRuntimeVersion: + type: string + lastSuccessfulRuntimeVersion: + type: string + + DeploymentRequestBody: + title: DeploymentRequestBody + type: object + properties: + name: + type: string + title: name + target: + $ref: "#/components/schemas/Target" + application: + $ref: "#/components/schemas/Application" + desiredVersion: + type: string + title: desiredVersion + diff --git a/spec/rtf.yml b/spec/rtf.yml new file mode 100644 index 0000000..93478da --- /dev/null +++ b/spec/rtf.yml @@ -0,0 +1,586 @@ +openapi: 3.0.0 +info: + title: Runtime Fabrics API + description: Runtime Fabrics API + version: 1.0.0 + +servers: + - url: https://anypoint.mulesoft.com/runtimefabric/api + description: Anypoint Cloudhub + - url: https://eu1.anypoint.mulesoft.com/runtimefabric/api + description: Anypoint Cloudhub EU + - url: https://gov.anypoint.mulesoft.com/runtimefabric/api + description: Anypoint Cloudhub GOV + + +security: + - bearerAuth: [] + + +paths: + /organizations/{orgId}/helmrepoproperties: + parameters: + - in: path + name: orgId + description: The organization Id + required: true + schema: + type: string + get: + operationId: GetFabricsHelmRepoProps + summary: Retrieves Helm repo properties for a Runtime Fabrics Instance by id. + description: Retrieves Helm repo properties for a specific Runtime Fabrics Instance by id. + responses: + '401': + $ref: '#/components/responses/UnauthorizedError' + '400': + $ref: '#/components/responses/BadRequestError' + '200': # status code + $ref: '#/components/responses/SuccessGetFabricsHelmRepoProps' + + /organizations/{orgId}/fabrics: + parameters: + - in: path + name: orgId + description: The organization Id + required: true + schema: + type: string + get: + operationId: GetAllFabrics + summary: Retrieves all available Runtime Fabrics. + description: Retrieves a list of all available Runtime Fabrics in the given organization. + responses: + '401': + $ref: '#/components/responses/UnauthorizedError' + '400': + $ref: '#/components/responses/BadRequestError' + '200': # status code + $ref: '#/components/responses/SuccessGetAllFabrics' + post: + operationId: PostFabrics + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/FabricsPostBody" + summary: Creates a Runtime Fabrics + description: Creates a Runtime Fabrics instance. + responses: + '401': + $ref: '#/components/responses/UnauthorizedError' + '404': + $ref: '#/components/responses/NotFoundError' + '400': + $ref: '#/components/responses/BadRequestError' + '201': # status code + $ref: '#/components/responses/SuccessPostFabrics' + + /organizations/{orgId}/fabrics/{fabricsId}: + parameters: + - in: path + name: orgId + description: The organization Id + required: true + schema: + type: string + - in: path + name: fabricsId + description: The Runtime Fabrics Instance id + required: true + schema: + type: string + get: + operationId: GetFabrics + summary: Retrieves a specific Runtime Fabrics Instance by id. + description: Retrieves a specific Runtime Fabrics Instance by id. + responses: + '401': + $ref: '#/components/responses/UnauthorizedError' + '400': + $ref: '#/components/responses/BadRequestError' + '200': # status code + $ref: '#/components/responses/SuccessGetFabrics' + delete: + operationId: DeleteFabrics + summary: Delete a specific Runtime Fabrics Instance by id. + description: Delete a specific Runtime Fabrics Instance by id. + responses: + '401': + $ref: '#/components/responses/UnauthorizedError' + '400': + $ref: '#/components/responses/BadRequestError' + '204': # status code + $ref: '#/components/responses/SuccessDeleteFabrics' + + /organizations/{orgId}/fabrics/{fabricsId}/associations: + parameters: + - in: path + name: orgId + description: The organization Id + required: true + schema: + type: string + - in: path + name: fabricsId + description: The Runtime Fabrics Instance id + required: true + schema: + type: string + get: + operationId: GetFabricsAssociations + summary: Get Runtime Fabrics instance Environment Associations. + description: Get Runtime Fabrics instance Environment Associations. + responses: + '401': + $ref: '#/components/responses/UnauthorizedError' + '404': + $ref: '#/components/responses/NotFoundError' + '400': + $ref: '#/components/responses/BadRequestError' + '201': # status code + $ref: '#/components/responses/SuccessGetFabricsAssociations' + post: + operationId: PostFabricsAssociations + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/FabricsAssociationsPostBody" + summary: Creates Runtime Fabrics instance Environment Associations. + description: Creates Runtime Fabrics instance Environment Associations. + responses: + '401': + $ref: '#/components/responses/UnauthorizedError' + '404': + $ref: '#/components/responses/NotFoundError' + '400': + $ref: '#/components/responses/BadRequestError' + '201': # status code + $ref: '#/components/responses/SuccessPostFabricsAssociations' + + /organizations/{orgId}/fabrics/{fabricsId}/health: + parameters: + - in: path + name: orgId + description: The organization Id + required: true + schema: + type: string + - in: path + name: fabricsId + description: The Runtime Fabrics Instance id + required: true + schema: + type: string + get: + operationId: GetFabricsHealth + summary: Retrieves health for a Runtime Fabrics Instance by id. + description: Retrieves health for a specific Runtime Fabrics Instance by id. + responses: + '401': + $ref: '#/components/responses/UnauthorizedError' + '400': + $ref: '#/components/responses/BadRequestError' + '200': # status code + $ref: '#/components/responses/SuccessGetFabricsHealth' + + +components: + securitySchemes: + bearerAuth: # arbitrary name for the security scheme + type: http + scheme: bearer + bearerFormat: JWT + + responses: + UnauthorizedError: + description: Access token is missing or invalid + BadRequestError: + description: Bad request response + content: + application/json: + schema: + $ref: "#/components/schemas/errorsResponse" + NotFoundError: + description: resource not found + content: + application/json: + schema: + type: object + properties: + name: + type: string + message: + type: string + SuccessGetAllFabrics: + description: get list secret groups + content: + application/json: + schema: + $ref: "#/components/schemas/FabricsCollection" + SuccessPostFabrics: + description: post an instance of Fabrics + content: + application/json: + schema: + $ref: "#/components/schemas/Fabrics" + SuccessGetFabrics: + description: get an instance of Fabrics + content: + application/json: + schema: + $ref: "#/components/schemas/Fabrics" + SuccessDeleteFabrics: + description: delete and instance of Fabrics + SuccessGetFabricsAssociations: + description: get Fabrics associations + content: + application/json: + schema: + $ref: "#/components/schemas/FabricsAssociations" + SuccessPostFabricsAssociations: + description: post Fabrics associations + content: + application/json: + schema: + $ref: "#/components/schemas/FabricsAssociations" + SuccessGetFabricsHelmRepoProps: + description: get Fabrics Helm Repo Props + content: + application/json: + schema: + $ref: "#/components/schemas/FabricsHelmRepoProps" + SuccessGetFabricsHealth: + description: get Fabrics Health + content: + application/json: + schema: + $ref: "#/components/schemas/FabricsHealth" + + schemas: + errorsResponse: + type: object + title: errorsResponse + properties: + errors: + type: array + items: + type: object + properties: + type: + type: string + title: type + dataPath: + type: string + title: dataPath + keyword: + type: string + title: keyword + schema: + type: string + title: schema + data: + type: string + title: data + message: + type: string + title: message + + FabricsCollection: + type: array + items: + $ref: "#/components/schemas/Fabrics" + + Fabrics: + type: "object" + properties: + id: + type: "string" + title: "Cluster ID" + name: + type: "string" + title: "Cluster Name" + region: + type: "string" + title: "Region" + vendor: + type: "string" + title: "Vendor" + vendorMetadata: + type: "object" + title: "Vendor Metadata" + organizationId: + type: "string" + title: "Organization ID" + version: + type: "string" + title: "Version" + status: + type: "string" + title: "Status" + desiredVersion: + type: "string" + title: "Desired Version" + availableUpgradeVersion: + type: "string" + title: "Available Upgrade Version" + createdAt: + type: "integer" + format: int64 + title: "CreatedAt" + upgrade: + type: "object" + properties: + status: + type: "string" + nodes: + type: "array" + title: "Nodes" + items: + $ref: "#/components/schemas/FabricsNode" + activationData: + type: "string" + secondsSinceHeartbeat: + type: "integer" + title: "Seconds Since Heartbeat" + kubernetesVersion: + type: "string" + title: "Kubernetes Version" + namespace: + type: "string" + title: "Namespace" + licenseExpiryDate: + type: "integer" + format: int64 + title: "License Expiry Date" + isManaged: + type: "boolean" + title: "Is Managed" + isHelmManaged: + type: "boolean" + title: "Is Helm Managed" + appScopedLogForwarding: + type: "boolean" + title: "App Scoped Log Forwarding" + clusterConfigurationLevel: + type: "string" + title: "Cluster Configuration Level" + features: + type: "object" + title: "Features" + properties: + enhancedSecurity: + type: "boolean" + title: "Enhanced Security" + persistentStore: + type: "boolean" + title: "Persistent Store" + ingress: + type: "object" + title: "Ingress" + properties: + domains: + type: "array" + title: "Domains" + items: + type: "string" + + FabricsNode: + type: "object" + title: "Node" + properties: + uid: + type: "string" + title: "Node UID" + name: + type: "string" + title: "Node Name" + kubeletVersion: + type: "string" + title: "Kubelet Version" + dockerVersion: + type: "string" + title: "Docker Version" + role: + type: "string" + title: "Role" + status: + type: "object" + title: "Status" + properties: + isHealthy: + type: "boolean" + title: "Is Healthy" + isReady: + type: "boolean" + title: "Is Ready" + isSchedulable: + type: "boolean" + title: "Is Schedulable" + capacity: + type: "object" + title: "Capacity" + properties: + cpu: + type: "integer" + title: "CPU" + cpuMillis: + type: "integer" + title: "CPU Millis" + memory: + type: "string" + title: "Memory" + memoryMi: + type: "integer" + title: "Memory Mi" + pods: + type: "integer" + title: "Pods" + allocatedRequestCapacity: + type: "object" + title: "Allocated Request Capacity" + properties: + cpu: + type: "integer" + title: "CPU" + cpuMillis: + type: "integer" + title: "CPU Millis" + memory: + type: "string" + title: "Memory" + memoryMi: + type: "integer" + title: "Memory Mi" + pods: + type: "integer" + title: "Pods" + allocatedLimitCapacity: + type: "object" + title: "Allocated Limit Capacity" + properties: + cpu: + type: "integer" + title: "CPU" + cpuMillis: + type: "integer" + title: "CPU Millis" + memory: + type: "string" + title: "Memory" + memoryMi: + type: "integer" + title: "Memory Mi" + pods: + type: "integer" + title: "Pods" + + FabricsPostBody: + type: object + properties: + name: + type: string + vendor: + type: string + region: + type: string + + FabricsAssociationsPostBody: + type: object + properties: + associations: + type: array + items: + type: object + properties: + organizationId: + type: string + environment: + type: string + + FabricsAssociations: + type: array + items: + type: object + properties: + id: + type: string + organizationId: + type: string + environmentId: + type: string + name: + type: string + deploymentStatus: + type: string + errorMessage: + type: string + + FabricsHelmRepoProps: + type: object + properties: + RTF_IMAGE_REGISTRY_ENDPOINT: + type: string + description: the fabrics image registry endpoint + RTF_IMAGE_REGISTRY_USER: + type: string + description: the username to access the fabrics registry + RTF_IMAGE_REGISTRY_PASSWORD: + type: string + description: the password to access the fabrics registry + + FabricsHealth: + type: object + properties: + clusterMonitoring: + description: The ability to monitor and report the status of the Runtime Fabric cluster. + $ref: "#/components/schemas/FabricsHealthStatus" + manageDeployments: + description: The ability to create, update, or delete application deployments in this Runtime Fabric. + $ref: "#/components/schemas/FabricsHealthStatus" + loadBalancing: + description: The ability to accept inbound requests and load-balance across different replicas of application instances. + $ref: "#/components/schemas/FabricsHealthStatus" + anypointMonitoring: + description: The ability to see metrics and logs in Anypoint Monitoring. + $ref: "#/components/schemas/FabricsHealthStatus" + externalLogForwarding: + description: The ability to forward application logs to an external provider. + $ref: "#/components/schemas/FabricsHealthStatus" + appliance: + description: Detailed status of the appliance, when applicable. + $ref: "#/components/schemas/FabricsHealthStatus" + infrastructure: + description: Detailed status of the infrastructure supporting the Runtime Fabric cluster. + $ref: "#/components/schemas/FabricsHealthStatus" + persistentGateway: + description: Detailed status of the persistent gateway for Runtime Fabric cluster. + $ref: "#/components/schemas/FabricsHealthStatus" + + FabricsHealthStatus: + type: object + properties: + healthy: + type: boolean + description: True is the component is healthy. + updatedAt: + type: integer + format: int64 + probes: + type: string + description: Probes collected for this health check. Only applicable for Appliance probes. + failedProbes: + type: array + description: Probe failures attributing to the result of this health check. + items: + type: object + properties: + name: + type: string + reason: + type: string + lastTransitionAt: + type: integer + + diff --git a/spec/secretgroup_tlscontext.yml b/spec/secretgroup_tlscontext.yml index 4221f4a..1172fd7 100644 --- a/spec/secretgroup_tlscontext.yml +++ b/spec/secretgroup_tlscontext.yml @@ -251,7 +251,7 @@ components: $ref: "#/components/schemas/Meta" expirationDate: type: string - type: + target: type: string TlsContextDetails: