This command makes a copy of the referenced service.
Target service will be searched by the source service system name. System name can be overridden with --target_system_name
option.
If a service with the selected system_name
is not found, it will be created.
Components of the service being copied:
- service settings
- proxy settings
- proxy settings: Staging/Production Public Base URL only copied for self-managed deployments.
- pricing rules
- activedocs
- metrics
- methods
- application plans
- mapping rules
- policies. Note: If the service to be copied has custom policies make sure that their respective custom policy definitions already exist in the destination where the service is to be copied before performing the copy. To learn more about copying custom policy definitions check out the Copy Policy Registry documentation
3scale instances can be either a URL or the name of a remote.
Note Both command calls 3scale copy service
or 3scale service copy
refer to the same command.
NAME
copy - Copy service
USAGE
3scale service copy [opts] -s <src> -d <dst>
<source-service>
DESCRIPTION
This command makes a copy of the referenced service. Target service will
be searched by the source service system name. System name can be overridden
with `--target_system_name` option. If a service with the selected
`system_name` is not found, it will be created.
Components of the service being copied:
service settings
proxy settings
pricing rules
activedocs
metrics
methods
application plans
mapping rules
OPTIONS
-d --destination=<value> 3scale target instance. Url or
remote name
-f --force Overwrites the mapping rules by
deleting all rules from target
service first
-r --rules-only Only mapping rules are copied
-s --source=<value> 3scale source instance. Url or
remote name
-t --target_system_name=<value> Target system name. Default to
source system name
3scale service copy --source=s1 --destination=s2 my_service