Using Console
Using CLI
<zone_name>
with the name of the DNS zone where the storage bucket is located.
CNAME
and a name corresponding to the desired subdomain.
gcloud dns record-sets transaction
command. Start a new transaction by running:
<subdomain>
with the desired subdomain and <bucket_name>
with the name of the storage bucket:
<subdomain>
and <your_domain>
with the appropriate values.
Using Python
google-cloud-dns
library using pip: