from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
app = client.fastedge.apps.get(
0,
)
print(app.plan_id)
{
"name": "<string>",
"url": "<string>",
"binary": 123,
"template": 123,
"template_name": "<string>",
"status": 123,
"plan_id": 123,
"plan": "<string>",
"env": {
"var1": "value1",
"var2": "value2"
},
"rsp_headers": {
"header1": "value1",
"header2": "value2"
},
"log": "kafka",
"debug_until": "2023-11-07T05:31:56Z",
"comment": "<string>",
"api_type": "<string>",
"networks": [
"<string>"
],
"secrets": {},
"stores": {
"country_allow": 1,
"ip_block": 2
}
}
from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
app = client.fastedge.apps.get(
0,
)
print(app.plan_id)
{
"name": "<string>",
"url": "<string>",
"binary": 123,
"template": 123,
"template_name": "<string>",
"status": 123,
"plan_id": 123,
"plan": "<string>",
"env": {
"var1": "value1",
"var2": "value2"
},
"rsp_headers": {
"header1": "value1",
"header2": "value2"
},
"log": "kafka",
"debug_until": "2023-11-07T05:31:56Z",
"comment": "<string>",
"api_type": "<string>",
"networks": [
"<string>"
],
"secrets": {},
"stores": {
"country_allow": 1,
"ip_block": 2
}
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
ID of the app
Ok
The response is of type object
.
Was this page helpful?