Create
Create App Access Requests Defaults
post/api/v1/apps/{app_id}/access_request_defaults
Invokes the c1.api.app.v1.AppAccessRequestsDefaultsService.CreateAppAccessRequestsDefaults method.
Path Parameters
app_idstring
The app id for the app access request rule
Body Parameters
catalogIdsarray of string
optional
The request catalog ids for the app access request rule.
defaultsEnabledboolean
optional
If true the app level request configuration will be applied to specified resource types.
durationGrantstring
optional
formatduration
durationUnsetunknown
optional
emergencyGrantEnabledboolean
optional
If emergency grants are enabled for this app access request rule.
emergencyGrantPolicyIdstring
optional
The policy id for the emergency grant policy.
requestPolicyIdstring
optional
The requestPolicyId field.
resourceTypeIdsarray of string
optional
The app resource type ids for which the app access request defaults are applied.
stateenum
optional
"APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_UNSPECIFIED" OR "APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_RUNNING" OR "APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_SUCCESS" OR 4 more
The last applied state of the app access request defaults.
Returns
appIdstringcatalogIdsarray of stringdefaultsEnabledbooleandurationGrantstringdurationUnsetunknownemergencyGrantEnabledbooleanemergencyGrantPolicyIdstringrequestPolicyIdstringresourceTypeIdsarray of stringstateenumC1APIAppV1AppAccessRequestDefaults
Request example cURL
curl https://{tenantDomain}.conductor.one/api/v1/apps/$APP_ID/access_request_defaults \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $CONDUCTORONE_SDK_API_KEY"200 Example
{
"appId": "appId",
"catalogIds": [
"string"
],
"defaultsEnabled": true,
"durationGrant": "durationGrant",
"durationUnset": {},
"emergencyGrantEnabled": true,
"emergencyGrantPolicyId": "emergencyGrantPolicyId",
"requestPolicyId": "requestPolicyId",
"resourceTypeIds": [
"string"
],
"state": "APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_UNSPECIFIED"
}