Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.75 KB

File metadata and controls

58 lines (39 loc) · 1.75 KB

CbacMarkingRestrictions

Method HTTP request Release Stage
get GET /v2/admin/cbacMarkingRestrictions Public Beta

get

Returns disallowed, implied, and required markings for the given set of marking IDs.

Parameters

Name Type Description Notes
marking_ids Optional[List[MarkingId]] The marking IDs for which to get restrictions. [optional]
preview Optional[PreviewMode] Enables the use of preview functionality. [optional]

Return type

CbacMarkingRestrictions

Example

from foundry_sdk import FoundryClient
import foundry_sdk
from pprint import pprint

client = FoundryClient(auth=foundry_sdk.UserTokenAuth(...), hostname="example.palantirfoundry.com")

# Optional[List[MarkingId]] | The marking IDs for which to get restrictions.
marking_ids = None
# Optional[PreviewMode] | Enables the use of preview functionality.
preview = None


try:
    api_response = client.admin.CbacMarkingRestrictions.get(
        marking_ids=marking_ids, preview=preview
    )
    print("The get response:\n")
    pprint(api_response)
except foundry_sdk.PalantirRPCException as e:
    print("HTTP error when calling CbacMarkingRestrictions.get: %s\n" % e)

Authorization

See README

HTTP response details

Status Code Type Description Content Type
200 CbacMarkingRestrictions application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]