File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55# - The IP allow list for GitHub Apps enabled setting
66
77query 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
2321 }
22+ }
2423 }
24+ }
2525}
Original file line number Diff line number Diff line change 99# - enterprise accounts: https://github.com/github/platform-samples/blob/master/graphql/queries/enterprise-get-ip-allow-list.graphql
1010
1111mutation 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
3018 }
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+ }
3129}
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.
22# This can be used on both organizations and enterprise accounts.
33#
44# The `OWNER_ID` is the ID of the organization or enterprise account. You can
88# - organizations: https://github.com/github/platform-samples/blob/master/graphql/queries/org-get-ip-allow-list.graphql
99# - enterprise accounts: https://github.com/github/platform-samples/blob/master/graphql/queries/enterprise-get-ip-allow-list.graphql
1010
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
16+ }
17+ updateIpAllowListForInstalledAppsEnabledSetting (
18+ input : { ownerId : " OWNER_ID" , settingValue : DISABLED }
19+ ) {
20+ clientMutationId
21+ }
2122}
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.
22# This can be used on both organizations and enterprise accounts.
33#
44# The `OWNER_ID` is the ID of the organization or enterprise account. You can
99# - enterprise accounts: https://github.com/github/platform-samples/blob/master/graphql/queries/enterprise-get-ip-allow-list.graphql
1010
1111mutation 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+ }
2122}
Original file line number Diff line number Diff line change 99# - enterprise accounts: https://github.com/github/platform-samples/blob/master/graphql/queries/enterprise-get-ip-allow-list.graphql
1010
1111mutation 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+ }
1715}
Original file line number Diff line number Diff line change 55# - The IP allow list for GitHub Apps enabled setting
66
77query 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+ }
2322 }
23+ }
2424}
You can’t perform that action at this time.
0 commit comments