GET
/
cloud
/
v3
/
inference
/
{project_id}
/
secrets
/
{secret_name}
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
inference_secret = client.cloud.inference.secrets.get(
    secret_name="aws-dev",
    project_id=1,
)
print(inference_secret.data)
{
  "data": {
    "aws_access_key_id": "fake-key-id",
    "aws_secret_access_key": "fake-secret"
  },
  "name": "aws-dev",
  "type": "aws-iam"
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

project_id
integer
required

Project ID

Examples:

1

secret_name
string
required

Inference secret name.

Minimum length: 4
Examples:

"aws-dev"

Response

200 - application/json

OK

The response is of type object.