feat: wire mysql delivery to awx callbacks
This commit is contained in:
@@ -10,6 +10,12 @@ export interface DeliveryTarget {
|
||||
metadata?: string
|
||||
}
|
||||
|
||||
export interface DeliveryMountPath {
|
||||
path: string
|
||||
available_gi: number
|
||||
fstype?: string
|
||||
}
|
||||
|
||||
export interface CreateMySQLDeliveryPayload {
|
||||
business_line_id: number
|
||||
target_id: number
|
||||
@@ -83,6 +89,11 @@ export const deliveryApi = {
|
||||
return Array.isArray(data.items) ? data.items : []
|
||||
},
|
||||
|
||||
async listTargetMountPaths(targetId: number, host: string): Promise<DeliveryMountPath[]> {
|
||||
const data = await authRequest(`/auth/api/v1/delivery/targets/${targetId}/hosts/${encodeURIComponent(host)}/mount-paths`)
|
||||
return Array.isArray(data.items) ? data.items : []
|
||||
},
|
||||
|
||||
async createMySQL(payload: CreateMySQLDeliveryPayload): Promise<DeliveryTask> {
|
||||
const data = await authRequest('/auth/api/v1/delivery/mysql', {
|
||||
method: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user