using Auth0.ManagementApi;
using System.Threading.Tasks;
public partial class Examples
{
public async Task Example() {
var client = new ManagementApiClient(
token: "<token>",
clientOptions: new ClientOptions { BaseUrl = "https://{YOUR_DOMAIN}/api/v2" }
);
await client.LogStreams.UpdateAsync(
id: "id",
request: new UpdateLogStreamRequestContent()
);
}
}package example
import (
context "context"
management "github.com/auth0/go-auth0/v3/management"
client "github.com/auth0/go-auth0/v3/management/client"
option "github.com/auth0/go-auth0/v3/management/option"
)
func do() {
mgmt, err := client.New(
"{YOUR_DOMAIN}",
option.WithToken(
"<token>",
),
)
if err != nil {
return
}
request := &management.UpdateLogStreamRequestContent{}
mgmt.LogStreams.Update(
context.TODO(),
"id",
request,
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.types.UpdateLogStreamRequestContent;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.logStreams().update(
"id",
UpdateLogStreamRequestContent
.builder()
.build()
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\LogStreams\Requests\UpdateLogStreamRequestContent;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->logStreams->update(
'id',
new UpdateLogStreamRequestContent([]),
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.log_streams.update(
id="id",
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.log_streams.update(id: "id")
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.logStreams.update("id", {});
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.logStreams.update("id", {});
}
main();
curl --request PATCH \
--url https://{tenantDomain}/api/v2/log-streams/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filters": [
{
"type": "category"
}
],
"isPriority": true,
"name": "<string>",
"sink": {
"httpEndpoint": "<string>",
"httpAuthorization": "<string>",
"httpContentType": "<string>",
"httpCustomHeaders": [
{
"header": "<string>",
"value": "<string>"
}
]
}
}
'{
"filters": [
{
"name": "auth.login.fail",
"type": "category"
}
],
"id": "<string>",
"isPriority": true,
"name": "<string>",
"pii_config": {
"log_fields": [
"first_name"
],
"algorithm": "xxhash",
"method": "mask"
},
"sink": {
"httpEndpoint": "<string>",
"httpAuthorization": "<string>",
"httpContentFormat": "JSONARRAY",
"httpContentType": "<string>",
"httpCustomHeaders": [
{
"header": "<string>",
"value": "<string>"
}
]
},
"status": "active",
"type": "http"
}ログストリームを更新する
ログストリームを更新します。
PATCH エンドポイントの使用例
PATCH 操作では、次のフィールドを更新できます。
- name
- status
- sink
注: eventbridge および eventgrid タイプのログストリームでは、sink は更新できません。
ログストリームの status を更新する
{
"status": "active|paused"
}
ログストリームの name を更新する
{
"name": "string"
}
http タイプの stream の sink プロパティを更新する
{
"sink": {
"httpEndpoint": "string",
"httpContentType": "string",
"httpContentFormat": "JSONARRAY|JSONLINES",
"httpAuthorization": "string"
}
}
datadog タイプの stream の sink プロパティを更新する
{
"sink": {
"datadogRegion": "string",
"datadogApiKey": "string"
}
}
splunk タイプの stream の sink プロパティを更新する
{
"sink": {
"splunkDomain": "string",
"splunkToken": "string",
"splunkPort": "string",
"splunkSecure": "boolean"
}
}
sumo タイプの stream の sink プロパティを更新する
{
"sink": {
"sumoSourceAddress": "string"
}
}
using Auth0.ManagementApi;
using System.Threading.Tasks;
public partial class Examples
{
public async Task Example() {
var client = new ManagementApiClient(
token: "<token>",
clientOptions: new ClientOptions { BaseUrl = "https://{YOUR_DOMAIN}/api/v2" }
);
await client.LogStreams.UpdateAsync(
id: "id",
request: new UpdateLogStreamRequestContent()
);
}
}package example
import (
context "context"
management "github.com/auth0/go-auth0/v3/management"
client "github.com/auth0/go-auth0/v3/management/client"
option "github.com/auth0/go-auth0/v3/management/option"
)
func do() {
mgmt, err := client.New(
"{YOUR_DOMAIN}",
option.WithToken(
"<token>",
),
)
if err != nil {
return
}
request := &management.UpdateLogStreamRequestContent{}
mgmt.LogStreams.Update(
context.TODO(),
"id",
request,
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.types.UpdateLogStreamRequestContent;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.logStreams().update(
"id",
UpdateLogStreamRequestContent
.builder()
.build()
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\LogStreams\Requests\UpdateLogStreamRequestContent;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->logStreams->update(
'id',
new UpdateLogStreamRequestContent([]),
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.log_streams.update(
id="id",
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.log_streams.update(id: "id")
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.logStreams.update("id", {});
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.logStreams.update("id", {});
}
main();
curl --request PATCH \
--url https://{tenantDomain}/api/v2/log-streams/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filters": [
{
"type": "category"
}
],
"isPriority": true,
"name": "<string>",
"sink": {
"httpEndpoint": "<string>",
"httpAuthorization": "<string>",
"httpContentType": "<string>",
"httpCustomHeaders": [
{
"header": "<string>",
"value": "<string>"
}
]
}
}
'{
"filters": [
{
"name": "auth.login.fail",
"type": "category"
}
],
"id": "<string>",
"isPriority": true,
"name": "<string>",
"pii_config": {
"log_fields": [
"first_name"
],
"algorithm": "xxhash",
"method": "mask"
},
"sink": {
"httpEndpoint": "<string>",
"httpAuthorization": "<string>",
"httpContentFormat": "JSONARRAY",
"httpContentType": "<string>",
"httpCustomHeaders": [
{
"header": "<string>",
"value": "<string>"
}
]
},
"status": "active",
"type": "http"
}承認
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
パスパラメータ
取得するログストリームの id
ボディ
これらのフィルターに一致するログイベントのみがストリームによって配信されます。省略されている場合、または空の場合は、すべてのイベントが配信されます。
Show child attributes
Show child attributes
優先ログストリームの場合は true、そうでない場合は false
ログストリーム名
Show child attributes
Show child attributes
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
Show child attributes
Show child attributes
ログストリームのステータス。指定可能な値: active、paused、suspended
active, paused, suspended レスポンス
ログストリームが更新されました
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
これらのフィルターに一致するログイベントのみがストリームによって配信されます。省略されているか空の場合は、すべてのイベントが配信されます。
Show child attributes
Show child attributes
ログストリームの ID
優先ログストリームの場合は true、非優先の場合は false
ログストリーム名
Show child attributes
Show child attributes
Show child attributes
Show child attributes
ログストリームのステータス。指定可能な値: active、paused、suspended
active, paused, suspended http