Documentation
¶
Index ¶
- type Cockpit
- type CockpitArgs
- type CockpitArray
- type CockpitArrayInput
- type CockpitArrayOutput
- type CockpitEndpoint
- type CockpitEndpointArgs
- type CockpitEndpointArray
- type CockpitEndpointArrayInput
- type CockpitEndpointArrayOutput
- func (CockpitEndpointArrayOutput) ElementType() reflect.Type
- func (o CockpitEndpointArrayOutput) Index(i pulumi.IntInput) CockpitEndpointOutput
- func (o CockpitEndpointArrayOutput) ToCockpitEndpointArrayOutput() CockpitEndpointArrayOutput
- func (o CockpitEndpointArrayOutput) ToCockpitEndpointArrayOutputWithContext(ctx context.Context) CockpitEndpointArrayOutput
- type CockpitEndpointInput
- type CockpitEndpointOutput
- func (o CockpitEndpointOutput) AlertmanagerUrl() pulumi.StringPtrOutput
- func (CockpitEndpointOutput) ElementType() reflect.Type
- func (o CockpitEndpointOutput) GrafanaUrl() pulumi.StringPtrOutput
- func (o CockpitEndpointOutput) LogsUrl() pulumi.StringPtrOutput
- func (o CockpitEndpointOutput) MetricsUrl() pulumi.StringPtrOutput
- func (o CockpitEndpointOutput) ToCockpitEndpointOutput() CockpitEndpointOutput
- func (o CockpitEndpointOutput) ToCockpitEndpointOutputWithContext(ctx context.Context) CockpitEndpointOutput
- func (o CockpitEndpointOutput) TracesUrl() pulumi.StringPtrOutput
- type CockpitInput
- type CockpitMap
- type CockpitMapInput
- type CockpitMapOutput
- type CockpitOutput
- func (CockpitOutput) ElementType() reflect.Type
- func (o CockpitOutput) Endpoints() CockpitEndpointArrayOutput
- func (o CockpitOutput) Plan() pulumi.StringPtrOutput
- func (o CockpitOutput) PlanId() pulumi.StringOutput
- func (o CockpitOutput) ProjectId() pulumi.StringOutput
- func (o CockpitOutput) PushUrls() CockpitPushUrlArrayOutput
- func (o CockpitOutput) ToCockpitOutput() CockpitOutput
- func (o CockpitOutput) ToCockpitOutputWithContext(ctx context.Context) CockpitOutput
- type CockpitPushUrl
- type CockpitPushUrlArgs
- type CockpitPushUrlArray
- type CockpitPushUrlArrayInput
- type CockpitPushUrlArrayOutput
- func (CockpitPushUrlArrayOutput) ElementType() reflect.Type
- func (o CockpitPushUrlArrayOutput) Index(i pulumi.IntInput) CockpitPushUrlOutput
- func (o CockpitPushUrlArrayOutput) ToCockpitPushUrlArrayOutput() CockpitPushUrlArrayOutput
- func (o CockpitPushUrlArrayOutput) ToCockpitPushUrlArrayOutputWithContext(ctx context.Context) CockpitPushUrlArrayOutput
- type CockpitPushUrlInput
- type CockpitPushUrlOutput
- func (CockpitPushUrlOutput) ElementType() reflect.Type
- func (o CockpitPushUrlOutput) PushLogsUrl() pulumi.StringPtrOutput
- func (o CockpitPushUrlOutput) PushMetricsUrl() pulumi.StringPtrOutput
- func (o CockpitPushUrlOutput) ToCockpitPushUrlOutput() CockpitPushUrlOutput
- func (o CockpitPushUrlOutput) ToCockpitPushUrlOutputWithContext(ctx context.Context) CockpitPushUrlOutput
- type CockpitState
- type GetCockpitEndpoint
- type GetCockpitEndpointArgs
- type GetCockpitEndpointArray
- type GetCockpitEndpointArrayInput
- type GetCockpitEndpointArrayOutput
- func (GetCockpitEndpointArrayOutput) ElementType() reflect.Type
- func (o GetCockpitEndpointArrayOutput) Index(i pulumi.IntInput) GetCockpitEndpointOutput
- func (o GetCockpitEndpointArrayOutput) ToGetCockpitEndpointArrayOutput() GetCockpitEndpointArrayOutput
- func (o GetCockpitEndpointArrayOutput) ToGetCockpitEndpointArrayOutputWithContext(ctx context.Context) GetCockpitEndpointArrayOutput
- type GetCockpitEndpointInput
- type GetCockpitEndpointOutput
- func (o GetCockpitEndpointOutput) AlertmanagerUrl() pulumi.StringOutput
- func (GetCockpitEndpointOutput) ElementType() reflect.Type
- func (o GetCockpitEndpointOutput) GrafanaUrl() pulumi.StringOutput
- func (o GetCockpitEndpointOutput) LogsUrl() pulumi.StringOutput
- func (o GetCockpitEndpointOutput) MetricsUrl() pulumi.StringOutput
- func (o GetCockpitEndpointOutput) ToGetCockpitEndpointOutput() GetCockpitEndpointOutput
- func (o GetCockpitEndpointOutput) ToGetCockpitEndpointOutputWithContext(ctx context.Context) GetCockpitEndpointOutput
- func (o GetCockpitEndpointOutput) TracesUrl() pulumi.StringOutput
- type GetCockpitPushUrl
- type GetCockpitPushUrlArgs
- type GetCockpitPushUrlArray
- type GetCockpitPushUrlArrayInput
- type GetCockpitPushUrlArrayOutput
- func (GetCockpitPushUrlArrayOutput) ElementType() reflect.Type
- func (o GetCockpitPushUrlArrayOutput) Index(i pulumi.IntInput) GetCockpitPushUrlOutput
- func (o GetCockpitPushUrlArrayOutput) ToGetCockpitPushUrlArrayOutput() GetCockpitPushUrlArrayOutput
- func (o GetCockpitPushUrlArrayOutput) ToGetCockpitPushUrlArrayOutputWithContext(ctx context.Context) GetCockpitPushUrlArrayOutput
- type GetCockpitPushUrlInput
- type GetCockpitPushUrlOutput
- func (GetCockpitPushUrlOutput) ElementType() reflect.Type
- func (o GetCockpitPushUrlOutput) PushLogsUrl() pulumi.StringOutput
- func (o GetCockpitPushUrlOutput) PushMetricsUrl() pulumi.StringOutput
- func (o GetCockpitPushUrlOutput) ToGetCockpitPushUrlOutput() GetCockpitPushUrlOutput
- func (o GetCockpitPushUrlOutput) ToGetCockpitPushUrlOutputWithContext(ctx context.Context) GetCockpitPushUrlOutput
- type GetPlanArgs
- type GetPlanOutputArgs
- type GetPlanResult
- type GetPlanResultOutput
- func (GetPlanResultOutput) ElementType() reflect.Type
- func (o GetPlanResultOutput) Id() pulumi.StringOutput
- func (o GetPlanResultOutput) Name() pulumi.StringOutput
- func (o GetPlanResultOutput) ToGetPlanResultOutput() GetPlanResultOutput
- func (o GetPlanResultOutput) ToGetPlanResultOutputWithContext(ctx context.Context) GetPlanResultOutput
- type GrafanaUser
- type GrafanaUserArgs
- type GrafanaUserArray
- type GrafanaUserArrayInput
- type GrafanaUserArrayOutput
- func (GrafanaUserArrayOutput) ElementType() reflect.Type
- func (o GrafanaUserArrayOutput) Index(i pulumi.IntInput) GrafanaUserOutput
- func (o GrafanaUserArrayOutput) ToGrafanaUserArrayOutput() GrafanaUserArrayOutput
- func (o GrafanaUserArrayOutput) ToGrafanaUserArrayOutputWithContext(ctx context.Context) GrafanaUserArrayOutput
- type GrafanaUserInput
- type GrafanaUserMap
- type GrafanaUserMapInput
- type GrafanaUserMapOutput
- func (GrafanaUserMapOutput) ElementType() reflect.Type
- func (o GrafanaUserMapOutput) MapIndex(k pulumi.StringInput) GrafanaUserOutput
- func (o GrafanaUserMapOutput) ToGrafanaUserMapOutput() GrafanaUserMapOutput
- func (o GrafanaUserMapOutput) ToGrafanaUserMapOutputWithContext(ctx context.Context) GrafanaUserMapOutput
- type GrafanaUserOutput
- func (GrafanaUserOutput) ElementType() reflect.Type
- func (o GrafanaUserOutput) Login() pulumi.StringOutput
- func (o GrafanaUserOutput) Password() pulumi.StringOutput
- func (o GrafanaUserOutput) ProjectId() pulumi.StringOutput
- func (o GrafanaUserOutput) Role() pulumi.StringOutput
- func (o GrafanaUserOutput) ToGrafanaUserOutput() GrafanaUserOutput
- func (o GrafanaUserOutput) ToGrafanaUserOutputWithContext(ctx context.Context) GrafanaUserOutput
- type GrafanaUserState
- type LookupCockpitArgs
- type LookupCockpitOutputArgs
- type LookupCockpitResult
- type LookupCockpitResultOutput
- func (LookupCockpitResultOutput) ElementType() reflect.Type
- func (o LookupCockpitResultOutput) Endpoints() GetCockpitEndpointArrayOutput
- func (o LookupCockpitResultOutput) Id() pulumi.StringOutput
- func (o LookupCockpitResultOutput) PlanId() pulumi.StringOutput
- func (o LookupCockpitResultOutput) ProjectId() pulumi.StringPtrOutput
- func (o LookupCockpitResultOutput) PushUrls() GetCockpitPushUrlArrayOutput
- func (o LookupCockpitResultOutput) ToLookupCockpitResultOutput() LookupCockpitResultOutput
- func (o LookupCockpitResultOutput) ToLookupCockpitResultOutputWithContext(ctx context.Context) LookupCockpitResultOutput
- type Token
- type TokenArgs
- type TokenArray
- type TokenArrayInput
- type TokenArrayOutput
- type TokenInput
- type TokenMap
- type TokenMapInput
- type TokenMapOutput
- type TokenOutput
- func (TokenOutput) ElementType() reflect.Type
- func (o TokenOutput) Name() pulumi.StringOutput
- func (o TokenOutput) ProjectId() pulumi.StringOutput
- func (o TokenOutput) Scopes() TokenScopesOutput
- func (o TokenOutput) SecretKey() pulumi.StringOutput
- func (o TokenOutput) ToTokenOutput() TokenOutput
- func (o TokenOutput) ToTokenOutputWithContext(ctx context.Context) TokenOutput
- type TokenScopes
- type TokenScopesArgs
- func (TokenScopesArgs) ElementType() reflect.Type
- func (i TokenScopesArgs) ToTokenScopesOutput() TokenScopesOutput
- func (i TokenScopesArgs) ToTokenScopesOutputWithContext(ctx context.Context) TokenScopesOutput
- func (i TokenScopesArgs) ToTokenScopesPtrOutput() TokenScopesPtrOutput
- func (i TokenScopesArgs) ToTokenScopesPtrOutputWithContext(ctx context.Context) TokenScopesPtrOutput
- type TokenScopesInput
- type TokenScopesOutput
- func (TokenScopesOutput) ElementType() reflect.Type
- func (o TokenScopesOutput) QueryLogs() pulumi.BoolPtrOutput
- func (o TokenScopesOutput) QueryMetrics() pulumi.BoolPtrOutput
- func (o TokenScopesOutput) QueryTraces() pulumi.BoolPtrOutput
- func (o TokenScopesOutput) SetupAlerts() pulumi.BoolPtrOutput
- func (o TokenScopesOutput) SetupLogsRules() pulumi.BoolPtrOutput
- func (o TokenScopesOutput) SetupMetricsRules() pulumi.BoolPtrOutput
- func (o TokenScopesOutput) ToTokenScopesOutput() TokenScopesOutput
- func (o TokenScopesOutput) ToTokenScopesOutputWithContext(ctx context.Context) TokenScopesOutput
- func (o TokenScopesOutput) ToTokenScopesPtrOutput() TokenScopesPtrOutput
- func (o TokenScopesOutput) ToTokenScopesPtrOutputWithContext(ctx context.Context) TokenScopesPtrOutput
- func (o TokenScopesOutput) WriteLogs() pulumi.BoolPtrOutput
- func (o TokenScopesOutput) WriteMetrics() pulumi.BoolPtrOutput
- func (o TokenScopesOutput) WriteTraces() pulumi.BoolPtrOutput
- type TokenScopesPtrInput
- type TokenScopesPtrOutput
- func (o TokenScopesPtrOutput) Elem() TokenScopesOutput
- func (TokenScopesPtrOutput) ElementType() reflect.Type
- func (o TokenScopesPtrOutput) QueryLogs() pulumi.BoolPtrOutput
- func (o TokenScopesPtrOutput) QueryMetrics() pulumi.BoolPtrOutput
- func (o TokenScopesPtrOutput) QueryTraces() pulumi.BoolPtrOutput
- func (o TokenScopesPtrOutput) SetupAlerts() pulumi.BoolPtrOutput
- func (o TokenScopesPtrOutput) SetupLogsRules() pulumi.BoolPtrOutput
- func (o TokenScopesPtrOutput) SetupMetricsRules() pulumi.BoolPtrOutput
- func (o TokenScopesPtrOutput) ToTokenScopesPtrOutput() TokenScopesPtrOutput
- func (o TokenScopesPtrOutput) ToTokenScopesPtrOutputWithContext(ctx context.Context) TokenScopesPtrOutput
- func (o TokenScopesPtrOutput) WriteLogs() pulumi.BoolPtrOutput
- func (o TokenScopesPtrOutput) WriteMetrics() pulumi.BoolPtrOutput
- func (o TokenScopesPtrOutput) WriteTraces() pulumi.BoolPtrOutput
- type TokenState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cockpit ¶
type Cockpit struct { pulumi.CustomResourceState // Endpoints. Endpoints CockpitEndpointArrayOutput `pulumi:"endpoints"` // Name or ID of the plan to use. Plan pulumi.StringPtrOutput `pulumi:"plan"` // The ID of the current plan. PlanId pulumi.StringOutput `pulumi:"planId"` // `projectId`) The ID of the project the cockpit is associated with. ProjectId pulumi.StringOutput `pulumi:"projectId"` // Push_url PushUrls CockpitPushUrlArrayOutput `pulumi:"pushUrls"` }
## Import
Cockpits can be imported using the `{project_id}`, e.g.
bash
```sh $ pulumi import scaleway:cockpit/cockpit:Cockpit main 11111111-1111-1111-1111-111111111111 ```
func GetCockpit ¶
func GetCockpit(ctx *pulumi.Context, name string, id pulumi.IDInput, state *CockpitState, opts ...pulumi.ResourceOption) (*Cockpit, error)
GetCockpit gets an existing Cockpit resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewCockpit ¶
func NewCockpit(ctx *pulumi.Context, name string, args *CockpitArgs, opts ...pulumi.ResourceOption) (*Cockpit, error)
NewCockpit registers a new resource with the given unique name, arguments, and options.
func (*Cockpit) ElementType ¶
func (*Cockpit) ToCockpitOutput ¶
func (i *Cockpit) ToCockpitOutput() CockpitOutput
func (*Cockpit) ToCockpitOutputWithContext ¶
func (i *Cockpit) ToCockpitOutputWithContext(ctx context.Context) CockpitOutput
type CockpitArgs ¶
type CockpitArgs struct { // Name or ID of the plan to use. Plan pulumi.StringPtrInput // `projectId`) The ID of the project the cockpit is associated with. ProjectId pulumi.StringPtrInput }
The set of arguments for constructing a Cockpit resource.
func (CockpitArgs) ElementType ¶
func (CockpitArgs) ElementType() reflect.Type
type CockpitArray ¶
type CockpitArray []CockpitInput
func (CockpitArray) ElementType ¶
func (CockpitArray) ElementType() reflect.Type
func (CockpitArray) ToCockpitArrayOutput ¶
func (i CockpitArray) ToCockpitArrayOutput() CockpitArrayOutput
func (CockpitArray) ToCockpitArrayOutputWithContext ¶
func (i CockpitArray) ToCockpitArrayOutputWithContext(ctx context.Context) CockpitArrayOutput
type CockpitArrayInput ¶
type CockpitArrayInput interface { pulumi.Input ToCockpitArrayOutput() CockpitArrayOutput ToCockpitArrayOutputWithContext(context.Context) CockpitArrayOutput }
CockpitArrayInput is an input type that accepts CockpitArray and CockpitArrayOutput values. You can construct a concrete instance of `CockpitArrayInput` via:
CockpitArray{ CockpitArgs{...} }
type CockpitArrayOutput ¶
type CockpitArrayOutput struct{ *pulumi.OutputState }
func (CockpitArrayOutput) ElementType ¶
func (CockpitArrayOutput) ElementType() reflect.Type
func (CockpitArrayOutput) Index ¶
func (o CockpitArrayOutput) Index(i pulumi.IntInput) CockpitOutput
func (CockpitArrayOutput) ToCockpitArrayOutput ¶
func (o CockpitArrayOutput) ToCockpitArrayOutput() CockpitArrayOutput
func (CockpitArrayOutput) ToCockpitArrayOutputWithContext ¶
func (o CockpitArrayOutput) ToCockpitArrayOutputWithContext(ctx context.Context) CockpitArrayOutput
type CockpitEndpoint ¶
type CockpitEndpoint struct { // The alertmanager URL. AlertmanagerUrl *string `pulumi:"alertmanagerUrl"` // The grafana URL. GrafanaUrl *string `pulumi:"grafanaUrl"` // The logs URL. LogsUrl *string `pulumi:"logsUrl"` // The metrics URL. MetricsUrl *string `pulumi:"metricsUrl"` // The traces URL. TracesUrl *string `pulumi:"tracesUrl"` }
type CockpitEndpointArgs ¶
type CockpitEndpointArgs struct { // The alertmanager URL. AlertmanagerUrl pulumi.StringPtrInput `pulumi:"alertmanagerUrl"` // The grafana URL. GrafanaUrl pulumi.StringPtrInput `pulumi:"grafanaUrl"` // The logs URL. LogsUrl pulumi.StringPtrInput `pulumi:"logsUrl"` // The metrics URL. MetricsUrl pulumi.StringPtrInput `pulumi:"metricsUrl"` // The traces URL. TracesUrl pulumi.StringPtrInput `pulumi:"tracesUrl"` }
func (CockpitEndpointArgs) ElementType ¶
func (CockpitEndpointArgs) ElementType() reflect.Type
func (CockpitEndpointArgs) ToCockpitEndpointOutput ¶
func (i CockpitEndpointArgs) ToCockpitEndpointOutput() CockpitEndpointOutput
func (CockpitEndpointArgs) ToCockpitEndpointOutputWithContext ¶
func (i CockpitEndpointArgs) ToCockpitEndpointOutputWithContext(ctx context.Context) CockpitEndpointOutput
type CockpitEndpointArray ¶
type CockpitEndpointArray []CockpitEndpointInput
func (CockpitEndpointArray) ElementType ¶
func (CockpitEndpointArray) ElementType() reflect.Type
func (CockpitEndpointArray) ToCockpitEndpointArrayOutput ¶
func (i CockpitEndpointArray) ToCockpitEndpointArrayOutput() CockpitEndpointArrayOutput
func (CockpitEndpointArray) ToCockpitEndpointArrayOutputWithContext ¶
func (i CockpitEndpointArray) ToCockpitEndpointArrayOutputWithContext(ctx context.Context) CockpitEndpointArrayOutput
type CockpitEndpointArrayInput ¶
type CockpitEndpointArrayInput interface { pulumi.Input ToCockpitEndpointArrayOutput() CockpitEndpointArrayOutput ToCockpitEndpointArrayOutputWithContext(context.Context) CockpitEndpointArrayOutput }
CockpitEndpointArrayInput is an input type that accepts CockpitEndpointArray and CockpitEndpointArrayOutput values. You can construct a concrete instance of `CockpitEndpointArrayInput` via:
CockpitEndpointArray{ CockpitEndpointArgs{...} }
type CockpitEndpointArrayOutput ¶
type CockpitEndpointArrayOutput struct{ *pulumi.OutputState }
func (CockpitEndpointArrayOutput) ElementType ¶
func (CockpitEndpointArrayOutput) ElementType() reflect.Type
func (CockpitEndpointArrayOutput) Index ¶
func (o CockpitEndpointArrayOutput) Index(i pulumi.IntInput) CockpitEndpointOutput
func (CockpitEndpointArrayOutput) ToCockpitEndpointArrayOutput ¶
func (o CockpitEndpointArrayOutput) ToCockpitEndpointArrayOutput() CockpitEndpointArrayOutput
func (CockpitEndpointArrayOutput) ToCockpitEndpointArrayOutputWithContext ¶
func (o CockpitEndpointArrayOutput) ToCockpitEndpointArrayOutputWithContext(ctx context.Context) CockpitEndpointArrayOutput
type CockpitEndpointInput ¶
type CockpitEndpointInput interface { pulumi.Input ToCockpitEndpointOutput() CockpitEndpointOutput ToCockpitEndpointOutputWithContext(context.Context) CockpitEndpointOutput }
CockpitEndpointInput is an input type that accepts CockpitEndpointArgs and CockpitEndpointOutput values. You can construct a concrete instance of `CockpitEndpointInput` via:
CockpitEndpointArgs{...}
type CockpitEndpointOutput ¶
type CockpitEndpointOutput struct{ *pulumi.OutputState }
func (CockpitEndpointOutput) AlertmanagerUrl ¶
func (o CockpitEndpointOutput) AlertmanagerUrl() pulumi.StringPtrOutput
The alertmanager URL.
func (CockpitEndpointOutput) ElementType ¶
func (CockpitEndpointOutput) ElementType() reflect.Type
func (CockpitEndpointOutput) GrafanaUrl ¶
func (o CockpitEndpointOutput) GrafanaUrl() pulumi.StringPtrOutput
The grafana URL.
func (CockpitEndpointOutput) LogsUrl ¶
func (o CockpitEndpointOutput) LogsUrl() pulumi.StringPtrOutput
The logs URL.
func (CockpitEndpointOutput) MetricsUrl ¶
func (o CockpitEndpointOutput) MetricsUrl() pulumi.StringPtrOutput
The metrics URL.
func (CockpitEndpointOutput) ToCockpitEndpointOutput ¶
func (o CockpitEndpointOutput) ToCockpitEndpointOutput() CockpitEndpointOutput
func (CockpitEndpointOutput) ToCockpitEndpointOutputWithContext ¶
func (o CockpitEndpointOutput) ToCockpitEndpointOutputWithContext(ctx context.Context) CockpitEndpointOutput
func (CockpitEndpointOutput) TracesUrl ¶
func (o CockpitEndpointOutput) TracesUrl() pulumi.StringPtrOutput
The traces URL.
type CockpitInput ¶
type CockpitInput interface { pulumi.Input ToCockpitOutput() CockpitOutput ToCockpitOutputWithContext(ctx context.Context) CockpitOutput }
type CockpitMap ¶
type CockpitMap map[string]CockpitInput
func (CockpitMap) ElementType ¶
func (CockpitMap) ElementType() reflect.Type
func (CockpitMap) ToCockpitMapOutput ¶
func (i CockpitMap) ToCockpitMapOutput() CockpitMapOutput
func (CockpitMap) ToCockpitMapOutputWithContext ¶
func (i CockpitMap) ToCockpitMapOutputWithContext(ctx context.Context) CockpitMapOutput
type CockpitMapInput ¶
type CockpitMapInput interface { pulumi.Input ToCockpitMapOutput() CockpitMapOutput ToCockpitMapOutputWithContext(context.Context) CockpitMapOutput }
CockpitMapInput is an input type that accepts CockpitMap and CockpitMapOutput values. You can construct a concrete instance of `CockpitMapInput` via:
CockpitMap{ "key": CockpitArgs{...} }
type CockpitMapOutput ¶
type CockpitMapOutput struct{ *pulumi.OutputState }
func (CockpitMapOutput) ElementType ¶
func (CockpitMapOutput) ElementType() reflect.Type
func (CockpitMapOutput) MapIndex ¶
func (o CockpitMapOutput) MapIndex(k pulumi.StringInput) CockpitOutput
func (CockpitMapOutput) ToCockpitMapOutput ¶
func (o CockpitMapOutput) ToCockpitMapOutput() CockpitMapOutput
func (CockpitMapOutput) ToCockpitMapOutputWithContext ¶
func (o CockpitMapOutput) ToCockpitMapOutputWithContext(ctx context.Context) CockpitMapOutput
type CockpitOutput ¶
type CockpitOutput struct{ *pulumi.OutputState }
func (CockpitOutput) ElementType ¶
func (CockpitOutput) ElementType() reflect.Type
func (CockpitOutput) Endpoints ¶
func (o CockpitOutput) Endpoints() CockpitEndpointArrayOutput
Endpoints.
func (CockpitOutput) Plan ¶
func (o CockpitOutput) Plan() pulumi.StringPtrOutput
Name or ID of the plan to use.
func (CockpitOutput) PlanId ¶
func (o CockpitOutput) PlanId() pulumi.StringOutput
The ID of the current plan.
func (CockpitOutput) ProjectId ¶
func (o CockpitOutput) ProjectId() pulumi.StringOutput
`projectId`) The ID of the project the cockpit is associated with.
func (CockpitOutput) PushUrls ¶
func (o CockpitOutput) PushUrls() CockpitPushUrlArrayOutput
Push_url
func (CockpitOutput) ToCockpitOutput ¶
func (o CockpitOutput) ToCockpitOutput() CockpitOutput
func (CockpitOutput) ToCockpitOutputWithContext ¶
func (o CockpitOutput) ToCockpitOutputWithContext(ctx context.Context) CockpitOutput
type CockpitPushUrl ¶
type CockpitPushUrlArgs ¶
type CockpitPushUrlArgs struct { // Push URL for logs (Grafana Loki) PushLogsUrl pulumi.StringPtrInput `pulumi:"pushLogsUrl"` // Push URL for metrics (Grafana Mimir) PushMetricsUrl pulumi.StringPtrInput `pulumi:"pushMetricsUrl"` }
func (CockpitPushUrlArgs) ElementType ¶
func (CockpitPushUrlArgs) ElementType() reflect.Type
func (CockpitPushUrlArgs) ToCockpitPushUrlOutput ¶
func (i CockpitPushUrlArgs) ToCockpitPushUrlOutput() CockpitPushUrlOutput
func (CockpitPushUrlArgs) ToCockpitPushUrlOutputWithContext ¶
func (i CockpitPushUrlArgs) ToCockpitPushUrlOutputWithContext(ctx context.Context) CockpitPushUrlOutput
type CockpitPushUrlArray ¶
type CockpitPushUrlArray []CockpitPushUrlInput
func (CockpitPushUrlArray) ElementType ¶
func (CockpitPushUrlArray) ElementType() reflect.Type
func (CockpitPushUrlArray) ToCockpitPushUrlArrayOutput ¶
func (i CockpitPushUrlArray) ToCockpitPushUrlArrayOutput() CockpitPushUrlArrayOutput
func (CockpitPushUrlArray) ToCockpitPushUrlArrayOutputWithContext ¶
func (i CockpitPushUrlArray) ToCockpitPushUrlArrayOutputWithContext(ctx context.Context) CockpitPushUrlArrayOutput
type CockpitPushUrlArrayInput ¶
type CockpitPushUrlArrayInput interface { pulumi.Input ToCockpitPushUrlArrayOutput() CockpitPushUrlArrayOutput ToCockpitPushUrlArrayOutputWithContext(context.Context) CockpitPushUrlArrayOutput }
CockpitPushUrlArrayInput is an input type that accepts CockpitPushUrlArray and CockpitPushUrlArrayOutput values. You can construct a concrete instance of `CockpitPushUrlArrayInput` via:
CockpitPushUrlArray{ CockpitPushUrlArgs{...} }
type CockpitPushUrlArrayOutput ¶
type CockpitPushUrlArrayOutput struct{ *pulumi.OutputState }
func (CockpitPushUrlArrayOutput) ElementType ¶
func (CockpitPushUrlArrayOutput) ElementType() reflect.Type
func (CockpitPushUrlArrayOutput) Index ¶
func (o CockpitPushUrlArrayOutput) Index(i pulumi.IntInput) CockpitPushUrlOutput
func (CockpitPushUrlArrayOutput) ToCockpitPushUrlArrayOutput ¶
func (o CockpitPushUrlArrayOutput) ToCockpitPushUrlArrayOutput() CockpitPushUrlArrayOutput
func (CockpitPushUrlArrayOutput) ToCockpitPushUrlArrayOutputWithContext ¶
func (o CockpitPushUrlArrayOutput) ToCockpitPushUrlArrayOutputWithContext(ctx context.Context) CockpitPushUrlArrayOutput
type CockpitPushUrlInput ¶
type CockpitPushUrlInput interface { pulumi.Input ToCockpitPushUrlOutput() CockpitPushUrlOutput ToCockpitPushUrlOutputWithContext(context.Context) CockpitPushUrlOutput }
CockpitPushUrlInput is an input type that accepts CockpitPushUrlArgs and CockpitPushUrlOutput values. You can construct a concrete instance of `CockpitPushUrlInput` via:
CockpitPushUrlArgs{...}
type CockpitPushUrlOutput ¶
type CockpitPushUrlOutput struct{ *pulumi.OutputState }
func (CockpitPushUrlOutput) ElementType ¶
func (CockpitPushUrlOutput) ElementType() reflect.Type
func (CockpitPushUrlOutput) PushLogsUrl ¶
func (o CockpitPushUrlOutput) PushLogsUrl() pulumi.StringPtrOutput
Push URL for logs (Grafana Loki)
func (CockpitPushUrlOutput) PushMetricsUrl ¶
func (o CockpitPushUrlOutput) PushMetricsUrl() pulumi.StringPtrOutput
Push URL for metrics (Grafana Mimir)
func (CockpitPushUrlOutput) ToCockpitPushUrlOutput ¶
func (o CockpitPushUrlOutput) ToCockpitPushUrlOutput() CockpitPushUrlOutput
func (CockpitPushUrlOutput) ToCockpitPushUrlOutputWithContext ¶
func (o CockpitPushUrlOutput) ToCockpitPushUrlOutputWithContext(ctx context.Context) CockpitPushUrlOutput
type CockpitState ¶
type CockpitState struct { // Endpoints. Endpoints CockpitEndpointArrayInput // Name or ID of the plan to use. Plan pulumi.StringPtrInput // The ID of the current plan. PlanId pulumi.StringPtrInput // `projectId`) The ID of the project the cockpit is associated with. ProjectId pulumi.StringPtrInput // Push_url PushUrls CockpitPushUrlArrayInput }
func (CockpitState) ElementType ¶
func (CockpitState) ElementType() reflect.Type
type GetCockpitEndpoint ¶
type GetCockpitEndpoint struct { // The alertmanager URL AlertmanagerUrl string `pulumi:"alertmanagerUrl"` // The grafana URL GrafanaUrl string `pulumi:"grafanaUrl"` // The logs URL LogsUrl string `pulumi:"logsUrl"` // The metrics URL MetricsUrl string `pulumi:"metricsUrl"` // The traces URL TracesUrl string `pulumi:"tracesUrl"` }
type GetCockpitEndpointArgs ¶
type GetCockpitEndpointArgs struct { // The alertmanager URL AlertmanagerUrl pulumi.StringInput `pulumi:"alertmanagerUrl"` // The grafana URL GrafanaUrl pulumi.StringInput `pulumi:"grafanaUrl"` // The logs URL LogsUrl pulumi.StringInput `pulumi:"logsUrl"` // The metrics URL MetricsUrl pulumi.StringInput `pulumi:"metricsUrl"` // The traces URL TracesUrl pulumi.StringInput `pulumi:"tracesUrl"` }
func (GetCockpitEndpointArgs) ElementType ¶
func (GetCockpitEndpointArgs) ElementType() reflect.Type
func (GetCockpitEndpointArgs) ToGetCockpitEndpointOutput ¶
func (i GetCockpitEndpointArgs) ToGetCockpitEndpointOutput() GetCockpitEndpointOutput
func (GetCockpitEndpointArgs) ToGetCockpitEndpointOutputWithContext ¶
func (i GetCockpitEndpointArgs) ToGetCockpitEndpointOutputWithContext(ctx context.Context) GetCockpitEndpointOutput
type GetCockpitEndpointArray ¶
type GetCockpitEndpointArray []GetCockpitEndpointInput
func (GetCockpitEndpointArray) ElementType ¶
func (GetCockpitEndpointArray) ElementType() reflect.Type
func (GetCockpitEndpointArray) ToGetCockpitEndpointArrayOutput ¶
func (i GetCockpitEndpointArray) ToGetCockpitEndpointArrayOutput() GetCockpitEndpointArrayOutput
func (GetCockpitEndpointArray) ToGetCockpitEndpointArrayOutputWithContext ¶
func (i GetCockpitEndpointArray) ToGetCockpitEndpointArrayOutputWithContext(ctx context.Context) GetCockpitEndpointArrayOutput
type GetCockpitEndpointArrayInput ¶
type GetCockpitEndpointArrayInput interface { pulumi.Input ToGetCockpitEndpointArrayOutput() GetCockpitEndpointArrayOutput ToGetCockpitEndpointArrayOutputWithContext(context.Context) GetCockpitEndpointArrayOutput }
GetCockpitEndpointArrayInput is an input type that accepts GetCockpitEndpointArray and GetCockpitEndpointArrayOutput values. You can construct a concrete instance of `GetCockpitEndpointArrayInput` via:
GetCockpitEndpointArray{ GetCockpitEndpointArgs{...} }
type GetCockpitEndpointArrayOutput ¶
type GetCockpitEndpointArrayOutput struct{ *pulumi.OutputState }
func (GetCockpitEndpointArrayOutput) ElementType ¶
func (GetCockpitEndpointArrayOutput) ElementType() reflect.Type
func (GetCockpitEndpointArrayOutput) Index ¶
func (o GetCockpitEndpointArrayOutput) Index(i pulumi.IntInput) GetCockpitEndpointOutput
func (GetCockpitEndpointArrayOutput) ToGetCockpitEndpointArrayOutput ¶
func (o GetCockpitEndpointArrayOutput) ToGetCockpitEndpointArrayOutput() GetCockpitEndpointArrayOutput
func (GetCockpitEndpointArrayOutput) ToGetCockpitEndpointArrayOutputWithContext ¶
func (o GetCockpitEndpointArrayOutput) ToGetCockpitEndpointArrayOutputWithContext(ctx context.Context) GetCockpitEndpointArrayOutput
type GetCockpitEndpointInput ¶
type GetCockpitEndpointInput interface { pulumi.Input ToGetCockpitEndpointOutput() GetCockpitEndpointOutput ToGetCockpitEndpointOutputWithContext(context.Context) GetCockpitEndpointOutput }
GetCockpitEndpointInput is an input type that accepts GetCockpitEndpointArgs and GetCockpitEndpointOutput values. You can construct a concrete instance of `GetCockpitEndpointInput` via:
GetCockpitEndpointArgs{...}
type GetCockpitEndpointOutput ¶
type GetCockpitEndpointOutput struct{ *pulumi.OutputState }
func (GetCockpitEndpointOutput) AlertmanagerUrl ¶
func (o GetCockpitEndpointOutput) AlertmanagerUrl() pulumi.StringOutput
The alertmanager URL
func (GetCockpitEndpointOutput) ElementType ¶
func (GetCockpitEndpointOutput) ElementType() reflect.Type
func (GetCockpitEndpointOutput) GrafanaUrl ¶
func (o GetCockpitEndpointOutput) GrafanaUrl() pulumi.StringOutput
The grafana URL
func (GetCockpitEndpointOutput) LogsUrl ¶
func (o GetCockpitEndpointOutput) LogsUrl() pulumi.StringOutput
The logs URL
func (GetCockpitEndpointOutput) MetricsUrl ¶
func (o GetCockpitEndpointOutput) MetricsUrl() pulumi.StringOutput
The metrics URL
func (GetCockpitEndpointOutput) ToGetCockpitEndpointOutput ¶
func (o GetCockpitEndpointOutput) ToGetCockpitEndpointOutput() GetCockpitEndpointOutput
func (GetCockpitEndpointOutput) ToGetCockpitEndpointOutputWithContext ¶
func (o GetCockpitEndpointOutput) ToGetCockpitEndpointOutputWithContext(ctx context.Context) GetCockpitEndpointOutput
func (GetCockpitEndpointOutput) TracesUrl ¶
func (o GetCockpitEndpointOutput) TracesUrl() pulumi.StringOutput
The traces URL
type GetCockpitPushUrl ¶
type GetCockpitPushUrlArgs ¶
type GetCockpitPushUrlArgs struct { // Push URL for logs (Grafana Loki) PushLogsUrl pulumi.StringInput `pulumi:"pushLogsUrl"` // Push URL for metrics (Grafana Mimir) PushMetricsUrl pulumi.StringInput `pulumi:"pushMetricsUrl"` }
func (GetCockpitPushUrlArgs) ElementType ¶
func (GetCockpitPushUrlArgs) ElementType() reflect.Type
func (GetCockpitPushUrlArgs) ToGetCockpitPushUrlOutput ¶
func (i GetCockpitPushUrlArgs) ToGetCockpitPushUrlOutput() GetCockpitPushUrlOutput
func (GetCockpitPushUrlArgs) ToGetCockpitPushUrlOutputWithContext ¶
func (i GetCockpitPushUrlArgs) ToGetCockpitPushUrlOutputWithContext(ctx context.Context) GetCockpitPushUrlOutput
type GetCockpitPushUrlArray ¶
type GetCockpitPushUrlArray []GetCockpitPushUrlInput
func (GetCockpitPushUrlArray) ElementType ¶
func (GetCockpitPushUrlArray) ElementType() reflect.Type
func (GetCockpitPushUrlArray) ToGetCockpitPushUrlArrayOutput ¶
func (i GetCockpitPushUrlArray) ToGetCockpitPushUrlArrayOutput() GetCockpitPushUrlArrayOutput
func (GetCockpitPushUrlArray) ToGetCockpitPushUrlArrayOutputWithContext ¶
func (i GetCockpitPushUrlArray) ToGetCockpitPushUrlArrayOutputWithContext(ctx context.Context) GetCockpitPushUrlArrayOutput
type GetCockpitPushUrlArrayInput ¶
type GetCockpitPushUrlArrayInput interface { pulumi.Input ToGetCockpitPushUrlArrayOutput() GetCockpitPushUrlArrayOutput ToGetCockpitPushUrlArrayOutputWithContext(context.Context) GetCockpitPushUrlArrayOutput }
GetCockpitPushUrlArrayInput is an input type that accepts GetCockpitPushUrlArray and GetCockpitPushUrlArrayOutput values. You can construct a concrete instance of `GetCockpitPushUrlArrayInput` via:
GetCockpitPushUrlArray{ GetCockpitPushUrlArgs{...} }
type GetCockpitPushUrlArrayOutput ¶
type GetCockpitPushUrlArrayOutput struct{ *pulumi.OutputState }
func (GetCockpitPushUrlArrayOutput) ElementType ¶
func (GetCockpitPushUrlArrayOutput) ElementType() reflect.Type
func (GetCockpitPushUrlArrayOutput) Index ¶
func (o GetCockpitPushUrlArrayOutput) Index(i pulumi.IntInput) GetCockpitPushUrlOutput
func (GetCockpitPushUrlArrayOutput) ToGetCockpitPushUrlArrayOutput ¶
func (o GetCockpitPushUrlArrayOutput) ToGetCockpitPushUrlArrayOutput() GetCockpitPushUrlArrayOutput
func (GetCockpitPushUrlArrayOutput) ToGetCockpitPushUrlArrayOutputWithContext ¶
func (o GetCockpitPushUrlArrayOutput) ToGetCockpitPushUrlArrayOutputWithContext(ctx context.Context) GetCockpitPushUrlArrayOutput
type GetCockpitPushUrlInput ¶
type GetCockpitPushUrlInput interface { pulumi.Input ToGetCockpitPushUrlOutput() GetCockpitPushUrlOutput ToGetCockpitPushUrlOutputWithContext(context.Context) GetCockpitPushUrlOutput }
GetCockpitPushUrlInput is an input type that accepts GetCockpitPushUrlArgs and GetCockpitPushUrlOutput values. You can construct a concrete instance of `GetCockpitPushUrlInput` via:
GetCockpitPushUrlArgs{...}
type GetCockpitPushUrlOutput ¶
type GetCockpitPushUrlOutput struct{ *pulumi.OutputState }
func (GetCockpitPushUrlOutput) ElementType ¶
func (GetCockpitPushUrlOutput) ElementType() reflect.Type
func (GetCockpitPushUrlOutput) PushLogsUrl ¶
func (o GetCockpitPushUrlOutput) PushLogsUrl() pulumi.StringOutput
Push URL for logs (Grafana Loki)
func (GetCockpitPushUrlOutput) PushMetricsUrl ¶
func (o GetCockpitPushUrlOutput) PushMetricsUrl() pulumi.StringOutput
Push URL for metrics (Grafana Mimir)
func (GetCockpitPushUrlOutput) ToGetCockpitPushUrlOutput ¶
func (o GetCockpitPushUrlOutput) ToGetCockpitPushUrlOutput() GetCockpitPushUrlOutput
func (GetCockpitPushUrlOutput) ToGetCockpitPushUrlOutputWithContext ¶
func (o GetCockpitPushUrlOutput) ToGetCockpitPushUrlOutputWithContext(ctx context.Context) GetCockpitPushUrlOutput
type GetPlanArgs ¶
type GetPlanArgs struct { // The name of the plan. Name string `pulumi:"name"` }
A collection of arguments for invoking getPlan.
type GetPlanOutputArgs ¶
type GetPlanOutputArgs struct { // The name of the plan. Name pulumi.StringInput `pulumi:"name"` }
A collection of arguments for invoking getPlan.
func (GetPlanOutputArgs) ElementType ¶
func (GetPlanOutputArgs) ElementType() reflect.Type
type GetPlanResult ¶
type GetPlanResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Name string `pulumi:"name"` }
A collection of values returned by getPlan.
func GetPlan ¶
func GetPlan(ctx *pulumi.Context, args *GetPlanArgs, opts ...pulumi.InvokeOption) (*GetPlanResult, error)
Gets information about a Scaleway Cockpit plan.
## Example Usage
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/cockpit"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { premium, err := cockpit.GetPlan(ctx, &cockpit.GetPlanArgs{ Name: "premium", }, nil) if err != nil { return err } _, err = cockpit.NewCockpit(ctx, "main", &cockpit.CockpitArgs{ Plan: *pulumi.String(premium.Id), }) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
type GetPlanResultOutput ¶
type GetPlanResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getPlan.
func GetPlanOutput ¶
func GetPlanOutput(ctx *pulumi.Context, args GetPlanOutputArgs, opts ...pulumi.InvokeOption) GetPlanResultOutput
func (GetPlanResultOutput) ElementType ¶
func (GetPlanResultOutput) ElementType() reflect.Type
func (GetPlanResultOutput) Id ¶
func (o GetPlanResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetPlanResultOutput) Name ¶
func (o GetPlanResultOutput) Name() pulumi.StringOutput
func (GetPlanResultOutput) ToGetPlanResultOutput ¶
func (o GetPlanResultOutput) ToGetPlanResultOutput() GetPlanResultOutput
func (GetPlanResultOutput) ToGetPlanResultOutputWithContext ¶
func (o GetPlanResultOutput) ToGetPlanResultOutputWithContext(ctx context.Context) GetPlanResultOutput
type GrafanaUser ¶
type GrafanaUser struct { pulumi.CustomResourceState // The login of the grafana user. Login pulumi.StringOutput `pulumi:"login"` // The password of the grafana user Password pulumi.StringOutput `pulumi:"password"` // `projectId`) The ID of the project the cockpit is associated with. ProjectId pulumi.StringOutput `pulumi:"projectId"` // The role of the grafana user. Must be `editor` or `viewer`. Role pulumi.StringOutput `pulumi:"role"` }
Creates and manages Scaleway Cockpit Grafana Users.
For more information consult the [documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#grafana-users).
## Example Usage
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/cockpit"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { mainCockpit, err := cockpit.LookupCockpit(ctx, nil, nil) if err != nil { return err } // Create an editor grafana user for the cockpit _, err = cockpit.NewGrafanaUser(ctx, "mainGrafanaUser", &cockpit.GrafanaUserArgs{ ProjectId: *pulumi.String(mainCockpit.ProjectId), Login: pulumi.String("my-awesome-user"), Role: pulumi.String("editor"), }) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
## Import
Cockpits Grafana Users can be imported using the project ID and the grafana user ID formatted `{project_id}/{grafana_user_id}`, e.g.
bash
```sh $ pulumi import scaleway:cockpit/grafanaUser:GrafanaUser main 11111111-1111-1111-1111-111111111111/2 ```
func GetGrafanaUser ¶
func GetGrafanaUser(ctx *pulumi.Context, name string, id pulumi.IDInput, state *GrafanaUserState, opts ...pulumi.ResourceOption) (*GrafanaUser, error)
GetGrafanaUser gets an existing GrafanaUser resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewGrafanaUser ¶
func NewGrafanaUser(ctx *pulumi.Context, name string, args *GrafanaUserArgs, opts ...pulumi.ResourceOption) (*GrafanaUser, error)
NewGrafanaUser registers a new resource with the given unique name, arguments, and options.
func (*GrafanaUser) ElementType ¶
func (*GrafanaUser) ElementType() reflect.Type
func (*GrafanaUser) ToGrafanaUserOutput ¶
func (i *GrafanaUser) ToGrafanaUserOutput() GrafanaUserOutput
func (*GrafanaUser) ToGrafanaUserOutputWithContext ¶
func (i *GrafanaUser) ToGrafanaUserOutputWithContext(ctx context.Context) GrafanaUserOutput
type GrafanaUserArgs ¶
type GrafanaUserArgs struct { // The login of the grafana user. Login pulumi.StringInput // `projectId`) The ID of the project the cockpit is associated with. ProjectId pulumi.StringPtrInput // The role of the grafana user. Must be `editor` or `viewer`. Role pulumi.StringInput }
The set of arguments for constructing a GrafanaUser resource.
func (GrafanaUserArgs) ElementType ¶
func (GrafanaUserArgs) ElementType() reflect.Type
type GrafanaUserArray ¶
type GrafanaUserArray []GrafanaUserInput
func (GrafanaUserArray) ElementType ¶
func (GrafanaUserArray) ElementType() reflect.Type
func (GrafanaUserArray) ToGrafanaUserArrayOutput ¶
func (i GrafanaUserArray) ToGrafanaUserArrayOutput() GrafanaUserArrayOutput
func (GrafanaUserArray) ToGrafanaUserArrayOutputWithContext ¶
func (i GrafanaUserArray) ToGrafanaUserArrayOutputWithContext(ctx context.Context) GrafanaUserArrayOutput
type GrafanaUserArrayInput ¶
type GrafanaUserArrayInput interface { pulumi.Input ToGrafanaUserArrayOutput() GrafanaUserArrayOutput ToGrafanaUserArrayOutputWithContext(context.Context) GrafanaUserArrayOutput }
GrafanaUserArrayInput is an input type that accepts GrafanaUserArray and GrafanaUserArrayOutput values. You can construct a concrete instance of `GrafanaUserArrayInput` via:
GrafanaUserArray{ GrafanaUserArgs{...} }
type GrafanaUserArrayOutput ¶
type GrafanaUserArrayOutput struct{ *pulumi.OutputState }
func (GrafanaUserArrayOutput) ElementType ¶
func (GrafanaUserArrayOutput) ElementType() reflect.Type
func (GrafanaUserArrayOutput) Index ¶
func (o GrafanaUserArrayOutput) Index(i pulumi.IntInput) GrafanaUserOutput
func (GrafanaUserArrayOutput) ToGrafanaUserArrayOutput ¶
func (o GrafanaUserArrayOutput) ToGrafanaUserArrayOutput() GrafanaUserArrayOutput
func (GrafanaUserArrayOutput) ToGrafanaUserArrayOutputWithContext ¶
func (o GrafanaUserArrayOutput) ToGrafanaUserArrayOutputWithContext(ctx context.Context) GrafanaUserArrayOutput
type GrafanaUserInput ¶
type GrafanaUserInput interface { pulumi.Input ToGrafanaUserOutput() GrafanaUserOutput ToGrafanaUserOutputWithContext(ctx context.Context) GrafanaUserOutput }
type GrafanaUserMap ¶
type GrafanaUserMap map[string]GrafanaUserInput
func (GrafanaUserMap) ElementType ¶
func (GrafanaUserMap) ElementType() reflect.Type
func (GrafanaUserMap) ToGrafanaUserMapOutput ¶
func (i GrafanaUserMap) ToGrafanaUserMapOutput() GrafanaUserMapOutput
func (GrafanaUserMap) ToGrafanaUserMapOutputWithContext ¶
func (i GrafanaUserMap) ToGrafanaUserMapOutputWithContext(ctx context.Context) GrafanaUserMapOutput
type GrafanaUserMapInput ¶
type GrafanaUserMapInput interface { pulumi.Input ToGrafanaUserMapOutput() GrafanaUserMapOutput ToGrafanaUserMapOutputWithContext(context.Context) GrafanaUserMapOutput }
GrafanaUserMapInput is an input type that accepts GrafanaUserMap and GrafanaUserMapOutput values. You can construct a concrete instance of `GrafanaUserMapInput` via:
GrafanaUserMap{ "key": GrafanaUserArgs{...} }
type GrafanaUserMapOutput ¶
type GrafanaUserMapOutput struct{ *pulumi.OutputState }
func (GrafanaUserMapOutput) ElementType ¶
func (GrafanaUserMapOutput) ElementType() reflect.Type
func (GrafanaUserMapOutput) MapIndex ¶
func (o GrafanaUserMapOutput) MapIndex(k pulumi.StringInput) GrafanaUserOutput
func (GrafanaUserMapOutput) ToGrafanaUserMapOutput ¶
func (o GrafanaUserMapOutput) ToGrafanaUserMapOutput() GrafanaUserMapOutput
func (GrafanaUserMapOutput) ToGrafanaUserMapOutputWithContext ¶
func (o GrafanaUserMapOutput) ToGrafanaUserMapOutputWithContext(ctx context.Context) GrafanaUserMapOutput
type GrafanaUserOutput ¶
type GrafanaUserOutput struct{ *pulumi.OutputState }
func (GrafanaUserOutput) ElementType ¶
func (GrafanaUserOutput) ElementType() reflect.Type
func (GrafanaUserOutput) Login ¶
func (o GrafanaUserOutput) Login() pulumi.StringOutput
The login of the grafana user.
func (GrafanaUserOutput) Password ¶
func (o GrafanaUserOutput) Password() pulumi.StringOutput
The password of the grafana user
func (GrafanaUserOutput) ProjectId ¶
func (o GrafanaUserOutput) ProjectId() pulumi.StringOutput
`projectId`) The ID of the project the cockpit is associated with.
func (GrafanaUserOutput) Role ¶
func (o GrafanaUserOutput) Role() pulumi.StringOutput
The role of the grafana user. Must be `editor` or `viewer`.
func (GrafanaUserOutput) ToGrafanaUserOutput ¶
func (o GrafanaUserOutput) ToGrafanaUserOutput() GrafanaUserOutput
func (GrafanaUserOutput) ToGrafanaUserOutputWithContext ¶
func (o GrafanaUserOutput) ToGrafanaUserOutputWithContext(ctx context.Context) GrafanaUserOutput
type GrafanaUserState ¶
type GrafanaUserState struct { // The login of the grafana user. Login pulumi.StringPtrInput // The password of the grafana user Password pulumi.StringPtrInput // `projectId`) The ID of the project the cockpit is associated with. ProjectId pulumi.StringPtrInput // The role of the grafana user. Must be `editor` or `viewer`. Role pulumi.StringPtrInput }
func (GrafanaUserState) ElementType ¶
func (GrafanaUserState) ElementType() reflect.Type
type LookupCockpitArgs ¶
type LookupCockpitArgs struct { // `projectId`) The ID of the project the cockpit is associated with. ProjectId *string `pulumi:"projectId"` }
A collection of arguments for invoking getCockpit.
type LookupCockpitOutputArgs ¶
type LookupCockpitOutputArgs struct { // `projectId`) The ID of the project the cockpit is associated with. ProjectId pulumi.StringPtrInput `pulumi:"projectId"` }
A collection of arguments for invoking getCockpit.
func (LookupCockpitOutputArgs) ElementType ¶
func (LookupCockpitOutputArgs) ElementType() reflect.Type
type LookupCockpitResult ¶
type LookupCockpitResult struct { // Endpoints Endpoints []GetCockpitEndpoint `pulumi:"endpoints"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The ID of the current plan PlanId string `pulumi:"planId"` ProjectId *string `pulumi:"projectId"` PushUrls []GetCockpitPushUrl `pulumi:"pushUrls"` }
A collection of values returned by getCockpit.
func LookupCockpit ¶
func LookupCockpit(ctx *pulumi.Context, args *LookupCockpitArgs, opts ...pulumi.InvokeOption) (*LookupCockpitResult, error)
Gets information about the Scaleway Cockpit.
For more information consult the [documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/).
## Example Usage
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/cockpit"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := cockpit.LookupCockpit(ctx, nil, nil) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/cockpit"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := cockpit.LookupCockpit(ctx, &cockpit.LookupCockpitArgs{ ProjectId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"), }, nil) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
type LookupCockpitResultOutput ¶
type LookupCockpitResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getCockpit.
func LookupCockpitOutput ¶
func LookupCockpitOutput(ctx *pulumi.Context, args LookupCockpitOutputArgs, opts ...pulumi.InvokeOption) LookupCockpitResultOutput
func (LookupCockpitResultOutput) ElementType ¶
func (LookupCockpitResultOutput) ElementType() reflect.Type
func (LookupCockpitResultOutput) Endpoints ¶
func (o LookupCockpitResultOutput) Endpoints() GetCockpitEndpointArrayOutput
Endpoints
func (LookupCockpitResultOutput) Id ¶
func (o LookupCockpitResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupCockpitResultOutput) PlanId ¶
func (o LookupCockpitResultOutput) PlanId() pulumi.StringOutput
The ID of the current plan
func (LookupCockpitResultOutput) ProjectId ¶
func (o LookupCockpitResultOutput) ProjectId() pulumi.StringPtrOutput
func (LookupCockpitResultOutput) PushUrls ¶
func (o LookupCockpitResultOutput) PushUrls() GetCockpitPushUrlArrayOutput
func (LookupCockpitResultOutput) ToLookupCockpitResultOutput ¶
func (o LookupCockpitResultOutput) ToLookupCockpitResultOutput() LookupCockpitResultOutput
func (LookupCockpitResultOutput) ToLookupCockpitResultOutputWithContext ¶
func (o LookupCockpitResultOutput) ToLookupCockpitResultOutputWithContext(ctx context.Context) LookupCockpitResultOutput
type Token ¶
type Token struct { pulumi.CustomResourceState // The name of the token. Name pulumi.StringOutput `pulumi:"name"` // `projectId`) The ID of the project the cockpit is associated with. ProjectId pulumi.StringOutput `pulumi:"projectId"` // Allowed scopes. Scopes TokenScopesOutput `pulumi:"scopes"` // The secret key of the token. SecretKey pulumi.StringOutput `pulumi:"secretKey"` }
Creates and manages Scaleway Cockpit Tokens.
For more information consult the [documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#tokens).
## Example Usage
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/cockpit"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { mainCockpit, err := cockpit.LookupCockpit(ctx, nil, nil) if err != nil { return err } // Create a token for the cockpit that can write metrics and logs _, err = cockpit.NewToken(ctx, "mainToken", &cockpit.TokenArgs{ ProjectId: *pulumi.String(mainCockpit.ProjectId), }) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/cockpit"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { mainCockpit, err := cockpit.LookupCockpit(ctx, nil, nil) if err != nil { return err } // Create a token for the cockpit that can read metrics and logs but not write _, err = cockpit.NewToken(ctx, "mainToken", &cockpit.TokenArgs{ ProjectId: *pulumi.String(mainCockpit.ProjectId), Scopes: &cockpit.TokenScopesArgs{ QueryMetrics: pulumi.Bool(true), WriteMetrics: pulumi.Bool(false), QueryLogs: pulumi.Bool(true), WriteLogs: pulumi.Bool(false), }, }) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
## Import
Cockpits can be imported using the token ID, e.g.
bash
```sh $ pulumi import scaleway:cockpit/token:Token main 11111111-1111-1111-1111-111111111111 ```
func GetToken ¶
func GetToken(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TokenState, opts ...pulumi.ResourceOption) (*Token, error)
GetToken gets an existing Token resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewToken ¶
func NewToken(ctx *pulumi.Context, name string, args *TokenArgs, opts ...pulumi.ResourceOption) (*Token, error)
NewToken registers a new resource with the given unique name, arguments, and options.
func (*Token) ElementType ¶
func (*Token) ToTokenOutput ¶
func (i *Token) ToTokenOutput() TokenOutput
func (*Token) ToTokenOutputWithContext ¶
func (i *Token) ToTokenOutputWithContext(ctx context.Context) TokenOutput
type TokenArgs ¶
type TokenArgs struct { // The name of the token. Name pulumi.StringPtrInput // `projectId`) The ID of the project the cockpit is associated with. ProjectId pulumi.StringPtrInput // Allowed scopes. Scopes TokenScopesPtrInput }
The set of arguments for constructing a Token resource.
func (TokenArgs) ElementType ¶
type TokenArray ¶
type TokenArray []TokenInput
func (TokenArray) ElementType ¶
func (TokenArray) ElementType() reflect.Type
func (TokenArray) ToTokenArrayOutput ¶
func (i TokenArray) ToTokenArrayOutput() TokenArrayOutput
func (TokenArray) ToTokenArrayOutputWithContext ¶
func (i TokenArray) ToTokenArrayOutputWithContext(ctx context.Context) TokenArrayOutput
type TokenArrayInput ¶
type TokenArrayInput interface { pulumi.Input ToTokenArrayOutput() TokenArrayOutput ToTokenArrayOutputWithContext(context.Context) TokenArrayOutput }
TokenArrayInput is an input type that accepts TokenArray and TokenArrayOutput values. You can construct a concrete instance of `TokenArrayInput` via:
TokenArray{ TokenArgs{...} }
type TokenArrayOutput ¶
type TokenArrayOutput struct{ *pulumi.OutputState }
func (TokenArrayOutput) ElementType ¶
func (TokenArrayOutput) ElementType() reflect.Type
func (TokenArrayOutput) Index ¶
func (o TokenArrayOutput) Index(i pulumi.IntInput) TokenOutput
func (TokenArrayOutput) ToTokenArrayOutput ¶
func (o TokenArrayOutput) ToTokenArrayOutput() TokenArrayOutput
func (TokenArrayOutput) ToTokenArrayOutputWithContext ¶
func (o TokenArrayOutput) ToTokenArrayOutputWithContext(ctx context.Context) TokenArrayOutput
type TokenInput ¶
type TokenInput interface { pulumi.Input ToTokenOutput() TokenOutput ToTokenOutputWithContext(ctx context.Context) TokenOutput }
type TokenMap ¶
type TokenMap map[string]TokenInput
func (TokenMap) ElementType ¶
func (TokenMap) ToTokenMapOutput ¶
func (i TokenMap) ToTokenMapOutput() TokenMapOutput
func (TokenMap) ToTokenMapOutputWithContext ¶
func (i TokenMap) ToTokenMapOutputWithContext(ctx context.Context) TokenMapOutput
type TokenMapInput ¶
type TokenMapInput interface { pulumi.Input ToTokenMapOutput() TokenMapOutput ToTokenMapOutputWithContext(context.Context) TokenMapOutput }
TokenMapInput is an input type that accepts TokenMap and TokenMapOutput values. You can construct a concrete instance of `TokenMapInput` via:
TokenMap{ "key": TokenArgs{...} }
type TokenMapOutput ¶
type TokenMapOutput struct{ *pulumi.OutputState }
func (TokenMapOutput) ElementType ¶
func (TokenMapOutput) ElementType() reflect.Type
func (TokenMapOutput) MapIndex ¶
func (o TokenMapOutput) MapIndex(k pulumi.StringInput) TokenOutput
func (TokenMapOutput) ToTokenMapOutput ¶
func (o TokenMapOutput) ToTokenMapOutput() TokenMapOutput
func (TokenMapOutput) ToTokenMapOutputWithContext ¶
func (o TokenMapOutput) ToTokenMapOutputWithContext(ctx context.Context) TokenMapOutput
type TokenOutput ¶
type TokenOutput struct{ *pulumi.OutputState }
func (TokenOutput) ElementType ¶
func (TokenOutput) ElementType() reflect.Type
func (TokenOutput) ProjectId ¶
func (o TokenOutput) ProjectId() pulumi.StringOutput
`projectId`) The ID of the project the cockpit is associated with.
func (TokenOutput) SecretKey ¶
func (o TokenOutput) SecretKey() pulumi.StringOutput
The secret key of the token.
func (TokenOutput) ToTokenOutput ¶
func (o TokenOutput) ToTokenOutput() TokenOutput
func (TokenOutput) ToTokenOutputWithContext ¶
func (o TokenOutput) ToTokenOutputWithContext(ctx context.Context) TokenOutput
type TokenScopes ¶
type TokenScopes struct { // Query logs. QueryLogs *bool `pulumi:"queryLogs"` // Query metrics. QueryMetrics *bool `pulumi:"queryMetrics"` // Query traces. QueryTraces *bool `pulumi:"queryTraces"` // Setup alerts. SetupAlerts *bool `pulumi:"setupAlerts"` // Setup logs rules. SetupLogsRules *bool `pulumi:"setupLogsRules"` // Setup metrics rules. SetupMetricsRules *bool `pulumi:"setupMetricsRules"` // Write logs. WriteLogs *bool `pulumi:"writeLogs"` // Write metrics. WriteMetrics *bool `pulumi:"writeMetrics"` // Write traces. WriteTraces *bool `pulumi:"writeTraces"` }
type TokenScopesArgs ¶
type TokenScopesArgs struct { // Query logs. QueryLogs pulumi.BoolPtrInput `pulumi:"queryLogs"` // Query metrics. QueryMetrics pulumi.BoolPtrInput `pulumi:"queryMetrics"` // Query traces. QueryTraces pulumi.BoolPtrInput `pulumi:"queryTraces"` // Setup alerts. SetupAlerts pulumi.BoolPtrInput `pulumi:"setupAlerts"` // Setup logs rules. SetupLogsRules pulumi.BoolPtrInput `pulumi:"setupLogsRules"` // Setup metrics rules. SetupMetricsRules pulumi.BoolPtrInput `pulumi:"setupMetricsRules"` // Write logs. WriteLogs pulumi.BoolPtrInput `pulumi:"writeLogs"` // Write metrics. WriteMetrics pulumi.BoolPtrInput `pulumi:"writeMetrics"` // Write traces. WriteTraces pulumi.BoolPtrInput `pulumi:"writeTraces"` }
func (TokenScopesArgs) ElementType ¶
func (TokenScopesArgs) ElementType() reflect.Type
func (TokenScopesArgs) ToTokenScopesOutput ¶
func (i TokenScopesArgs) ToTokenScopesOutput() TokenScopesOutput
func (TokenScopesArgs) ToTokenScopesOutputWithContext ¶
func (i TokenScopesArgs) ToTokenScopesOutputWithContext(ctx context.Context) TokenScopesOutput
func (TokenScopesArgs) ToTokenScopesPtrOutput ¶
func (i TokenScopesArgs) ToTokenScopesPtrOutput() TokenScopesPtrOutput
func (TokenScopesArgs) ToTokenScopesPtrOutputWithContext ¶
func (i TokenScopesArgs) ToTokenScopesPtrOutputWithContext(ctx context.Context) TokenScopesPtrOutput
type TokenScopesInput ¶
type TokenScopesInput interface { pulumi.Input ToTokenScopesOutput() TokenScopesOutput ToTokenScopesOutputWithContext(context.Context) TokenScopesOutput }
TokenScopesInput is an input type that accepts TokenScopesArgs and TokenScopesOutput values. You can construct a concrete instance of `TokenScopesInput` via:
TokenScopesArgs{...}
type TokenScopesOutput ¶
type TokenScopesOutput struct{ *pulumi.OutputState }
func (TokenScopesOutput) ElementType ¶
func (TokenScopesOutput) ElementType() reflect.Type
func (TokenScopesOutput) QueryLogs ¶
func (o TokenScopesOutput) QueryLogs() pulumi.BoolPtrOutput
Query logs.
func (TokenScopesOutput) QueryMetrics ¶
func (o TokenScopesOutput) QueryMetrics() pulumi.BoolPtrOutput
Query metrics.
func (TokenScopesOutput) QueryTraces ¶
func (o TokenScopesOutput) QueryTraces() pulumi.BoolPtrOutput
Query traces.
func (TokenScopesOutput) SetupAlerts ¶
func (o TokenScopesOutput) SetupAlerts() pulumi.BoolPtrOutput
Setup alerts.
func (TokenScopesOutput) SetupLogsRules ¶
func (o TokenScopesOutput) SetupLogsRules() pulumi.BoolPtrOutput
Setup logs rules.
func (TokenScopesOutput) SetupMetricsRules ¶
func (o TokenScopesOutput) SetupMetricsRules() pulumi.BoolPtrOutput
Setup metrics rules.
func (TokenScopesOutput) ToTokenScopesOutput ¶
func (o TokenScopesOutput) ToTokenScopesOutput() TokenScopesOutput
func (TokenScopesOutput) ToTokenScopesOutputWithContext ¶
func (o TokenScopesOutput) ToTokenScopesOutputWithContext(ctx context.Context) TokenScopesOutput
func (TokenScopesOutput) ToTokenScopesPtrOutput ¶
func (o TokenScopesOutput) ToTokenScopesPtrOutput() TokenScopesPtrOutput
func (TokenScopesOutput) ToTokenScopesPtrOutputWithContext ¶
func (o TokenScopesOutput) ToTokenScopesPtrOutputWithContext(ctx context.Context) TokenScopesPtrOutput
func (TokenScopesOutput) WriteLogs ¶
func (o TokenScopesOutput) WriteLogs() pulumi.BoolPtrOutput
Write logs.
func (TokenScopesOutput) WriteMetrics ¶
func (o TokenScopesOutput) WriteMetrics() pulumi.BoolPtrOutput
Write metrics.
func (TokenScopesOutput) WriteTraces ¶
func (o TokenScopesOutput) WriteTraces() pulumi.BoolPtrOutput
Write traces.
type TokenScopesPtrInput ¶
type TokenScopesPtrInput interface { pulumi.Input ToTokenScopesPtrOutput() TokenScopesPtrOutput ToTokenScopesPtrOutputWithContext(context.Context) TokenScopesPtrOutput }
TokenScopesPtrInput is an input type that accepts TokenScopesArgs, TokenScopesPtr and TokenScopesPtrOutput values. You can construct a concrete instance of `TokenScopesPtrInput` via:
TokenScopesArgs{...} or: nil
func TokenScopesPtr ¶
func TokenScopesPtr(v *TokenScopesArgs) TokenScopesPtrInput
type TokenScopesPtrOutput ¶
type TokenScopesPtrOutput struct{ *pulumi.OutputState }
func (TokenScopesPtrOutput) Elem ¶
func (o TokenScopesPtrOutput) Elem() TokenScopesOutput
func (TokenScopesPtrOutput) ElementType ¶
func (TokenScopesPtrOutput) ElementType() reflect.Type
func (TokenScopesPtrOutput) QueryLogs ¶
func (o TokenScopesPtrOutput) QueryLogs() pulumi.BoolPtrOutput
Query logs.
func (TokenScopesPtrOutput) QueryMetrics ¶
func (o TokenScopesPtrOutput) QueryMetrics() pulumi.BoolPtrOutput
Query metrics.
func (TokenScopesPtrOutput) QueryTraces ¶
func (o TokenScopesPtrOutput) QueryTraces() pulumi.BoolPtrOutput
Query traces.
func (TokenScopesPtrOutput) SetupAlerts ¶
func (o TokenScopesPtrOutput) SetupAlerts() pulumi.BoolPtrOutput
Setup alerts.
func (TokenScopesPtrOutput) SetupLogsRules ¶
func (o TokenScopesPtrOutput) SetupLogsRules() pulumi.BoolPtrOutput
Setup logs rules.
func (TokenScopesPtrOutput) SetupMetricsRules ¶
func (o TokenScopesPtrOutput) SetupMetricsRules() pulumi.BoolPtrOutput
Setup metrics rules.
func (TokenScopesPtrOutput) ToTokenScopesPtrOutput ¶
func (o TokenScopesPtrOutput) ToTokenScopesPtrOutput() TokenScopesPtrOutput
func (TokenScopesPtrOutput) ToTokenScopesPtrOutputWithContext ¶
func (o TokenScopesPtrOutput) ToTokenScopesPtrOutputWithContext(ctx context.Context) TokenScopesPtrOutput
func (TokenScopesPtrOutput) WriteLogs ¶
func (o TokenScopesPtrOutput) WriteLogs() pulumi.BoolPtrOutput
Write logs.
func (TokenScopesPtrOutput) WriteMetrics ¶
func (o TokenScopesPtrOutput) WriteMetrics() pulumi.BoolPtrOutput
Write metrics.
func (TokenScopesPtrOutput) WriteTraces ¶
func (o TokenScopesPtrOutput) WriteTraces() pulumi.BoolPtrOutput
Write traces.
type TokenState ¶
type TokenState struct { // The name of the token. Name pulumi.StringPtrInput // `projectId`) The ID of the project the cockpit is associated with. ProjectId pulumi.StringPtrInput // Allowed scopes. Scopes TokenScopesPtrInput // The secret key of the token. SecretKey pulumi.StringPtrInput }
func (TokenState) ElementType ¶
func (TokenState) ElementType() reflect.Type