All URIs are relative to https://api.meraki.com/api/v1
Method | HTTP request | Description |
---|---|---|
GetNetworkApplianceFirewallCellularFirewallRules | Get /networks/{networkId}/appliance/firewall/cellularFirewallRules | Return the cellular firewall rules for an MX network |
UpdateNetworkApplianceFirewallCellularFirewallRules | Put /networks/{networkId}/appliance/firewall/cellularFirewallRules | Update the cellular firewall rules of an MX network |
map[string]interface{} GetNetworkApplianceFirewallCellularFirewallRules(ctx, networkId).Execute()
Return the cellular firewall rules for an MX network
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/meraki/dashboard-api-go/client"
)
func main() {
networkId := "networkId_example" // string | Network ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CellularFirewallRulesApi.GetNetworkApplianceFirewallCellularFirewallRules(context.Background(), networkId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CellularFirewallRulesApi.GetNetworkApplianceFirewallCellularFirewallRules``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetNetworkApplianceFirewallCellularFirewallRules`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `CellularFirewallRulesApi.GetNetworkApplianceFirewallCellularFirewallRules`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
networkId | string | Network ID |
Other parameters are passed through a pointer to a apiGetNetworkApplianceFirewallCellularFirewallRulesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
map[string]interface{}
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} UpdateNetworkApplianceFirewallCellularFirewallRules(ctx, networkId).UpdateNetworkApplianceFirewallCellularFirewallRulesRequest(updateNetworkApplianceFirewallCellularFirewallRulesRequest).Execute()
Update the cellular firewall rules of an MX network
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/meraki/dashboard-api-go/client"
)
func main() {
networkId := "networkId_example" // string | Network ID
updateNetworkApplianceFirewallCellularFirewallRulesRequest := *openapiclient.NewUpdateNetworkApplianceFirewallCellularFirewallRulesRequest() // UpdateNetworkApplianceFirewallCellularFirewallRulesRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CellularFirewallRulesApi.UpdateNetworkApplianceFirewallCellularFirewallRules(context.Background(), networkId).UpdateNetworkApplianceFirewallCellularFirewallRulesRequest(updateNetworkApplianceFirewallCellularFirewallRulesRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CellularFirewallRulesApi.UpdateNetworkApplianceFirewallCellularFirewallRules``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateNetworkApplianceFirewallCellularFirewallRules`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `CellularFirewallRulesApi.UpdateNetworkApplianceFirewallCellularFirewallRules`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
networkId | string | Network ID |
Other parameters are passed through a pointer to a apiUpdateNetworkApplianceFirewallCellularFirewallRulesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
updateNetworkApplianceFirewallCellularFirewallRulesRequest | UpdateNetworkApplianceFirewallCellularFirewallRulesRequest | |
map[string]interface{}
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]