Este conteúdo não está disponível no idioma selecionado.

38.7. Method: listSnapshots


Description

List snapshots for a given system. A user may optionally provide a start and end date to narrow the snapshots that are listed. For example:

  • If the user provides startDate only, all snapshots created either on or after the date provided are returned
  • If user provides startDate and endDate, all snapshots created on or between the dates provided are returned
  • If the user doesn't provide a startDate and endDate, all snapshots associated with the server are returned
Parameters

The following parameters are available for this method:

  • string sessionKey
  • int serverId
  • struct - date details
    • dateTime.iso8601 startDate (optional, unless endDate is provided)
    • dateTime.iso8601 endDate (optional)
Returns

The following return values are available for this method:

  • array:
    • struct - server snapshot
      • int id
      • string reason - The reason for the snapshot's existence
      • dateTime.iso8601 created
      • array channels
        • string - Labels of channels associated with the snapshot
      • array groups
        • string - Names of server groups associated with the snapshot
      • array entitlements
        • string - Names of system entitlements associated with the snapshot
      • array config_channels
        • string - Labels of config channels the snapshot is associated with
      • array tags
        • string - Tag names associated with this snapshot
      • string Invalid_reason - If the snapshot is invalid, this is the reason (optional)
Available since: 10.1
Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat