---
title: "POST /v2/{+parent}/logScopes"
method: POST
path: "/v2/{+parent}/logScopes"
tags: ["projects"]
---

# POST /v2/{+parent}/logScopes

`POST /v2/{+parent}/logScopes`

Creates a log scope.

## Path parameters

- `parent` string, required

## Query parameters

- `logScopeId` string

## Request body

- LogScope — Describes a group of resources to read log entries from.
  - `name` string — Output only. The resource name of the log scope.Log scopes are only available in the global location. For example:projects/my-project/locations/global/logScopes/my-log-scope
  - `resourceNames` string[] — Required. Names of one or more parent resources (organizations and folders are not supported.): projects/[PROJECT_ID]May alternatively be one or more views: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]A log scope can include a maximum of 5 projects and a maximum of 100 resources in total.
  - `description` string — Optional. Describes this log scope.The maximum length of the description is 8000 characters.
  - `updateTime` string, google-datetime — Output only. The last update timestamp of the log scope.
  - `createTime` string, google-datetime — Output only. The creation timestamp of the log scope.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/logging.md) · [All operations](https://skmtc.net/google/apis/logging/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/logging/versions/820c4b0f7358/schema)
