Skip to content

Commit

Permalink
Automated commit 'ISCCOMPLI-300: beta to v3 api doc of Create campaig…
Browse files Browse the repository at this point in the history
…n template (#1419)

* ISCCOMPLI-300: beta to v3 api doc of Create campaign template' by github action: 6315206402
  • Loading branch information
tyler-mairose-sp committed Sep 26, 2023
1 parent ea4049d commit 69001e5
Show file tree
Hide file tree
Showing 13 changed files with 396 additions and 0 deletions.
9 changes: 9 additions & 0 deletions idn/beta/paths/campaign-templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ get:
tags:
- Certification Campaigns
summary: List Campaign Templates
security:
- UserContextAuth: [ idn:campaign-template-list:read ]
parameters:
- $ref: '../../v3/parameters/limit.yaml'
- $ref: '../../v3/parameters/offset.yaml'
Expand All @@ -17,6 +19,7 @@ get:
Sorting is supported for the following fields: **name, created, modified**
example: name
- in: query
name: filters
schema:
Expand All @@ -27,6 +30,7 @@ get:
Filtering is supported for the following fields: **name, id**
example: name eq "manager template"
responses:
'200':
description: List of campaign template objects
Expand All @@ -53,6 +57,11 @@ post:
tags:
- Certification Campaigns
summary: Create a Campaign Template
description: >-
Create a campaign Template based on campaign.
security:
- UserContextAuth: [ idn:campaign-template:create ]
deprecated: true
requestBody:
required: true
content:
Expand Down
4 changes: 4 additions & 0 deletions idn/beta/schemas/CampaignTemplate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ properties:
readOnly: true
description: Indicates if this campaign template has been scheduled.
example: false
default: false
ownerRef:
type : object
description: >-
Expand Down Expand Up @@ -63,6 +64,9 @@ properties:
(the current date plus 14 days).
example: P2W
campaign:
type: object
description: >-
This will hold campaign related information like name, description etc.
$ref: './Campaign.yaml'
required:
- name
Expand Down
2 changes: 2 additions & 0 deletions idn/sailpoint-api.v3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,8 @@ paths:
$ref: './v3/paths/campaign-run-report.yaml'
/campaigns/reports-configuration:
$ref: './v3/paths/campaign-reports-configuration.yaml'
/campaign-templates:
$ref: './v3/paths/campaign-templates.yaml'
/certifications:
$ref: "./v3/paths/identity-certifications.yaml"
/certifications/{id}:
Expand Down
50 changes: 50 additions & 0 deletions idn/v3/paths/campaign-templates.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
post:
operationId: createCampaignTemplate
tags:
- Certification Campaigns
summary: Create a Campaign Template
description: >-
Create a campaign Template based on campaign.
security:
- UserContextAuth: [ idn:campaign-template:create ]
requestBody:
required: true
content:
application/json:
schema:
$ref: '../schemas/CampaignTemplate.yaml'
examples:
Manager:
$ref: '../schemas/campaign/examples/CreateCampaignTemplateManager.yaml'
Search:
$ref: '../schemas/campaign/examples/CreateCampaignTemplateSearch.yaml'
Source Owner:
$ref: '../schemas/campaign/examples/CreateCampaignTemplateSourceOwner.yaml'
RoleComposition:
$ref: '../schemas/campaign/examples/CreateCampaignTemplateRoleComposition.yaml'
responses:
'200':
description: Created successfully.
content:
application/json:
schema:
$ref: '../schemas/CampaignTemplate.yaml'
examples:
Manager:
$ref: '../schemas/campaign/examples/CampaignTemplateManager.yaml'
Search:
$ref: '../schemas/campaign/examples/CampaignTemplateSearch.yaml'
Source Owner:
$ref: '../schemas/campaign/examples/CampaignTemplateSourceOwner.yaml'
RoleComposition:
$ref: '../schemas/campaign/examples/CampaignTemplateRoleComposition.yaml'
'400':
$ref: '../responses/400.yaml'
'401':
$ref: '../responses/401.yaml'
'403':
$ref: '../responses/403.yaml'
'429':
$ref: '../responses/429.yaml'
'500':
$ref: '../responses/500.yaml'
76 changes: 76 additions & 0 deletions idn/v3/schemas/CampaignTemplate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
type: object
description: Campaign Template
properties:
id:
type: string
description: Id of the campaign template
example: 2c9079b270a266a60170a277bb960008
name:
type: string
description: This template's name. Has no bearing on generated campaigns' names.
example: Manager Campaign Template
description:
type: string
description: This template's description. Has no bearing on generated campaigns' descriptions.
example: Template for the annual manager campaign.
created:
type: string
description: Creation date of Campaign Template
readOnly: true
format: date-time
example: '2020-03-05T22:44:00.364Z'
modified:
type: string
description: Modification date of Campaign Template
readOnly: true
format: date-time
example: '2020-03-05T22:52:09.969Z'
scheduled:
type: boolean
readOnly: true
description: Indicates if this campaign template has been scheduled.
example: false
default: false
ownerRef:
type : object
description: >-
The owner of this template, and the owner of campaigns generated from this template via a schedule. This field
is automatically populated at creation time with the current user.
properties:
id:
type: string
description: Id of the owner
example: 2c918086676d3e0601677611dbde220f
type:
type: string
enum:
- IDENTITY
description: Type of the owner
example: IDENTITY
name:
type: string
description: Name of the owner
example: Mister Manager
email:
type: string
description: Email of the owner
example: [email protected]
deadlineDuration:
type: string
description: >-
The time period during which the campaign should be completed, formatted as an ISO-8601 Duration. When this template
generates a campaign, the campaign's deadline will be the current date plus this duration. For example, if generation
occurred on 2020-01-01 and this field was "P2W" (two weeks), the resulting campaign's deadline would be 2020-01-15
(the current date plus 14 days).
example: P2W
campaign:
type : object
description: >-
This will hold campaign related information like name, description etc.
$ref: './Campaign.yaml'
required:
- name
- description
- created
- modified
- campaign
39 changes: 39 additions & 0 deletions idn/v3/schemas/campaign/examples/CampaignTemplateManager.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
value:
id: e7dbec99d49349c8951bd84f58a05120
name: Manager Review
created: 2022-08-02T19:16:42.632Z
modified: null
description: A review of everyone's access by their manager.
deadlineDuration: P14D
ownerRef:
email: [email protected]
type: IDENTITY
id: 7ec252acbd4245548bc25df22348cb75
name: SailPoint Support
scheduled: false
campaign:
created: null
modified: null
filter:
type: CAMPAIGN_FILTER
id: e0adaae69852e8fe8b8a3d48e5ce757c
name: Test Manager Filter
sunsetCommentsRequired: true
sourceOwnerCampaignInfo: null
searchCampaignInfo: null
roleCompositionCampaignInfo: null
alerts: null
totalCertifications: null
completedCertifications: null
sourcesWithOrphanEntitlements: null
id: null
name: Manager Review
description: Review everyone's access.
deadline: null
type: MANAGER
status: null
emailNotificationEnabled: true
autoRevokeAllowed: false
recommendationsEnabled: false
correlatedStatus: CORRELATED
mandatoryCommentRequirement: NO_DECISIONS
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
value:
id: b9f41bc69e7a4291b9de0630396d030d
name: Campaign With Admin Role
created: 2022-08-02T13:40:36.857Z
modified: null
description: Campaign With Admin Role
deadlineDuration: null
ownerRef:
email: [email protected]
type: IDENTITY
id: 7ec252acbd4245548bc25df22348cb75
name: SailPoint Support
scheduled: false
campaign:
created: null
modified: null
filter: null
sunsetCommentsRequired: true
sourceOwnerCampaignInfo: null
searchCampaignInfo: null
roleCompositionCampaignInfo:
remediatorRef:
type: IDENTITY
id: 7ec252acbd4245548bc25df22348cb75
name: SailPoint Support
reviewerId: null
reviewer: null
roleIds:
- b15d609fc5c8434b865fe552315fda8f
query: null
description: null
alerts: null
totalCertifications: null
completedCertifications: null
sourcesWithOrphanEntitlements: null
id: null
name: Campaign With Admin Role
description: Campaign With Admin Role
deadline: null
type: ROLE_COMPOSITION
status: null
emailNotificationEnabled: false
autoRevokeAllowed: false
recommendationsEnabled: false
correlatedStatus: CORRELATED
mandatoryCommentRequirement: NO_DECISIONS
46 changes: 46 additions & 0 deletions idn/v3/schemas/campaign/examples/CampaignTemplateSearch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
value:
id: b7e6459eed5247ac8b98a5fed81fe27f
name: Reporting Access Review
created: 2022-07-28T19:19:40.035Z
modified: null
description: A review of everyone's access to the reporting system.
deadlineDuration: P14D
ownerRef:
email: [email protected]
type: IDENTITY
id: 7ec252acbd4245548bc25df22348cb75
name: SailPoint Support
scheduled: false
campaign:
created: null
modified: null
filter:
type: CAMPAIGN_FILTER
id: e0adaae69852e8fe8b8a3d48e5ce757c
name: Test Search Filter
sunsetCommentsRequired: true
sourceOwnerCampaignInfo: null
searchCampaignInfo:
type: ACCESS
description: Identities with reporting abilities
reviewerId: null
reviewer: null
query: "@access(name: (\"reporter\"))"
identityIds: null
accessConstraints: [ ]
roleCompositionCampaignInfo: null
alerts: null
totalCertifications: null
completedCertifications: null
sourcesWithOrphanEntitlements: null
id: null
name: Search Campaign Review
description: Review everyone's access to the reporting system.
deadline: null
type: SEARCH
status: null
emailNotificationEnabled: true
autoRevokeAllowed: false
recommendationsEnabled: false
correlatedStatus: CORRELATED
mandatoryCommentRequirement: NO_DECISIONS
41 changes: 41 additions & 0 deletions idn/v3/schemas/campaign/examples/CampaignTemplateSourceOwner.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
value:
id: b9f41bc69e7a4291b9de0630396d030d
name: AD Source Review
created: 2022-08-02T13:40:36.857Z
modified: null
description: A review of our AD source.
deadlineDuration: P1M
ownerRef:
email: [email protected]
type: IDENTITY
id: 7ec252acbd4245548bc25df22348cb75
name: SailPoint Support
scheduled: false
campaign:
created: null
modified: null
filter:
type: CAMPAIGN_FILTER
id: e0adaae69852e8fe8b8a3d48e5ce757c
name: Test Source Owner Filter
sunsetCommentsRequired: true
sourceOwnerCampaignInfo:
sourceIds:
- 2c918084707deba501709d45ce4e5569
searchCampaignInfo: null
roleCompositionCampaignInfo: null
alerts: null
totalCertifications: null
completedCertifications: null
sourcesWithOrphanEntitlements: null
id: null
name: AD Source Review
description: Review everyone's access.
deadline: null
type: SOURCE_OWNER
status: null
emailNotificationEnabled: true
autoRevokeAllowed: false
recommendationsEnabled: false
correlatedStatus: CORRELATED
mandatoryCommentRequirement: NO_DECISIONS
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
description: >-
This creates a template that can be used to generate manager campaigns. The campaigns will have a due date
that is two weeks after their creation date, and will be named "{current date} Manager Review" (e.g.
"2020-03-16 Manager Review").
value:
name: Manager Review
description: A review of everyone's access by their manager.
deadlineDuration: P2W
campaign:
name: Manager Review
description: Review everyone's access.
type: MANAGER
filter:
type: CAMPAIGN_FILTER
id: e0adaae69852e8fe8b8a3d48e5ce757c
emailNotificationEnabled: true
autoRevokeAllowed: false
recommendationsEnabled: false
mandatoryCommentRequirement: NO_DECISIONS
Loading

0 comments on commit 69001e5

Please sign in to comment.