-
Notifications
You must be signed in to change notification settings - Fork 1
Update internal API with missing endpoints #566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mattoni
merged 1 commit into
main
from
mattoni/eng-2989-add-endpoint-for-virtual-machines-to-internal-api
Jan 29, 2025
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| title: Event | ||
| description: A custom event submitted to the monitoring system. | ||
| type: object | ||
| required: | ||
| - event | ||
| - type | ||
| - priority | ||
| properties: | ||
| metadata: | ||
| anyOf: | ||
| - type: object | ||
| properties: | ||
| component: | ||
| type: object | ||
| description: The associated component for this event. | ||
| properties: | ||
| id: | ||
| type: string | ||
| type: | ||
| type: string | ||
| - type: "null" | ||
| event: | ||
| type: string | ||
| description: The event name. | ||
| type: | ||
| type: string | ||
| enum: | ||
| - info | ||
| - warning | ||
| - error | ||
| - success | ||
| - alert | ||
| - notice | ||
| - audit | ||
| priority: | ||
| type: string | ||
| enum: | ||
| - critical | ||
| - high | ||
| - medium | ||
| - normal | ||
| - low | ||
| text: | ||
| description: The text describing the event that has occurred. | ||
| type: | ||
| - string | ||
| - "null" | ||
| extra: | ||
| type: object | ||
| additionalProperties: true | ||
| labels: | ||
| type: object | ||
| additionalProperties: | ||
| type: string | ||
| tags: | ||
| type: array | ||
| items: | ||
| type: string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| title: ObjectCacheSave | ||
| description: An item saved in the internal API object cache. | ||
| type: object | ||
| required: | ||
| - scope | ||
| - expires | ||
| - key | ||
| - value | ||
| properties: | ||
| scope: | ||
| type: string | ||
| enum: | ||
| - global | ||
| - environment | ||
| - container | ||
| - instance | ||
| expires: | ||
| $ref: ../../../components/schemas/Duration.yml | ||
| key: | ||
| type: string | ||
| value: | ||
| type: string | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| get: | ||
| operationId: "getEnvironmentVirtualMachines" | ||
| summary: Get Environment Virtual Machines | ||
| description: | | ||
| Returns a list of virtual machines that are in the same environment as this instance. | ||
| tags: | ||
| - Environments | ||
| parameters: [] | ||
| responses: | ||
| default: | ||
| $ref: ../../../components/responses/errors/DefaultError.yml | ||
| 200: | ||
| description: Returns a list of virtual machines. | ||
| content: | ||
| application/json: | ||
| schema: | ||
| type: object | ||
| required: | ||
| - data | ||
| properties: | ||
| data: | ||
| type: array | ||
| items: | ||
| $ref: ../../../components/schemas/vms/VirtualMachine.yml | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| post: | ||
| operationId: "postEvent" | ||
| summary: Post Event | ||
| description: | | ||
| Post a custom event to Cycle's monitoring system. | ||
| tags: | ||
| - Monitoring | ||
| parameters: [] | ||
| requestBody: | ||
| required: true | ||
| content: | ||
| application/json: | ||
| schema: | ||
| type: array | ||
| items: | ||
| $ref: ../../components/monitoring/Event.yml | ||
| responses: | ||
| default: | ||
| $ref: ../../../components/responses/errors/DefaultError.yml | ||
| 200: | ||
| description: Returns true on success. | ||
| content: | ||
| application/json: | ||
| schema: | ||
| type: object | ||
| required: | ||
| - data | ||
| properties: | ||
| data: | ||
| type: boolean | ||
| enum: | ||
| - true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| get: | ||
| operationId: "getObjectCache" | ||
| summary: Get Object Cache | ||
| description: | | ||
| Returns an object saved to the internal object cache. | ||
| tags: | ||
| - Object Cache | ||
| parameters: | ||
| - name: scope | ||
| in: query | ||
| required: true | ||
| description: Specify the object scope. | ||
| schema: | ||
| type: string | ||
| enum: | ||
| - global | ||
| - environment | ||
| - container | ||
| - instance | ||
| - name: key | ||
| in: query | ||
| required: true | ||
| description: Specify the object key. | ||
| schema: | ||
| type: string | ||
| responses: | ||
| default: | ||
| $ref: ../../../components/responses/errors/DefaultError.yml | ||
| 200: | ||
| description: Returns a saved object cache item. | ||
| content: | ||
| application/json: | ||
| schema: | ||
| type: object | ||
| required: | ||
| - data | ||
| properties: | ||
| data: | ||
| $ref: ../../components/object-cache/ObjectCacheSave.yml | ||
|
|
||
| post: | ||
| operationId: "postObjectCache" | ||
| summary: Post Object Cache | ||
| description: | | ||
| Save an item to the internal API object cache. | ||
| tags: | ||
| - Object Cache | ||
| parameters: [] | ||
| requestBody: | ||
| required: true | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: ../../components/object-cache/ObjectCacheSave.yml | ||
| responses: | ||
| default: | ||
| $ref: ../../../components/responses/errors/DefaultError.yml | ||
| 200: | ||
| description: Returns true on success. | ||
| content: | ||
| application/json: | ||
| schema: | ||
| type: object | ||
| required: | ||
| - data | ||
| properties: | ||
| data: | ||
| type: "null" |
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| get: | ||
| operationId: "getVirtualMachineDomains" | ||
| summary: Get Virtual Machine Domains | ||
| description: | | ||
| Returns the domains associated with the specified virtual machine. | ||
| tags: | ||
| - Virtual Machines | ||
| parameters: | ||
| - name: virtual-machine-id | ||
| in: query | ||
| required: true | ||
| description: Specify which virtual machine to fetch domains for. | ||
| schema: | ||
| type: string | ||
| responses: | ||
| default: | ||
| $ref: ../../../components/responses/errors/DefaultError.yml | ||
| 200: | ||
| description: Returns a list of virtual machine domains. | ||
| content: | ||
| application/json: | ||
| schema: | ||
| type: object | ||
| required: | ||
| - data | ||
| properties: | ||
| data: | ||
| type: array | ||
| items: | ||
| type: object | ||
| required: | ||
| - fqdn | ||
| properties: | ||
| fqdn: | ||
| type: string | ||
| record: | ||
| anyOf: | ||
| - $ref: ../../../components/schemas/dns/records/Record.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| get: | ||
| operationId: "getVirtualMachine" | ||
| summary: Get Virtual Machine | ||
| description: | | ||
| Returns a specified virtual machine. | ||
| tags: | ||
| - Virtual Machines | ||
| parameters: | ||
| - name: virtual-machine-id | ||
| in: query | ||
| required: true | ||
| description: Specify which virtual machine to fetch. | ||
| schema: | ||
| type: string | ||
| responses: | ||
| default: | ||
| $ref: ../../../components/responses/errors/DefaultError.yml | ||
| 200: | ||
| description: Returns a virtual machine. | ||
| content: | ||
| application/json: | ||
| schema: | ||
| type: object | ||
| required: | ||
| - data | ||
| properties: | ||
| data: | ||
| $ref: ../../../components/schemas/vms/VirtualMachine.yml |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.