PaloAltoNetworks / prisma.pan.dev

The home of Developer docs for Prisma by Palo Alto Networks
https://prisma.pan.dev
MIT License
21 stars 38 forks source link

Issue with "IP Allow List API" in @site/api/cloud/cspm/ipallowlist.mdx #109

Closed will-schneble closed 3 years ago

will-schneble commented 3 years ago

Describe the problem

  1. Created a network list called "example-dev"
    • :warning: the cidrs field is not returned in the response
  2. Added cidr "54.1.1.253/32" to the list "example-dev"
  3. Created a new network list called "example-prod"
  4. Added cidr "54.1.1.253/32" to the list "example-prod"
    • :warning: 400 returned, adding any other public IP works as expected. I am left to assume that CIDRs must be unique across network lists but this isn't expected since each network list and cidr object has a uuid.

Suggested fix

  1. Either update the docs to reflect that CIDRs must be globally unique or allow for the same CIDRs to be added across different network lists.
  2. Update the docs to reflect that the cidrs field is not returned in the create network list API return
welcome-to-palo-alto-networks[bot] commented 3 years ago

:tada: Thanks for opening your first issue here! Welcome to the community!

will-schneble commented 3 years ago

Sorry, forgot to mention I'm using api2.prismacloud.io.

debbm commented 3 years ago

Thanks for this feedback. I verified the use case and updated the docs for Add Network and Add CIDR to: