/AWS1/CL_DZN=>ADDPOLICYGRANT()
¶
About AddPolicyGrant¶
Adds a policy grant (an authorization policy) to a specified entity, including domain units, environment blueprint configurations, or environment profiles.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_domainidentifier
TYPE /AWS1/DZNDOMAINID
/AWS1/DZNDOMAINID
¶
The ID of the domain where you want to add a policy grant.
iv_entitytype
TYPE /AWS1/DZNTARGETENTITYTYPE
/AWS1/DZNTARGETENTITYTYPE
¶
The type of entity (resource) to which the grant is added.
iv_entityidentifier
TYPE /AWS1/DZNSTRING
/AWS1/DZNSTRING
¶
The ID of the entity (resource) to which you want to add a policy grant.
iv_policytype
TYPE /AWS1/DZNMANAGEDPOLICYTYPE
/AWS1/DZNMANAGEDPOLICYTYPE
¶
The type of policy that you want to grant.
io_principal
TYPE REF TO /AWS1/CL_DZNPOLICYGRANTPRINC
/AWS1/CL_DZNPOLICYGRANTPRINC
¶
The principal to whom the permissions are granted.
io_detail
TYPE REF TO /AWS1/CL_DZNPOLICYGRANTDETAIL
/AWS1/CL_DZNPOLICYGRANTDETAIL
¶
The details of the policy grant.
Optional arguments:¶
iv_clienttoken
TYPE /AWS1/DZNCLIENTTOKEN
/AWS1/DZNCLIENTTOKEN
¶
A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_dznaddplygrantoutput
/AWS1/CL_DZNADDPLYGRANTOUTPUT
¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->/aws1/if_dzn~addpolicygrant(
io_detail = new /aws1/cl_dznpolicygrantdetail(
io_addtoprojectmemberpool = new /aws1/cl_dznaddtoprojectmemb00( ABAP_TRUE )
io_createassettype00 = new /aws1/cl_dzncreasttypeplygra00( ABAP_TRUE )
io_createdomainunit = new /aws1/cl_dzncredomunitplygra00( ABAP_TRUE )
io_createenvironment00 = new /aws1/cl_dznunit( )
io_createenvironmentpfl00 = new /aws1/cl_dzncreenvironmentpf02( |string| )
io_createformtype00 = new /aws1/cl_dzncreformtypeplygr00( ABAP_TRUE )
io_createglossary00 = new /aws1/cl_dzncreglossaryplygr00( ABAP_TRUE )
io_createproject00 = new /aws1/cl_dzncreprojectplygra00( ABAP_TRUE )
io_creenvironmentfrmbluepr00 = new /aws1/cl_dznunit( )
io_creprojectfromprojectpfl = new /aws1/cl_dzncreprojectfrmpro00(
it_projectprofiles = VALUE /aws1/cl_dznprojectpfllist_w=>tt_projectprofilelist(
( new /aws1/cl_dznprojectpfllist_w( |string| ) )
)
iv_includechilddomainunits = ABAP_TRUE
)
io_delegatecreenvironmentpfl = new /aws1/cl_dznunit( )
io_overridedomainunitowners = new /aws1/cl_dznoverridedomunito00( ABAP_TRUE )
io_overrideprojectowners = new /aws1/cl_dznoverrideprojecto00( ABAP_TRUE )
io_useassettype = new /aws1/cl_dznuseasttypeplygra00( |string| )
)
io_principal = new /aws1/cl_dznpolicygrantprinc(
io_domainunit = new /aws1/cl_dzndomunitplygrantprp(
io_domainunitgrantfilter = new /aws1/cl_dzndomunitgrantfilter( new /aws1/cl_dznalldomunitsgrant00( ) )
iv_domainunitdesignation = |string|
iv_domainunitidentifier = |string|
)
io_group = new /aws1/cl_dzngroupplygrantprinc( |string| )
io_project = new /aws1/cl_dznprojectplygrantprp(
io_projectgrantfilter = new /aws1/cl_dznprojectgrantfilter(
io_domainunitfilter = new /aws1/cl_dzndomunitfiltforpr00(
iv_domainunit = |string|
iv_includechilddomainunits = ABAP_TRUE
)
)
iv_projectdesignation = |string|
iv_projectidentifier = |string|
)
io_user = new /aws1/cl_dznuserplygrantprinc(
io_allusersgrantfilter = new /aws1/cl_dznallusersgrantfilt( )
iv_useridentifier = |string|
)
)
iv_clienttoken = |string|
iv_domainidentifier = |string|
iv_entityidentifier = |string|
iv_entitytype = |string|
iv_policytype = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.