from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
inference_secret = client.cloud.inference.secrets.replace(
secret_name="aws-dev",
project_id=1,
data={
"aws_access_key_id": "fake-key-id",
"aws_secret_access_key": "fake-secret",
},
type="aws-iam",
)
print(inference_secret.data)
{
"data": {
"aws_access_key_id": "fake-key-id",
"aws_secret_access_key": "fake-secret"
},
"name": "aws-dev",
"type": "aws-iam"
}
from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
inference_secret = client.cloud.inference.secrets.replace(
secret_name="aws-dev",
project_id=1,
data={
"aws_access_key_id": "fake-key-id",
"aws_secret_access_key": "fake-secret",
},
type="aws-iam",
)
print(inference_secret.data)
{
"data": {
"aws_access_key_id": "fake-key-id",
"aws_secret_access_key": "fake-secret"
},
"name": "aws-dev",
"type": "aws-iam"
}
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 secret name.
4
"aws-dev"
OK
The response is of type object
.
Was this page helpful?