-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudAccountUserCreate.yml
More file actions
84 lines (84 loc) · 2.19 KB
/
Copy pathcloudAccountUserCreate.yml
File metadata and controls
84 lines (84 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
post:
summary: Create a Cloud Account User on the platform
tags:
- cloudAccount
description: Used for granting a User access to a Cloud Account
security:
- bearerAuth: []
parameters:
- name: x-sr-application
in: header
description: What application/version is calling the API
required: true
style: simple
schema:
type: string
default: SR/Swagger
requestBody:
description: Cloud Account User payload
required: true
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/cloudAccountUserCreate_teamPayload'
- $ref: '#/components/schemas/cloudAccountUserCreate_eventPayload'
responses:
'200':
description: Successful operation
headers:
Content-Type:
schema:
type: string
description: The MIME type of the payload
Content-Length:
schema:
type: number
description: Byte length of the payload
content:
application/json:
schema:
type: object
properties:
status_code:
type: number
example: 200
cloud_account_user_uuid:
type: string
format: uuid
'403':
description: Not authorized
default:
description: Default response for POST /cloudAccountUserCreate
components:
schemas:
cloudAccountUserCreate_eventPayload:
type: object
properties:
cloud_account_user:
type: object
properties:
user_uuid:
type: string
format: uuid
event_uuid:
type: string
format: uuid
access_level:
type: number
example: 1
cloudAccountUserCreate_teamPayload:
type: object
properties:
cloud_account_user:
type: object
properties:
user_uuid:
type: string
format: uuid
team_uuid:
type: string
format: uuid
access_level:
type: number
example: 1