PlatformApi
extends ManagementSupport
in package
Deployment-level probes and FIDO metadata state. Unauthenticated where the server leaves them so.
The platform namespace handle (CONTRACT.md §27.2), reached as
$client->management()->platform(). Every method here goes through the one shared ManagementTransport, so §3 CSRF, the §4 cookie jar, the §5 tenant header, §6 TLS, §16 retry
and §19 telemetry apply without this class doing anything to opt in (§27.8).
Table of Contents
Methods
- __construct() : mixed
- forTenant() : static
- A COPY of this handle scoped to `$tenantId` (§27.4 rule 3). See {@see self::inOrg()} for why it copies.
- health() : HealthResponse
- `GET /health` — liveness probe. Always returns 200.
- inOrg() : static
- A COPY of this handle scoped to `$orgId` (§27.4 rule 3).
- mdsRefresh() : MdsRefreshOutcomeVariant
- `POST /api/v1/mds/refresh`
- mdsStatus() : MdsStatusResponse
- `GET /api/v1/mds/status`
- ready() : ReadyResponse
- `GET /ready` — readiness probe. Checks DB connectivity.
Methods
__construct()
public
__construct(ManagementTransport $transport[, NamespaceScope $scope = new NamespaceScope() ][, string|null $clientOrgId = null ][, string|null $clientTenantId = null ]) : mixed
Parameters
- $transport : ManagementTransport
-
The one wire path (§27.8).
- $scope : NamespaceScope = new NamespaceScope()
-
Per-handle
{org_id}/{tenant_id}overrides. - $clientOrgId : string|null = null
-
The client's own organization id, or
null. - $clientTenantId : string|null = null
-
The client's own tenant id, or
null.
forTenant()
A COPY of this handle scoped to `$tenantId` (§27.4 rule 3). See {@see self::inOrg()} for why it copies.
public
forTenant(string $tenantId) : static
Parameters
- $tenantId : string
Return values
statichealth()
`GET /health` — liveness probe. Always returns 200.
public
health() : HealthResponse
GET /health.
Return values
HealthResponseinOrg()
A COPY of this handle scoped to `$orgId` (§27.4 rule 3).
public
inOrg(string $orgId) : static
Returns a new handle rather than mutating this one. An administrator holding a handle to their own organization should not find it repointed at someone else's because an unrelated code path re-scoped a shared object — and on a management surface that failure mode writes to the wrong tenant rather than merely reading from it.
Parameters
- $orgId : string
Return values
staticmdsRefresh()
`POST /api/v1/mds/refresh`
public
mdsRefresh() : MdsRefreshOutcomeVariant
POST /api/v1/mds/refresh.
Return values
MdsRefreshOutcomeVariantmdsStatus()
`GET /api/v1/mds/status`
public
mdsStatus() : MdsStatusResponse
GET /api/v1/mds/status.
Return values
MdsStatusResponseready()
`GET /ready` — readiness probe. Checks DB connectivity.
public
ready() : ReadyResponse
GET /ready.