Skip to content

Commit

Permalink
Automated commit 'Merge pull request #1854 from sailpoint/ag/PLTCONN-…
Browse files Browse the repository at this point in the history
…6281

PLTCONN-6281-source-schedules' by github action: 11356252552
  • Loading branch information
tyler-mairose-sp committed Oct 16, 2024
1 parent 198cab5 commit c2de07f
Show file tree
Hide file tree
Showing 4 changed files with 278 additions and 0 deletions.
6 changes: 6 additions & 0 deletions idn/sailpoint-api.v2024.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1610,6 +1610,10 @@ paths:
$ref: ./v3/paths/provisioning-policies-bulk-update.yaml
/sources/{sourceId}/schemas:
$ref: ./v3/paths/schemas.yaml
/sources/{sourceId}/schedules:
$ref: ./v2024/paths/source-schedules.yaml
/sources/{sourceId}/schedules/{scheduleType}:
$ref: ./v2024/paths/source-schedule.yaml
/sources/{sourceId}/schemas/{schemaId}:
$ref: ./v3/paths/schema.yaml
/sources/{sourceId}/source-health:
Expand Down Expand Up @@ -2236,6 +2240,8 @@ components:
$ref: ./v3/schemas/Source.yaml
SourceHealthDto:
$ref: ./v3/schemas/SourceHealthDto.yaml
SourceSchedule:
$ref: ./v2024/schemas/sources/Schedule.yaml
Transform:
$ref: ./v3/schemas/Transform.yaml
WorkItems:
Expand Down
170 changes: 170 additions & 0 deletions idn/v2024/paths/source-schedule.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@

get:
operationId: getSourceSchedule
security:
- userAuth: [ idn:sources:read ]
x-sailpoint-userLevels:
- ORG_ADMIN
- SOURCE_ADMIN
- SOURCE_SUBADMIN
tags:
- Sources
summary: Get Source Schedule by Type
description: |
Get the source schedule by type in Identity Security Cloud (ISC).
parameters:
- in: path
name: sourceId
required: true
schema:
type: string
description: The Source id.
example: 2c9180835d191a86015d28455b4a2329
- in: path
name: scheduleType
schema:
type: string
enum:
- ACCOUNT_AGGREGATION
- GROUP_AGGREGATION
required: true
description: The Schedule type.
example: ACCOUNT_AGGREGATION
responses:
'200':
description: The requested Schedule was successfully retrieved.
content:
application/json:
schema:
$ref: '../schemas/sources/Schedule.yaml'
'400':
$ref: '../../v3/responses/400.yaml'
'401':
$ref: '../../v3/responses/401.yaml'
'403':
$ref: '../../v3/responses/403.yaml'
'404':
$ref: '../../v3/responses/404.yaml'
'429':
$ref: '../../v3/responses/429.yaml'
'500':
$ref: '../../v3/responses/500.yaml'
patch:
operationId: updateSourceSchedule
security:
- userAuth: [ idn:sources:update ]
x-sailpoint-userLevels:
- ORG_ADMIN
- SOURCE_ADMIN
- SOURCE_SUBADMIN
tags:
- Sources
summary: Update Source Schedule (Partial)
description: |
Use this API to selectively update an existing Schedule using a JSONPatch payload.
The following schedule fields are immutable and cannot be updated:
- type
parameters:
- in: path
name: sourceId
required: true
schema:
type: string
description: The Source id.
example: 2c9180835d191a86015d28455b4a2329
- in: path
name: scheduleType
schema:
type: string
enum:
- ACCOUNT_AGGREGATION
- GROUP_AGGREGATION
required: true
description: The Schedule type.
example: ACCOUNT_AGGREGATION
requestBody:
required: true
description: The JSONPatch payload used to update the schedule.
content:
application/json-patch+json:
schema:
type: array
items:
$ref: '../../v3/schemas/JsonPatchOperation.yaml'
examples:
add-attribute:
summary: Replace an attribute of the schedule
value: [
{
"op": "replace",
"path": "/cronExpression",
"value": "0 0 6 * * ?"
}
]
responses:
'200':
description: The Schedule was successfully updated.
content:
application/json:
schema:
$ref: '../schemas/sources/Schedule.yaml'
'400':
$ref: '../../v3/responses/400.yaml'
'401':
$ref: '../../v3/responses/401.yaml'
'403':
$ref: '../../v3/responses/403.yaml'
'404':
$ref: '../../v3/responses/404.yaml'
'429':
$ref: '../../v3/responses/429.yaml'
'500':
$ref: '../../v3/responses/500.yaml'
delete:
operationId: deleteSourceSchedule
security:
- userAuth: [ idn:sources:update ]
x-sailpoint-userLevels:
- ORG_ADMIN
- SOURCE_ADMIN
- SOURCE_SUBADMIN
tags:
- Sources
summary: Delete Source Schedule by type.
parameters:
- in: path
name: sourceId
required: true
schema:
type: string
description: The Source id.
example: 2c9180835d191a86015d28455b4a2329
- in: path
name: scheduleType
schema:
type: string
enum:
- ACCOUNT_AGGREGATION
- GROUP_AGGREGATION
required: true
description: The Schedule type.
example: ACCOUNT_AGGREGATION
responses:
'204':
$ref: '../../v3/responses/204.yaml'
description: The Schedule was successfully deleted.
'400':
$ref: '../../v3/responses/400.yaml'
'401':
$ref: '../../v3/responses/401.yaml'
'403':
$ref: '../../v3/responses/403.yaml'
'404':
$ref: '../../v3/responses/404.yaml'
'429':
$ref: '../../v3/responses/429.yaml'
'500':
$ref: '../../v3/responses/500.yaml'
86 changes: 86 additions & 0 deletions idn/v2024/paths/source-schedules.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@

