ACRCloud
Search…
UCF Projects
post
https://api-v2.acrcloud.com
/api/ucf-projects
Create a ucf project
Curl
Python
1
curl --location --request POST 'http://127.0.0.1:8080/api/ucf-projects' \
2
--header 'Accept: application/json' \
3
--header 'Authorization: Bearer token' \
4
--header 'Content-Type: application/json' \
5
--data-raw '{"name":"test", "region":"eu-west-1", "type":"BM"}'
Copied!
1
import requests
2
3
url = "http://127.0.0.1:8080/api/ucf-projects"
4
5
payload={"name":"test", "region":"eu-west-1", "type":"BM"}"
6
headers = {
7
'Accept': 'application/json',
8
'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiI2IiwianRpIjoiN2Y2N2NhNmE4NmMxOGZiMWZmYmVkOWM5OTQwNGQxNWI1MjU2NmE1NzVlNTdkMjFjYjBiM2Y4MWQzYTJmZjM1N2FiZjhmNjRjY2YyYWQ0NDkiLCJpYXQiOjE2MDg0NzIwODQsIm5iZiI6MTYwODQ3MjA4NCwiZXhwIjoxNjQwMDA4MDg0LCJzdWIiOiIxIiwic2NvcGVzIjpbIioiXX0.nTbfzMg2thStTmX2dy1ZEB1JSILpwzLv5DMDVaxUY5NaC9GAj_VLAKNVJyOWvY5Ti-LFFvcQ8W8rVL4NesXnJJ89jLYwMoskCcvs8ZZNIJEfo6CAj5Lzp0Thc3eqHRDbOtVhgZojmdI5BsU9nBVAowOnVbLDv_3MoqP3MGFlSuhfVKgQZwLiVavvVjLVIZkxaEczmhCZIW1Dr_sYWkYzyDFRcZ2paz1lMzFBp7zLtYEsbCa6odSyMQxzxKZ-6h3WgpRjx34vrC6THH-zpf8TTlTM7ddmq1mHr_o3JvAHzfZCjqAFs3YU3uIeVI-U_-XXXZCHusy-QW7cCmJOBSzztiUKzUpNu-UdSHStPVeobUQTv86mNBMtgAZEXyflTTs7YkC6I83N9AAIW-tXyt50VcmHBKRy3qjzC-SwgOphuOLfSNIz0sy7PSckztWsx07XNKck_M-ajSthnS7FE9TDJ5Q5WC3UPBq056CYZckqOPByCJKf3ktmiOGKBXof05Peq-Uts0A0K6V16y0vr5m_v2Honxt3F0wfEWApyqHjEHopOu3zjTN7r3SOrjJMDQgmDduZBrk_iLrX4ggu6I5P70s2HVyT5mpvJiULWamanYaYgQfDSVFLeM4X6ffihrgzlle55rzRazfdNjspU_VusZWik4DOpMjZ-iHA9oo_lEA',
9
'Content-Type': 'application/json'
10
}
11
12
response = requests.post(url, headers=headers, json=payload)
13
14
print(response.text)
15
Copied!
get
https://api-v2.acrcloud.com
/api/ucf-projects
List the ucf projects
T
1
curl --location --request GET 'http://127.0.0.1:8080/api/ucf-projects' \
2
--header 'Accept: application/json' \
3
--header 'Authorization: Bearer token'
Copied!
put
https://api-v2.acrcloud.com
/api/ucf-projects/:id
Update a ucf project
delete
/api/ucf-projects/:id
Delete a ucf project
Last modified 27d ago