Create Kubernetes Service

Create Kubernetes Service

Only Solution users, Container admins, and System admins can create KubernetesServices.

Request
URI
POST
https://{api_host}/container-service/api/resources/kubernetes-services
COPY
Request Body
KubernetesService of type(s) application/json
Required
{
    "documentExpirationTimeMicros": "string",
    "parentLink": "string",
    "descriptionLink": "string",
    "kubernetesSelfLink": "string",
    "compositeComponentLink": "string",
    "documentUpdateTimeMicros": "string",
    "regionId": "string",
    "documentSelfLink": "string",
    "service": {
        "metadata": {
            "uid": "string",
            "clusterName": "string",
            "name": "string",
            "namespace": "string",
            "creationTimestamp": "string",
            "generateName": "string",
            "selfLink": "string"
        },
        "apiVersion": "string",
        "kind": "string",
        "spec": {
            "externalIPs": [
                "string"
            ],
            "loadBalancerIP": "string",
            "deprecatedPublicIPs": [
                "string"
            ],
            "sessionAffinity": "string",
            "externalName": "string",
            "loadBalancerSourceRanges": "string",
            "ports": [
                {
                    "protocol": "string",
                    "port": 0,
                    "name": "string",
                    "targetPort": "string",
                    "nodePort": 0
                }
            ],
            "type": "string",
            "clusterIP": "string"
        },
        "status": {
            "loadBalancer": {
                "ingress": [
                    {
                        "hostname": "string",
                        "ip": "string"
                    }
                ]
            }
        }
    },
    "tagLinks": [
        "string"
    ],
    "name": "string",
    "groupLinks": [
        "string"
    ],
    "tenantLinks": [
        "string"
    ],
    "id": "string",
    "desc": "string"
}
string
documentExpirationTimeMicros
Optional

documentExpirationTimeMicros

string
parentLink
Optional

parentLink

string
descriptionLink
Optional

descriptionLink

string
kubernetesSelfLink
Optional

kubernetesSelfLink

string
compositeComponentLink
Optional

compositeComponentLink

string
documentUpdateTimeMicros
Optional

documentUpdateTimeMicros

object
customProperties
Optional

customProperties

string
regionId
Optional

regionId

string
documentSelfLink
Optional

documentSelfLink

service
Optional

service

array of string
tagLinks
Optional

tagLinks

string
name
Optional

name

array of string
groupLinks
Optional

groupLinks

array of string
tenantLinks
Optional

tenantLinks

string
id
Optional

id

string
desc
Optional

desc

Responses
200

successful operation

Returns KubernetesService of type(s) */*
{
    "documentExpirationTimeMicros": "string",
    "parentLink": "string",
    "descriptionLink": "string",
    "kubernetesSelfLink": "string",
    "compositeComponentLink": "string",
    "documentUpdateTimeMicros": "string",
    "regionId": "string",
    "documentSelfLink": "string",
    "service": {
        "metadata": {
            "uid": "string",
            "clusterName": "string",
            "name": "string",
            "namespace": "string",
            "creationTimestamp": "string",
            "generateName": "string",
            "selfLink": "string"
        },
        "apiVersion": "string",
        "kind": "string",
        "spec": {
            "externalIPs": [
                "string"
            ],
            "loadBalancerIP": "string",
            "deprecatedPublicIPs": [
                "string"
            ],
            "sessionAffinity": "string",
            "externalName": "string",
            "loadBalancerSourceRanges": "string",
            "ports": [
                {
                    "protocol": "string",
                    "port": 0,
                    "name": "string",
                    "targetPort": "string",
                    "nodePort": 0
                }
            ],
            "type": "string",
            "clusterIP": "string"
        },
        "status": {
            "loadBalancer": {
                "ingress": [
                    {
                        "hostname": "string",
                        "ip": "string"
                    }
                ]
            }
        }
    },
    "tagLinks": [
        "string"
    ],
    "name": "string",
    "groupLinks": [
        "string"
    ],
    "tenantLinks": [
        "string"
    ],
    "id": "string",
    "desc": "string"
}
string
documentExpirationTimeMicros
Optional

documentExpirationTimeMicros

string
parentLink
Optional

parentLink

string
descriptionLink
Optional

descriptionLink

string
kubernetesSelfLink
Optional

kubernetesSelfLink

string
compositeComponentLink
Optional

compositeComponentLink

string
documentUpdateTimeMicros
Optional

documentUpdateTimeMicros

object
customProperties
Optional

customProperties

string
regionId
Optional

regionId

string
documentSelfLink
Optional

documentSelfLink

service
Optional

service

array of string
tagLinks
Optional

tagLinks

string
name
Optional

name

array of string
groupLinks
Optional

groupLinks

array of string
tenantLinks
Optional

tenantLinks

string
id
Optional

id

string
desc
Optional

desc


201

'Created' is returned for the new state with the state url in the location header of the response;

Operation doesn't return any data structure