会社のすべてのリテンションポリシーを取得します。
21312321
ポリシーを作成したユーザーのIDのみに結果を絞り込みます。
Sales Policy
指定したプレフィックスを持つリテンションポリシー名のみに結果を絞り込みます。このフィルタでは大文字と小文字が区別されます。
finite
指定したタイプのリテンションポリシーのみに結果を絞り込みます。
次の値のいずれか1つ: finite
,indefinite
会社のリテンションポリシーのリストを返します。
存在しないpolicy_type
が指定された場合は、bad_request
を返します。
created_by_user_id
で指定されたユーザーが存在しない場合は、not_found
エラーを返します。
予期しないクライアントエラー。
curl -X GET https://api.box.com/2.0/retention_policies \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
BoxCollectionMarkerBased<BoxRetentionPolicy> policies = await client.RetentionPoliciesManager
.GetRetentionPoliciesAsync();
Iterable<BoxRetentionPolicy.Info> policies = BoxRetentionPolicy.getAll(api);
for (BoxRetentionPolicy.Info policyInfo : policies) {
// Do something with the retention policy.
}
retention_policies = client.get_retention_policies()
for policy in retention_policies:
print('The policy ID is {0} and the name is {1}'.format(policy.id, policy.policy_name))
client.retentionPolicies.getAll({ policy_name: 'Tax' })
.then(policies => {
/* policies -> {
entries:
[ { type: 'retention_policy',
id: '123456789',
name: 'Tax Documents' } ],
limit: 100,
next_marker: 'someMarkerString' }
*/
});