cancel
Showing results for 
Search instead for 
Did you mean: 

GraphQL Query to Create new Policy Mappings in XMC/XIQ-SE

GraphQL Query to Create new Policy Mappings in XMC/XIQ-SE

Configterminal
Contributor

Hello, I have another request if possible.  I'd like to create a new Policy Mapping using graphQL (As I will need to create 70  that are each location specific for each Policy Profile that references it).

I've searched my documentation but can't get the query put together properly, as I will admit my GraphQL skills are definitely lacking.  This is what I got but it doesn't return properly (bonus points if you can explain the workflow behind putting some of these together properly, as the documentation appears to be quite vague)

mutation{
accessControl
{
PolicyMappingEntryInput (input: {
name: "802.1x-PEAP-Policy"
locationName: "PS100-MGMT"

})
{
message
status
}
}

}

1 REPLY 1

MarieKraus
Visitor

Hey,

I think, this is what you are looking for:

mutation {
          accessControl {
            createPolicyMappingEntry( input: {
              custom1: "<CUSTOM>"
              name: "<NAME>"
              policyName: "<POLICYNAME>"
              vlanEgress: "U"
              vlanId: VLANID
              vlanName: "<VLANNAME>"
        }) {
      message
      status
        }
      }
    }

Replace the parameters with the needed ones. Here ist the complete Selection. Good Luck 🙂

MarieKraus_0-1743415747055.png

 

GTM-P2G8KFN