- CheckMates
- :
- Products
- :
- Developers
- :
- API / CLI Discussion
- :
- Re: Creating Rules in R80.10 domain controlled by ...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Creating Rules in R80.10 domain controlled by multi domain server (Provider 1) using R80.10 API
Hi,
I have a multi-domain server (Provider 1) with a domain (without any global policy assigned).
Tried creating a rule using R80.10 API but it shows "Requested object [Network] not found" error.
I am able to log in, create a host but not able to do anything which requires layer information using R80.10 API.
Tried creating a new layer as well but it shows "Runtime error: An internal error has occurred."
How are we supposed to create a rule for such type of setup?
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Tomer,
I was using below syntax to login to a domain before:
{
"user" : "username",
"password" : "password"
}
But login to the domain with below syntax solve the problem of "Object not found" and "empty layer list":
{
"user" : "username",
"password" : "password",
"domain" : "domain name"
}
Now I am able to create a rule as well as able to fetch the list of all the layers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Moving this to Developers (Code Hub).
Generally, you should be able to create rules and the like using the API with Multi-Domain.
All the API calls should have a "Domain" parameter to make sure you are executing the command in the correct domain.
It would help if you could post the exact API calls you were making.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I was using "add-access-rule" API to create rule and "add-access-layer" to create the new layer.
These Apis don't have "domain" parameter.
This problem is solved by making login call using "domain" parameter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
RIght, you have to log into the correct domain when you create the session.
I was misremembering the AP documentation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
can you please specify the API syntax which you have been using to login, create the network, and then create the rule with the "object not found" problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Tomer,
I was using below syntax to login to a domain before:
{
"user" : "username",
"password" : "password"
}
But login to the domain with below syntax solve the problem of "Object not found" and "empty layer list":
{
"user" : "username",
"password" : "password",
"domain" : "domain name"
}
Now I am able to create a rule as well as able to fetch the list of all the layers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Ekta. I was stuck at the same point.