Repository Public
1// Code generated by tools/gen-api.py from packages/api-contracts/openapi.yaml. DO NOT EDIT.23package api45// Operations is the security policy of every operation, as declared in the contract.6// The request middleware refuses any operation that is not listed here.7var Operations = map[string]OpPolicy{8 "AbandonInvitationTransaction": {Method: "DELETE", Path: "/invitations/transaction", Auth: AuthSetup, Permission: "", StepUp: false},9 "AcknowledgeAlert": {Method: "POST", Path: "/alerts/{id}/acknowledge", Auth: AuthSession, Permission: "alerts.ack", StepUp: false},10 "ApproveAction": {Method: "POST", Path: "/actions/{id}/approve", Auth: AuthSession, Permission: "actions.approve", StepUp: true},11 "BeginAuthentication": {Method: "POST", Path: "/auth/webauthn/authentication/begin", Auth: AuthPublic, Permission: "", StepUp: false},12 "BeginRegistration": {Method: "POST", Path: "/auth/webauthn/registration/begin", Auth: AuthSessionOrSetup, Permission: "", StepUp: true},13 "BeginStepUp": {Method: "POST", Path: "/auth/stepup/begin", Auth: AuthSession, Permission: "", StepUp: false},14 "CancelAction": {Method: "POST", Path: "/actions/{id}/cancel", Auth: AuthSession, Permission: "actions.read", StepUp: false},15 "CancelJob": {Method: "POST", Path: "/jobs/{id}/cancel", Auth: AuthSession, Permission: "jobs.submit", StepUp: false},16 "CancelMaintenanceWindow": {Method: "DELETE", Path: "/maintenance/windows/{id}", Auth: AuthSession, Permission: "maintenance.write", StepUp: false},17 "CommentAlert": {Method: "POST", Path: "/alerts/{id}/comments", Auth: AuthSession, Permission: "alerts.ack", StepUp: false},18 "CommentIncident": {Method: "POST", Path: "/incidents/{id}/comments", Auth: AuthSession, Permission: "alerts.ack", StepUp: false},19 "CompareMetrics": {Method: "GET", Path: "/metrics/compare", Auth: AuthSession, Permission: "nodes.read", StepUp: false},20 "CompleteMaintenanceWindow": {Method: "POST", Path: "/maintenance/windows/{id}/complete", Auth: AuthSession, Permission: "maintenance.write", StepUp: false},21 "CreateAction": {Method: "POST", Path: "/actions", Auth: AuthSession, Permission: "actions.run.low", StepUp: false},22 "CreateAlertRule": {Method: "POST", Path: "/alert-rules", Auth: AuthSession, Permission: "alerts.manage", StepUp: false},23 "CreateEnrollmentToken": {Method: "POST", Path: "/agents/enrollment-tokens", Auth: AuthSession, Permission: "agents.manage", StepUp: true},24 "CreateIncident": {Method: "POST", Path: "/incidents", Auth: AuthSession, Permission: "alerts.manage", StepUp: false},25 "CreateInvitation": {Method: "POST", Path: "/invitations", Auth: AuthSession, Permission: "invitations.manage", StepUp: true},26 "CreateJob": {Method: "POST", Path: "/jobs", Auth: AuthSession, Permission: "jobs.submit", StepUp: false},27 "CreateJobSchedule": {Method: "POST", Path: "/job-schedules", Auth: AuthSession, Permission: "jobs.submit", StepUp: false},28 "CreateMaintenanceNote": {Method: "POST", Path: "/maintenance/notes", Auth: AuthSession, Permission: "maintenance.write", StepUp: false},29 "CreateMaintenanceWindow": {Method: "POST", Path: "/maintenance/windows", Auth: AuthSession, Permission: "maintenance.write", StepUp: false},30 "CreateNasTarget": {Method: "POST", Path: "/storage/nas", Auth: AuthSession, Permission: "settings.manage", StepUp: false},31 "CreateNode": {Method: "POST", Path: "/nodes", Auth: AuthSession, Permission: "nodes.write", StepUp: false},32 "CreatePolicyGrant": {Method: "POST", Path: "/policy-grants", Auth: AuthSession, Permission: "users.manage", StepUp: true},33 "CreateSilence": {Method: "POST", Path: "/silences", Auth: AuthSession, Permission: "alerts.manage", StepUp: false},34 "DeleteAlertRule": {Method: "DELETE", Path: "/alert-rules/{id}", Auth: AuthSession, Permission: "alerts.manage", StepUp: false},35 "DeleteJobSchedule": {Method: "DELETE", Path: "/job-schedules/{id}", Auth: AuthSession, Permission: "jobs.submit", StepUp: false},36 "DeleteMaintenanceNote": {Method: "DELETE", Path: "/maintenance/notes/{id}", Auth: AuthSession, Permission: "maintenance.write", StepUp: false},37 "DeleteMyDashboard": {Method: "DELETE", Path: "/me/dashboards/{name}", Auth: AuthSession, Permission: "", StepUp: false},38 "DeleteMyPasskey": {Method: "DELETE", Path: "/me/passkeys/{id}", Auth: AuthSession, Permission: "", StepUp: true},39 "DeleteNasTarget": {Method: "DELETE", Path: "/storage/nas/{id}", Auth: AuthSession, Permission: "settings.manage", StepUp: false},40 "DeletePolicyGrant": {Method: "DELETE", Path: "/policy-grants/{id}", Auth: AuthSession, Permission: "users.manage", StepUp: true},41 "DeleteSilence": {Method: "DELETE", Path: "/silences/{id}", Auth: AuthSession, Permission: "alerts.manage", StepUp: false},42 "ExchangeInvitation": {Method: "POST", Path: "/invitations/exchange", Auth: AuthPublic, Permission: "", StepUp: false},43 "ExportAudit": {Method: "GET", Path: "/audit/export", Auth: AuthSession, Permission: "audit.export", StepUp: true},44 "ExportMaintenanceCalendar": {Method: "GET", Path: "/maintenance/calendar.ics", Auth: AuthSession, Permission: "maintenance.read", StepUp: false},45 "FinishAuthentication": {Method: "POST", Path: "/auth/webauthn/authentication/finish", Auth: AuthPublic, Permission: "", StepUp: false},46 "FinishRegistration": {Method: "POST", Path: "/auth/webauthn/registration/finish", Auth: AuthSessionOrSetup, Permission: "", StepUp: true},47 "FinishStepUp": {Method: "POST", Path: "/auth/stepup/finish", Auth: AuthSession, Permission: "", StepUp: false},48 "GetAction": {Method: "GET", Path: "/actions/{id}", Auth: AuthSession, Permission: "actions.read", StepUp: false},49 "GetActionOutput": {Method: "GET", Path: "/actions/{id}/output", Auth: AuthSession, Permission: "actions.read", StepUp: false},50 "GetAdminStatus": {Method: "GET", Path: "/admin/status", Auth: AuthSession, Permission: "settings.manage", StepUp: false},51 "GetAlert": {Method: "GET", Path: "/alerts/{id}", Auth: AuthSession, Permission: "alerts.read", StepUp: false},52 "GetAlertRule": {Method: "GET", Path: "/alert-rules/{id}", Auth: AuthSession, Permission: "alerts.read", StepUp: false},53 "GetClusterOverview": {Method: "GET", Path: "/cluster/overview", Auth: AuthSession, Permission: "cluster.read", StepUp: false},54 "GetClusterTrends": {Method: "GET", Path: "/cluster/trends", Auth: AuthSession, Permission: "cluster.read", StepUp: false},55 "GetIncident": {Method: "GET", Path: "/incidents/{id}", Auth: AuthSession, Permission: "alerts.read", StepUp: false},56 "GetInferenceServer": {Method: "GET", Path: "/models/{id}", Auth: AuthSession, Permission: "models.read", StepUp: false},57 "GetInvitationTransaction": {Method: "GET", Path: "/invitations/transaction", Auth: AuthSetup, Permission: "", StepUp: false},58 "GetJob": {Method: "GET", Path: "/jobs/{id}", Auth: AuthSession, Permission: "jobs.read", StepUp: false},59 "GetLiveness": {Method: "GET", Path: "/health/live", Auth: AuthPublic, Permission: "", StepUp: false},60 "GetMaintenanceWindow": {Method: "GET", Path: "/maintenance/windows/{id}", Auth: AuthSession, Permission: "maintenance.read", StepUp: false},61 "GetMe": {Method: "GET", Path: "/me", Auth: AuthSession, Permission: "", StepUp: false},62 "GetMetricCatalog": {Method: "GET", Path: "/metrics/catalog", Auth: AuthSession, Permission: "nodes.read", StepUp: false},63 "GetNetworkTopology": {Method: "GET", Path: "/network/topology", Auth: AuthSession, Permission: "cluster.read", StepUp: false},64 "GetNode": {Method: "GET", Path: "/nodes/{id}", Auth: AuthSession, Permission: "nodes.read", StepUp: false},65 "GetNodeHealthHistory": {Method: "GET", Path: "/nodes/{id}/health-history", Auth: AuthSession, Permission: "nodes.read", StepUp: false},66 "GetNodeMetrics": {Method: "GET", Path: "/nodes/{id}/metrics", Auth: AuthSession, Permission: "nodes.read", StepUp: false},67 "GetPermissionCatalog": {Method: "GET", Path: "/permissions", Auth: AuthSession, Permission: "", StepUp: false},68 "GetReadiness": {Method: "GET", Path: "/health/ready", Auth: AuthPublic, Permission: "", StepUp: false},69 "GetService": {Method: "GET", Path: "/services/{id}", Auth: AuthSession, Permission: "services.read", StepUp: false},70 "GetServiceHistory": {Method: "GET", Path: "/services/{id}/history", Auth: AuthSession, Permission: "services.read", StepUp: false},71 "GetUser": {Method: "GET", Path: "/users/{id}", Auth: AuthSession, Permission: "users.manage", StepUp: false},72 "GetVersion": {Method: "GET", Path: "/version", Auth: AuthPublic, Permission: "", StepUp: false},73 "LinkInvitationToAccount": {Method: "POST", Path: "/invitations/transaction/link", Auth: AuthSessionAndSetup, Permission: "", StepUp: true},74 "ListActionTypes": {Method: "GET", Path: "/action-types", Auth: AuthSession, Permission: "actions.read", StepUp: false},75 "ListActions": {Method: "GET", Path: "/actions", Auth: AuthSession, Permission: "actions.read", StepUp: false},76 "ListActivity": {Method: "GET", Path: "/activity", Auth: AuthSession, Permission: "cluster.read", StepUp: false},77 "ListAgents": {Method: "GET", Path: "/agents", Auth: AuthSession, Permission: "agents.manage", StepUp: false},78 "ListAlertRules": {Method: "GET", Path: "/alert-rules", Auth: AuthSession, Permission: "alerts.read", StepUp: false},79 "ListAlerts": {Method: "GET", Path: "/alerts", Auth: AuthSession, Permission: "alerts.read", StepUp: false},80 "ListAudit": {Method: "GET", Path: "/audit", Auth: AuthSession, Permission: "audit.read", StepUp: false},81 "ListBackups": {Method: "GET", Path: "/storage/backups", Auth: AuthSession, Permission: "cluster.read", StepUp: false},82 "ListEnrollmentTokens": {Method: "GET", Path: "/agents/enrollment-tokens", Auth: AuthSession, Permission: "agents.manage", StepUp: false},83 "ListIncidents": {Method: "GET", Path: "/incidents", Auth: AuthSession, Permission: "alerts.read", StepUp: false},84 "ListInferenceServers": {Method: "GET", Path: "/models", Auth: AuthSession, Permission: "models.read", StepUp: false},85 "ListInvitations": {Method: "GET", Path: "/invitations", Auth: AuthSession, Permission: "invitations.manage", StepUp: false},86 "ListJobSchedules": {Method: "GET", Path: "/job-schedules", Auth: AuthSession, Permission: "jobs.read", StepUp: false},87 "ListJobTemplates": {Method: "GET", Path: "/job-templates", Auth: AuthSession, Permission: "jobs.read", StepUp: false},88 "ListJobs": {Method: "GET", Path: "/jobs", Auth: AuthSession, Permission: "jobs.read", StepUp: false},89 "ListMaintenanceNotes": {Method: "GET", Path: "/maintenance/notes", Auth: AuthSession, Permission: "maintenance.read", StepUp: false},90 "ListMaintenanceWindows": {Method: "GET", Path: "/maintenance/windows", Auth: AuthSession, Permission: "maintenance.read", StepUp: false},91 "ListMyDashboards": {Method: "GET", Path: "/me/dashboards", Auth: AuthSession, Permission: "", StepUp: false},92 "ListMyDevices": {Method: "GET", Path: "/me/devices", Auth: AuthSession, Permission: "", StepUp: false},93 "ListMyPasskeys": {Method: "GET", Path: "/me/passkeys", Auth: AuthSession, Permission: "", StepUp: false},94 "ListMySessions": {Method: "GET", Path: "/me/sessions", Auth: AuthSession, Permission: "", StepUp: false},95 "ListNasTargets": {Method: "GET", Path: "/storage/nas", Auth: AuthSession, Permission: "cluster.read", StepUp: false},96 "ListNetworkInterfaces": {Method: "GET", Path: "/network/interfaces", Auth: AuthSession, Permission: "nodes.read", StepUp: false},97 "ListNodeProcesses": {Method: "GET", Path: "/nodes/{id}/processes", Auth: AuthSession, Permission: "nodes.read", StepUp: false},98 "ListNodeServices": {Method: "GET", Path: "/nodes/{id}/services", Auth: AuthSession, Permission: "services.read", StepUp: false},99 "ListNodes": {Method: "GET", Path: "/nodes", Auth: AuthSession, Permission: "nodes.read", StepUp: false},100 "ListPolicyGrants": {Method: "GET", Path: "/policy-grants", Auth: AuthSession, Permission: "users.manage", StepUp: false},101 "ListServices": {Method: "GET", Path: "/services", Auth: AuthSession, Permission: "services.read", StepUp: false},102 "ListSettings": {Method: "GET", Path: "/settings", Auth: AuthSession, Permission: "settings.manage", StepUp: false},103 "ListSilences": {Method: "GET", Path: "/silences", Auth: AuthSession, Permission: "alerts.read", StepUp: false},104 "ListUserDevices": {Method: "GET", Path: "/users/{id}/devices", Auth: AuthSession, Permission: "users.manage", StepUp: false},105 "ListUserPasskeys": {Method: "GET", Path: "/users/{id}/passkeys", Auth: AuthSession, Permission: "users.manage", StepUp: false},106 "ListUserSessions": {Method: "GET", Path: "/users/{id}/sessions", Auth: AuthSession, Permission: "users.manage", StepUp: false},107 "ListUsers": {Method: "GET", Path: "/users", Auth: AuthSession, Permission: "users.manage", StepUp: false},108 "ListVolumes": {Method: "GET", Path: "/storage/volumes", Auth: AuthSession, Permission: "nodes.read", StepUp: false},109 "Logout": {Method: "POST", Path: "/auth/logout", Auth: AuthSession, Permission: "", StepUp: false},110 "PutMyDashboard": {Method: "PUT", Path: "/me/dashboards/{name}", Auth: AuthSession, Permission: "", StepUp: false},111 "PutMyPushToken": {Method: "PUT", Path: "/me/devices/current/push-token", Auth: AuthSession, Permission: "", StepUp: false},112 "PutSetting": {Method: "PUT", Path: "/settings/{key}", Auth: AuthSession, Permission: "settings.manage", StepUp: true},113 "RefreshSession": {Method: "POST", Path: "/auth/refresh", Auth: AuthPublic, Permission: "", StepUp: false},114 "RejectAction": {Method: "POST", Path: "/actions/{id}/reject", Auth: AuthSession, Permission: "actions.approve", StepUp: false},115 "ResolveAlert": {Method: "POST", Path: "/alerts/{id}/resolve", Auth: AuthSession, Permission: "alerts.ack", StepUp: false},116 "RetireNode": {Method: "DELETE", Path: "/nodes/{id}", Auth: AuthSession, Permission: "nodes.write", StepUp: true},117 "RevokeAgent": {Method: "POST", Path: "/agents/{id}/revoke", Auth: AuthSession, Permission: "agents.manage", StepUp: true},118 "RevokeDevice": {Method: "DELETE", Path: "/devices/{id}", Auth: AuthSession, Permission: "users.manage", StepUp: true},119 "RevokeEnrollmentToken": {Method: "DELETE", Path: "/agents/enrollment-tokens/{id}", Auth: AuthSession, Permission: "agents.manage", StepUp: true},120 "RevokeInvitation": {Method: "DELETE", Path: "/invitations/{id}", Auth: AuthSession, Permission: "invitations.manage", StepUp: true},121 "RevokeMyDevice": {Method: "DELETE", Path: "/me/devices/{id}", Auth: AuthSession, Permission: "", StepUp: false},122 "RevokeMySession": {Method: "DELETE", Path: "/me/sessions/{id}", Auth: AuthSession, Permission: "", StepUp: false},123 "RevokeSession": {Method: "DELETE", Path: "/sessions/{id}", Auth: AuthSession, Permission: "users.manage", StepUp: true},124 "RevokeUserPasskey": {Method: "DELETE", Path: "/users/{id}/passkeys/{passkeyId}", Auth: AuthSession, Permission: "users.manage", StepUp: true},125 "Search": {Method: "GET", Path: "/search", Auth: AuthSession, Permission: "", StepUp: false},126 "SetInvitationProfile": {Method: "POST", Path: "/invitations/transaction/profile", Auth: AuthSetup, Permission: "", StepUp: false},127 "StreamEvents": {Method: "GET", Path: "/events", Auth: AuthSession, Permission: "", StepUp: false},128 "UpdateAlertRule": {Method: "PATCH", Path: "/alert-rules/{id}", Auth: AuthSession, Permission: "alerts.manage", StepUp: false},129 "UpdateIncident": {Method: "PATCH", Path: "/incidents/{id}", Auth: AuthSession, Permission: "alerts.manage", StepUp: false},130 "UpdateJobSchedule": {Method: "PATCH", Path: "/job-schedules/{id}", Auth: AuthSession, Permission: "jobs.submit", StepUp: false},131 "UpdateMaintenanceNote": {Method: "PATCH", Path: "/maintenance/notes/{id}", Auth: AuthSession, Permission: "maintenance.write", StepUp: false},132 "UpdateMaintenanceWindow": {Method: "PATCH", Path: "/maintenance/windows/{id}", Auth: AuthSession, Permission: "maintenance.write", StepUp: false},133 "UpdateMe": {Method: "PATCH", Path: "/me", Auth: AuthSession, Permission: "", StepUp: false},134 "UpdateMyPasskey": {Method: "PATCH", Path: "/me/passkeys/{id}", Auth: AuthSession, Permission: "", StepUp: false},135 "UpdateNode": {Method: "PATCH", Path: "/nodes/{id}", Auth: AuthSession, Permission: "nodes.write", StepUp: false},136 "UpdateService": {Method: "PATCH", Path: "/services/{id}", Auth: AuthSession, Permission: "settings.manage", StepUp: false},137 "UpdateUser": {Method: "PATCH", Path: "/users/{id}", Auth: AuthSession, Permission: "users.manage", StepUp: true},138 "ValidateAlertRule": {Method: "POST", Path: "/alert-rules/validate", Auth: AuthSession, Permission: "alerts.manage", StepUp: false},139 "VerifyAudit": {Method: "GET", Path: "/audit/verify", Auth: AuthSession, Permission: "audit.read", StepUp: false},140}141