Please try this - https://medium.com/adobetech/aem-bulk-sites-creation-live-copies-automation-using-wcmcommand-servlet-6aa738dc0a73I have not tried in AEM as a cloud service though.
This pattern seems incorrect. The correct pattern will be something like this: /0100 { /type "allow" /method "GET" /path "/content/re/en/brand" /selectors "products-sitemap" /extension "xml"}