Skip to content
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

feat(swagger): adds /cloud/metadata to agent api definition #4186

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions v3/swagger/agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,34 @@
},
"security": []
}
},
"/cloud/metadata": {
"get": {
"description": "Collect instance metadata on a node",
"summary": "Return instance metadata",
"operationId": "Metadata",
"produces": [
"application/json"
],
"parameters": [],
"responses": {
"200": {
"description": "Instance metadata",
"schema": {
"$ref": "#/definitions/InstanceMetadata"
},
"headers": {}
},
"default": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/ErrorResponse"
},
"headers": {}
}
},
"security": []
}
}
},
"definitions": {
Expand Down Expand Up @@ -1694,6 +1722,27 @@
"format": "uint64"
}
}
},
"InstanceMetadata": {
"title": "instance metadata",
"description": "Information about instance on which agent is running",
"type": "object",
"properties": {
"instance_type": {
"description": "Cloud machine type, e.g. Standard-A3",
"type": "string"
},
"cloud_provider": {
"description": "Cloud provider",
"type": "string",
"enum": [
"aws",
"gcp",
"azure",
""
]
}
}
}
},
"tags": []
Expand Down
113 changes: 113 additions & 0 deletions v3/swagger/gen/agent/client/operations/metadata_parameters.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

135 changes: 135 additions & 0 deletions v3/swagger/gen/agent/client/operations/metadata_responses.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions v3/swagger/gen/agent/client/operations/operations_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading