Auth0-PHP

LogStreamsInterface
in

Interface LogStreamsInterface.

Table of Contents

create()  : ResponseInterface
Create a new Log Stream.
delete()  : ResponseInterface
Deletes a Log Stream.
get()  : ResponseInterface
Get a single Log Stream.
getAll()  : ResponseInterface
Get all Log Streams.
update()  : ResponseInterface
Updates an existing Log Stream.

Methods

create()

Create a new Log Stream.

public create(string $type, array<string|int, string> $sink[, string|null $name = null ][, RequestOptions|null $options = null ]) : ResponseInterface

Required scope: create:log_streams.

Parameters
$type : string

the type of log stream being created

$sink : array<string|int, string>

the type of log stream determines the properties required in the sink payload; see the linked documentation

$name : string|null = null

Optional. The name of the log stream.

$options : RequestOptions|null = null

Optional. Additional request options to use, such as a field filtering or pagination. (Not all endpoints support these. See @see for supported options.)

Tags
throws
ArgumentException

when an invalid type or sink are provided

throws
NetworkException

when the API request fails due to a network error

see
https://auth0.com/docs/api/management/v2#!/Log_Streams/post_log_streams
Return values
ResponseInterface

delete()

Deletes a Log Stream.

public delete(string $id[, RequestOptions|null $options = null ]) : ResponseInterface

Required scope: delete:log_streams.

Parameters
$id : string

ID of the Log Stream to delete

$options : RequestOptions|null = null

Optional. Additional request options to use, such as a field filtering or pagination. (Not all endpoints support these. See @see for supported options.)

Tags
throws
ArgumentException

when an invalid id is provided

throws
NetworkException

when the API request fails due to a network error

see
https://auth0.com/docs/api/management/v2#!/Log_Streams/delete_log_streams_by_id
Return values
ResponseInterface

get()

Get a single Log Stream.

public get(string $id[, RequestOptions|null $options = null ]) : ResponseInterface

Required scope: read:log_streams.

Parameters
$id : string

log Stream ID to query

$options : RequestOptions|null = null

Optional. Additional request options to use, such as a field filtering or pagination. (Not all endpoints support these. See @see for supported options.)

Tags
throws
ArgumentException

when an invalid id is provided

throws
NetworkException

when the API request fails due to a network error

see
https://auth0.com/docs/api/management/v2#!/Log_Streams/get_log_streams_by_id
Return values
ResponseInterface

getAll()

Get all Log Streams.

public getAll([RequestOptions|null $options = null ]) : ResponseInterface

Required scope: read:log_streams.

Parameters
$options : RequestOptions|null = null

Optional. Additional request options to use, such as a field filtering or pagination. (Not all endpoints support these. See @see for supported options.)

Tags
throws
NetworkException

when the API request fails due to a network error

see
https://auth0.com/docs/api/management/v2#!/Log_Streams/get_log_streams
Return values
ResponseInterface

update()

Updates an existing Log Stream.

public update(string $id, array<string|int, mixed> $body[, RequestOptions|null $options = null ]) : ResponseInterface

Required scope: update:log_streams.

Parameters
$id : string

ID of the Log Stream to update

$body : array<string|int, mixed>

Log Stream data to update. Only certain fields are update-able; see the linked documentation.

$options : RequestOptions|null = null

Optional. Additional request options to use, such as a field filtering or pagination. (Not all endpoints support these. See @see for supported options.)

Tags
throws
ArgumentException

when an invalid id is provided

throws
NetworkException

when the API request fails due to a network error

see
https://auth0.com/docs/api/management/v2#!/Log_Streams/patch_log_streams_by_id
Return values
ResponseInterface

Search results