Getting a cloud ID
Written by
Updated at November 18, 2024
Management console
CLI
API
-
Go to the management console
and select the appropriate cloud. On the page that opens, the cloud ID is shown on top, next to the cloud name, and in the ID line of the Overview tab. -
To copy the ID, hover over it and click
.
If you know the name of the cloud, provide it as a parameter in the get
command:
yc resource-manager cloud get <cloud_name>
Result:
id: b1gd129pp9ha********
...
If you do not know the cloud ID, retrieve a list of clouds with their IDs:
yc resource-manager cloud list
Result:
+----------------------+------------+----------------------+--------+
| ID | NAME | ORGANIZATION ID | LABELS |
+----------------------+------------+----------------------+--------+
| b1g66mft1vop******** | my-cloud-1 | bpf2c65rqcl8******** | |
| b1gd129pp9ha******** | my-cloud-2 | bpf2c65rqcl8******** | |
+----------------------+------------+----------------------+--------+
To get the list of clouds with IDs, use the list REST API method for the Cloud resource or the CloudService/List gRPC API call.