This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

ListPoliciesForTarget

1 - 1.2

scpcli organization target policy list
--target_id <value>
[--organization_id <value>]
[--size <value>]
[--page <value>]
[--sort <value>]
[--policy_category <value>]
[--name <value>]

Description

list policies for target

State ACTIVE (CURRENT)

VersionNot Before
1.2-

Parameters

NameTypeDescriptionExample
target_id
required
stringTarget IDou-1a2b3c4d5e6f7g8h9i0j1k2l3m4n5
organization_id
optional
stringOrganization IDo-x9y8z7w6v5u4t3s2r1q0p9o8n7m6l5
size
optional
integersize20
page
optional
integerpage0
sort
optional
stringsortcreated_at:desc
policy_category
optional
****Policy CategorySCP
name
optional
stringControl Policy Nametest-policy-name

Responses

NameDescriptionExample
idID0a36e0746dbf4908acf0357829701381
created_atCreated At2025-01-01T00:00:00.000Z
created_byCreated Byc23fb561c689455993874fa5d5ed4a2f
link_typesLink Type{‘DIRECTED’: [{’target_id’: ‘1a2b3c4d5e6f7g8h9i0j1k2l3m4n5’, ’target_name’: ’example-target’, ’target_type’: ‘OU’}], ‘INHERITED’: [{’target_id’: ‘2a2b3c4d5e6f7g8h9i0j1k2l3m4n5’, ’target_name’: ‘root’, ’target_type’: ‘ROOT’}]}
modified_atModified At2025-01-01T00:00:00.000Z
modified_byModified Byc23fb561c689455993874fa5d5ed4a2f
policy_nameControl Policy Nametest-policy-name
policy_typeControl Policy TypeSYSTEM_MANAGED
sourcePolicy Creation SubjectORGANIZATION

2 - 1.1

scpcli organization target policy list
--target_id <value>
[--organization_id <value>]
[--size <value>]
[--page <value>]
[--sort <value>]
[--policy_category <value>]
[--name <value>]

Description

list policies for target

State ACTIVE (DEPRECATED)

Deprecated versions with Not Before dates that have arrived or expired are no longer supported. We recommend using the latest version.

VersionNot Before
1.120260531

Parameters

NameTypeDescriptionExample
target_id
required
stringTarget IDou-1a2b3c4d5e6f7g8h9i0j1k2l3m4n5
organization_id
optional
stringOrganization IDo-x9y8z7w6v5u4t3s2r1q0p9o8n7m6l5
size
optional
integersize20
page
optional
integerpage0
sort
optional
stringsortcreated_at:desc
policy_category
optional
****Policy CategorySCP
name
optional
stringControl Policy Nametest-policy-name

Responses

NameDescriptionExample
idID0a36e0746dbf4908acf0357829701381
created_atCreated At2025-01-01T00:00:00.000Z
created_byCreated Byc23fb561c689455993874fa5d5ed4a2f
link_typesLink Type{‘DIRECTED’: [{’target_id’: ‘1a2b3c4d5e6f7g8h9i0j1k2l3m4n5’, ’target_name’: ’example-target’, ’target_type’: ‘OU’}], ‘INHERITED’: [{’target_id’: ‘2a2b3c4d5e6f7g8h9i0j1k2l3m4n5’, ’target_name’: ‘root’, ’target_type’: ‘ROOT’}]}
modified_atModified At2025-01-01T00:00:00.000Z
modified_byModified Byc23fb561c689455993874fa5d5ed4a2f
policy_nameControl Policy Nametest-policy-name
policy_typeControl Policy TypeSYSTEM_MANAGED
sourcePolicy Creation SubjectORGANIZATION

3 - 1.0

scpcli organization target policy list
--target_id <value>
[--organization_id <value>]
[--size <value>]
[--page <value>]
[--sort <value>]
[--policy_category <value>]
[--name <value>]

Description

list policies for target

State ACTIVE (DEPRECATED)

Deprecated versions with Not Before dates that have arrived or expired are no longer supported. We recommend using the latest version.

VersionNot Before
1.020251231

Parameters

NameTypeDescriptionExample
target_id
required
stringTarget IDou-1a2b3c4d5e6f7g8h9i0j1k2l3m4n5
organization_id
optional
stringOrganization IDo-x9y8z7w6v5u4t3s2r1q0p9o8n7m6l5
size
optional
integersize20
page
optional
integerpage0
sort
optional
stringsortcreated_at:desc
policy_category
optional
****Policy CategorySCP
name
optional
stringControl Policy Nametest-policy-name

Responses

NameDescriptionExample
idID0a36e0746dbf4908acf0357829701381
created_atCreated At2025-01-01T00:00:00.000Z
created_byCreated Byc23fb561c689455993874fa5d5ed4a2f
link_typesLink Type{‘DIRECTED’: [{’target_id’: ‘1a2b3c4d5e6f7g8h9i0j1k2l3m4n5’, ’target_name’: ’example-target’, ’target_type’: ‘OU’}], ‘INHERITED’: [{’target_id’: ‘2a2b3c4d5e6f7g8h9i0j1k2l3m4n5’, ’target_name’: ‘root’, ’target_type’: ‘ROOT’}]}
modified_atModified At2025-01-01T00:00:00.000Z
modified_byModified Byc23fb561c689455993874fa5d5ed4a2f
policy_nameControl Policy Nametest-policy-name
policy_typeControl Policy TypeSYSTEM_MANAGED
sourcePolicy Creation SubjectORGANIZATION