Describe how you confirmed the issue is with the library, and not with the API itself, or a server-side issue of some other kind.
Calling updateNetworkApplianceFirewallInboundFirewallRules using OAuth2 token and a payload like
{
"rules": {
"comment": "VPN",
"policy": "allow",
"protocol": "tcp",
"srcPort": "Any",
"srcCidr": "Any",
"destPort": "443",
"destCidr": "Any",
"syslogEnabled": false
}
]
}
gives error Incorrect OAuth scopes. The required scopes are: []
Same API call with static API key works
Python version installed
3.11
Meraki library version installed
4.5.0
Have you reproduced the issue with the latest version of this library? And with the latest version of Python?
Yes, same result
OS Platform
Linux
Describe the bug
API call should succeed or at least tell which scope is missing (if any)
How can we replicate the problem you're reporting?
Authenticate with OAuth2 and try the API call with provided payload
For example, to reproduce:
- Invoke X endpoint with Y request attributes and/or Z query parameters.
- Expect outcome A.
Expected behavior
A clear and concise description of what you expected to happen instead, and why.
Code snippets
If applicable, add code snippets to help explain your problem.
Additional context
Add any other context about the problem here.
Describe how you confirmed the issue is with the library, and not with the API itself, or a server-side issue of some other kind.
Calling updateNetworkApplianceFirewallInboundFirewallRules using OAuth2 token and a payload like
{
"rules": {
"comment": "VPN",
"policy": "allow",
"protocol": "tcp",
"srcPort": "Any",
"srcCidr": "Any",
"destPort": "443",
"destCidr": "Any",
"syslogEnabled": false
}
]
}
gives error Incorrect OAuth scopes. The required scopes are: []
Same API call with static API key works
Python version installed
3.11
Meraki library version installed
4.5.0
Have you reproduced the issue with the latest version of this library? And with the latest version of Python?
Yes, same result
OS Platform
Linux
Describe the bug
API call should succeed or at least tell which scope is missing (if any)
How can we replicate the problem you're reporting?
Authenticate with OAuth2 and try the API call with provided payload
For example, to reproduce:
Expected behavior
A clear and concise description of what you expected to happen instead, and why.
Code snippets
If applicable, add code snippets to help explain your problem.
Additional context
Add any other context about the problem here.