검토 케이스 목록 조회
GET/v1/compliance/review/cases
API 키가 접근할 수 있는 모든 조직의 검토 케이스를 나열하며, 기본적으로 최신순으로 정렬됩니다. status가 설정되지 않으면 열린 케이스와 종결된 케이스가 모두 반환됩니다.
동기화하려면 읽은 가장 큰 updated_at 값을 저장하고, 이를 updated_at에 대한 이상(at-or-after) 필터로 보내면서 updated_at 오름차순으로 정렬하세요. 이렇게 하면 새 케이스, 새로 종결된 케이스, 새 통지가 있는 케이스를 찾을 수 있습니다. 모든 페이지를 읽고, id로 결과를 대조한 다음, 마지막 페이지 이후에 새로운 최댓값을 저장하세요.
anthropic-user-profile-id 헤더가 있고 user_profile_id 매개변수가 없는 요청은 400 오류를 반환합니다.
read:compliance_review_cases 범위를 가진 Admin API 키로 이 엔드포인트를 호출할 수 있습니다.
Parameters
Returns
검토 케이스 목록 조회
package main
import (
"context"
"fmt"
"github.com/anthropics/anthropic-sdk-go/v2"
"github.com/anthropics/anthropic-sdk-go/v2/option"
)
func main() {
client := anthropic.NewClient(
option.WithAPIKey("my-anthropic-api-key"),
)
page, err := client.Beta.Compliance.Review.Cases.List(context.TODO(), anthropic.BetaComplianceReviewCaseListParams{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
}Response 200
{
"data": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"enforcement_action": {
"type": "type"
},
"organization_id": "organization_id",
"policy_categories": [
"cyber"
],
"status": {
"type": "open"
},
"transcripts": [
{
"item_id": "item_id",
"user_profile_id": "user_profile_id"
}
],
"type": "compliance_review_case",
"updated_at": "2019-12-27T18:11:19.117Z",
"workspace_id": "workspace_id"
}
],
"next_page": "next_page"
}Returns Examples
Response 200
{
"data": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"enforcement_action": {
"type": "type"
},
"organization_id": "organization_id",
"policy_categories": [
"cyber"
],
"status": {
"type": "open"
},
"transcripts": [
{
"item_id": "item_id",
"user_profile_id": "user_profile_id"
}
],
"type": "compliance_review_case",
"updated_at": "2019-12-27T18:11:19.117Z",
"workspace_id": "workspace_id"
}
],
"next_page": "next_page"
}