Skip to content

Data types

Azure Active Directory OAuth2 Flow

model Azure.Core.AadOauth2Auth<Scopes, AuthUrl, TokenUrl>
NameDescription
ScopesA list of scopes the token applies to.
AuthUrlThe authorization URL.
TokenUrlThe token URL.
NameTypeDescription
typeTypeSpec.Http.AuthType.oauth2OAuth2 authentication
flows[Core.AadTokenAuthFlow<Scopes, AuthUrl, TokenUrl>]Supported OAuth2 flows
defaultScopes[]Oauth2 scopes of every flow. Overridden by scope definitions in specific flows

Azure Active Directory (AAD) Token Authentication Flow

model Azure.Core.AadTokenAuthFlow<Scopes, AuthUrl, TokenUrl>
NameDescription
ScopesA list of scopes the token applies to.
AuthUrlThe authorization URL.
TokenUrlThe token URL.
NameTypeDescription
typeTypeSpec.Http.OAuth2FlowType.authorizationCode
authorizationUrlAuthUrl
tokenUrlTokenUrl
scopesScopes
model Azure.Core.ArmResourceIdentifierAllowedResource
NameTypeDescription
typearmResourceTypeThe type of resource that is being referred to. For example Microsoft.Network/virtualNetworks or Microsoft.Network/virtualNetworks/subnets. See Example Types for more examples.
scopes?Core.ArmResourceDeploymentScope[]An array of scopes. If not specified, the default scope is [“ResourceGroup”].
See Allowed Scopes.

Azure API Key Authentication using the “Ocp-Apim-Subscription-Key” hea

model Azure.Core.AzureApiKeyAuthentication
NameTypeDescription
typeTypeSpec.Http.AuthType.apiKeyAPI key authentication
inTypeSpec.Http.ApiKeyLocation.headerlocation of the API key
name"Ocp-Apim-Subscription-Key"name of the API key

Provides the ‘x-ms-client-request-id’ header to enable request correlation in requests and responses.

model Azure.Core.ClientRequestIdHeader
NameTypeDescription
clientRequestId?uuidAn opaque, globally-unique, client-generated string identifier for the request.

Provides the ‘If-*’ headers to enable conditional (cached) responses

model Azure.Core.ConditionalRequestHeaders
NameTypeDescription
ifMatch?stringThe request should only proceed if an entity matches this string.
ifNoneMatch?stringThe request should only proceed if no entity matches this string.
ifUnmodifiedSince?utcDateTimeThe request should only proceed if the entity was not modified after this time.
ifModifiedSince?utcDateTimeThe request should only proceed if the entity was modified after this time.

A vector embedding frequently used in similarity search.

model Azure.Core.EmbeddingVector<Element>
NameDescription
ElementThe element type of the embedding vector.

None

Provides the ‘ETag’ field to enable conditional (cached) requests. This model can be spread into responses and item models to convey the ETag when it cannot simply conveyed in a header.

model Azure.Core.EtagProperty
NameTypeDescription
etageTagThe entity tag for this resource.

Provides the ‘ETag’ header to enable conditional (cached) requests

model Azure.Core.EtagResponseEnvelope
NameTypeDescription
etagHeader?stringThe entity tag for the response.

Provides the standard ‘expand’ query parameter for list operations.

model Azure.Core.ExpandQueryParameter
NameTypeDescription
expand?string[]Expand the indicated resources into the response.

Provides the standard ‘filter’ query parameter for list operations

model Azure.Core.FilterParameter
NameTypeDescription
filter?stringThe maximum number of result items per page.

Provides the standard ‘filter’ query parameter for list operations.

model Azure.Core.FilterQueryParameter
NameTypeDescription
filter?stringFilter the result list using the given expression.

Provides the standard ‘maxpagesize’ query parameter for list operations.

model Azure.Core.MaxPageSizeQueryParameter
NameTypeDescription
maxpagesize?int32The maximum number of result items per page.

Provides the standard ‘orderby’ query parameter for list operations.

model Azure.Core.OrderByQueryParameter
NameTypeDescription
orderby?string[]Expressions that specify the order of returned results.

Describes a page of resource object.

model Azure.Core.Page<Resource>
NameDescription
ResourceThe resource type.
NameTypeDescription
valueArray<Element>
nextLink?TypeSpec.Rest.ResourceLocation

Generic polling options for LRO operations.

model Azure.Core.PollingOptions
NameTypeDescription
kindPollingOptionKindThe kind of polling options
pollingModel?Model | voidThe model that is returned when polling should continue.
finalResult?Model | voidThe type that is returned when polling terminates successfully.

Provides the ‘Repeatability-*’ headers to enable repeatable requests.

