azure-native.sql.JobCredential
Explore with Pulumi AI
A stored credential that can be used by a job to connect to target databases.
Uses Azure REST API version 2023-08-01. In version 2.x of the Azure Native provider, it used API version 2021-11-01.
Other available API versions: 2017-03-01-preview, 2020-02-02-preview, 2020-08-01-preview, 2020-11-01-preview, 2021-02-01-preview, 2021-05-01-preview, 2021-08-01-preview, 2021-11-01, 2021-11-01-preview, 2022-02-01-preview, 2022-05-01-preview, 2022-08-01-preview, 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native sql [ApiVersion]
. See the version guide for details.
Create JobCredential Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new JobCredential(name: string, args: JobCredentialArgs, opts?: CustomResourceOptions);
@overload
def JobCredential(resource_name: str,
args: JobCredentialArgs,
opts: Optional[ResourceOptions] = None)
@overload
def JobCredential(resource_name: str,
opts: Optional[ResourceOptions] = None,
job_agent_name: Optional[str] = None,
password: Optional[str] = None,
resource_group_name: Optional[str] = None,
server_name: Optional[str] = None,
username: Optional[str] = None,
credential_name: Optional[str] = None)
func NewJobCredential(ctx *Context, name string, args JobCredentialArgs, opts ...ResourceOption) (*JobCredential, error)
public JobCredential(string name, JobCredentialArgs args, CustomResourceOptions? opts = null)
public JobCredential(String name, JobCredentialArgs args)
public JobCredential(String name, JobCredentialArgs args, CustomResourceOptions options)
type: azure-native:sql:JobCredential
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. JobCredentialArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. JobCredentialArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. JobCredentialArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. JobCredentialArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. JobCredentialArgs - 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 jobCredentialResource = new AzureNative.Sql.JobCredential("jobCredentialResource", new()
{
JobAgentName = "string",
Password = "string",
ResourceGroupName = "string",
ServerName = "string",
Username = "string",
CredentialName = "string",
});
example, err := sql.NewJobCredential(ctx, "jobCredentialResource", &sql.JobCredentialArgs{
JobAgentName: pulumi.String("string"),
Password: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
ServerName: pulumi.String("string"),
Username: pulumi.String("string"),
CredentialName: pulumi.String("string"),
})
var jobCredentialResource = new JobCredential("jobCredentialResource", JobCredentialArgs.builder()
.jobAgentName("string")
.password("string")
.resourceGroupName("string")
.serverName("string")
.username("string")
.credentialName("string")
.build());
job_credential_resource = azure_native.sql.JobCredential("jobCredentialResource",
job_agent_name="string",
password="string",
resource_group_name="string",
server_name="string",
username="string",
credential_name="string")
const jobCredentialResource = new azure_native.sql.JobCredential("jobCredentialResource", {
jobAgentName: "string",
password: "string",
resourceGroupName: "string",
serverName: "string",
username: "string",
credentialName: "string",
});
type: azure-native:sql:JobCredential
properties:
credentialName: string
jobAgentName: string
password: string
resourceGroupName: string
serverName: string
username: string
JobCredential 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 JobCredential resource accepts the following input properties:
- Job
Agent Name This property is required. Changes to this property will trigger replacement.
- The name of the job agent.
- Password
This property is required. string - The credential password.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Server
Name This property is required. Changes to this property will trigger replacement.
- The name of the server.
- Username
This property is required. string - The credential user name.
- Credential
Name Changes to this property will trigger replacement.
- The name of the credential.
- Job
Agent Name This property is required. Changes to this property will trigger replacement.
- The name of the job agent.
- Password
This property is required. string - The credential password.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Server
Name This property is required. Changes to this property will trigger replacement.
- The name of the server.
- Username
This property is required. string - The credential user name.
- Credential
Name Changes to this property will trigger replacement.
- The name of the credential.
- job
Agent Name This property is required. Changes to this property will trigger replacement.
- The name of the job agent.
- password
This property is required. String - The credential password.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server
Name This property is required. Changes to this property will trigger replacement.
- The name of the server.
- username
This property is required. String - The credential user name.
- credential
Name Changes to this property will trigger replacement.
- The name of the credential.
- job
Agent Name This property is required. Changes to this property will trigger replacement.
- The name of the job agent.
- password
This property is required. string - The credential password.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server
Name This property is required. Changes to this property will trigger replacement.
- The name of the server.
- username
This property is required. string - The credential user name.
- credential
Name Changes to this property will trigger replacement.
- The name of the credential.
- job_
agent_ name This property is required. Changes to this property will trigger replacement.
- The name of the job agent.
- password
This property is required. str - The credential password.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server_
name This property is required. Changes to this property will trigger replacement.
- The name of the server.
- username
This property is required. str - The credential user name.
- credential_
name Changes to this property will trigger replacement.
- The name of the credential.
- job
Agent Name This property is required. Changes to this property will trigger replacement.
- The name of the job agent.
- password
This property is required. String - The credential password.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server
Name This property is required. Changes to this property will trigger replacement.
- The name of the server.
- username
This property is required. String - The credential user name.
- credential
Name Changes to this property will trigger replacement.
- The name of the credential.
Outputs
All input properties are implicitly available as output properties. Additionally, the JobCredential resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Type string
- Resource type.
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Type string
- Resource type.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- type String
- Resource type.
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name.
- type string
- Resource type.
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name.
- type str
- Resource type.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- type String
- Resource type.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:sql:JobCredential cred1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/credentials/{credentialName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0