Endpoints¶
Add endpoints¶
Show auth code<?php
require 'vendor/autoload.php';
$openstack = new OpenStack\OpenStack([
'authUrl' => '{authUrl}',
'region' => '{region}',
'user' => [
'id' => '{userId}',
'password' => '{password}'
],
'scope' => [
'project' => [
'id' => '{projectId}'
]
]
]);
$identity = $openstack->identityV3(['region' => '{region}']);
$endpoint = $identity->createEndpoint([
'interface' => \OpenStack\Identity\v3\Enum::INTERFACE_INTERNAL,
'name' => '{endpointName}',
'region' => '{region}',
'url' => '{endpointUrl}',
'serviceId' => '{serviceId}'
]);
To see all the required and optional parameters for this operation, along with their types and descriptions, view the reference documentation.
Get endpoint¶
Show auth code<?php
require 'vendor/autoload.php';
$openstack = new OpenStack\OpenStack([
'authUrl' => '{authUrl}',
'region' => '{region}',
'user' => [
'id' => '{userId}',
'password' => '{password}'
],
'scope' => [
'project' => [
'id' => '{projectId}'
]
]
]);
$identity = $openstack->identityV3(['region' => '{region}']);
$endpoint = $identity->getEndpoint('{endpointId}');
To see all the required and optional parameters for this operation, along with their types and descriptions, view the reference documentation.
List endpoints¶
Show auth code<?php
require 'vendor/autoload.php';
$openstack = new OpenStack\OpenStack([
'authUrl' => '{authUrl}',
'region' => '{region}',
'user' => [
'id' => '{userId}',
'password' => '{password}'
],
'scope' => [
'project' => [
'id' => '{projectId}'
]
]
]);
$identity = $openstack->identityV3(['region' => '{region}']);
foreach ($identity->listEndpoints() as $endpoint) {
}
To see all the required and optional parameters for this operation, along with their types and descriptions, view the reference documentation.
Update endpoint¶
Show auth code<?php
require 'vendor/autoload.php';
$openstack = new OpenStack\OpenStack([
'authUrl' => '{authUrl}',
'region' => '{region}',
'user' => [
'id' => '{userId}',
'password' => '{password}'
],
'scope' => [
'project' => [
'id' => '{projectId}'
]
]
]);
$identity = $openstack->identityV3(['region' => '{region}']);
$endpoint = $identity->getEndpoint('{endpointId}');
$endpoint->interface = \OpenStack\Identity\v3\Enum::INTERFACE_PUBLIC;
$endpoint->update();
To see all the required and optional parameters for this operation, along with their types and descriptions, view the reference documentation.
Delete endpoint¶
Show auth code<?php
require 'vendor/autoload.php';
$openstack = new OpenStack\OpenStack([
'authUrl' => '{authUrl}',
'region' => '{region}',
'user' => [
'id' => '{userId}',
'password' => '{password}'
],
'scope' => [
'project' => [
'id' => '{projectId}'
]
]
]);
$identity = $openstack->identityV3(['region' => '{region}']);
$endpoint = $identity->getEndpoint('{endpointId}');
$endpoint->delete();
To see all the required and optional parameters for this operation, along with their types and descriptions, view the reference documentation.