get:
operationId: getSourceSchedules
security:
- userAuth: [ idn:sources:read ]
x-sailpoint-userLevels:
- ORG_ADMIN
- SOURCE_ADMIN
- SOURCE_SUBADMIN
tags:
- Sources
summary: List Schedules on Source
description: Use this API to list the schedules that exist on the specified source in Identity Security Cloud (ISC).
parameters:
- in: path
name: sourceId
required: true
schema:
type: string
description: Source ID.
example: 2c9180835d191a86015d28455b4a2329
responses:
'200':
description: The schedules were successfully retrieved.
content:
application/json:
schema:
type: array
items:
$ref: '../schemas/sources/Schedule.yaml'
'400':
$ref: '../../v3/responses/400.yaml'
'401':
$ref: '../../v3/responses/401.yaml'
'403':
$ref: '../../v3/responses/403.yaml'
'404':
$ref: '../../v3/responses/404.yaml'
'429':
$ref: '../../v3/responses/429.yaml'
'500':
$ref: '../../v3/responses/500.yaml'
post:
operationId: createSourceSchedule
security:
- userAuth: [ idn:sources:update ]
x-sailpoint-userLevels:
- ORG_ADMIN
- SOURCE_ADMIN
- SOURCE_SUBADMIN
tags:
- Sources
summary: Create Schedule on Source
description: |
Use this API to create a new schedule for a type on the specified source in Identity Security Cloud (ISC).
parameters:
- in: path
name: sourceId
required: true
schema:
type: string
description: Source ID.
example: 2c9180835d191a86015d28455b4a2329
requestBody:
required: true
content:
application/json:
schema:
$ref: '../schemas/sources/Schedule.yaml'
responses:
'201':
description: The schedule was successfully created on the specified source.
content:
application/json:
schema:
$ref: '../schemas/sources/Schedule.yaml'
'400':
$ref: '../../v3/responses/400.yaml'
'401':
$ref: '../../v3/responses/401.yaml'
'403':
$ref: '../../v3/responses/403.yaml'
'429':
$ref: '../../v3/responses/429.yaml'
'500':
$ref: '../../v3/responses/500.yaml'
16 changes: 16 additions & 0 deletions idn/v2024/schemas/sources/Schedule.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
type: object
required:
- type
- cronExpression
properties:
type:
type: string
enum:
- ACCOUNT_AGGREGATION
- GROUP_AGGREGATION
description: The type of the Schedule.
example: ACCOUNT_AGGREGATION
cronExpression:
type: string
description: The cron expression of the schedule.
example: "0 0 5,13,21 * * ?"

0 comments on commit c2de07f

Please sign in to comment.