Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Get the ACL of a specific service in the product scope

Input

...

Code Block
Type: application/json


Name

Source

Mandatory

Type

Special Format

Description

productCode

Query

YES

String

The product code

mainEnv

Query

YES

String

secEnv

Query

NO

String

page

Query

NO

integer


Output

...

Response

SOAJS has a unified response. Check out this link to understand more the schema of SOAJS response 

Valid Response

Expand
titleValid Response

Code Block
languagejs
{
	"result": true,
	"data": {
		"product": "TROD",
		"acl": [{
			"service": "micro1",
			"version": "1.2",
			"envs": {
				"dev": false
			},
			"restriction": {
				"dev": true
			},
			"access": {
				"dev": true
			}
		}, {
			"service": "infra",
			"version": "1",
			"envs": {
				"dev": false
			},
			"restriction": {
				"dev": true
			},
			"access": {
				"dev": true
			}
		}, {
			"service": "oauth",
			"version": "1",
			"envs": {
				"dev": false
			},
			"restriction": {
				"dev": true
			},
			"access": {
				"dev": true
			}
		}, {
			"service": "urac",
			"version": "3",
			"envs": {
				"dev": true
			},
			"restriction": {
				"dev": true
			},
			"access": {
				"dev": true
			}
		}, {
			"service": "multitenant",
			"version": "1",
			"envs": {
				"dev": false
			},
			"restriction": {
				"dev": true
			},
			"access": {
				"dev": true
			}
		}, {
			"service": "repositories",
			"version": "1",
			"envs": {
				"dev": false
			},
			"restriction": {
				"dev": true
			},
			"access": {
				"dev": true
			}
		}, {
			"service": "controller",
			"version": "1",
			"envs": {
				"dev": false
			},
			"restriction": {
				"dev": true
			},
			"access": {
				"dev": true
			}
		}, {
			"service": "marketplace",
			"version": "1",
			"envs": {
				"dev": false
			},
			"restriction": {
				"dev": true
			},
			"access": {
				"dev": true
			}
		}, {
			"service": "soamonitor",
			"version": "1",
			"envs": {
				"dev": false
			},
			"restriction": {
				"dev": true
			},
			"access": {
				"dev": true
			}
		}, {
			"service": "soaanalytics",
			"version": "1",
			"envs": {
				"dev": false
			},
			"restriction": {
				"dev": true
			},
			"access": {
				"dev": true
			}
		}, {
			"service": "console",
			"version": "1",
			"envs": {
				"dev": false
			},
			"restriction": {
				"dev": true
			},
			"access": {
				"dev": true
			}
		}, {
			"service": "dashboard",
			"version": "1",
			"envs": {
				"dev": false
			},
			"restriction": {
				"dev": true
			},
			"access": {
				"dev": true
			}
		}]
	}
}

Invalid Response

Code Block
{
    "result":false,
    "errors":{
        "codes":[460],
        "details":[
            {
                "code":460,
                "message":"Unable to find product"
            }
        ]
    }
}

Response schema

Follow this link to check out the response JSON Schema

SOAJS Error Codes

...


Code

Description

400

Business logic required data are missing

460

Unable to find product

602

Model error: + %model_error%