[SINK_NAME]
with a name for the sink, [PROJECT_ID]
with your GCP project ID, and [DESTINATION]
with the destination for the logs (e.g., Cloud Storage bucket or BigQuery dataset).[CHECK_NAME]
with a name for the uptime check, [PROJECT_ID]
with your GCP project ID, [DISPLAY_NAME]
with a display name for the check, [API_ID]
with the ID of your API Gateway, [LOCATION]
with the location of your API Gateway, [CHECK_PATH]
with the path to check, [CHECK_PORT]
with the port to check, [CHECK_PERIOD]
with the check period in seconds, [CHECK_TIMEOUT]
with the check timeout in seconds, and [CONTENT_MATCHERS]
with any content matchers to validate the response.[PROJECT_ID]
with your GCP project ID, [MEMBER]
with the member to add the IAM policy for (e.g., user or service account), and [ROLE]
with the desired role for the member.google-cloud-securitycenter
library to enable VPC Service Controls for the API Gateway.update_service
method to update the API Gateway service configuration and enable VPC Service Controls.google-cloud-logging
library to enable Cloud Audit Logging for the API Gateway.set_service_logging
method to configure the logging options for the API Gateway service.google-cloud-iam
library to manage IAM policies for the API Gateway.set_iam_policy
method to set the IAM policy for the API Gateway service.{project_id}
, {service_id}
, {log_id}
, {role_id}
, and {user_email}
should be replaced with the actual values specific to your GCP environment.