Cloudflare.ZeroTrustGatewayPacFile (Cloudflare v0.5.0)

Copy Markdown View Source

Zero Trust Gateway PAC files

Create a PAC file

POST /accounts/{account_id}/gateway/pacfiles

Create a new Zero Trust Gateway PAC file.

Responses

200 Returns a created PAC file response.

Data is at body["result"]

{
  "contents": "*string*",
  "created_at": "*string*",
  "description": "*string*",
  "id": "*string*",
  "name": "*string*",
  "slug": "*string*",
  "updated_at": "*string*",
  "url": "*string*"
}
4XX Returns a created PAC file response failure.
{
  "errors": {},
  "messages": {},
  "result": {},
  "success": "*boolean*"
}

List PAC files

GET /accounts/{account_id}/gateway/pacfiles

List all Zero Trust Gateway PAC files for an account.

Responses

200 Returns a list of PAC files response.

Data is at body["result"]

[
  {
    "created_at": "*string*",
    "description": "*string*",
    "id": "*string*",
    "name": "*string*",
    "slug": "*string*",
    "updated_at": "*string*",
    "url": "*string*"
  }
]
4XX Returns a list of PAC files response failure.
{
  "errors": {},
  "messages": {},
  "result": {},
  "result_info": {
    "count": "*number*",
    "page": "*number*",
    "per_page": "*number*",
    "total_count": "*number*"
  },
  "success": "*boolean*"
}

Update a Zero Trust Gateway PAC file

PUT /accounts/{account_id}/gateway/pacfiles/{pacfile_id}

Update a configured Zero Trust Gateway PAC file.

Responses

200 Update a Zero Trust Gateway PAC file response.

Data is at body["result"]

{
  "contents": "*string*",
  "created_at": "*string*",
  "description": "*string*",
  "id": "*string*",
  "name": "*string*",
  "slug": "*string*",
  "updated_at": "*string*",
  "url": "*string*"
}
4XX Update a Zero Trust Gateway PAC file response failure.
{
  "errors": {},
  "messages": {},
  "result": {},
  "success": "*boolean*"
}

Get a PAC file

GET /accounts/{account_id}/gateway/pacfiles/{pacfile_id}

Get a single Zero Trust Gateway PAC file.

Responses

200 Returns a PAC file response.

Data is at body["result"]

{
  "contents": "*string*",
  "created_at": "*string*",
  "description": "*string*",
  "id": "*string*",
  "name": "*string*",
  "slug": "*string*",
  "updated_at": "*string*",
  "url": "*string*"
}
4XX Returns a PAC file response failure.
{
  "errors": {},
  "messages": {},
  "result": {},
  "success": "*boolean*"
}

Delete a PAC file

DELETE /accounts/{account_id}/gateway/pacfiles/{pacfile_id}

Delete a configured Zero Trust Gateway PAC file.

Responses

200 Returns a deleted PAC file response.

Data is at body["result"]

{}
4XX Returns a deleted PAC file response failure.
{
  "errors": {},
  "messages": {},
  "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()

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()

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()

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()