Skip to content

Commit b6d2bbf

Browse files
authored
Create get_compute_nodes_by_ID.py
1 parent 1c89afb commit b6d2bbf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

get_compute_nodes_by_ID.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from openstack import connection
2+
3+
conn = connection.Connection(
4+
auth_url = 'http://YOUR_floating_IP:5000/v2.0',
5+
username = 'YOUR_USERNAME',
6+
password = 'YOUR_PASSWORD',
7+
project_name = 'YOUR_PROJECT_NAAME')
8+
9+
srv = conn.compute.get_server("YOUR_RESOURCES_ID")
10+
srv = conn.compute.get_server(srv)

0 commit comments

Comments
 (0)