-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add table azure_firewall_policy. closes #554 #598
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ParthaI please take a look at the review comments. Thanks!!
Also could you please add a few more examples around the threat_intel_*
columns?
azure/table_azure_firewall_policy.go
Outdated
}, | ||
{ | ||
Name: "etag", | ||
Description: "An unique read-only string that changes whenever the resource is updated.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description: "An unique read-only string that changes whenever the resource is updated.", | |
Description: "A unique read-only string that changes whenever the resource is updated.", |
azure/table_azure_firewall_policy.go
Outdated
}, | ||
{ | ||
Name: "rule_collection_groups", | ||
Description: "List of references to FirewallPolicyRuleCollectionGroups", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description: "List of references to FirewallPolicyRuleCollectionGroups", | |
Description: "List of references to FirewallPolicyRuleCollectionGroups.", |
azure/table_azure_firewall_policy.go
Outdated
} | ||
} | ||
} | ||
return nil, err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return nil, err | |
return nil, nil |
azure/table_azure_firewall_policy.go
Outdated
//// Transform Functions | ||
|
||
// func ipConfigurationData(ctx context.Context, d *transform.TransformData) (interface{}, error) { | ||
// data := d.HydrateItem.(network.AzureFirewall) | ||
|
||
// var output []map[string]interface{} | ||
// // Add a check for AzureFirewallPropertiesFormat.IPConfigurations data to ensure that | ||
// // it is not null to avoid panic errors | ||
// if data.AzureFirewallPropertiesFormat.IPConfigurations != nil { | ||
// for _, firewall := range *data.AzureFirewallPropertiesFormat.IPConfigurations { | ||
// objectMap := make(map[string]interface{}) | ||
// if firewall.AzureFirewallIPConfigurationPropertiesFormat.PrivateIPAddress != nil { | ||
// objectMap["privateIPAddress"] = firewall.AzureFirewallIPConfigurationPropertiesFormat.PrivateIPAddress | ||
// } | ||
// if firewall.AzureFirewallIPConfigurationPropertiesFormat.PublicIPAddress != nil { | ||
// objectMap["publicIPAddress"] = firewall.AzureFirewallIPConfigurationPropertiesFormat.PublicIPAddress | ||
// } | ||
// if firewall.AzureFirewallIPConfigurationPropertiesFormat.Subnet != nil { | ||
// objectMap["subnet"] = firewall.AzureFirewallIPConfigurationPropertiesFormat.Subnet | ||
// } | ||
// if firewall.AzureFirewallIPConfigurationPropertiesFormat.ProvisioningState != "" { | ||
// objectMap["provisioningState"] = firewall.AzureFirewallIPConfigurationPropertiesFormat.ProvisioningState | ||
// } | ||
// output = append(output, objectMap) | ||
// } | ||
// return output, nil | ||
// } | ||
// return nil, nil | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//// Transform Functions | |
// func ipConfigurationData(ctx context.Context, d *transform.TransformData) (interface{}, error) { | |
// data := d.HydrateItem.(network.AzureFirewall) | |
// var output []map[string]interface{} | |
// // Add a check for AzureFirewallPropertiesFormat.IPConfigurations data to ensure that | |
// // it is not null to avoid panic errors | |
// if data.AzureFirewallPropertiesFormat.IPConfigurations != nil { | |
// for _, firewall := range *data.AzureFirewallPropertiesFormat.IPConfigurations { | |
// objectMap := make(map[string]interface{}) | |
// if firewall.AzureFirewallIPConfigurationPropertiesFormat.PrivateIPAddress != nil { | |
// objectMap["privateIPAddress"] = firewall.AzureFirewallIPConfigurationPropertiesFormat.PrivateIPAddress | |
// } | |
// if firewall.AzureFirewallIPConfigurationPropertiesFormat.PublicIPAddress != nil { | |
// objectMap["publicIPAddress"] = firewall.AzureFirewallIPConfigurationPropertiesFormat.PublicIPAddress | |
// } | |
// if firewall.AzureFirewallIPConfigurationPropertiesFormat.Subnet != nil { | |
// objectMap["subnet"] = firewall.AzureFirewallIPConfigurationPropertiesFormat.Subnet | |
// } | |
// if firewall.AzureFirewallIPConfigurationPropertiesFormat.ProvisioningState != "" { | |
// objectMap["provisioningState"] = firewall.AzureFirewallIPConfigurationPropertiesFormat.ProvisioningState | |
// } | |
// output = append(output, objectMap) | |
// } | |
// return output, nil | |
// } | |
// return nil, nil | |
// } |
docs/tables/azure_firewall_policy.md
Outdated
provisioning_state = 'Failed'; | ||
``` | ||
|
||
### Get firewall details for each policy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Get firewall details for each policy | |
### Get firewall details of each policy |
docs/tables/azure_firewall_policy.md
Outdated
f.id = firewall -> 'ID'; | ||
``` | ||
|
||
### Get DNS setting details for each policy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Get DNS setting details for each policy | |
### Get DNS setting details of each policy |
Integration test logs
Logs
Example query results
Results