forked from docs/doc-exports
Reviewed-by: Hajba, László Antal <laszlo-antal.hajba@t-systems.com> Co-authored-by: fanqinying <fanqinying@huawei.com> Co-committed-by: fanqinying <fanqinying@huawei.com>
65 lines
4.4 KiB
HTML
65 lines
4.4 KiB
HTML
<a name="cc_03_0992"></a><a name="cc_03_0992"></a>
|
|
|
|
<h1 class="topictitle1">Central Network Custom Policies</h1>
|
|
<div id="body0000002077898524"><p id="cc_03_0992__en-us_topic_0000001174825873_p3571162744711">Custom policies can be created to supplement the system-defined policies.</p>
|
|
<p id="cc_03_0992__en-us_topic_0000001174825873_p1363833161415">You can create custom policies in either of the following ways:</p>
|
|
<ul id="cc_03_0992__en-us_topic_0000001174825873_ul1146431393818"><li id="cc_03_0992__en-us_topic_0000001174825873_li5764181518386">Visual editor: Select cloud services, actions, resources, and request conditions. This does not require knowledge of policy syntax.</li><li id="cc_03_0992__en-us_topic_0000001174825873_li546410135389">JSON: Create a JSON policy or edit an existing one.</li></ul>
|
|
<p id="cc_03_0992__en-us_topic_0000001174825873_p82911030103912">For details, see <a href="https://docs.otc.t-systems.com/identity-access-management/umn/user_guide/permissions/creating_a_custom_policy.html" target="_blank" rel="noopener noreferrer">Creating a Custom Policy</a>. The following section contains examples of common custom policies.</p>
|
|
<div class="section" id="cc_03_0992__en-us_topic_0000001174825873_section7529733164812"><h4 class="sectiontitle">Example Custom Policies</h4><ul id="cc_03_0992__en-us_topic_0000001174825873_ul2504185715494"><li id="cc_03_0992__en-us_topic_0000001174825873_li5504357164912">Example 1: Allowing users to delete central networks<pre class="screen" id="cc_03_0992__en-us_topic_0000001174825873_screen48273211535">{
|
|
"Version": "1.1",
|
|
"Statement": [
|
|
{
|
|
"Effect": "Allow",
|
|
"Action": [
|
|
"cc:centralNetwork:delete"
|
|
]
|
|
}
|
|
]
|
|
}</pre>
|
|
</li><li id="cc_03_0992__en-us_topic_0000001174825873_li3652938178">Example 2: Denying the deletion of central network policies<p id="cc_03_0992__en-us_topic_0000001174825873_p1892813119464"><a name="cc_03_0992__en-us_topic_0000001174825873_li3652938178"></a><a name="en-us_topic_0000001174825873_li3652938178"></a>A policy with only "Deny" permissions must be used together with other policies. If the permissions granted to an IAM user contain both "Allow" and "Deny", the "Deny" permissions take precedence over the "Allow" permissions.</p>
|
|
<p id="cc_03_0992__en-us_topic_0000001174825873_p17928101124619">The following method can be used if you need to assign permissions of the <strong id="cc_03_0992__b2014205753111">CC FullAccess</strong> policy to a user but also forbid the user from deleting central network policies. Create a custom policy and assign both policies to the group that the user belongs to. Then the user can perform all operations on Cloud Connect resources except deleting central network policies. The following is an example of a deny policy:</p>
|
|
<pre class="screen" id="cc_03_0992__en-us_topic_0000001174825873_screen39281011144617">{
|
|
"Version": "1.1",
|
|
"Statement": [
|
|
{
|
|
"Effect": "Deny",
|
|
"Action": [
|
|
"cc:centralNetwork:deletePolicy"
|
|
]
|
|
}
|
|
]
|
|
}</pre>
|
|
</li><li id="cc_03_0992__en-us_topic_0000001174825873_li8475316125413">Example 3: Create a custom policy containing multiple actions.<p id="cc_03_0992__en-us_topic_0000001174825873_p466319313484"><a name="cc_03_0992__en-us_topic_0000001174825873_li8475316125413"></a><a name="en-us_topic_0000001174825873_li8475316125413"></a>A custom policy can contain the actions of multiple services that are of the global or project-level type. The following is an example policy containing actions of multiple services:</p>
|
|
<pre class="screen" id="cc_03_0992__en-us_topic_0000001174825873_screen46646311485">{
|
|
"Version": "1.1",
|
|
"Statement": [
|
|
{
|
|
"Effect": "Allow",
|
|
"Action": [
|
|
"cc:centralNetwork:create",
|
|
"cc:centralNetwork:update",
|
|
"cc:centralNetwork:delete",
|
|
"cc:centralNetwork:get"
|
|
]
|
|
},
|
|
{
|
|
"Effect": "Allow",
|
|
"Action": [
|
|
"er:instances:create",
|
|
"er:instances:update",
|
|
"er:instances:delete",
|
|
"er:instances:get"
|
|
]
|
|
}
|
|
]
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="cc_03_0990.html">Permissions Management</a></div>
|
|
</div>
|
|
</div>
|
|
|