• CLI

sdk
  1. Help Center
  2. CLI
  3. Developer Guide
  4. SDK
  5. Python
  6. IAM Python SDK Demo

IAM Python SDK Demo

Service Authentication

IAM is a service that provides API client authentication. After you are authorized by IAM, you can call other service APIs, such as APIs used for creating ECSs.

After being authenticated, you can manage the IAM, ECS, EVS, VPC, and RTS services.

Example authentication code:

def create_connection(auth_url, region, project_name, username, password, user_domain_name): 
    return connection.Connection( 
        'auth_url': auth_url, 
        'project_name': project_name, 
        'username': username, 
        'password': pasword, 
        "region": region, 
        "user_domain_name":user_domain_name 
        ) 

The following table lists parameters descriptions.

Table 1 Parameter description

Parameter

Description

auth_url

Specifies the IAM authentication URL.

username

Specifies the username.

user_domain_name

Specifies the tenant name.

password

Specifies the password.

project_name

For details, see How Can I Obtain domain_name, project_name, and project_id?.