from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
inference_deployment_api_key = client.cloud.inference.deployments.get_api_key(
deployment_name="my-instance",
project_id=1,
)
print(inference_deployment_api_key.secret)
{
"secret": "my-secret",
"status": "READY"
}
from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
inference_deployment_api_key = client.cloud.inference.deployments.get_api_key(
deployment_name="my-instance",
project_id=1,
)
print(inference_deployment_api_key.secret)
{
"secret": "my-secret",
"status": "READY"
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
Project ID
1
Inference instance name.
"my-instance"
OK
The response is of type object
.
Was this page helpful?