Hi Devs,

AFAIU, at the moment when subscribe to a service (via the REST api), we
need to provide the tenant user's credentials.

Following is a sample rest call:
curl -X POST -H "Content-Type: application/json" -d @subscribe.json -k -v
-u username@tenantdomain:password
https://sc.dev.com:9443/stratos/admin/cartridge/subscribe


Following is a sample payload.

{
    "cartridgeType": "appserver",
    "alias": "appservermyorg2",
    "repoURL": "https://git.com/git/Development/as/1.git";,
    "privateRepo": "true",
    "repoUsername": "gituser",
    "repoPassword": "xxxxxxxxx",
    "commitsEnabled": "true",
    "autoscalePolicy": "stratos_autoscale",
    "deploymentPolicy": "stratos_deployment"
}

Can I subscribe a tenant on behalf of him/her by giving super admin
credentials?

Regards,
Amila.
-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446

Reply via email to