Skip to content

Commit f554252

Browse files
authored
Update identity URL (#34)
1 parent 6459daf commit f554252

File tree

7 files changed

+8
-7
lines changed

7 files changed

+8
-7
lines changed

docs/usage/cli.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ but it is easier to set them in environment variables.
1414
export SEL_URL=url
1515
export SEL_TOKEN=token
1616
export SEL_API_VERSION=api_version # by default: 2
17-
export OS_AUTH_URL=url # by default: https://api.selvpc.ru/identity/v3
17+
export OS_AUTH_URL=url # by default: https://cloud.api.selcloud.ru/identity/v3
1818
1919
Once you've configured your authentication parameters, you can run **selvpc**
2020
commands. All commands take the form of:

docs/usage/library.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ API URL `here <https://support.selectel.ru/vpc/docs/>`_)
1616
1717
>>> SEL_TOKEN = YOUR_API_TOKEN_HERE
1818
>>> SEL_URL = "https://api.selectel.ru/vpc/resell"
19-
>>> OS_AUTH_URL = "https://api.selvpc.ru/identity/v3"
19+
>>> OS_AUTH_URL = "https://cloud.api.selcloud.ru/identity/v3"
2020
2121
>>> http_client = setup_http_client(
2222
... api_url=SEL_URL, api_token=SEL_TOKEN)

env.example.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:: Required variables
22
set SEL_TOKEN=MNhA6zVcf7x892LqsQSc9vDN_9999
33
set SEL_URL=https://api.selectel.ru/vpc/resell
4-
set OS_AUTH_URL=https://api.selvpc.ru/identity/v3
4+
set OS_AUTH_URL=https://cloud.api.selcloud.ru/identity/v3
55

66
:: Optional variables
77
set SEL_API_VERSION=2

env.example.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Required variables
33
export SEL_TOKEN=MNhA6zVcf7x892LqsQSc9vDN_9999
44
export SEL_URL=https://api.selectel.ru/vpc/resell
5-
export OS_AUTH_URL=https://api.selvpc.ru/identity/v3
5+
export OS_AUTH_URL=https://cloud.api.selcloud.ru/identity/v3
66

77
# Optional variables
88
export SEL_API_VERSION=2

examples/first_project/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# You can get actual api URL here
2424
# https://support.selectel.ru/vpc/docs
2525
#
26-
IDENTITY_URL = os.getenv('OS_AUTH_URL', 'https://api.selvpc.ru/identity/v3')
26+
IDENTITY_URL = os.getenv('OS_AUTH_URL',
27+
'https://cloud.api.selcloud.ru/identity/v3')
2728

2829
REGION = "ru-2"
2930
ZONE = "ru-2c"

selvpcclient/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __init__(
5353
regional_client = RegionalHTTPClient(
5454
http_client=client,
5555
identity_url=os.environ.get(
56-
'OS_AUTH_URL', 'https://api.selvpc.ru/identity/v3'
56+
'OS_AUTH_URL', 'https://cloud.api.selcloud.ru/identity/v3'
5757
)
5858
)
5959

selvpcclient/shell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def build_option_parser(self, description, version, argparse_kwargs=None):
4040
'--identity_url',
4141
default=os.environ.get(
4242
'OS_AUTH_URL',
43-
'https://api.selvpc.ru/identity/v3'
43+
'https://cloud.api.selcloud.ru/identity/v3'
4444
)
4545
)
4646
parser.add_argument(

0 commit comments

Comments
 (0)