Get-PveNodesCephCmdSafety
Heuristical check if it is safe to perform an action.
API: GET /nodes/{node}/ceph/cmd-safety, Proxmox VE API viewer
Syntax
Section titled “Syntax”Get-PveNodesCephCmdSafety [-PveTicket <PveTicket>] -Action <string> -Id <string> -Node <string> -Service <string> [<CommonParameters>]Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
-PveTicket |
PveTicket |
No | Ticket data connection. |
-Action |
string |
Yes | Action to check. Values: stop, destroy. |
-Id |
string |
Yes | ID of the service. |
-Node |
string |
Yes | The cluster node name. |
-Service |
string |
Yes | Service type. Values: osd, mon, mds. |
Every parameter also binds by property name from the pipeline, so an object with node and vmid properties (the output of Get-PveGuest, for one) fills -Node and -Vmid. Without -PveTicket the cmdlet uses the last connection, see Connection.
Output
Section titled “Output”A PveResponse: the data returned by Proxmox VE is in .Response.data, the outcome in .IsSuccessStatusCode. See Results and Errors.