ark_identity_fqdn_resolver
ArkIdentityFQDNResolver
¶
Source code in ark_sdk_python/auth/identity/ark_identity_fqdn_resolver.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
|
resolve_tenant_fqdn_from_tenant_subdomain(tenant_subdomain, env)
staticmethod
¶
Resolves the tenant's FQDN URL from its subdomain.
The resolved URL is based on the current working environment, which is provided in the tenant_subdomain
argument.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
tenant_subdomain |
str
|
The tenant subdomain, for example: |
required |
env |
AwsEnv
|
The environment for which the the tenant URL is resolved |
required |
Raises:
Type | Description |
---|---|
ArkException
|
When an error occurs or the tenant username prefix was not found in the Identity environment |
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
The tenant's resolved FQDN |
Source code in ark_sdk_python/auth/identity/ark_identity_fqdn_resolver.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
|
resolve_tenant_fqdn_from_tenant_suffix(tenant_suffix, identity_env_url=None)
staticmethod
¶
Resolves the tenant's FQDN URL in Identity.
By default, the Identity address is resolved from the current environment mapping (see get_identity_env_url()
), but it can be optionally be resolved from the identity_env_url
argument.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
tenant_suffix |
str
|
The tenant's URL suffix, for example: |
required |
identity_env_url |
str
|
If specified, used as the Identity pod0 URL; otherwise, defaults to |
None
|
Raises:
Type | Description |
---|---|
ArkException
|
In case of error, or tenant username prefix was not found in identity environment |
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
The tenant's FQDN |
Source code in ark_sdk_python/auth/identity/ark_identity_fqdn_resolver.py
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
|