Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You can get the sign up details of an application using the CLI tool, REST API or the Private PaaS console (UI) as shown below:

 

Localtabgroup
Localtab
activetrue
titleCLI

Signing up to an application via the CLI

Overview
CLI command
describe-application-signup
DescriptionRetrieve application sign up details of a specific application.
Command format
Code Block
describe-application-signup <APPLICATION_ID>
Parameter definition
Short optionLong optionDescriptionRequiredExample value
N/AN/AApplication ID.Yeswso2am-190-application
Example

Retrieve the application sign up details of the wso2am-190-application application.

Code Block
describe-application-signup wso2am-190-application
Sample output
Code Block
Application signup for application : wso2am-190-application
{
  "artifactRepositories": [
    {
      "alias": "wso2as-521-worker",
      "privateRepo": false,
      "repoUrl": "https://github.com/imesh/stratos-php-applications.git",
      "repoUsername": "",
      "repoPassword": ""
    },
    {
      "alias": "wso2as-521-manager",
      "privateRepo": false,
      "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git",
      "repoUsername": "",
      "repoPassword": ""
    }
  ]
}
Localtab
titleREST API

Signing up to an application via the REST API

Overview
DescriptionRetrieve sign up details of a specific application.
Resource Path/applications/{applicationId}/signup
HTTP MethodGET
Request/Response Formatapplication/json
Command format
Code Block
curl -X GET -H "Content-Type: application/json" -k -v -u <USERNAME>:<PASSWORD> https://<PRIVATE_PAAS_HOST>:<PRIVATE_PAAS_HTTPS_PORT>/api/applications/{applicationId}/signup
Info
  • By default, <USERNAME>:<PASSWORD> is admin:admin.
  • By default, <PRIVATE_PAAS_HOST> is localhost. However, if you are using a public IP, the respective IP address or domain needs to be specified.
  • By default, <PRIVATE_PAAS_HTTPS_PORT> has been set to 9443. However, if the port offset has been incremented by n, the default port value needs to be incremented by n.
Example

Retrieve the application sign up details of the wso2am-190-application application.

Code Block
curl -X GET -H "Content-Type: application/json" -k -v -u admin:admin https://localhost:9443/api/applications/wso2am-190-application/signup
Sample output
Code Block
> GET /api/applications/wso2as-521-application/signup HTTP/1.1
> Host: localhost:9443
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.43.0
> Accept: */*
> Content-Type: application/json
> 
< HTTP/1.1 200 OK
< Date: Tue, 13 Oct 2015 08:59:31 GMT
< Content-Type: application/json
< Transfer-Encoding: chunked
< Server: WSO2 Carbon Server
< 
{"artifactRepositories":[{"alias":"wso2as-521-worker","privateRepo":false,"repoPassword":"","repoUrl":"https:\/\/github.com\/imesh\/stratos-php-applications.git","repoUsername":""},{"alias":"wso2as-521-manager","privateRepo":false,"repoPassword":"","repoUrl":"https:\/\/github.com\/imesh\/stratos-tomcat-applications.git","repoUsername":""}]}Shavindris-MacBook-Air:Private_PaaS shavindridissanayake$

You will come across the following HTTP status codes while getting the sign up details of an application:

HTTP status code

200, 404, 500

See the descriptions of the HTTP status codes here.

Localtab
titlePrivate PaaS console

Signing up to an application via the REST API

 

...