관리자용 함수

class ai.backend.client.func.admin.Admin

Provides the function interface for making admin GraphQL queries.

참고

Depending on the privilege of your API access key, you may or may not have access to querying/mutating server-side resources of other users.

classmethod await query(query, variables=None)

Sends the GraphQL query and returns the response.

매개변수:
  • query (str) – The GraphQL query string.

  • variables (Optional[Mapping[str, Any]]) – An optional key-value dictionary to fill the interpolated template variables in the query.

반환 형식:

Any

반환:

The object parsed from the response JSON string.