Home > other >  Novice fusioncompute consult how to use curl to call its restful API
Novice fusioncompute consult how to use curl to call its restful API

Time:09-23

Novice, simply want to use curl to invoke fusioncompute provides restful API to do some maintenance work, for example:
Query role details

Request form
The Get & lt; Role_uri & gt;/query/& lt; RoleName & gt; HTTP/1.1
Host: https:// : & lt; Port>
Accept: application/json; Version=& lt; Version>; Charset=utf-8
Content-Type: application/json; Charset=utf-8
X - Auth Token: & lt; Authen_TOKEN & gt;


The response form
HTTP/1.1 200 OKAY
Date: Mon, 12 Nov 2007 15:55:01 GMT
The Content - Length: XXX
Content-Type: application/json; Charset=utf-8
{
"Description" : "String",
"UserName" : "String; The String ",
"RoleName" : "String",
"RightType" : an integer,
"Popedom" :

{
"RightId" : "String",
"RightName" : String,
}
]
"CreateTime" : "1339074358",
"UserNum" : "String"
}

If just using the curl, so how to write? Teachers, please help me to look at it? thank you

CodePudding user response:

I have recently been doing similar things, do you have a restful API interface document? Can you give me a not?

CodePudding user response:

  • Related