Common description:
- Export/Import a single application plan to/from yaml content.
- Limits defined in the application plan are included.
- Pricing rules defined in the application plan are included.
- Metrics/methods referenced by limits and pricing rules are included.
- Features defined in the application plan are included.
- Service can be referenced by
id
orsystem_name
. - Application Plan can be referenced by
id
orsystem_name
.
Specific to export
command:
- Read only operation on remote service and application plan.
- Command
output
can bestdout
or file. If not specified by-f
option, by default, yaml content will be written onstdout
.
Specific to import
command:
- Command
input
content can bestdin
, file or URL format. If not specified by-f
option, by default, yaml content will be read fromstdin
. - If application plan cannot be found in remote service, it will be created.
- Optional param
-p, --plan
to override remote target application planid
orsystem_name
. If not specified by-p
option, by default, application plan will be referenced by plan attributesystem_name
from yaml content. - Any metric or method from yaml content that cannot be found in remote service, will be created.
- Imported resource as the source of truth. All existing pricing rules and limits will be deleted before importing new ones.
NAME
export - export application plan
USAGE
3scale application-plan export [opts] <remote>
<service_system_name> <plan_system_name>
DESCRIPTION
Export application plan, limits, pricing rules and features
OPTIONS
-f --file=<value> Write to file instead of stdout
NAME
import - import application plan
USAGE
3scale application-plan import [opts] <remote>
<service_system_name>
DESCRIPTION
Import application plan, limits, pricing rules and features
OPTIONS
-f --file=<value> Read from file or url instead of stdin
-p --plan=<value> Override application plan reference
$ 3scale application-plan export -f plan.yaml remote_name service_name plan_name
$ 3scale application-plan import -f plan.yaml remote_name service_name
$ 3scale application-plan import -f http[s]://domain/resource/path.yaml remote_name service_name