Method: subscriptions.reactivate

Ponownie aktywuje zawieszony abonament Google Workspace.

Ta metoda resetuje pole State abonamentu do wartości ACTIVE. Zanim użyjesz tej metody, musisz naprawić błąd, który spowodował zawieszenie abonamentu. Ta metoda zignoruje lub odrzuci każdy abonament, który nie jest obecnie zawieszony. Aby dowiedzieć się, jak korzystać z tej metody, przeczytaj artykuł Ponowne aktywowanie abonamentu Google Workspace.

W przypadku abonamentu w docelowym zasobie Google Chat możesz go ponownie aktywować jako:

Żądanie HTTP

POST https://workspaceevents.googleapis.com/v1/{name=subscriptions/*}:reactivate

Adres URL używa składni transkodowania gRPC.

Parametry ścieżki

Parametry
name

string

Wymagane. Nazwa zasobu abonamentu.

Format: subscriptions/{subscription}

Treść żądania

Treść żądania musi być pusta.

Treść odpowiedzi

W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu Operation.

  • Pole metadata zawiera pustą tablicę.
  • Pole response zawiera zaktualizowane wystąpienie elementu Subscription.

Zakresy autoryzacji

Wymaga jednego z tych zakresów OAuth:

  • https://www.googleapis.com/auth/chat.spaces
  • https://www.googleapis.com/auth/chat.spaces.readonly
  • https://www.googleapis.com/auth/chat.messages
  • https://www.googleapis.com/auth/chat.messages.readonly
  • https://www.googleapis.com/auth/chat.messages.reactions
  • https://www.googleapis.com/auth/chat.messages.reactions.readonly
  • https://www.googleapis.com/auth/chat.memberships
  • https://www.googleapis.com/auth/chat.memberships.readonly
  • https://www.googleapis.com/auth/chat.app.memberships
  • https://www.googleapis.com/auth/chat.app.memberships.readonly
  • https://www.googleapis.com/auth/chat.app.messages.readonly
  • https://www.googleapis.com/auth/chat.app.spaces
  • https://www.googleapis.com/auth/chat.app.spaces.readonly
  • https://www.googleapis.com/auth/meetings.space.created
  • https://www.googleapis.com/auth/meetings.space.readonly
  • https://www.googleapis.com/auth/drive
  • https://www.googleapis.com/auth/drive.file
  • https://www.googleapis.com/auth/drive.metadata
  • https://www.googleapis.com/auth/drive.metadata.readonly
  • https://www.googleapis.com/auth/drive.readonly

Więcej informacji znajdziesz w przewodniku po autoryzacji.