Show / Hide Table of Contents

Class ProjectsResource.LogsResource

The "logs" collection of methods.

Inheritance
object
ProjectsResource.LogsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Logging.v2
Assembly: Google.Apis.Logging.v2.dll
Syntax
public class ProjectsResource.LogsResource

Constructors

LogsResource(IClientService)

Constructs a new resource.

Declaration
public LogsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Delete(string)

Deletes all the log entries in a log for the global _Default Log Bucket. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.

Declaration
public virtual ProjectsResource.LogsResource.DeleteRequest Delete(string logName)
Parameters
Type Name Description
string logName

Required. The resource name of the log to delete: projects/[PROJECT_ID]/logs/[LOG_ID] organizations/[ORGANIZATION_ID]/logs/[LOG_ID] billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID] folders/[FOLDER_ID]/logs/[LOG_ID][LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog", "organizations/123/logs/cloudaudit.googleapis.com%2Factivity".For more information about log names, see LogEntry.

Returns
Type Description
ProjectsResource.LogsResource.DeleteRequest

List(string)

Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.

Declaration
public virtual ProjectsResource.LogsResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The resource name to list logs for: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]

Returns
Type Description
ProjectsResource.LogsResource.ListRequest
In this article
Back to top Generated by DocFX