すべてのリテンションポリシーのリストの取得
すべてのリテンションポリシーのリストの取得
会社内に作成されたすべてのリテンションポリシーのリストを取得するには、GET /retention_policies APIエンドポイントを 呼び出します。
cURL
curl -i -X GET "https://api.box.com/2.0/retention_policies" \
-H "authorization: Bearer <ACCESS_TOKEN>"Node/TypeScript v10
await client.retentionPolicies.getRetentionPolicies();Python v10
client.retention_policies.get_retention_policies().NET v10
await client.RetentionPolicies.GetRetentionPoliciesAsync();Swift v10
try await client.retentionPolicies.getRetentionPolicies()Java v10
client.getRetentionPolicies().getRetentionPolicies().NET v6
await client.RetentionPolicies.GetRetentionPoliciesAsync();Node v4
await client.retentionPolicies.getRetentionPolicies();必須のスコープ
リテンションポリシーAPIのいずれかを使用する前に、アプリケーションでは適切なスコープを有効にしておく必要があります。詳細については、必須のスコープを参照してください。