Cloudflare.AIGatewayDynamicRoute (Cloudflare v0.5.0)

Copy Markdown View Source

AI Gateway Dynamic Routes

Create a new AI Gateway Dynamic Route.

POST /accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes

Create a new AI Gateway Dynamic Route.

Responses

200 Success

Data is at body["result"]

{
  "account_tag": "*string*",
  "created_at": "*string*",
  "deployment": {
    "comment": "*string*",
    "created_at": "*string*",
    "deployment_id": "*string*",
    "version_id": "*string*"
  },
  "elements": [
    null
  ],
  "gateway_id": "*string*",
  "id": "*string*",
  "modified_at": "*string*",
  "name": "*string*",
  "version": {
    "active": "*string*",
    "comment": "*string*",
    "created_at": "*string*",
    "data": "*string*",
    "version_id": "*string*"
  }
}
400 Bad Request
{
  "errors": [
    {
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}

List all AI Gateway Dynamic Routes.

GET /accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes

List all AI Gateway Dynamic Routes.

Responses

200 Success

Data is at body["result"]

{
  "data": {
    "order_by": "*string*",
    "order_by_direction": "*string*",
    "page": "*number*",
    "per_page": "*number*",
    "routes": [
      {
        "account_tag": "*string*",
        "created_at": "*string*",
        "deployment": {
          "comment": "*string*",
          "created_at": "*string*",
          "deployment_id": "*string*",
          "version_id": "*string*"
        },
        "elements": [
          null
        ],
        "gateway_id": "*string*",
        "id": "*string*",
        "modified_at": "*string*",
        "name": "*string*",
        "version": {
          "active": "*string*",
          "comment": "*string*",
          "created_at": "*string*",
          "data": "*string*",
          "version_id": "*string*"
        }
      }
    ]
  },
  "success": "*boolean*"
}
400 Bad Request
{
  "errors": [
    {
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}

Update an AI Gateway Dynamic Route.

PATCH /accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}

Update an AI Gateway Dynamic Route.

Responses

200 Success

Data is at body["result"]

{
  "route": {
    "account_tag": "*string*",
    "created_at": "*string*",
    "deployment": {
      "comment": "*string*",
      "created_at": "*string*",
      "deployment_id": "*string*",
      "version_id": "*string*"
    },
    "elements": [
      null
    ],
    "gateway_id": "*string*",
    "id": "*string*",
    "modified_at": "*string*",
    "name": "*string*",
    "version": {
      "active": "*string*",
      "comment": "*string*",
      "created_at": "*string*",
      "data": "*string*",
      "version_id": "*string*"
    }
  },
  "success": "*boolean*"
}
400 Input Error
{
  "route": {
    "account_tag": "*string*",
    "created_at": "*string*",
    "elements": [
      null
    ],
    "gateway_id": "*string*",
    "id": "*string*",
    "modified_at": "*string*",
    "name": "*string*"
  },
  "success": "*boolean*"
}

Get an AI Gateway Dynamic Route.

GET /accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}

Get an AI Gateway Dynamic Route.

Responses

200 Success

Data is at body["result"]

{
  "account_tag": "*string*",
  "created_at": "*string*",
  "deployment": {
    "comment": "*string*",
    "created_at": "*string*",
    "deployment_id": "*string*",
    "version_id": "*string*"
  },
  "elements": [
    null
  ],
  "gateway_id": "*string*",
  "id": "*string*",
  "modified_at": "*string*",
  "name": "*string*",
  "version": {
    "active": "*string*",
    "comment": "*string*",
    "created_at": "*string*",
    "data": "*string*",
    "version_id": "*string*"
  }
}
400 Bad Request
{
  "errors": [
    {
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}

Delete an AI Gateway Dynamic Route.

DELETE /accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}

Delete an AI Gateway Dynamic Route.

Responses

200 Success

Data is at body["result"]

{
  "account_tag": "*string*",
  "created_at": "*string*",
  "elements": [
    null
  ],
  "gateway_id": "*string*",
  "id": "*string*",
  "modified_at": "*string*",
  "name": "*string*"
}
400 Bad Request
{
  "errors": [
    {
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}

Create a new AI Gateway Dynamic Route Deployment.

POST /accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}/deployments

Create a new AI Gateway Dynamic Route Deployment.

Responses

200 Success

Data is at body["result"]

{
  "account_tag": "*string*",
  "created_at": "*string*",
  "elements": [
    null
  ],
  "gateway_id": "*string*",
  "id": "*string*",
  "modified_at": "*string*",
  "name": "*string*"
}
400 Bad Request
{
  "errors": [
    {
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}

List all AI Gateway Dynamic Route Deployments.

GET /accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}/deployments

List all AI Gateway Dynamic Route Deployments.

Responses

200 Success

Data is at body["result"]

{
  "data": {
    "deployments": [
      {
        "comment": "*string*",
        "created_at": "*string*",
        "deployment_id": "*string*",
        "version_id": "*string*"
      }
    ],
    "order_by": "*string*",
    "order_by_direction": "*string*",
    "page": "*number*",
    "per_page": "*number*"
  },
  "success": "*boolean*"
}
400 Bad Request
{
  "errors": [
    {
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}

Create a new AI Gateway Dynamic Route Version.

POST /accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}/versions

Create a new AI Gateway Dynamic Route Version.

Responses

200 Success

Data is at body["result"]

{
  "account_tag": "*string*",
  "created_at": "*string*",
  "elements": [
    null
  ],
  "gateway_id": "*string*",
  "id": "*string*",
  "modified_at": "*string*",
  "name": "*string*"
}
400 Bad Request
{
  "errors": [
    {
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}

List all AI Gateway Dynamic Route Versions.

GET /accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}/versions

List all AI Gateway Dynamic Route Versions.

Responses

200 Success

Data is at body["result"]

{
  "data": {
    "order_by": "*string*",
    "order_by_direction": "*string*",
    "page": "*number*",
    "per_page": "*number*",
    "versions": [
      {
        "active": "*string*",
        "comment": "*string*",
        "created_at": "*string*",
        "data": "*string*",
        "version_id": "*string*"
      }
    ]
  },
  "success": "*boolean*"
}
400 Bad Request
{
  "errors": [
    {
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}

Get an AI Gateway Dynamic Route Version.

GET /accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}/versions/{version_id}

Get an AI Gateway Dynamic Route Version.

Responses

200 Success

Data is at body["result"]

{
  "account_tag": "*string*",
  "active": "*string*",
  "comment": "*string*",
  "created_at": "*string*",
  "data": "*string*",
  "elements": [
    null
  ],
  "gateway_id": "*string*",
  "id": "*string*",
  "modified_at": "*string*",
  "name": "*string*",
  "version_id": "*string*"
}
400 Bad Request
{
  "errors": [
    {
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}

Summary

Functions

client(opts \\ [])

create(body, opts \\ [])

@spec create(
  body :: Restlax.Resource.action_body(),
  opts :: Restlax.Resource.action_options()
) ::
  {:ok, map()} | {:error, term()}

create!(body, opts \\ [])

@spec create!(
  body :: Restlax.Resource.action_body(),
  opts :: Restlax.Resource.action_options()
) ::
  map() | no_return()

create_deployment(id, body \\ %{}, opts \\ [])

create_version(id, body \\ %{}, opts \\ [])

delete(id, opts \\ [])

@spec delete(id :: term(), opts :: Restlax.Resource.action_options()) ::
  {:ok, map()} | {:error, term()}

delete!(id, opts \\ [])

@spec delete!(id :: term(), opts :: Restlax.Resource.action_options()) ::
  map() | no_return()

index(opts \\ [])

@spec index(opts :: Restlax.Resource.action_options()) ::
  {:ok, map()} | {:error, term()}

index!(opts \\ [])

@spec index!(opts :: Restlax.Resource.action_options()) :: map() | no_return()

list_deployments(id, opts \\ [])

list_versions(id, opts \\ [])

path_for(id, opts \\ [])

@spec path_for(term(), [{:action, String.t()}]) :: String.t()

show(id, opts \\ [])

@spec show(id :: term(), opts :: Restlax.Resource.action_options()) ::
  {:ok, map()} | {:error, term()}

show!(id, opts \\ [])

@spec show!(id :: term(), opts :: Restlax.Resource.action_options()) ::
  map() | no_return()

show_version(id, version_id, opts \\ [])

update(id, body, opts \\ [])

@spec update(
  id :: term(),
  body :: Restlax.Resource.action_body(),
  opts :: Restlax.Resource.action_options()
) :: {:ok, map()} | {:error, term()}

update!(id, body, opts \\ [])

@spec update!(
  id :: term(),
  body :: Restlax.Resource.action_body(),
  opts :: Restlax.Resource.action_options()
) :: map() | no_return()