【正文】
機(jī)或分開安裝的Broker 節(jié)點(diǎn)執(zhí)行腳本:執(zhí)行腳本后啟動(dòng)Broker 服務(wù)。通過訪問Broker的API json服務(wù)進(jìn)行驗(yàn)證是否安裝正確:執(zhí)行命令:Curl u root:123456 ://localhost:8080/broker/rest/成功標(biāo)志:執(zhí)行后返回 APIs 的 JSON 描述:{api_version:,data:{API:{href:://localhost:8080/broker/rest/api,method:GET,optional_params:[],rel:API entrypoint,required_params:[]},GET_ENVIRONMENT:{href:://localhost:8080/broker/rest/environment,method:GET,optional_params:[],rel:Get environmentinformation,required_params:[]},GET_USER:{href:://localhost:8080/broker/rest/user,method:GET,optional_params:[],rel:Get userinformation,required_params:[]},ADD_DOMAIN:{href:://localhost:8080/broker/rest/domains,method:POST,optional_params:[{default_value:null,description:A list of gearsizes that are allowed to be created on thisdomain,name:allowed_gear_sizes,type:array,valid_options:[small,medium]}],rel:Create newdomain,required_params:[{description:Name of thedomain,invalid_options:[],name:name,type:string,valid_option80/broker/rest/domains,method:GET,optional_params:[],rel:List all domains you have accessto,required_params:[]},LIST_DOMAINS_BY_OWNER:{href:http://localhost:8080/broker/rest/domains,method:GET,optional_params:[],rel:Listdomains,required_params:[{description:Return only thedomains owned by the specified user id or identity. Use self torefer to the currentuser.,invalid_options:[],name:owner,type:string,valid_options:[self,*]}]},SHOW_DOMAIN:{href:://localhost:8080/broker/rest/domain/:name,method:GET,optional_params:[],rel:Retrieve a domain by itsname,required_params:[{description:Unique name of thedomain,invalid_options:[],name::name,type:string,valid_options:[]}]},SHOW_APPLICATION_BY_DOMAIN:{href:://localhost:8080/broker/rest/domain/:domain_name/application/:name,method:GET,optional_params:[],rel:Retrieve anapplication by its name anddomain,required_params:[{description:Unique name of thedomain,invalid_options:[],name::domain_name,type:string,valid_options:[]},{description:Name of theapplication,invalid_options:[],name::name,type:string,valid_options:[]}]},LIST_CARTRIDGES:{href:://localhost:8080/broker/rest/cartridges,method:GET,optional_params:[],rel:Listcartridges,required_params:[]},LIST_APPLICATIONS:{href:://localhost:8080/broker/rest/applications,method:GET,optional_params:[],rel:Listapplication,required_params:[]},SHOW_APPLICATION:{href:application/:id/edit\n Grant edit access to a single application.Valid for about 1 month.\n* application/:id/admin\n Grant fulladministrative access to a single application. Valid for about 1month.,name:scope,type:string,valid_options:[session,read,userinfo,domain/:id/view,domain/:id/edit,domain/:id/admin,application/:id/view,application/:id/edit,application/:id/admin]},{default_value:null,description:A description to remind you what this authorization isfor.,name:note,type:string,valid_options:[]},{default_value:1,description:The number of seconds before thisauthorization expires. Out of range values will be set to themaximum allowedtime.,name:expires_in,type:integer,valid_options:[]},{default_value:false,description:Attempt to locate andreuse an authorization that matches the scope and note and has notyetexpired.,name:reuse,type:boolean,valid_options:[true,false]}],rel:Add newauthorization,required_params:[]},LIST_QUICKSTARTS:{href:://localhost:8080/broker/rest/quickstarts,method:GET,optional_para