Configuring a Service Endpoint¶
Using the SDK in non-notebook environments needs to call IAM, OBS, and ModelArts. Therefore, the endpoints of these services are required. Therefore, the endpoints of these services are required. To obtain the endpoints, configure as follows:
from modelarts.session import Session
Session.set_endpoint(iam_endpoint="***", obs_endpoint="***", modelarts_endpoint="***", region_name="***")
Parameter | Description |
---|---|
iam_endpoint | IAM endpoint |
obs_endpoint | OBS endpoint |
modelarts_endpoint | ModelArts endpoint |
region_name | Region name |