LocationService_CreateLocation
POST/infra/v3/partner/{metadata.partner}/location
LocationService_CreateLocation
Request
Path Parameters
Partner to which the resource belongs
- application/json
- application/yaml
Body
required
metadata objectrequired
metadata of the resource
name of the resource
display name of the resource
description of the resource
labels object
labels of the resource
annotations object
annotations of the resource
Project of the resource
Organization to which the resource belongs
spec objectrequired
Spec of the resource
ID Location of the cluster
Location of the cluster
status object
Status of the resource
Body
required
metadata objectrequired
metadata of the resource
name of the resource
display name of the resource
description of the resource
labels object
labels of the resource
annotations object
annotations of the resource
Project of the resource
Organization to which the resource belongs
spec objectrequired
Spec of the resource
ID Location of the cluster
Location of the cluster
status object
Status of the resource
Responses
- 200
- 201
- 403
- 404
- default
A successful response.
- application/json
- application/yaml
- Schema
- Example (from schema)
Schema
Default value: infra.k8smgmt.io/v3
API Version of the resource
Default value: Location
Kind of the resource
metadata objectrequired
Metadata of the resource
name of the resource
display name of the resource
description of the resource
labels object
labels of the resource
annotations object
annotations of the resource
Project of the resource
Organization to which the resource belongs
Partner to which the resource belongs
spec objectrequired
Spec of the resource
ID Location of the cluster
Location of the cluster
City of the location
State of the location
country of the location
locale of the location
Latitude of the location
Longitude of the location
CountryCode of the location
StateCode of the location
status object
Status of the resource
type of the status condition
Possible values: [StatusNotSet
, StatusSubmitted
, StatusOK
, StatusFailed
]
Default value: StatusNotSet
status of the condition
when the condition status is last updated
reason of the last condition status
{
"apiVersion": "infra.k8smgmt.io/v3",
"kind": "Location",
"metadata": {
"name": "some-name",
"project": "defaultproject"
},
"spec": {
"id": "string",
"name": "string",
"city": "string",
"state": "string",
"country": "string",
"locale": "string",
"latitude": "string",
"longitude": "string",
"countryCode": "string",
"stateCode": "string"
},
"status": {
"conditionType": "string",
"conditionStatus": "StatusNotSet",
"lastUpdated": "2024-02-15T00:40:10.571Z",
"reason": "string"
}
}
- Schema
- Example (from schema)
Schema
Default value: infra.k8smgmt.io/v3
API Version of the resource
Default value: Location
Kind of the resource
metadata objectrequired
Metadata of the resource
name of the resource
display name of the resource
description of the resource
labels object
labels of the resource
annotations object
annotations of the resource
Project of the resource
Organization to which the resource belongs
Partner to which the resource belongs
spec objectrequired
Spec of the resource
ID Location of the cluster
Location of the cluster
City of the location
State of the location
country of the location
locale of the location
Latitude of the location
Longitude of the location
CountryCode of the location
StateCode of the location
status object
Status of the resource
type of the status condition
Possible values: [StatusNotSet
, StatusSubmitted
, StatusOK
, StatusFailed
]
Default value: StatusNotSet
status of the condition
when the condition status is last updated
reason of the last condition status
{
"apiVersion": "infra.k8smgmt.io/v3",
"kind": "Location",
"metadata": {
"name": "some-name",
"project": "defaultproject"
},
"spec": {
"id": "string",
"name": "string",
"city": "string",
"state": "string",
"country": "string",
"locale": "string",
"latitude": "string",
"longitude": "string",
"countryCode": "string",
"stateCode": "string"
},
"status": {
"conditionType": "string",
"conditionStatus": "StatusNotSet",
"lastUpdated": "2024-02-15T00:40:10.571Z",
"reason": "string"
}
}
Returned when location is created successfully.
- application/json
- application/yaml
- Schema
Schema
- any
- Schema
Schema
- any
Returned when the user does not have permission to access the resource.
- application/json
- application/yaml
- Schema
Schema
- any
- Schema
Schema
- any
Returned when the resource does not exist.
- application/json
- application/yaml
- Schema
Schema
string
- Schema
Schema
string
An unexpected error response.
- application/json
- application/yaml
- Schema
- Example (from schema)
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}