Client library for Visual Studio Resource Provider Client
npm install --save @datafire/azure_visualstudio_csm
let azure_visualstudio_csm = require('@datafire/azure_visualstudio_csm').create({
access_token: "",
refresh_token: "",
client_id: "",
client_secret: "",
redirect_uri: ""
});
.then(data => {
console.log(data);
});
Use these APIs to manage Visual Studio Team Services resources through the Azure Resource Manager. All task operations conform to the HTTP/1.1 protocol specification and each operation returns an x-ms-request-id header that can be used to obtain information about the request. You must make sure that requests made to these resources are secure. For more information, see https://docs.microsoft.com/en-us/rest/api/index.
Gets the details of all operations possible on the Microsoft.VisualStudio resource provider.
azure_visualstudio_csm.Operations_List(null, context)
This action has no parameters
- output OperationListResult
Checks if the specified Visual Studio Team Services account name is available. Resource name can be either an account name or an account name and PUID.
azure_visualstudio_csm.Accounts_CheckNameAvailability({
"subscriptionId": "",
"api-version": "",
"body": {}
}, context)
- input
object
- subscriptionId required
string
: The Azure subscription identifier. - api-version required
string
: API Version - body required CheckNameAvailabilityParameter
- subscriptionId required
- output CheckNameAvailabilityResult
Gets all Visual Studio Team Services project resources created in the specified Team Services account.
azure_visualstudio_csm.Project_ListByAccountResource({
"resourceGroupName": "",
"subscriptionId": "",
"api-version": "",
"rootResourceName": ""
}, context)
- input
object
- resourceGroupName required
string
: Name of the resource group within the Azure subscription. - subscriptionId required
string
: The Azure subscription identifier. - api-version required
string
: API Version - rootResourceName required
string
: Name of the Team Services account.
- resourceGroupName required
- output ProjectResourceListResult
Gets the details of a Team Services project resource.
azure_visualstudio_csm.Projects_Get({
"resourceGroupName": "",
"subscriptionId": "",
"api-version": "",
"rootResourceName": "",
"resourceName": ""
}, context)
- input
object
- resourceGroupName required
string
: Name of the resource group within the Azure subscription. - subscriptionId required
string
: The Azure subscription identifier. - api-version required
string
: API Version - rootResourceName required
string
: Name of the Team Services account. - resourceName required
string
: Name of the Team Services project.
- resourceGroupName required
- output ProjectResource
Updates the tags of the specified Team Services project.
azure_visualstudio_csm.Projects_Update({
"resourceGroupName": "",
"subscriptionId": "",
"api-version": "",
"body": {},
"rootResourceName": "",
"resourceName": ""
}, context)
- input
object
- resourceGroupName required
string
: Name of the resource group within the Azure subscription. - subscriptionId required
string
: The Azure subscription identifier. - api-version required
string
: API Version - body required ProjectResourceUpdateParameters
- rootResourceName required
string
: Name of the Team Services account. - resourceName required
string
: Name of the Team Services project.
- resourceGroupName required
- output ProjectResource
Creates a Team Services project in the collection with the specified name. 'VersionControlOption' and 'ProcessTemplateId' must be specified in the resource properties. Valid values for VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId: 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC, 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process templates).
azure_visualstudio_csm.Projects_Create({
"body": {},
"resourceGroupName": "",
"subscriptionId": "",
"api-version": "",
"rootResourceName": "",
"resourceName": ""
}, context)
- input
object
- body required ProjectResource
- resourceGroupName required
string
: Name of the resource group within the Azure subscription. - subscriptionId required
string
: The Azure subscription identifier. - api-version required
string
: API Version - rootResourceName required
string
: Name of the Team Services account. - resourceName required
string
: Name of the Team Services project. - validating
string
: This parameter is ignored and should be set to an empty string.
- output ProjectResource
Gets all Visual Studio Team Services account resources under the resource group linked to the specified Azure subscription.
azure_visualstudio_csm.Accounts_ListByResourceGroup({
"resourceGroupName": "",
"subscriptionId": "",
"api-version": ""
}, context)
- input
object
- resourceGroupName required
string
: Name of the resource group within the Azure subscription. - subscriptionId required
string
: The Azure subscription identifier. - api-version required
string
: API Version
- resourceGroupName required
- output AccountResourceListResult
Gets the details of the extension resources created within the resource group.
azure_visualstudio_csm.Extensions_ListByAccount({
"resourceGroupName": "",
"subscriptionId": "",
"api-version": "",
"accountResourceName": ""
}, context)
- input
object
- resourceGroupName required
string
: Name of the resource group within the Azure subscription. - subscriptionId required
string
: The Azure subscription identifier. - api-version required
string
: API Version - accountResourceName required
string
: The name of the Visual Studio Team Services account resource.
- resourceGroupName required
- output ExtensionResourceListResult
Removes an extension resource registration for a Visual Studio Team Services account.
azure_visualstudio_csm.Extensions_Delete({
"resourceGroupName": "",
"subscriptionId": "",
"api-version": "",
"accountResourceName": "",
"extensionResourceName": ""
}, context)
- input
object
- resourceGroupName required
string
: Name of the resource group within the Azure subscription. - subscriptionId required
string
: The Azure subscription identifier. - api-version required
string
: API Version - accountResourceName required
string
: The name of the Visual Studio Team Services account resource. - extensionResourceName required
string
: The name of the extension.
- resourceGroupName required
Output schema unknown
Gets the details of an extension associated with a Visual Studio Team Services account resource.
azure_visualstudio_csm.Extensions_Get({
"resourceGroupName": "",
"subscriptionId": "",
"api-version": "",
"accountResourceName": "",
"extensionResourceName": ""
}, context)
- input
object
- resourceGroupName required
string
: Name of the resource group within the Azure subscription. - subscriptionId required
string
: The Azure subscription identifier. - api-version required
string
: API Version - accountResourceName required
string
: The name of the Visual Studio Team Services account resource. - extensionResourceName required
string
: The name of the extension.
- resourceGroupName required
- output ExtensionResource
Updates an existing extension registration for the Visual Studio Team Services account.
azure_visualstudio_csm.Extensions_Update({
"resourceGroupName": "",
"subscriptionId": "",
"api-version": "",
"body": {},
"accountResourceName": "",
"extensionResourceName": ""
}, context)
- input
object
- resourceGroupName required
string
: Name of the resource group within the Azure subscription. - subscriptionId required
string
: The Azure subscription identifier. - api-version required
string
: API Version - body required ExtensionResourceRequest
- accountResourceName required
string
: The name of the Visual Studio Team Services account resource. - extensionResourceName required
string
: The name of the extension.
- resourceGroupName required
- output ExtensionResource
Registers the extension with a Visual Studio Team Services account.
azure_visualstudio_csm.Extensions_Create({
"resourceGroupName": "",
"subscriptionId": "",
"api-version": "",
"body": {},
"accountResourceName": "",
"extensionResourceName": ""
}, context)
- input
object
- resourceGroupName required
string
: Name of the resource group within the Azure subscription. - subscriptionId required
string
: The Azure subscription identifier. - api-version required
string
: API Version - body required ExtensionResourceRequest
- accountResourceName required
string
: The name of the Visual Studio Team Services account resource. - extensionResourceName required
string
: The name of the extension.
- resourceGroupName required
- output ExtensionResource
Deletes a Visual Studio Team Services account resource.
azure_visualstudio_csm.Accounts_Delete({
"resourceGroupName": "",
"subscriptionId": "",
"api-version": "",
"resourceName": ""
}, context)
- input
object
- resourceGroupName required
string
: Name of the resource group within the Azure subscription. - subscriptionId required
string
: The Azure subscription identifier. - api-version required
string
: API Version - resourceName required
string
: Name of the resource.
- resourceGroupName required
Output schema unknown
Gets the Visual Studio Team Services account resource details.
azure_visualstudio_csm.Accounts_Get({
"resourceGroupName": "",
"subscriptionId": "",
"api-version": "",
"resourceName": ""
}, context)
- input
object
- resourceGroupName required
string
: Name of the resource group within the Azure subscription. - subscriptionId required
string
: The Azure subscription identifier. - api-version required
string
: API Version - resourceName required
string
: Name of the resource.
- resourceGroupName required
- output AccountResource
Creates or updates a Visual Studio Team Services account resource.
azure_visualstudio_csm.Accounts_CreateOrUpdate({
"resourceGroupName": "",
"subscriptionId": "",
"api-version": "",
"body": {},
"resourceName": ""
}, context)
- input
object
- resourceGroupName required
string
: Name of the resource group within the Azure subscription. - subscriptionId required
string
: The Azure subscription identifier. - api-version required
string
: API Version - body required AccountResourceRequest
- resourceName required
string
: Name of the resource.
- resourceGroupName required
- output AccountResource
- AccountResource
object
: The response to an account resource GET request.- properties
object
: Resource properties. - id
string
: Unique identifier of the resource. - location
string
: Resource location. - name
string
: Resource name. - tags
object
: Resource tags. - type
string
: Resource type.
- properties
- AccountResourceListResult
object
: The response to an account resource list GET request.- value
array
: Array of resource details.- items AccountResource
- value
- AccountResourceRequest
object
: The body of a PUT request to modify a Visual Studio account resource.- accountName
string
: The account name. - location
string
: The Azure instance location. - operationType
string
(values: unknown, create, update, link): The type of the operation. - properties
object
: The custom properties of the resource. - tags
object
: The custom tags of the resource.
- accountName
- ApplicationSource
object
: Defines the source application for a VSTS pipeline.- applicationConfiguration
object
: Application specific properties. - applicationType required
string
(values: AspDotNet, AspDotNetCore, NodeJs): Type of application. - sourceType required
string
(values: CodeTemplate, CodeRepository): Type of application source.
- applicationConfiguration
- ApplicationTarget
object
: Defines the target resources for a VSTS pipeline.- resources required
array
: List of target resources.- items TargetResource
- targetType required
string
(values: WindowsAppService): Type of target.
- resources required
- Authorization
object
: Defines the authorization type and its parameters.- authorizationType required
string
(values: authorizationToken, personalAccessToken): Type of authorization. - parameters
object
: Authorization parameters corresponding to the authorization type.
- authorizationType required
- CheckNameAvailabilityParameter
object
: The body of a POST request to check name availability.- resourceName
string
: The name of the resource to check availability for. - resourceType
string
: The type of resource to check availability for.
- resourceName
- CheckNameAvailabilityResult
object
: The response to a name availability request.- message
string
: The message describing the detailed reason. - nameAvailable
boolean
: The value which indicates whether the provided name is available.
- message
- CodeRepository
object
: Defines a code repository.- authorizationReference
string
: Reference to the authorization info used to access the code repository. This value is used as a key into the global authorization details dictionary. - defaultBranch required
string
: Default branch for which continuous integration should be configured in the VSTS pipeline. - id required
string
: Unique identifier of the code repository. - properties
object
: Repository-specific properties. - repositoryType required
string
(values: gitHub, vstsGit): Type of code repository.
- authorizationReference
- CodeRepositoryApplicationSource
object
: Defines the source application, when it resides in a code repository.- repository required CodeRepository
- applicationConfiguration
object
: Application specific properties. - applicationType required
string
(values: AspDotNet, AspDotNetCore, NodeJs): Type of application. - sourceType required
string
(values: CodeTemplate, CodeRepository): Type of application source.
- CodeTemplateApplicationSource
object
: Defines the source application template.- applicationConfiguration
object
: Application specific properties. - applicationType required
string
(values: AspDotNet, AspDotNetCore, NodeJs): Type of application. - sourceType required
string
(values: CodeTemplate, CodeRepository): Type of application source.
- applicationConfiguration
- ExtensionResource
object
: The response to an extension resource GET request.- plan ExtensionResourcePlan
- properties
object
: Resource properties. - id
string
: Unique identifier of the resource. - location
string
: Resource location. - name
string
: Resource name. - tags
object
: Resource tags. - type
string
: Resource type.
- ExtensionResourceListResult
object
: The response to an extension resource list GET request.- value
array
: Array of extension resource details.- items ExtensionResource
- value
- ExtensionResourcePlan
object
: Plan data for an extension resource.- name
string
: Name of the plan. - product
string
: Product name. - promotionCode
string
: Optional: the promotion code associated with the plan. - publisher
string
: Name of the extension publisher. - version
string
: A string that uniquely identifies the plan version.
- name
- ExtensionResourceRequest
object
: The body of an extension resource PUT request.- location
string
: The Azure region of the Visual Studio account associated with this request (i.e 'southcentralus'.) - plan ExtensionResourcePlan
- properties
object
: A dictionary of extended properties. This property is currently unused. - tags
object
: A dictionary of user-defined tags to be stored with the extension resource.
- location
- Operation
object
: Properties of an operation supported by the resource provider.- display OperationProperties
- name
string
: The name of the resource operation.
- OperationListResult
object
: Container for a list of operations supported by a resource provider.- value
array
: A list of operations supported by a resource provider.- items Operation
- value
- OperationProperties
object
: Properties of an operation supported by the resource provider.- description
string
: The description of the resource operation. - operation
string
: The operation name. - provider
string
: The provider name. - resource
string
: The resource name.
- description
- PipelineTemplate
object
: Defines a VSTS pipeline template.- applicationSource required ApplicationSource
- applicationTarget required ApplicationTarget
- authorizationDetails required
object
: Global dictionary of authorization details used by the pipeline, with a friendly name as key. Individual resource in the pipeline can reference to a specific authorization info using the friendly name.
- ProjectResource
object
: A Visual Studio Team Services project resource.- kind
string
(values: project, bootstrappedProject): Kind of project resource - properties ProjectResourceProperties
- id
string
: Unique identifier of the resource. - location
string
: Resource location. - name
string
: Resource name. - tags
object
: Resource tags. - type
string
: Resource type.
- kind
- ProjectResourceListResult
object
: The response to a request to list Team Services project resources in a resource group/account.- value
array
: List of project resource details.- items ProjectResource
- value
- ProjectResourceProperties
object
: Defines the custom properties of project resource.- bootstrapPipelineTemplate PipelineTemplate
- ownerUpn
string
: Optional UPN of the owner, on-behalf-of whom the project is being created. - processTemplateId
string
(values: Scrum, Agile, Cmmi): Process template to use in the project. - tfsUniqueIdentifier
string
: Unique identifier of the VSTS project. - versionControlOption
string
(values: Git, Tfvc): Version control to use for the default repo created in the project.
- ProjectResourceUpdateParameters
object
: The parameters to update a project resource.- tags
object
: The custom tags to be set on the resource.
- tags
- Resource
object
: A generic Azure Resource Manager resource.- id
string
: Unique identifier of the resource. - location
string
: Resource location. - name
string
: Resource name. - tags
object
: Resource tags. - type
string
: Resource type.
- id
- TargetResource
object
: Defines a single resource used as target for a VSTS pipeline.- authorizationReference
string
: Reference to the authorization info used to access the target resource. This value is used as a key into the global authorization details dictionary. - id required
string
: Unique identifier of the target resource. - role required
string
: Role of the target resource.
- authorizationReference