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

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
page = client.cloud.inference.secrets.list(
    project_id=1,
)
page = page.results[0]
print(page.data)
{
  "count": 1,
  "results": [
    {
      "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

Query Parameters

limit
integer
default:1000

Optional. Limit the number of returned items

Required range: 0 < x <= 1000
Examples:

1000

offset
integer
default:0

Optional. Offset value is used to exclude the first set of records from the result

Required range: x >= 0
Examples:

0

Response

200 - application/json

OK

The response is of type object.