diff --git a/commands/cdn/distribution/routingrules/routing_rules.go b/commands/cdn/distribution/routingrules/routing_rules.go index 637e5ab13..d2c09acf3 100644 --- a/commands/cdn/distribution/routingrules/routing_rules.go +++ b/commands/cdn/distribution/routingrules/routing_rules.go @@ -17,7 +17,7 @@ import ( ) var ( - allRoutingRulesColumns = []string{"Scheme", "Prefix", "Host", "Caching", "Waf", "RateLimitClass", "SniMode", "GeoRestrictions"} + allRoutingRulesColumns = []string{"Scheme", "Prefix", "Host", "Caching", "Waf", "RateLimitClass", "SniMode", "GeoRestrictionsAllowList", "GeoRestrictionsBlockList"} defaultRoutingRulesColumns = []string{"Scheme", "Prefix", "Host", "RateLimitClass", "SniMode"} ) diff --git a/internal/constants/constants.go b/internal/constants/constants.go index 0551f7b33..3accd89d7 100644 --- a/internal/constants/constants.go +++ b/internal/constants/constants.go @@ -78,8 +78,8 @@ Within each layer, a token takes precedence over a username and password combina FlagLoggingPipelineLogType = "log-type" FlagLoggingPipelineLogRetentionTime = "log-retention-time" - FlagCDNDistributionFilterDomain = "filter.domain" - FlagCDNDistributionFilterState = "filter.state" + FlagCDNDistributionFilterDomain = "domain" + FlagCDNDistributionFilterState = "state" FlagCDNDistributionID = "distribution-id" FlagCDNDistributionDomain = "domain" FlagCDNDistributionCertificateID = "certificate-id" diff --git a/internal/printer/json2table/jsonpaths/cdn.go b/internal/printer/json2table/jsonpaths/cdn.go index 6d3e4c08c..b27fcd88c 100644 --- a/internal/printer/json2table/jsonpaths/cdn.go +++ b/internal/printer/json2table/jsonpaths/cdn.go @@ -8,12 +8,13 @@ var CDNDistribution = map[string]string{ } var CDNRoutingRule = map[string]string{ - "Scheme": "scheme", - "Prefix": "prefix", - "Host": "upstream.host", - "Caching": "upstream.caching", - "Waf": "upstream.waf", - "SniMode": "upstream.sniMode", - "GeoRestrictions": "upstream.geoRestrictions", - "RateLimitClass": "upstream.rateLimitClass", + "Scheme": "scheme", + "Prefix": "prefix", + "Host": "upstream.host", + "Caching": "upstream.caching", + "Waf": "upstream.waf", + "SniMode": "upstream.sniMode", + "GeoRestrictionsAllowList": "upstream.geoRestrictions.allowList", + "GeoRestrictionsBlockList": "upstream.geoRestrictions.blockList", + "RateLimitClass": "upstream.rateLimitClass", }