model Azure.Core.RepeatabilityRequestHeaders
NameTypeDescription
repeatabilityRequestId?stringAn opaque, globally-unique, client-generated string identifier for the request.
repeatabilityFirstSent?utcDateTimeSpecifies the date and time at which the request was first created.

Provides the ‘Repeatability-*’ headers to enable repeatable requests.

model Azure.Core.RepeatabilityResponseHeaders
NameTypeDescription
repeatabilityResult?RepeatabilityResultIndicates whether the repeatable request was accepted or rejected.

Provides the ‘x-ms-request-id’ header to enable request correlation in responses.

model Azure.Core.RequestIdResponseHeader
NameTypeDescription
requestId?uuidAn opaque, globally-unique, server-generated string identifier for the request.

Defines a property as a request parameter.

model Azure.Core.RequestParameter<Name>
NameDescription
NameThe parameter name.

None

model Azure.Core.ResourceOperationStatus<Resource, StatusResult, StatusError>
NameDescription
ResourceThe resource type.
StatusResultModel describing the status result object. If not specified, the default is the resource type.
StatusErrorModel describing the status error object. If not specified, the default is the Foundations.Error.
NameTypeDescription
idstring
statusOperationState
error?StatusError
result?StatusResult

Defines a property as a response header.

model Azure.Core.ResponseProperty<Name>
NameDescription
NameThe header name.

None

Provides the standard ‘select’ query parameter for list operations.

model Azure.Core.SelectQueryParameter
NameTypeDescription
select?string[]Select the specified fields to be included in the response.

Provides the standard ‘skip’ query parameter for list operations.

model Azure.Core.SkipQueryParameter
NameTypeDescription
skip?int32The number of result items to skip.

Provides the most common query parameters for list operations.

model Azure.Core.StandardListQueryParameters
NameTypeDescription
top?int32The number of result items to return.
skip?int32The number of result items to skip.
maxpagesize?int32The maximum number of result items per page.

Options for Lro status monitors.

model Azure.Core.StatusMonitorOptions
NameTypeDescription
kind"statusMonitor"The kind of polling options
finalProperty?ModelProperty | stringA reference to or name of the property of the status monitor that contains the response

Options for overriding a polling endpoint that uses a StatusMonitor

model Azure.Core.StatusMonitorPollingOptions<PollingModel, FinalResult, FinalProperty>
NameDescription
PollingModelThe model that is returned when polling should continue.
FinalResultThe model that is returned when polling terminates successfully.
FinalPropertyThe property of the status monitor that contains results.
NameTypeDescription
kind"statusMonitor"The kind of polling options
pollingModelPollingModelThe model that is returned when polling should continue
finalResultFinalResultThe model that is returned when polling terminates successfully
finalPropertyFinalPropertyThe property of the status monitor that contains results

Provides the standard ‘top’ query parameter for list operations.

model Azure.Core.TopQueryParameter
NameTypeDescription
top?int32The number of result items to return.

Supported versions of Azure.Core TypeSpec building blocks.

enum Azure.Core.Versions
NameValueDescription
v1_0_Preview_1"1.0-preview.1"Version 1.0-preview.1
v1_0_Preview_2"1.0-preview.2"Version 1.0-preview.2
union Azure.Core.ArmResourceDeploymentScope

The available kinds of polling options

union Azure.Core.PollingOptionKind

Repeatability Result header options

union Azure.Core.RepeatabilityResult

A type definition that refers the id to an Azure Resource Manager resource.

scalar Azure.Core.armResourceIdentifier
model MyModel {
otherArmId: armResourceIdentifier;
networkId: armResourceIdentifier<[
{
type: "Microsoft.Network/vnet";
}
]>;
vmIds: armResourceIdentifier<[
{
type: "Microsoft.Compute/vm";
scopes: ["*"];
}
]>;
scoped: armResourceIdentifier<[
{
type: "Microsoft.Compute/vm";
scopes: ["tenant", "resourceGroup"];
}
]>;
}

Represents an Azure Resource Type.

scalar Azure.Core.armResourceType
Microsoft.Network/virtualNetworks/subnets

Represents an Azure geography region where supported resource providers live.

scalar Azure.Core.azureLocation
WestUS

The ETag (or entity tag) HTTP response header is an identifier for a specific version of a resource. It lets caches be more efficient and save bandwidth, as a web server does not need to resend a full response if the content was not changed.

It is a string of ASCII characters placed between double quotes, like “675af34563dc-tr34”.

scalar Azure.Core.eTag
ETag: "675af34563dc-tr34"

Represent an IP V4 address serialized as a string.

It is formatted as four 8-bit fields separated by periods.

scalar Azure.Core.ipV4Address
129.144.50.56

Represent an IP V6 address serialized as a string.

It is formatted as eight hex decimal values(16-bit) between 0 and FFFF separated by colon. (i.e. y:y:y:y:y:y:y:y)

scalar Azure.Core.ipV6Address
2001:db8:3333:4444:CCCC:DDDD:EEEE:FFFF

Universally Unique Identifier

scalar Azure.Core.uuid
123e4567-e89b-12d3-a456-426614174000

The ApiVersion query parameter.

model Azure.Core.Foundations.ApiVersionParameter
NameTypeDescription
apiVersionstringThe API version to use for this operation.

A model containing the collection keys of the provided resource’s parent resource.

model Azure.Core.Foundations.CollectionKeysOf<Resource>
NameDescription
ResourceThe type of the resource.

None

Collection of properties from a resource that are visible to create or update scopes.

model Azure.Core.Foundations.CreateableAndUpdateableProperties<Resource>
NameDescription
ResourceThe type of the resource.

None

The expected shape of model types passed to the Custom parameter of operation signatures.

model Azure.Core.Foundations.CustomizationFields
NameTypeDescription
parameters?{}An object containing custom parameters that will be included in the operation.
response?{}An object containing custom properties that will be included in the response.

A model describing a customized page of resources.

model Azure.Core.Foundations.CustomPage<Resource, Traits>
NameDescription
ResourceThe type of the resource.
TraitsTraits which apply to the page.
NameTypeDescription
valueArray<Element>
nextLink?TypeSpec.Rest.ResourceLocation

A model describing a set of custom request parameters.

model Azure.Core.Foundations.CustomParameters<Custom>
NameDescription
CustomAn object describing custom request parameters.

None

A model describing a set of custom response properties.

model Azure.Core.Foundations.CustomResponseFields<Custom>
NameDescription
CustomAn object describing custom response properties.

None

The error object.

model Azure.Core.Foundations.Error
NameTypeDescription
codestringOne of a server-defined set of error codes.
messagestringA human-readable representation of the error.
target?stringThe target of the error.
details?Core.Foundations.Error[]An array of details about specific errors that led to this reported error.
innererror?InnerErrorAn object containing more specific information than the current object about the error.

A response containing error details.

model Azure.Core.Foundations.ErrorResponse
NameTypeDescription
errorErrorThe error object.
errorCode?stringString error code indicating what went wrong.

A response containing error details.

model Azure.Core.Foundations.ErrorResponseBase<Error>
NameDescription
ErrorThe type of the error object.
NameTypeDescription
errorError
errorCode?string

An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors.

model Azure.Core.Foundations.InnerError
NameTypeDescription
code?stringOne of a server-defined set of error codes.
innererror?InnerErrorInner error.

A model containing the keys of the provided resource.

model Azure.Core.Foundations.ItemKeysOf<Resource>
NameDescription
ResourceThe type of the resource.

None

Response describing the location of a created resource.

model Azure.Core.Foundations.LocationOfCreatedResourceResponse<Resource>
NameDescription
Resource
NameTypeDescription
statusCode201The status code.
locationTypeSpec.Rest.ResourceLocation

LocationOfCreatedResourceWithServiceProvidedNameResponse

Section titled “LocationOfCreatedResourceWithServiceProvidedNameResponse”

Response describing the location of a resource created with a service-provided name.

model Azure.Core.Foundations.LocationOfCreatedResourceWithServiceProvidedNameResponse<Resource>
NameDescription
Resource
NameTypeDescription
statusCode202The status code.
locationTypeSpec.Rest.ResourceLocation

Metadata for long running operation status monitor locations.

model Azure.Core.Foundations.LongRunningStatusLocation<StatusResult>
NameDescription
StatusResultThe type of the operation status result.
NameTypeDescription
operationLocationTypeSpec.Rest.ResourceLocation

Provides status details for long running operations.

model Azure.Core.Foundations.OperationStatus<StatusResult, StatusError>
NameDescription
StatusResultThe type of the operation status result.
StatusErrorThe type of the operation status error. If not provided, the default error is used.
NameTypeDescription
idstring
statusOperationState
error?StatusError
result?StatusResult

Conveys the resource instance to an operation as a request body.

model Azure.Core.Foundations.ResourceBody<Resource>
NameDescription
ResourceThe type of the resource instance.
NameTypeDescription
resourceResource

Version of a model for a create or replace operation which only includes updateable properties.

model Azure.Core.Foundations.ResourceCreateOrReplaceModel<Resource>
NameDescription
ResourceThe type of the resource.

None

Version of a model for a create or update operation which only includes updateable properties.

model Azure.Core.Foundations.ResourceCreateOrUpdateModel<Resource>
NameDescription
ResourceThe type of the resource.

None

Version of a model for an update operation which only includes updateable properties.

model Azure.Core.Foundations.ResourceUpdateModel<Resource>
NameDescription
ResourceThe type of the resource.

None

The retry-after envelope.

model Azure.Core.Foundations.RetryAfterHeader
NameTypeDescription
retryAfter?int32The Retry-After header can indicate how long the client should wait before polling the operation status.

Enum describing allowed operation states.

union Azure.Core.Foundations.OperationState

A scalar type representing a next link that requires formatting with parameters to be used.

scalar Azure.Core.Legacy.parameterizedNextLink
model ListCertificateOptions {
includePending?: string;
}
model Certificate {
name: string;
}
model Page {
@items items: Certificate[];
@nextLink nextLink: Azure.Core.Legacy.parameterizedNextLink<[
ListCertificateOptions.includePending
]>;
}

Declares a trait that is applied as a query parameter for list operations.

model Azure.Core.Traits.ListQueryParametersTrait<Parameters>
NameDescription
ParametersObject describing the query parameters.
NameTypeDescription
queryParams{...}
queryParams.parametersParameters

Indicates that the service or operation does not support clientRequestId headers.

model Azure.Core.Traits.NoClientRequestId
NameTypeDescription
clientRequestId{}

Indicates that the service or operation does not support conditional requests.

model Azure.Core.Traits.NoConditionalRequests
NameTypeDescription
conditionalRequests{}

Indicates that the service or operation does not support repeatable requests.

model Azure.Core.Traits.NoRepeatableRequests
NameTypeDescription
repeatableRequests{}

Declares a trait that is applied as a query parameter.

model Azure.Core.Traits.QueryParametersTrait<Parameters, Contexts>
NameDescription
ParametersThe name of the query parameter.
ContextsThe contexts in which the trait is applicable.
NameTypeDescription
queryParams{...}
queryParams.parametersParameters

Declares a trait that is applied as a request header parameter.

model Azure.Core.Traits.RequestHeadersTrait<Headers, Contexts>
NameDescription
HeadersObject describing the request header parameters.
ContextsThe contexts in which the trait is applicable.
NameTypeDescription
requestHeaders{...}
requestHeaders.parametersHeaders

Declares a trait that is applied as a response header parameter.

model Azure.Core.Traits.ResponseHeadersTrait<Headers, Contexts>
NameDescription
HeadersObject describing the response header parameters.
ContextsThe contexts in which the trait is applicable.
NameTypeDescription
responseHeaders{...}
responseHeaders.parametersHeaders

Provides clientRequestId headers for requests and responses.

model Azure.Core.Traits.SupportsClientRequestId<VersionAdded>
NameDescription
VersionAddedThe version when the trait was added to the specification.
Leave this empty if the trait is always supported.
NameTypeDescription
clientRequestId{...}
clientRequestId.parametersClientRequestIdHeader
clientRequestId.responseClientRequestIdHeader

Provides conditional request headers for requests and ETag headers for responses.

model Azure.Core.Traits.SupportsConditionalRequests<VersionAdded>
NameDescription
VersionAddedThe version when the trait was added to the specification.
Leave this empty if the trait is always supported.
NameTypeDescription
conditionalRequests{...}
conditionalRequests.parametersConditionalRequestHeaders
conditionalRequests.responseEtagResponseEnvelope

Provides repeatable request headers for requests and responses.

model Azure.Core.Traits.SupportsRepeatableRequests<VersionAdded>
NameDescription
VersionAddedThe version when the trait was added to the specification.
Leave this empty if the trait is always supported.
NameTypeDescription
repeatableRequests{...}
repeatableRequests.parametersRepeatabilityRequestHeaders
repeatableRequests.responseRepeatabilityResponseHeaders

Used to override a trait.

model Azure.Core.Traits.TraitOverride<Trait>
NameDescription
TraitThe trait to override.

None

Declares a version parameter trait.

model Azure.Core.Traits.VersionParameterTrait<VersionParameter>
NameDescription
VersionParameterThe type of the version parameter.
NameTypeDescription
versionParameter{...}
versionParameter.apiVersionParamVersionParameter

Enumerates the standard trait contexts for Azure.Core operations.

enum Azure.Core.Traits.TraitContext
NameValueDescription
ReadTrait is applicable for resource ‘read’ operations.
CreateTrait is applicable for resource ‘create’ operations.
UpdateTrait is applicable for resource ‘update’ operations.
DeleteTrait is applicable for resource ‘delete’ operations.
ListTrait is applicable for resource ‘list’ operations.
ActionTrait is applicable for resource actions.
UndefinedOnly traits that did not specify a trait context (and therefore always apply) will be exposed.

Enumerates the standard trait locations for Azure.Core operations.

enum Azure.Core.Traits.TraitLocation
NameValueDescription
ParametersIdentifies operation parameters as the trait target.
ResponseIdentifies operation response as the trait target.
ApiVersionParameterIdentifies the API version parameter as the trait target.