The normal UI for end users (not cluster-admins) is the
"request-project" flow, which end users are allowed to ask for.
Creating a project is an admin level action.  From the CLI you can run
oc new-project foo --loglevel=9 and see what we are sending to the
server.

On Wed, Jan 27, 2016 at 1:05 PM, phijo joseph <[email protected]> wrote:
> Hi
>
> Why i am not able to create a project using API, But able to create a
> project  using GUI
>
> URL : https://<myip>8443/oapi/v1/projects
> Method : Post
> Query :
> {
>   "apiVersion": "v1",
>   "kind": "Projects",
>   "metadata": {
>     "name": "testuserproject"
>   }
> }
>
> Response
> {
>   "kind": "Status",
>   "apiVersion": "v1",
>   "metadata": {},
>   "status": "Failure",
>   "message": "User \"test\" cannot create projects at the cluster scope",
>   "reason": "Forbidden",
>   "details": {
>     "kind": "projects"
>   },
>   "code": 403
> }
>
> Regards
> Phijo
>
> _______________________________________________
> dev mailing list
> [email protected]
> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
>

_______________________________________________
dev mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/dev

Reply via email to