azuredevops.Extension
Explore with Pulumi AI
Manages extension within Azure DevOps organization.
Example Usage
Install Extension
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const example = new azuredevops.Extension("example", {
extensionId: "extension ID",
publisherId: "publisher ID",
});
import pulumi
import pulumi_azuredevops as azuredevops
example = azuredevops.Extension("example",
extension_id="extension ID",
publisher_id="publisher ID")
package main
import (
"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azuredevops.NewExtension(ctx, "example", &azuredevops.ExtensionArgs{
ExtensionId: pulumi.String("extension ID"),
PublisherId: pulumi.String("publisher ID"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
return await Deployment.RunAsync(() =>
{
var example = new AzureDevOps.Extension("example", new()
{
ExtensionId = "extension ID",
PublisherId = "publisher ID",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.Extension;
import com.pulumi.azuredevops.ExtensionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Extension("example", ExtensionArgs.builder()
.extensionId("extension ID")
.publisherId("publisher ID")
.build());
}
}
resources:
example:
type: azuredevops:Extension
properties:
extensionId: extension ID
publisherId: publisher ID
Relevant Links
Create Extension Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Extension(name: string, args: ExtensionArgs, opts?: CustomResourceOptions);
@overload
def Extension(resource_name: str,
args: ExtensionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Extension(resource_name: str,
opts: Optional[ResourceOptions] = None,
extension_id: Optional[str] = None,
publisher_id: Optional[str] = None,
disabled: Optional[bool] = None,
version: Optional[str] = None)
func NewExtension(ctx *Context, name string, args ExtensionArgs, opts ...ResourceOption) (*Extension, error)
public Extension(string name, ExtensionArgs args, CustomResourceOptions? opts = null)
public Extension(String name, ExtensionArgs args)
public Extension(String name, ExtensionArgs args, CustomResourceOptions options)
type: azuredevops:Extension
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ExtensionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ExtensionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ExtensionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ExtensionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ExtensionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var extensionResource = new AzureDevOps.Extension("extensionResource", new()
{
ExtensionId = "string",
PublisherId = "string",
Disabled = false,
Version = "string",
});
example, err := azuredevops.NewExtension(ctx, "extensionResource", &azuredevops.ExtensionArgs{
ExtensionId: pulumi.String("string"),
PublisherId: pulumi.String("string"),
Disabled: pulumi.Bool(false),
Version: pulumi.String("string"),
})
var extensionResource = new Extension("extensionResource", ExtensionArgs.builder()
.extensionId("string")
.publisherId("string")
.disabled(false)
.version("string")
.build());
extension_resource = azuredevops.Extension("extensionResource",
extension_id="string",
publisher_id="string",
disabled=False,
version="string")
const extensionResource = new azuredevops.Extension("extensionResource", {
extensionId: "string",
publisherId: "string",
disabled: false,
version: "string",
});
type: azuredevops:Extension
properties:
disabled: false
extensionId: string
publisherId: string
version: string
Extension Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Extension resource accepts the following input properties:
- Extension
Id string - The publisher ID of the extension.
- Publisher
Id string - The extension ID of the extension.
- Disabled bool
- Whether to disable the extension.
- Version string
- The version of the extension.
- Extension
Id string - The publisher ID of the extension.
- Publisher
Id string - The extension ID of the extension.
- Disabled bool
- Whether to disable the extension.
- Version string
- The version of the extension.
- extension
Id String - The publisher ID of the extension.
- publisher
Id String - The extension ID of the extension.
- disabled Boolean
- Whether to disable the extension.
- version String
- The version of the extension.
- extension
Id string - The publisher ID of the extension.
- publisher
Id string - The extension ID of the extension.
- disabled boolean
- Whether to disable the extension.
- version string
- The version of the extension.
- extension_
id str - The publisher ID of the extension.
- publisher_
id str - The extension ID of the extension.
- disabled bool
- Whether to disable the extension.
- version str
- The version of the extension.
- extension
Id String - The publisher ID of the extension.
- publisher
Id String - The extension ID of the extension.
- disabled Boolean
- Whether to disable the extension.
- version String
- The version of the extension.
Outputs
All input properties are implicitly available as output properties. Additionally, the Extension resource produces the following output properties:
- Extension
Name string - The name of the extension.
- Id string
- The provider-assigned unique ID for this managed resource.
- Publisher
Name string - The name of the publisher.
- Scopes List<string>
- List of all oauth scopes required by this extension.
- Extension
Name string - The name of the extension.
- Id string
- The provider-assigned unique ID for this managed resource.
- Publisher
Name string - The name of the publisher.
- Scopes []string
- List of all oauth scopes required by this extension.
- extension
Name String - The name of the extension.
- id String
- The provider-assigned unique ID for this managed resource.
- publisher
Name String - The name of the publisher.
- scopes List<String>
- List of all oauth scopes required by this extension.
- extension
Name string - The name of the extension.
- id string
- The provider-assigned unique ID for this managed resource.
- publisher
Name string - The name of the publisher.
- scopes string[]
- List of all oauth scopes required by this extension.
- extension_
name str - The name of the extension.
- id str
- The provider-assigned unique ID for this managed resource.
- publisher_
name str - The name of the publisher.
- scopes Sequence[str]
- List of all oauth scopes required by this extension.
- extension
Name String - The name of the extension.
- id String
- The provider-assigned unique ID for this managed resource.
- publisher
Name String - The name of the publisher.
- scopes List<String>
- List of all oauth scopes required by this extension.
Look up Existing Extension Resource
Get an existing Extension resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ExtensionState, opts?: CustomResourceOptions): Extension
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
disabled: Optional[bool] = None,
extension_id: Optional[str] = None,
extension_name: Optional[str] = None,
publisher_id: Optional[str] = None,
publisher_name: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
version: Optional[str] = None) -> Extension
func GetExtension(ctx *Context, name string, id IDInput, state *ExtensionState, opts ...ResourceOption) (*Extension, error)
public static Extension Get(string name, Input<string> id, ExtensionState? state, CustomResourceOptions? opts = null)
public static Extension get(String name, Output<String> id, ExtensionState state, CustomResourceOptions options)
resources: _: type: azuredevops:Extension get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Disabled bool
- Whether to disable the extension.
- Extension
Id string - The publisher ID of the extension.
- Extension
Name string - The name of the extension.
- Publisher
Id string - The extension ID of the extension.
- Publisher
Name string - The name of the publisher.
- Scopes List<string>
- List of all oauth scopes required by this extension.
- Version string
- The version of the extension.
- Disabled bool
- Whether to disable the extension.
- Extension
Id string - The publisher ID of the extension.
- Extension
Name string - The name of the extension.
- Publisher
Id string - The extension ID of the extension.
- Publisher
Name string - The name of the publisher.
- Scopes []string
- List of all oauth scopes required by this extension.
- Version string
- The version of the extension.
- disabled Boolean
- Whether to disable the extension.
- extension
Id String - The publisher ID of the extension.
- extension
Name String - The name of the extension.
- publisher
Id String - The extension ID of the extension.
- publisher
Name String - The name of the publisher.
- scopes List<String>
- List of all oauth scopes required by this extension.
- version String
- The version of the extension.
- disabled boolean
- Whether to disable the extension.
- extension
Id string - The publisher ID of the extension.
- extension
Name string - The name of the extension.
- publisher
Id string - The extension ID of the extension.
- publisher
Name string - The name of the publisher.
- scopes string[]
- List of all oauth scopes required by this extension.
- version string
- The version of the extension.
- disabled bool
- Whether to disable the extension.
- extension_
id str - The publisher ID of the extension.
- extension_
name str - The name of the extension.
- publisher_
id str - The extension ID of the extension.
- publisher_
name str - The name of the publisher.
- scopes Sequence[str]
- List of all oauth scopes required by this extension.
- version str
- The version of the extension.
- disabled Boolean
- Whether to disable the extension.
- extension
Id String - The publisher ID of the extension.
- extension
Name String - The name of the extension.
- publisher
Id String - The extension ID of the extension.
- publisher
Name String - The name of the publisher.
- scopes List<String>
- List of all oauth scopes required by this extension.
- version String
- The version of the extension.
Import
Azure DevOps Extension can be imported using the publisher ID and extension ID:
$ pulumi import azuredevops:index/extension:Extension example publisherId/extensionId
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure DevOps pulumi/pulumi-azuredevops
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azuredevops
Terraform Provider.