Cloud Logging API (logging:v2)

2023-11-17

16 new methods

Additions

    Methods
  • logging.projects.locations.savedQueries.list

      Path: v2/{+parent}/savedQueries

      Flat Path: v2/projects/{projectsId}/locations/{locationsId}/savedQueries

      HTTP Method: GET

      Parameters:

        parent

          Description: Required. The resource to which the listed queries belong. "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-project/locations/us-central1" Note: The locations portion of the resource must be specified. To get a list of all saved queries, a wildcard character - can be used for LOCATION_ID, for example: "projects/my-project/locations/-"

          Pattern: ^projects/[^/]+/locations/[^/]+$

          Location: path

          Required: Yes

          Type: string

        pageToken

          Description: Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.

          Location: query

          Type: string

        pageSize

          Description: Optional. The maximum number of results to return from this request.Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.

          Location: query

          Type: integer

          Format: int32

      Parameter Order: parent

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/cloud-platform.read-only
    • https://www.googleapis.com/auth/logging.admin
    • https://www.googleapis.com/auth/logging.read
    • Description: Lists the SavedQueries that were created by the user making the request.

  • logging.projects.locations.savedQueries.create

      Path: v2/{+parent}/savedQueries

      Flat Path: v2/projects/{projectsId}/locations/{locationsId}/savedQueries

      HTTP Method: POST

      Parameters:

        parent

          Description: Required. The parent resource in which to create the saved query: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-project/locations/global" "organizations/123456789/locations/us-central1"

          Pattern: ^projects/[^/]+/locations/[^/]+$

          Location: path

          Required: Yes

          Type: string

        savedQueryId

          Description: Optional. The ID to use for the saved query, which will become the final component of the saved query's resource name.If the saved_query_id is not provided, the system will generate an alphanumeric ID.The saved_query_id is limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, and periods. First character has to be alphanumeric.

          Location: query

          Type: string

      Parameter Order: parent

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/logging.admin
    • Description: Creates a new SavedQuery for the user making the request.

  • logging.projects.locations.savedQueries.delete

      Path: v2/{+name}

      Flat Path: v2/projects/{projectsId}/locations/{locationsId}/savedQueries/{savedQueriesId}

      HTTP Method: DELETE

      Parameters:

        name

          Description: Required. The full resource name of the saved query to delete. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For example: "projects/my-project/locations/global/savedQueries/my-saved-query"

          Pattern: ^projects/[^/]+/locations/[^/]+/savedQueries/[^/]+$

          Location: path

          Required: Yes

          Type: string

      Parameter Order: name

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/logging.admin
    • Description: Deletes an existing SavedQuery that was created by the user making the request.

  • logging.projects.locations.recentQueries.list

      Path: v2/{+parent}/recentQueries

      Flat Path: v2/projects/{projectsId}/locations/{locationsId}/recentQueries

      HTTP Method: GET

      Parameters:

        parent

          Description: Required. The resource to which the listed queries belong. "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example:projects/my-project/locations/us-central1Note: The location portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all recent queries.

          Pattern: ^projects/[^/]+/locations/[^/]+$

          Location: path

          Required: Yes

          Type: string

        pageToken

          Description: Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.

          Location: query

          Type: string

        pageSize

          Description: Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.

          Location: query

          Type: integer

          Format: int32

      Parameter Order: parent

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/cloud-platform.read-only
    • https://www.googleapis.com/auth/logging.admin
    • https://www.googleapis.com/auth/logging.read
    • Description: Lists the RecentQueries that were created by the user making the request.

  • logging.organizations.locations.savedQueries.list

      Path: v2/{+parent}/savedQueries

      Flat Path: v2/organizations/{organizationsId}/locations/{locationsId}/savedQueries

      HTTP Method: GET

      Parameters:

        parent

          Description: Required. The resource to which the listed queries belong. "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-project/locations/us-central1" Note: The locations portion of the resource must be specified. To get a list of all saved queries, a wildcard character - can be used for LOCATION_ID, for example: "projects/my-project/locations/-"

          Pattern: ^organizations/[^/]+/locations/[^/]+$

          Location: path

          Required: Yes

          Type: string

        pageToken

          Description: Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.

          Location: query

          Type: string

        pageSize

          Description: Optional. The maximum number of results to return from this request.Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.

          Location: query

          Type: integer

          Format: int32

      Parameter Order: parent

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/cloud-platform.read-only
    • https://www.googleapis.com/auth/logging.admin
    • https://www.googleapis.com/auth/logging.read
    • Description: Lists the SavedQueries that were created by the user making the request.

  • logging.organizations.locations.savedQueries.create

      Path: v2/{+parent}/savedQueries

      Flat Path: v2/organizations/{organizationsId}/locations/{locationsId}/savedQueries

      HTTP Method: POST

      Parameters:

        parent

          Description: Required. The parent resource in which to create the saved query: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-project/locations/global" "organizations/123456789/locations/us-central1"

          Pattern: ^organizations/[^/]+/locations/[^/]+$

          Location: path

          Required: Yes

          Type: string

        savedQueryId

          Description: Optional. The ID to use for the saved query, which will become the final component of the saved query's resource name.If the saved_query_id is not provided, the system will generate an alphanumeric ID.The saved_query_id is limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, and periods. First character has to be alphanumeric.

          Location: query

          Type: string

      Parameter Order: parent

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/logging.admin
    • Description: Creates a new SavedQuery for the user making the request.

  • logging.organizations.locations.savedQueries.delete

      Path: v2/{+name}

      Flat Path: v2/organizations/{organizationsId}/locations/{locationsId}/savedQueries/{savedQueriesId}

      HTTP Method: DELETE

      Parameters:

        name

          Description: Required. The full resource name of the saved query to delete. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For example: "projects/my-project/locations/global/savedQueries/my-saved-query"

          Pattern: ^organizations/[^/]+/locations/[^/]+/savedQueries/[^/]+$

          Location: path

          Required: Yes

          Type: string

      Parameter Order: name

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/logging.admin
    • Description: Deletes an existing SavedQuery that was created by the user making the request.

  • logging.organizations.locations.recentQueries.list

      Path: v2/{+parent}/recentQueries

      Flat Path: v2/organizations/{organizationsId}/locations/{locationsId}/recentQueries

      HTTP Method: GET

      Parameters:

        parent

          Description: Required. The resource to which the listed queries belong. "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example:projects/my-project/locations/us-central1Note: The location portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all recent queries.

          Pattern: ^organizations/[^/]+/locations/[^/]+$

          Location: path

          Required: Yes

          Type: string

        pageToken

          Description: Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.

          Location: query

          Type: string

        pageSize

          Description: Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.

          Location: query

          Type: integer

          Format: int32

      Parameter Order: parent

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/cloud-platform.read-only
    • https://www.googleapis.com/auth/logging.admin
    • https://www.googleapis.com/auth/logging.read
    • Description: Lists the RecentQueries that were created by the user making the request.

  • logging.folders.locations.savedQueries.list

      Path: v2/{+parent}/savedQueries

      Flat Path: v2/folders/{foldersId}/locations/{locationsId}/savedQueries

      HTTP Method: GET

      Parameters:

        parent

          Description: Required. The resource to which the listed queries belong. "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-project/locations/us-central1" Note: The locations portion of the resource must be specified. To get a list of all saved queries, a wildcard character - can be used for LOCATION_ID, for example: "projects/my-project/locations/-"

          Pattern: ^folders/[^/]+/locations/[^/]+$

          Location: path

          Required: Yes

          Type: string

        pageToken

          Description: Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.

          Location: query

          Type: string

        pageSize

          Description: Optional. The maximum number of results to return from this request.Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.

          Location: query

          Type: integer

          Format: int32

      Parameter Order: parent

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/cloud-platform.read-only
    • https://www.googleapis.com/auth/logging.admin
    • https://www.googleapis.com/auth/logging.read
    • Description: Lists the SavedQueries that were created by the user making the request.

  • logging.folders.locations.savedQueries.create

      Path: v2/{+parent}/savedQueries

      Flat Path: v2/folders/{foldersId}/locations/{locationsId}/savedQueries

      HTTP Method: POST

      Parameters:

        parent

          Description: Required. The parent resource in which to create the saved query: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-project/locations/global" "organizations/123456789/locations/us-central1"

          Pattern: ^folders/[^/]+/locations/[^/]+$

          Location: path

          Required: Yes

          Type: string

        savedQueryId

          Description: Optional. The ID to use for the saved query, which will become the final component of the saved query's resource name.If the saved_query_id is not provided, the system will generate an alphanumeric ID.The saved_query_id is limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, and periods. First character has to be alphanumeric.

          Location: query

          Type: string

      Parameter Order: parent

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/logging.admin
    • Description: Creates a new SavedQuery for the user making the request.

  • logging.folders.locations.savedQueries.delete

      Path: v2/{+name}

      Flat Path: v2/folders/{foldersId}/locations/{locationsId}/savedQueries/{savedQueriesId}

      HTTP Method: DELETE

      Parameters:

        name

          Description: Required. The full resource name of the saved query to delete. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For example: "projects/my-project/locations/global/savedQueries/my-saved-query"

          Pattern: ^folders/[^/]+/locations/[^/]+/savedQueries/[^/]+$

          Location: path

          Required: Yes

          Type: string

      Parameter Order: name

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/logging.admin
    • Description: Deletes an existing SavedQuery that was created by the user making the request.

  • logging.folders.locations.recentQueries.list

      Path: v2/{+parent}/recentQueries

      Flat Path: v2/folders/{foldersId}/locations/{locationsId}/recentQueries

      HTTP Method: GET

      Parameters:

        parent

          Description: Required. The resource to which the listed queries belong. "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example:projects/my-project/locations/us-central1Note: The location portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all recent queries.

          Pattern: ^folders/[^/]+/locations/[^/]+$

          Location: path

          Required: Yes

          Type: string

        pageToken

          Description: Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.

          Location: query

          Type: string

        pageSize

          Description: Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.

          Location: query

          Type: integer

          Format: int32

      Parameter Order: parent

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/cloud-platform.read-only
    • https://www.googleapis.com/auth/logging.admin
    • https://www.googleapis.com/auth/logging.read
    • Description: Lists the RecentQueries that were created by the user making the request.

  • logging.billingAccounts.locations.savedQueries.list

      Path: v2/{+parent}/savedQueries

      Flat Path: v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/savedQueries

      HTTP Method: GET

      Parameters:

        parent

          Description: Required. The resource to which the listed queries belong. "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-project/locations/us-central1" Note: The locations portion of the resource must be specified. To get a list of all saved queries, a wildcard character - can be used for LOCATION_ID, for example: "projects/my-project/locations/-"

          Pattern: ^billingAccounts/[^/]+/locations/[^/]+$

          Location: path

          Required: Yes

          Type: string

        pageToken

          Description: Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.

          Location: query

          Type: string

        pageSize

          Description: Optional. The maximum number of results to return from this request.Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.

          Location: query

          Type: integer

          Format: int32

      Parameter Order: parent

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/cloud-platform.read-only
    • https://www.googleapis.com/auth/logging.admin
    • https://www.googleapis.com/auth/logging.read
    • Description: Lists the SavedQueries that were created by the user making the request.

  • logging.billingAccounts.locations.savedQueries.create

      Path: v2/{+parent}/savedQueries

      Flat Path: v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/savedQueries

      HTTP Method: POST

      Parameters:

        parent

          Description: Required. The parent resource in which to create the saved query: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-project/locations/global" "organizations/123456789/locations/us-central1"

          Pattern: ^billingAccounts/[^/]+/locations/[^/]+$

          Location: path

          Required: Yes

          Type: string

        savedQueryId

          Description: Optional. The ID to use for the saved query, which will become the final component of the saved query's resource name.If the saved_query_id is not provided, the system will generate an alphanumeric ID.The saved_query_id is limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, and periods. First character has to be alphanumeric.

          Location: query

          Type: string

      Parameter Order: parent

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/logging.admin
    • Description: Creates a new SavedQuery for the user making the request.

  • logging.billingAccounts.locations.savedQueries.delete

      Path: v2/{+name}

      Flat Path: v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/savedQueries/{savedQueriesId}

      HTTP Method: DELETE

      Parameters:

        name

          Description: Required. The full resource name of the saved query to delete. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For example: "projects/my-project/locations/global/savedQueries/my-saved-query"

          Pattern: ^billingAccounts/[^/]+/locations/[^/]+/savedQueries/[^/]+$

          Location: path

          Required: Yes

          Type: string

      Parameter Order: name

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/logging.admin
    • Description: Deletes an existing SavedQuery that was created by the user making the request.

  • logging.billingAccounts.locations.recentQueries.list

      Path: v2/{+parent}/recentQueries

      Flat Path: v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/recentQueries

      HTTP Method: GET

      Parameters:

        parent

          Description: Required. The resource to which the listed queries belong. "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example:projects/my-project/locations/us-central1Note: The location portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all recent queries.

          Pattern: ^billingAccounts/[^/]+/locations/[^/]+$

          Location: path

          Required: Yes

          Type: string

        pageToken

          Description: Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.

          Location: query

          Type: string

        pageSize

          Description: Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.

          Location: query

          Type: integer

          Format: int32

      Parameter Order: parent

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/cloud-platform.read-only
    • https://www.googleapis.com/auth/logging.admin
    • https://www.googleapis.com/auth/logging.read
    • Description: Lists the RecentQueries that were created by the user making the request.