检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Only the IAM users of the account can register and use the SWR images when the image type is Private. Other users can register and use SWR images when the image type is Public. Log in to the ModelArts management console and choose Image Management. Then, click Register.
If an IAM user needs to start a notebook instance of another user's, change the key pair. Log in to the ModelArts management console. In the navigation pane on the left, choose DevEnviron > Notebook. Click the target notebook instance.
Request Parameters Table 2 Request header parameters Parameter Mandatory Type Description X-Auth-Token Yes String User token, which can be obtained by calling the IAM API that is used for obtaining a user token.
When using a token for authentication, cache it to prevent frequently calling the IAM API used to obtain a user token. A token specifies certain permissions in a computer system.
It can be obtained by calling the IAM API that is used to obtain a user token. The value of X-Subject-Token in the response header is the user token.
X-Auth-Token Yes String User token, which can be obtained by calling the IAM API that is used for obtaining a user token. The value of X-Subject-Token in the response header is the user token.
Training Job Permissions Table 1 Fine-grained permissions for training jobs (new version) Permission API Action Related Action IAM Project Enterprise Project Creating a training job POST /v2/{project_id}/training-jobs modelarts:trainJob:create swr:repository:listTags swr:repository
Figure 2 Tenant ID and IAM ID Collect the logs and upload the script. Modify the GpuLogCollection parameter in the script below and replace ak, sk, and obs_dir with the values obtained in the previous steps.
Grant the required basic permissions to the IAM user. ModelArts needs to access other dependent services. Create an agency for ModelArts. Purchase resources on the ModelArts console. Configuring resources Configure the network, storage, and software environment.
This allows the IAM user to use these cloud services. Log in to the IAM console. In the navigation pane on the left, choose User Groups and click Create User Group in the upper right corner. Enter a group name and click OK.
Administrators can isolate permissions on resources within workspaces for IAM users. You can move resources to the corresponding workspace by referring to Migrating Standard Dedicated Resource Pools and Networks to Other Workspaces.
Step 2: Enabling Basic Permissions Log in to the administrator account and grant the target IAM account basic permissions to use resource pools. Log in to the IAM console.
In the navigation pane on the left, choose Permissions > Bucket Policy, and check whether the current OBS bucket can be accessed by IAM users. Check the code directory and boot file of a training job.
It can be obtained by calling the IAM API that is used to obtain a user token. The value of X-Subject-Token in the response header is the user token.
Request Parameters Table 3 Request header parameters Parameter Mandatory Type Description X-Auth-Token Yes String User token, which can be obtained by calling the IAM API that is used for obtaining a user token.
-*- import requests import json import time import requests.packages.urllib3.exceptions from urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) class ServerOperation(object): ################################ IAM
Table 9 user Parameter Type Description domain domain object Account domain information. id String IAM user ID. name String IAM username. Table 10 domain Parameter Type Description id String Account ID. name String Account name.
Table 9 user Parameter Type Description domain domain object Account domain information. id String IAM user ID. name String IAM username. Table 10 domain Parameter Type Description id String Account ID. name String Account name.
Table 9 user Parameter Type Description domain domain object Account domain information. id String IAM user ID. name String IAM username. Table 10 domain Parameter Type Description id String Account ID. name String Account name.
Table 10 user Parameter Type Description domain domain object Account domain information. id String IAM user ID. name String IAM username. Table 11 domain Parameter Type Description id String Account ID. name String Account name.