Assign Entity to Role
    • PDF

    Assign Entity to Role

    • PDF

    Article Summary

    Assign entities (servers, accounts) to roles.

    API

    • POST /roles/{roleNo}/entities

    Requests

    Path Variables

    ParametersRequirement statusTypeRestrictionsDescription
    roleNoYStringRole No

    Body

    {
    	"roleEntityList": [
    		{
    			"id": "string",
    			"type": "string"
    		}
    	]
    }
    
    ParametersRequirement statusTypeRestrictionsDescription
    roleEntityListYarrayRole entity list
    roleEntityList.idNstring
    roleEntityList.typeNstringServer, Service
    roleEntityList.entityIdNintegerDeprecated
    roleEntityList.entityTypeNstringDeprecated

    Responses

    • Responses
    Parameter nameRequirement statusTypeDescription
    ProcessResultYArrayProcessing result
    • Response examples - Success
    [
      {
        "id": "entityId",
        "name": "addEntity",
        "success": true
      }
    ]
    
    • Response examples - entities not owned by a user
    [
      {
        "success": false,
        "id": "entityId",
        "message": "This entity is not owned by an account."
      }
    ]
    
    • Response examples - already registered entity
    [
      {
        "success": false,
        "id": "entityId",
        "message": "The entity is already registered."
      }
    ]
    

    Errors

    Errors that may occur while using this action are listed below. For error response format, see ErrorResponse.
    For more information about common errors, see NAVER Cloud Platform API.

    HTTP status codeError codeError message
    40130Wrong roleNo
    404910There are entities that don't fit the RoleType

    API

    • POST /roles/{roleNo}/entities/account

    Requests

    Path Variables

    ParametersRequirement statusTypeRestrictionsDescription
    roleNoYStringRole No

    Body

    {
        "isMyAccount" : "boolean",
        "accountName" : "string",
        "loginId":  "string"
    }
    
    ParametersRequirement statusTypeRestrictionsDescription
    isMyAccountYbooleanMy account (true), other main account (false)
    accountNameNstringUsername
    loginIdNstringLogin ID

    Responses

    • Responses
    Parameter nameRequirement statusTypeDescription
    ProcessResultYArrayProcessing result
    • Response examples - Success
    {
      "success": true
    }
    

    Errors

    Errors that may occur while using this action are listed below. For error response format, see ErrorResponse.
    For more information about common errors, see NAVER Cloud Platform API.

    HTTP status codeError codeError message
    40130Wrong roleNo
    400400isMyAccount is missing
    400400The value of the entered value is invalid
    4009001You must enter the account name
    4009001You must enter login ID

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.