A resource refers to any asset, entity, or item that the policy aims to govern, regulate, or protect.
OAuth 2.0 scopes required: read:policies:admin
string
Requiredstring
RequiredThe request has succeeded.
1
2
3
4
curl --request GET \
--url 'https://api.atlassian.com/admin/control/v1/orgs/{orgId}/policies/{policyId}/resources' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json'
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
{
"data": [
{
"meta": {
"scheduledDate": "<string>",
"migrationStartDateTime": "<string>",
"migrationEndDateTime": "<string>",
"atlassianAccountId": "<string>"
},
"links": {
"ticket": "<string>"
},
"id": "<string>",
"applicationStatus": "validating"
}
],
"meta": {
"next": "<string>",
"page_size": 25
},
"links": {
"self": "<string>",
"prev": "<string>",
"next": "<string>"
}
}
Add a new resource to a policy
OAuth 2.0 scopes required: write:policies:admin
string
Requiredstring
RequiredModels.PolicyResourceMeta
Models.PolicyResourceLinks
string
RequiredThe request has been accepted for processing, but processing has not yet completed.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
curl --request POST \
--url 'https://api.atlassian.com/admin/control/v1/orgs/{orgId}/policies/{policyId}/resources' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"meta": {
"scheduledDate": "<string>",
"migrationStartDateTime": "<string>",
"migrationEndDateTime": "<string>",
"atlassianAccountId": "<string>"
},
"links": {
"ticket": "<string>"
},
"id": "<string>"
}'
1
2
3
4
5
6
7
8
9
10
11
12
13
{
"meta": {
"scheduledDate": "<string>",
"migrationStartDateTime": "<string>",
"migrationEndDateTime": "<string>",
"atlassianAccountId": "<string>"
},
"links": {
"ticket": "<string>"
},
"id": "<string>",
"applicationStatus": "validating"
}
Remove all resources from a policy.
string
Requiredstring
RequiredNo content
1
2
3
curl --request DELETE \
--url 'https://api.atlassian.com/admin/control/v1/orgs/{orgId}/policies/{policyId}/resources' \
--header 'Authorization: Bearer <access_token>'
Delete one resource from a policy
OAuth 2.0 scopes required: write:policies:admin
string
Requiredstring
Requiredstring
RequiredModels.PolicyResourceMeta
Models.PolicyResourceLinks
The request has been accepted for processing, but processing has not yet completed.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
curl --request PUT \
--url 'https://api.atlassian.com/admin/control/v1/orgs/{orgId}/policies/{policyId}/resources/{resourceId}' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"meta": {
"scheduledDate": "<string>",
"migrationStartDateTime": "<string>",
"migrationEndDateTime": "<string>",
"atlassianAccountId": "<string>"
},
"links": {
"ticket": "<string>"
}
}'
1
2
3
4
5
6
7
8
9
10
11
12
13
{
"meta": {
"scheduledDate": "<string>",
"migrationStartDateTime": "<string>",
"migrationEndDateTime": "<string>",
"atlassianAccountId": "<string>"
},
"links": {
"ticket": "<string>"
},
"id": "<string>",
"applicationStatus": "validating"
}
Delete one resource from a policy
OAuth 2.0 scopes required: write:policies:admin
string
Requiredstring
Requiredstring
RequiredNo content
1
2
3
curl --request DELETE \
--url 'https://api.atlassian.com/admin/control/v1/orgs/{orgId}/policies/{policyId}/resources/{resourceId}' \
--header 'Authorization: Bearer <access_token>'
Rate this page: