BaseKubernetesObject.ApiVersion Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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").