2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
It is not possible to filter by state using the AWS Console however this can be achieved with the AWS CLI and the jq library
aws workspaces describe-workspaces | jq '.Workspaces[] | select(.State == "UNHEALTHY")'
répondu il y a 2 ans
0
You can sort the console output by Status, but you cannot filter by it. As suggested, the best way to get this information is via the CLI or API. In PowerShell it would be
Get-WKSWorkspace | Where-Oject {$_.State -like "Unhealthy"}
and in python it would be something like
import boto3
client = boto3.client('workspaces')
wks = client.describe_workspaces()
for wk in wks['Workspaces']:
if wk['State'] == 'UNHEALTHY':
print(wk)
Contenus pertinents
- demandé il y a un an
- demandé il y a 10 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans