UNPKG

@takashito/linode-mcp-server

Version:

MCP server for Linode API

48 lines 1.78 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createVolumesClient = createVolumesClient; function createVolumesClient(axios) { return { getVolumes: async (params) => { const response = await axios.get('/volumes', { params }); return response.data; }, getVolumeById: async (id) => { const response = await axios.get(`/volumes/${id}`); return response.data; }, createVolume: async (data) => { const response = await axios.post('/volumes', data); return response.data; }, updateVolume: async (id, data) => { const response = await axios.put(`/volumes/${id}`, data); return response.data; }, deleteVolume: async (id) => { const response = await axios.delete(`/volumes/${id}`); return response.data; }, attachVolume: async (id, data) => { const response = await axios.post(`/volumes/${id}/attach`, data); return response.data; }, detachVolume: async (id) => { const response = await axios.post(`/volumes/${id}/detach`); return response.data; }, resizeVolume: async (id, data) => { const response = await axios.post(`/volumes/${id}/resize`, data); return response.data; }, cloneVolume: async (id, data) => { const response = await axios.post(`/volumes/${id}/clone`, data); return response.data; }, getVolumeTypes: async () => { const response = await axios.get('/volumes/types'); return response.data; } }; } //# sourceMappingURL=volumes.js.map