curl --request PATCH \
--url https://api.coreweave.com/v1beta1/telemetryrelay/endpoints/{ref.slug} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ref": {
"slug": "audit-https"
},
"spec": {
"displayName": "HTTPS audit logs",
"https": {
"endpoint": "https://receiver.example.com/logs",
"compression": "COMPRESSION_TYPE_NONE"
}
},
"credentialAction": "CREDENTIAL_ACTION_PRESERVE"
}
'import requests
url = "https://api.coreweave.com/v1beta1/telemetryrelay/endpoints/{ref.slug}"
payload = {
"ref": { "slug": "audit-https" },
"spec": {
"displayName": "HTTPS audit logs",
"https": {
"endpoint": "https://receiver.example.com/logs",
"compression": "COMPRESSION_TYPE_NONE"
}
},
"credentialAction": "CREDENTIAL_ACTION_PRESERVE"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ref: {slug: 'audit-https'},
spec: {
displayName: 'HTTPS audit logs',
https: {
endpoint: 'https://receiver.example.com/logs',
compression: 'COMPRESSION_TYPE_NONE'
}
},
credentialAction: 'CREDENTIAL_ACTION_PRESERVE'
})
};
fetch('https://api.coreweave.com/v1beta1/telemetryrelay/endpoints/{ref.slug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.coreweave.com/v1beta1/telemetryrelay/endpoints/{ref.slug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'ref' => [
'slug' => 'audit-https'
],
'spec' => [
'displayName' => 'HTTPS audit logs',
'https' => [
'endpoint' => 'https://receiver.example.com/logs',
'compression' => 'COMPRESSION_TYPE_NONE'
]
],
'credentialAction' => 'CREDENTIAL_ACTION_PRESERVE'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.coreweave.com/v1beta1/telemetryrelay/endpoints/{ref.slug}"
payload := strings.NewReader("{\n \"ref\": {\n \"slug\": \"audit-https\"\n },\n \"spec\": {\n \"displayName\": \"HTTPS audit logs\",\n \"https\": {\n \"endpoint\": \"https://receiver.example.com/logs\",\n \"compression\": \"COMPRESSION_TYPE_NONE\"\n }\n },\n \"credentialAction\": \"CREDENTIAL_ACTION_PRESERVE\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.coreweave.com/v1beta1/telemetryrelay/endpoints/{ref.slug}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ref\": {\n \"slug\": \"audit-https\"\n },\n \"spec\": {\n \"displayName\": \"HTTPS audit logs\",\n \"https\": {\n \"endpoint\": \"https://receiver.example.com/logs\",\n \"compression\": \"COMPRESSION_TYPE_NONE\"\n }\n },\n \"credentialAction\": \"CREDENTIAL_ACTION_PRESERVE\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coreweave.com/v1beta1/telemetryrelay/endpoints/{ref.slug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ref\": {\n \"slug\": \"audit-https\"\n },\n \"spec\": {\n \"displayName\": \"HTTPS audit logs\",\n \"https\": {\n \"endpoint\": \"https://receiver.example.com/logs\",\n \"compression\": \"COMPRESSION_TYPE_NONE\"\n }\n },\n \"credentialAction\": \"CREDENTIAL_ACTION_PRESERVE\"\n}"
response = http.request(request)
puts response.read_body{
"endpoint": {
"ref": {
"slug": "<string>"
},
"spec": {
"displayName": "<string>",
"s3": {
"uri": "<string>",
"region": "<string>"
},
"https": {
"endpoint": "<string>",
"tls": {
"certificateAuthorityData": "<string>"
},
"compression": "COMPRESSION_TYPE_UNSPECIFIED"
}
},
"status": {
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"state": "FORWARDING_ENDPOINT_STATE_UNSPECIFIED",
"stateMessage": "<string>",
"zonesActive": [
{
"zoneSlug": "<string>",
"clusters": [
{
"id": "<string>"
}
]
}
],
"credentialsConfigured": true,
"credentialsUpdatedAt": "2023-11-07T05:31:56Z"
}
}
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Update forwarding endpoint
Updates a forwarding endpoint identified by ref.slug. The request body must include the full spec. The endpoint’s protocol type cannot change after creation. Use credentialAction to preserve, replace, or clear stored credentials. You can’t clear credentials for AWS S3 destinations.
curl --request PATCH \
--url https://api.coreweave.com/v1beta1/telemetryrelay/endpoints/{ref.slug} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ref": {
"slug": "audit-https"
},
"spec": {
"displayName": "HTTPS audit logs",
"https": {
"endpoint": "https://receiver.example.com/logs",
"compression": "COMPRESSION_TYPE_NONE"
}
},
"credentialAction": "CREDENTIAL_ACTION_PRESERVE"
}
'import requests
url = "https://api.coreweave.com/v1beta1/telemetryrelay/endpoints/{ref.slug}"
payload = {
"ref": { "slug": "audit-https" },
"spec": {
"displayName": "HTTPS audit logs",
"https": {
"endpoint": "https://receiver.example.com/logs",
"compression": "COMPRESSION_TYPE_NONE"
}
},
"credentialAction": "CREDENTIAL_ACTION_PRESERVE"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ref: {slug: 'audit-https'},
spec: {
displayName: 'HTTPS audit logs',
https: {
endpoint: 'https://receiver.example.com/logs',
compression: 'COMPRESSION_TYPE_NONE'
}
},
credentialAction: 'CREDENTIAL_ACTION_PRESERVE'
})
};
fetch('https://api.coreweave.com/v1beta1/telemetryrelay/endpoints/{ref.slug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.coreweave.com/v1beta1/telemetryrelay/endpoints/{ref.slug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'ref' => [
'slug' => 'audit-https'
],
'spec' => [
'displayName' => 'HTTPS audit logs',
'https' => [
'endpoint' => 'https://receiver.example.com/logs',
'compression' => 'COMPRESSION_TYPE_NONE'
]
],
'credentialAction' => 'CREDENTIAL_ACTION_PRESERVE'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.coreweave.com/v1beta1/telemetryrelay/endpoints/{ref.slug}"
payload := strings.NewReader("{\n \"ref\": {\n \"slug\": \"audit-https\"\n },\n \"spec\": {\n \"displayName\": \"HTTPS audit logs\",\n \"https\": {\n \"endpoint\": \"https://receiver.example.com/logs\",\n \"compression\": \"COMPRESSION_TYPE_NONE\"\n }\n },\n \"credentialAction\": \"CREDENTIAL_ACTION_PRESERVE\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.coreweave.com/v1beta1/telemetryrelay/endpoints/{ref.slug}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ref\": {\n \"slug\": \"audit-https\"\n },\n \"spec\": {\n \"displayName\": \"HTTPS audit logs\",\n \"https\": {\n \"endpoint\": \"https://receiver.example.com/logs\",\n \"compression\": \"COMPRESSION_TYPE_NONE\"\n }\n },\n \"credentialAction\": \"CREDENTIAL_ACTION_PRESERVE\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coreweave.com/v1beta1/telemetryrelay/endpoints/{ref.slug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ref\": {\n \"slug\": \"audit-https\"\n },\n \"spec\": {\n \"displayName\": \"HTTPS audit logs\",\n \"https\": {\n \"endpoint\": \"https://receiver.example.com/logs\",\n \"compression\": \"COMPRESSION_TYPE_NONE\"\n }\n },\n \"credentialAction\": \"CREDENTIAL_ACTION_PRESERVE\"\n}"
response = http.request(request)
puts response.read_body{
"endpoint": {
"ref": {
"slug": "<string>"
},
"spec": {
"displayName": "<string>",
"s3": {
"uri": "<string>",
"region": "<string>"
},
"https": {
"endpoint": "<string>",
"tls": {
"certificateAuthorityData": "<string>"
},
"compression": "COMPRESSION_TYPE_UNSPECIFIED"
}
},
"status": {
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"state": "FORWARDING_ENDPOINT_STATE_UNSPECIFIED",
"stateMessage": "<string>",
"zonesActive": [
{
"zoneSlug": "<string>",
"clusters": [
{
"id": "<string>"
}
]
}
],
"credentialsConfigured": true,
"credentialsUpdatedAt": "2023-11-07T05:31:56Z"
}
}
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}承認
CoreWeave API access token sent as a bearer token.
パスパラメータ
ボディ
ForwardingEndpointRef uniquely identifies a forwarding endpoint within an organization.
Endpoints are referenced by a human-readable slug that must be unique per organization.
Show child attributes
Show child attributes
Configuration for a forwarding endpoint. Includes a human-readable displayName and exactly one protocol-specific config. The protocol type is fixed at creation time and cannot be changed afterward.
- Option 1
- Option 2
Show child attributes
Show child attributes
Controls how the endpoint's stored credentials are handled during the update. CREDENTIAL_ACTION_PRESERVE keeps the existing credentials unchanged. CREDENTIAL_ACTION_REPLACE replaces them with the credentials supplied in this request. Credentials must be provided when this action is used. CREDENTIAL_ACTION_CLEAR removes the stored credentials, but it isn't supported for AWS S3 destinations. The underlying enum also declares CREDENTIAL_ACTION_UNSPECIFIED (its zero value); omit the field rather than sending it.
CREDENTIAL_ACTION_PRESERVE, CREDENTIAL_ACTION_REPLACE, CREDENTIAL_ACTION_CLEAR s3 credentials for AWS S3 destinations.
Show child attributes
Show child attributes
https credentials for HTTPS endpoints, using basic auth or request headers.
Show child attributes
Show child attributes
レスポンス
OK
ForwardingEndpoint represents a destination where telemetry data can be forwarded. Endpoints are organization-scoped and identified by a unique slug. Endpoints forward to HTTPS endpoints or AWS S3 destinations.
Show child attributes
Show child attributes
このページは役に立ちましたか?