Files
developer.sailpoint.com/docs/tools/sdk/python/Reference/V2025/Models/DataSegment.md
2025-04-01 09:23:12 -04:00

2.5 KiB

id, title, pagination_label, sidebar_label, sidebar_class_name, keywords, slug, tags
id title pagination_label sidebar_label sidebar_class_name keywords slug tags
v2025-data-segment DataSegment DataSegment DataSegment pythonsdk
python
Python
sdk
DataSegment
V2025DataSegment
/tools/sdk/python/v2025/models/data-segment
SDK
Software Development Kit
DataSegment
V2025DataSegment

DataSegment

Properties

Name Type Description Notes
id str The segment's ID. [optional]
name str The segment's business name. [optional]
created datetime The time when the segment is created. [optional]
modified datetime The time when the segment is modified. [optional]
description str The segment's optional description. [optional]
scopes []Scope List of Scopes that are assigned to the segment [optional]
member_selection []Ref List of Identities that are assigned to the segment [optional]
member_filter VisibilityCriteria [optional]
membership MembershipType [optional]
enabled bool This boolean indicates whether the segment is currently active. Inactive segments have no effect. [optional] [default to False]
published bool This boolean indicates whether the segment is being applied to the accounts. If unpublished its being actively modified to until published [optional] [default to False]
}

Example

from sailpoint.v2025.models.data_segment import DataSegment

data_segment = DataSegment(
id='0f11f2a4-7c94-4bf3-a2bd-742580fe3bde',
name='segment-xyz',
created='2020-01-01T00:00Z',
modified='2020-01-01T00:00Z',
description='This segment represents xyz',
scopes=[{scope=ENTITLEMENT, visibility=SELECTION, scopeFilter=null, scopeSelection=[{type=ENTITLEMENT, id=34d73f611449463ea4fdcf02cda0c397}]}],
member_selection=[{type=IDENTITY, id=29cb6c061da843ea8be4b3125f248f2a}, {type=IDENTITY, id=f7b1b8a35fed4fd4ad2982014e137e19}],
member_filter=sailpoint.v2025.models.visibility_criteria.VisibilityCriteria(
                    expression = sailpoint.v2025.models.expression.Expression(
                        operator = 'EQUALS', 
                        attribute = 'location', 
                        value = sailpoint.v2025.models.value.Value(
                            type = 'STRING', ), 
                        children = [], ), ),
membership='ALL',
enabled=True,
published=True
)

[Back to top]