Common description:
- Export/Import one product's policy chain to/from yaml/json content.
- Product can be referenced by
idorsystem_name.
Specific to export command:
- Read only operation on the remote product.
- Command
outputcan bestdoutor file. If not specified by-foption, by default, the content will be written onstdout. - Command output format can be
jsonoryamlusing-ooption. Defaults toyaml
Specific to import command:
- Imported content can be
stdin(by default), file (-foption) or URL (-uoption). - Imported content can be
yamlorjson. No need to specify the format, the content format will be detected automatically. - Imported resource as the source of truth. The existing policy chain will be updated with the imported new one.
SETsemantics implemented. - All content validation is delegated to the 3scale API.
NAME
export - export product policy chain
USAGE
3scale policies export [opts] <remote>
<product>
DESCRIPTION
export product policy chain
OPTIONS
-f --file=<value> Write to file instead of stdout
-o --output=<value> Output format. One of: json|yamlNAME
import - import product policy chain
USAGE
3scale policies import [opts] <remote>
<product>
DESCRIPTION
import product policy chain
OPTIONS
-f --file=<value> Read from file
-u --url=<value> Read from url$ 3scale policies export -f policies.yaml -o yaml remote_name product_name$ 3scale policies import -f plan.yaml remote_name product_name$ 3scale policies import -f http[s]://domain/resource/path.yaml remote_name product_name