cURL
curl --request PATCH \
--url https://us.infisical.com/api/v1/agent-vault/settings/session-logs \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"appConnectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bucket": "<string>",
"keyPrefix": "<string>"
}
'import requests
url = "https://us.infisical.com/api/v1/agent-vault/settings/session-logs"
payload = {
"enabled": True,
"appConnectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bucket": "<string>",
"keyPrefix": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
enabled: true,
appConnectionId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
bucket: '<string>',
keyPrefix: '<string>'
})
};
fetch('https://us.infisical.com/api/v1/agent-vault/settings/session-logs', 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://us.infisical.com/api/v1/agent-vault/settings/session-logs",
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([
'enabled' => true,
'appConnectionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'bucket' => '<string>',
'keyPrefix' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://us.infisical.com/api/v1/agent-vault/settings/session-logs"
payload := strings.NewReader("{\n \"enabled\": true,\n \"appConnectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"bucket\": \"<string>\",\n \"keyPrefix\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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://us.infisical.com/api/v1/agent-vault/settings/session-logs")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"appConnectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"bucket\": \"<string>\",\n \"keyPrefix\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://us.infisical.com/api/v1/agent-vault/settings/session-logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"appConnectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"bucket\": \"<string>\",\n \"keyPrefix\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"settings": {
"enabled": true,
"appConnectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bucket": "<string>",
"region": "<string>",
"keyPrefix": "<string>"
}
}{
"reqId": "<string>",
"statusCode": 400,
"message": "<string>",
"error": "<string>",
"details": "<unknown>"
}{
"reqId": "<string>",
"statusCode": 401,
"message": "<string>",
"error": "<string>"
}{
"reqId": "<string>",
"statusCode": 403,
"message": "<string>",
"error": "<string>",
"details": "<unknown>"
}{
"reqId": "<string>",
"statusCode": 404,
"message": "<string>",
"error": "<string>"
}{
"reqId": "<string>",
"statusCode": 422,
"error": "<string>",
"message": "<unknown>"
}{
"reqId": "<string>",
"statusCode": 500,
"message": "<string>",
"error": "<string>"
}Update session log settings
Updates the session log settings
PATCH
/
api
/
v1
/
agent-vault
/
settings
/
session-logs
cURL
curl --request PATCH \
--url https://us.infisical.com/api/v1/agent-vault/settings/session-logs \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"appConnectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bucket": "<string>",
"keyPrefix": "<string>"
}
'import requests
url = "https://us.infisical.com/api/v1/agent-vault/settings/session-logs"
payload = {
"enabled": True,
"appConnectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bucket": "<string>",
"keyPrefix": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
enabled: true,
appConnectionId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
bucket: '<string>',
keyPrefix: '<string>'
})
};
fetch('https://us.infisical.com/api/v1/agent-vault/settings/session-logs', 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://us.infisical.com/api/v1/agent-vault/settings/session-logs",
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([
'enabled' => true,
'appConnectionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'bucket' => '<string>',
'keyPrefix' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://us.infisical.com/api/v1/agent-vault/settings/session-logs"
payload := strings.NewReader("{\n \"enabled\": true,\n \"appConnectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"bucket\": \"<string>\",\n \"keyPrefix\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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://us.infisical.com/api/v1/agent-vault/settings/session-logs")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"appConnectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"bucket\": \"<string>\",\n \"keyPrefix\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://us.infisical.com/api/v1/agent-vault/settings/session-logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"appConnectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"bucket\": \"<string>\",\n \"keyPrefix\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"settings": {
"enabled": true,
"appConnectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bucket": "<string>",
"region": "<string>",
"keyPrefix": "<string>"
}
}{
"reqId": "<string>",
"statusCode": 400,
"message": "<string>",
"error": "<string>",
"details": "<unknown>"
}{
"reqId": "<string>",
"statusCode": 401,
"message": "<string>",
"error": "<string>"
}{
"reqId": "<string>",
"statusCode": 403,
"message": "<string>",
"error": "<string>",
"details": "<unknown>"
}{
"reqId": "<string>",
"statusCode": 404,
"message": "<string>",
"error": "<string>"
}{
"reqId": "<string>",
"statusCode": 422,
"error": "<string>",
"message": "<unknown>"
}{
"reqId": "<string>",
"statusCode": 500,
"message": "<string>",
"error": "<string>"
}Body
application/json
Whether session logs are on. Turning them off stops recording but keeps what's already recorded.
The ID of the AWS connection Infisical uses to write to and read from the bucket.
The name of the S3 bucket. 3 to 63 characters: lowercase letters, numbers, dots and hyphens, starting and ending with a letter or number.
Maximum string length:
63Pattern:
^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$The AWS region of the bucket.
Available options:
us-east-1, us-east-2, us-west-1, us-west-2, us-gov-east-1, us-gov-west-1, af-south-1, ap-east-1, ap-south-1, ap-south-2, ap-northeast-1, ap-northeast-2, ap-northeast-3, ap-southeast-1, ap-southeast-2, ap-southeast-3, ap-southeast-4, ca-central-1, eu-central-1, eu-central-2, eu-west-1, eu-west-2, eu-west-3, eu-south-1, eu-south-2, eu-north-1, me-south-1, me-central-1, sa-east-1 The folder in the bucket to store session logs in, such as logs/agent-vault. Up to 512 characters: letters, numbers and ! - _ . ' ( ) /, with no slash at the start or end, no empty folder name, and no folder named . or ...
Maximum string length:
512Pattern:
^[A-Za-z0-9!\-_.'()/]*$Response
Default Response
Show child attributes
Show child attributes
Was this page helpful?