Share via


BaseKubernetesObject.ApiVersion Property

Definition

Gets or sets the API version for the Kubernetes resource.

[YamlDotNet.Serialization.YamlMember(Alias="apiVersion", Order=-3)]
public string? ApiVersion { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="apiVersion", Order=-3)>]
member this.ApiVersion : string with get, set
Public Property ApiVersion As String

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

The API version defines the versioned schema that is used for the resource. It determines the APIs required to interact with the resource and ensures compatibility between the resource and Kubernetes components. The value is specified according to the Kubernetes API versioning scheme (e.g., "v1", "apps/v1").

Applies to