appdata.destroyNameSpace - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki
gigagenie.appdata.destroyNameSpace
API μ€λͺ
- λ°μ΄ν°λ€μμ€νμ΄μ€ μμ API
- νΉμ μ΄λ¦μ λ°μ΄ν°λ€μμ€νμ΄μ€λ₯Ό μμ
- λ€μμ€νμ΄μ€ μμ μ λͺ¨λ λ°μ΄ν°λ ν¨κ» μμ
API ꡬ쑰
- function destroyNameSpace(options,callback)
options
namespace
: (String, Mandatory) μμ ν Namespaceλͺ
result_cd
200
: μ±κ³΅
404
: μ‘΄μ¬νμ§ μλ λ€μμ€νμ΄μ€μ
500
: μμ€ν
Error
extra
μ¬μ© μμ
// callback λ°©μ
var options = {};
options.namespace = 'userappprofile';
gigagenie.appdata.destroyNameSpace(options, function (result_cd, result_msg, extra) {
if (result_cd === 200) {
console.log("Namespace destroy is success.");
} else {
console.log("Error");
}
});
// promise λ°©μ
var options = {};
options.namespace = 'userappprofile';
gigagenie.appdata.destroyNameSpace(options).then(function (extra) {
console.log("Namespace destroy is success.");
}).catch(function (result_cd, result_msg, extra) {
console.log("Namespace creation is fail.");
})