Cloud Logging API . billingAccounts . buckets

Instance Methods

get(name=None, x__xgafv=None)

Gets a bucket (Beta).

Method Details

get(name=None, x__xgafv=None)
Gets a bucket (Beta).

Args:
  name: string, Required. The resource name of the bucket:
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
Example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id". (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Describes a repository of logs (Beta).
    "updateTime": "A String", # Output only. The last update timestamp of the bucket.
    "description": "A String", # Describes this bucket.
    "lifecycleState": "A String", # Output only. The bucket lifecycle state.
    "createTime": "A String", # Output only. The creation timestamp of the bucket. This is not set for any of the default buckets.
    "retentionDays": 42, # Logs will be retained by default for this amount of time, after which they will automatically be deleted. The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used.
    "name": "A String", # The resource name of the bucket. For example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id The supported locations are:  "global"  "us-central1"For the location of global it is unspecified where logs are actually stored. Once a bucket has been created, the location can not be changed.
  }