2424@click .option ('--bucket-name' , '-b' ,
2525 type = click .STRING ,
2626 help = "The name of the available resource [required if --origin-type=storage]" )
27- @click .option ('--port' , '-p' ,
27+ @click .option ('--http- port' , '-p' ,
2828 type = click .INT ,
29- help = "The http port number." ,
30- default = 80 ,
31- show_default = True )
29+ help = "The http port number. [http or https is required]" )
3230@click .option ('--https-port' , '-s' ,
3331 type = click .INT ,
34- help = "The https port number."
32+ help = "The https port number. [http or https is required] "
3533 )
3634@click .option ('--protocol' , '-P' ,
3735 type = click .STRING ,
4442 default = 'web' ,
4543 show_default = True )
4644@click .option ('--dynamic-path' , '-d' ,
47- help = "The path that Akamai edge servers periodically fetch the test object from. example = /detection-test-object.html" )
45+ help = "The path that Akamai edge servers periodically fetch the test object from."
46+ "example = /detection-test-object.html" )
4847@click .option ('--compression' , '-i' ,
4948 help = "Enable or disable compression of JPEG images for requests over certain network conditions." ,
49+ default = 'true' ,
5050 show_default = True )
5151@click .option ('--prefetching' , '-g' ,
5252 help = "Enable or disable the embedded object prefetching feature." ,
53+ default = 'true' ,
5354 show_default = True )
5455@click .option ('--extensions' , '-e' ,
5556 type = click .STRING ,
6263 show_default = True )
6364@environment .pass_env
6465def cli (env , unique_id , origin , path , origin_type , header ,
65- bucket_name , port , https_port , protocol , optimize_for ,
66+ bucket_name , http_port , https_port , protocol , optimize_for ,
6667 dynamic_path , compression , prefetching ,
6768 extensions , cache_query ):
6869 """Create an origin path for an existing CDN mapping.
@@ -77,7 +78,7 @@ def cli(env, unique_id, origin, path, origin_type, header,
7778 raise exceptions .ArgumentError ('[-b | --bucket-name] is required when [-t | --origin-type] is "storage"' )
7879
7980 result = manager .add_origin (unique_id , origin , path , dynamic_path , origin_type = origin_type ,
80- header = header , port = port , https_port = https_port , protocol = protocol ,
81+ header = header , http_port = http_port , https_port = https_port , protocol = protocol ,
8182 bucket_name = bucket_name , file_extensions = extensions ,
8283 optimize_for = optimize_for ,
8384 compression = compression , prefetching = prefetching ,
@@ -94,8 +95,11 @@ def cli(env, unique_id, origin, path, origin_type, header,
9495
9596 table .add_row (['Origin' , result ['origin' ]])
9697 table .add_row (['Origin Type' , result ['originType' ]])
98+ table .add_row (['Header' , result ['header' ]])
9799 table .add_row (['Path' , result ['path' ]])
98- table .add_row (['Port' , result ['httpPort' ]])
100+ table .add_row (['Http Port' , result ['httpPort' ]])
101+ table .add_row (['Https Port' , result ['httpsPort' ]])
102+ table .add_row (['Cache Key Rule' , result ['cacheKeyQueryRule' ]])
99103 table .add_row (['Configuration' , result ['performanceConfiguration' ]])
100104 table .add_row (['Status' , result ['status' ]])
101105
0 commit comments