[英]Applying labels to Cloud SQL , BigQuery and PubSub
We need to apply labels to following GCP Services
我们需要将标签应用于以下GCP Services
Cloud SQL , BigQuery and PubSub
The number of Bigquery,Pubsub
services will be more than thousand across spanning across multiple GCP projects
.跨越多个GCP projects
的Bigquery,Pubsub
服务的数量将超过一千GCP projects
。 We will applying the labels to all resources at one go leveraging Python
automation using the PATCH
method from below APIs
.我们将使用来自以下APIs
的PATCH
方法利用Python
自动化一次性将标签应用于所有资源。
https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets/patch
https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.topics/patch
https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1beta4/databases/patch
Any impact on Cloud SQL,BigQuery and PubSub
when we apply labels to these GCP resources
.当我们将标签应用于这些GCP resources
时对Cloud SQL,BigQuery and PubSub
任何影响。 We earlier applied labels
to CLoud Run and Cloud functions
where there is a corresponding deployment and revision/version change
when we apply the labels.我们之前将labels
应用于CLoud Run and Cloud functions
,其中在我们应用标签时会发生相应的deployment and revision/version change
。 We are assuming there should be any impact on Cloud SQL,BigQuery and PubSub
services when we apply labels
.我们假设应用labels
时应该会对Cloud SQL,BigQuery and PubSub
服务产生任何影响。 For PubSub
, we pushed messages to some Topic'
and then applied labels using API PATCH
method.对于PubSub
,我们将消息推送到某个Topic'
,然后使用API PATCH
方法应用标签。 After that we pulled the messages using subscriptions
and messages are retrieved successfully .之后我们使用subscriptions
拉取消息,消息被成功检索。
gcloud pubsub topics publish storagecheck --message "Hello2"
gcloud pubsub subscriptions pull stcheck --auto-ack
Please suggest for any impact on Cloud SQL , BigQuery and PubSub
when we apply labels
请建议我们在应用labels
时对Cloud SQL , BigQuery and PubSub
任何影响
There will no impact on the services when we apply the labels.贴上标签不会对服务造成影响。
Minor thing to consider is the number labels we can apply to particular instance, as of today we can assign up to 64 labels to each instance.要考虑的小事是我们可以应用到特定实例的数量标签,截至今天,我们可以为每个实例分配多达 64 个标签。
Reference:参考:
https://cloud.google.com/sql/docs/mysql/label-instance https://cloud.google.com/sql/docs/mysql/label-instance
https://cloud.google.com/pubsub/docs/labels https://cloud.google.com/pubsub/docs/labels
https://cloud.google.com/bigquery/docs/labels-intro https://cloud.google.com/bigquery/docs/labels-intro
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.