File tree 6 files changed +72
-74
lines changed 6 files changed +72
-74
lines changed Original file line number Diff line number Diff line change 5
5
# - The IP allow list for GitHub Apps enabled setting
6
6
7
7
query GetEnterpriseIPAllowList {
8
- enterprise (slug : " ENTERPRISE_SLUG" ) {
9
- owner_id : id
10
- enterprise_slug : slug
11
- enterprise_owner_info : ownerInfo {
12
- is_ip_allow_list_enabled : ipAllowListEnabledSetting
13
- is_ip_allow_list_for_github_apps_enabled : ipAllowListForInstalledAppsEnabledSetting
14
- ipAllowListEntries (first : 100 ) {
15
- nodes {
16
- ip_allow_list_entry_id : id
17
- ip_allow_list_entry_name : name
18
- ip_allow_list_entry_value : allowListValue
19
- ip_allow_list_entry_created : createdAt
20
- is_ip_allow_list_entry_active : isActive
21
- }
22
- }
8
+ enterprise (slug : " ENTERPRISE_SLUG" ) {
9
+ owner_id : id
10
+ enterprise_slug : slug
11
+ enterprise_owner_info : ownerInfo {
12
+ is_ip_allow_list_enabled : ipAllowListEnabledSetting
13
+ is_ip_allow_list_for_github_apps_enabled : ipAllowListForInstalledAppsEnabledSetting
14
+ ipAllowListEntries (first : 100 ) {
15
+ nodes {
16
+ ip_allow_list_entry_id : id
17
+ ip_allow_list_entry_name : name
18
+ ip_allow_list_entry_value : allowListValue
19
+ ip_allow_list_entry_created : createdAt
20
+ is_ip_allow_list_entry_active : isActive
23
21
}
22
+ }
24
23
}
24
+ }
25
25
}
Original file line number Diff line number Diff line change 9
9
# - enterprise accounts: https://github.com/github/platform-samples/blob/master/graphql/queries/enterprise-get-ip-allow-list.graphql
10
10
11
11
mutation AddIPAddressToIPAllowList {
12
- createIpAllowListEntry (
13
- input : {
14
- clientMutationId : " true"
15
- ownerId : " OWNER_ID"
16
- name : " DESCRIPTION_OF_IP_ADDRESS"
17
- allowListValue : " IP_ADDRESS"
18
- isActive : true
19
- }
20
- ) {
21
- clientMutationId
22
- ipAllowListEntry {
23
- ip_allow_list_entry_id : id
24
- ip_allow_list_entry_name : name
25
- ip_allow_list_entry_ip_address : allowListValue
26
- ip_allow_list_entry_created : createdAt
27
- ip_allow_list_entry_updated : updatedAt
28
- is_ip_allow_list_entry_active : isActive
29
- }
12
+ createIpAllowListEntry (
13
+ input : {
14
+ ownerId : " OWNER_ID"
15
+ name : " DESCRIPTION_OF_IP_ADDRESS"
16
+ allowListValue : " IP_ADDRESS"
17
+ isActive : true
30
18
}
19
+ ) {
20
+ ipAllowListEntry {
21
+ ip_allow_list_entry_id : id
22
+ ip_allow_list_entry_name : name
23
+ ip_allow_list_entry_ip_address : allowListValue
24
+ ip_allow_list_entry_created : createdAt
25
+ ip_allow_list_entry_updated : updatedAt
26
+ is_ip_allow_list_entry_active : isActive
27
+ }
28
+ }
31
29
}
Original file line number Diff line number Diff line change 1
- # This query is used to disable the IP allow list feature.
1
+ # This query is used to disable the IP allow list feature. This will apply to both IP addresses and GitHub Apps.
2
2
# This can be used on both organizations and enterprise accounts.
3
3
#
4
4
# The `OWNER_ID` is the ID of the organization or enterprise account. You can
8
8
# - organizations: https://github.com/github/platform-samples/blob/master/graphql/queries/org-get-ip-allow-list.graphql
9
9
# - enterprise accounts: https://github.com/github/platform-samples/blob/master/graphql/queries/enterprise-get-ip-allow-list.graphql
10
10
11
- mutation EnableIPAllowList {
12
- updateIpAllowListEnabledSetting (
13
- input : {
14
- clientMutationId : " true"
15
- ownerId : " OWNER_ID"
16
- settingValue : DISABLED
17
- }
18
- ) {
19
- clientMutationId
20
- }
11
+ mutation DisableIPAllowList {
12
+ updateIpAllowListEnabledSetting (
13
+ input : { ownerId : " OWNER_ID" , settingValue : DISABLED }
14
+ ) {
15
+ clientMutationId
A3E2
span>
16
+ }
17
+ updateIpAllowListForInstalledAppsEnabledSetting (
18
+ input : { ownerId : " OWNER_ID" , settingValue : DISABLED }
19
+ ) {
20
+ clientMutationId
21
+ }
21
22
}
Original file line number Diff line number Diff line change 1
- # This query is used to enable the IP allow list feature.
1
+ # This query is used to enable the IP allow list feature. This will apply to both IP addresses and GitHub Apps.
2
2
# This can be used on both organizations and enterprise accounts.
3
3
#
4
4
# The `OWNER_ID` is the ID of the organization or enterprise account. You can
9
9
# - enterprise accounts: https://github.com/github/platform-samples/blob/master/graphql/queries/enterprise-get-ip-allow-list.graphql
10
10
11
11
mutation EnableIPAllowList {
12
- updateIpAllowListEnabledSetting (
13
- input : {
14
- clientMutationId : " true"
15
- ownerId : " OWNER_ID"
16
- settingValue : ENABLED
17
- }
18
- ) {
19
- clientMutationId
20
- }
12
+ updateIpAllowListEnabledSetting (
13
+ input : { ownerId : " OWNER_ID" , settingValue : ENABLED }
14
+ ) {
15
+ clientMutationId
16
+ }
17
+ updateIpAllowListForInstalledAppsEnabledSetting (
18
+ input : { ownerId : " OWNER_ID" , settingValue : ENABLED }
19
+ ) {
20
+ clientMutationId
21
+ }
21
22
}
Original file line number Diff line number Diff line change 9
9
# - enterprise accounts: https://github.com/github/platform-samples/blob/master/graphql/queries/enterprise-get-ip-allow-list.graphql
10
10
11
11
mutation DeleteIPAddressFromIPAllowList {
12
- deleteIpAllowListEntry (
13
- input : { clientMutationId : " true" , ipAllowListEntryId : " IP_ENTRY_ID" }
14
- ) {
15
- clientMutationId
16
- }
12
+ deleteIpAllowListEntry (input : { ipAllowListEntryId : " IP_ENTRY_ID" }) {
13
+ clientMutationId
14
+ }
17
15
}
Original file line number Diff line number Diff line change 5
5
# - The IP allow list for GitHub Apps enabled setting
6
6
7
7
query GetOrganizationIPAllowList {
8
- organization (login : " ORG_NAME" ) {
9
- owner_id : id
10
- organization_slug : login
11
- is_ip_allow_list_enabled : ipAllowListEnabledSetting
12
- is_ip_allow_list_for_github_apps_enabled : ipAllowListForInstalledAppsEnabledSetting
13
- ipAllowListEntries (first : 100 ) {
14
- totalCount
15
- nodes {
16
- ip_allow_list_entry_id : id
17
- ip_allow_list_entry_name : name
18
- ip_allow_list_entry_ip_address : allowListValue
19
- ip_allow_list_entry_created : createdAt
20
- is_ip_allow_list_entry_active : isActive
21
- }
22
- }
8
+ organization (login : " ORG_NAME" ) {
9
+ owner_id : id
10
+ organization_slug : login
11
+ is_ip_allow_list_enabled : ipAllowListEnabledSetting
12
+ is_ip_allow_list_for_github_apps_enabled : ipAllowListForInstalledAppsEnabledSetting
13
+ ipAllowListEntries (first : 100 ) {
14
+ totalCount
15
+ nodes {
16
+ ip_allow_list_entry_id : id
17
+ ip_allow_list_entry_name : name
18
+ ip_allow_list_entry_ip_address : allowListValue
19
+ ip_allow_list_entry_created : createdAt
20
+ is_ip_allow_list_entry_active : isActive
21
+ }
23
22
}
23
+ }
24
24
}
You can’t perform that action at this time.
0 commit comments