Skip to main content
GET
/
organizations
/
{organization}
/
databases
/
{database_name}
/
cidrs
/
{id}
Get an IP restriction entry
curl --request GET \
  --url https://api.planetscale.com/v1/organizations/{organization}/databases/{database_name}/cidrs/{id} \
  --header 'Authorization: <api-key>'
{
  "id": "<string>",
  "schema": "<string>",
  "role": "<string>",
  "cidrs": [
    "<string>"
  ],
  "created_at": "<string>",
  "updated_at": "<string>",
  "deleted_at": "<string>",
  "actor": {
    "id": "<string>",
    "display_name": "<string>",
    "avatar_url": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Path Parameters

organization
string
required

The name of the organization the database belongs to

database_name
string
required

The name of the database

id
string
required

The ID of the IP restriction entry

Response

Returns an IP restriction entry

id
string
required

The ID of the IP allowlist entry

schema
string
required

The schema name to restrict access to (optional)

role
string
required

The role to restrict access to (optional)

cidrs
string[]
required

List of CIDR ranges

created_at
string
required

When the entry was created

updated_at
string
required

When the entry was updated

deleted_at
string
required

When the entry was deleted

actor
object
required