azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

`storage cors add`: '--methods' unclear

Open ccanizares opened this issue 8 years ago • 3 comments

Trying to add cors via api, documentation here is not clear... which format should I use for methods param on add? invested some time and not able to add cors via az client... methods param only accept one verb


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

  • ID: b2e3dfa7-e7ba-d8b9-9c8b-7a716016b7c0
  • Version Independent ID: 249776f7-0d81-361b-822e-b87c2ca7fb23
  • Content
  • Content Source
  • Service: storage

ccanizares avatar Feb 21 '18 09:02 ccanizares

The --methods parameter accepts a space-separate list of verbs, not just a single verb. So, for example: az storage cors add --methods GET PUT ...

@troydai we should update the help text to clearly state "Space-separated" instead of just "List" which is ambiguous.

tjprescott avatar Feb 21 '18 16:02 tjprescott

Yeah.

troydai avatar Feb 27 '18 07:02 troydai

Precisely. Especially since until some versions ago, it would accept this notation: {GET,OPTIONS,PUT} and all of a sudden it doesn't (at least since 2.0.28, maybe earlier)

gvilarino avatar Mar 19 '18 15:03 gvilarino